aboutsummaryrefslogblamecommitdiffstats
path: root/community/anytun/APKBUILD
blob: b72a4d9cd1c0741efa1eb1052776e9268abcef13 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                           
            
        
                                                                                               

                               
          
                          
                                                 
                          
                                                       
                                                            
                          

                       
                                       

         



                                   

                                             


           



                                                                                     

 
                                                                                                                                                                 
                                                                                                                                                    
                                                                                                                                               
# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=anytun
pkgver=0.3.8
pkgrel=1
pkgdesc="Secure anycast tunneling protocol implementation for flexible and fault-tolerant VPNs"
options="!check" # No testsuite
url="https://www.anytun.org/"
arch="all"
license="GPL-3.0-or-later"
depends_dev="openssl-dev boost-dev linux-headers"
makedepends="$depends_dev"
subpackages="$pkgname-dev $pkgname-doc $pkgname-openrc"
source="http://www.anytun.org/download/anytun-$pkgver.tar.gz
	fix-iostream.patch
	$pkgname.initd"

builddir="$srcdir"/$pkgname-$pkgver/src

build() {
	./configure \
		--prefix=/usr \
		--sysconfdir=/etc \
		--use-ssl-crypto \
		--examplesdir=/usr/share/docs
	make
}

package() {
	mkdir -p $pkgdir/var/run/anytun  $pkgdir/var/run/anytun-controld  &>/dev/null
	make install DESTDIR="$pkgdir"
	rm "$pkgdir"/etc/init.d/$pkgname
	install -Dm 755 "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/$pkgname
}

sha512sums="c1631983c0f1d735792ae1775aedb87241ae94ccd9cda12885790ecb09e0279518d3414c41945f385b2b30ad20db6a4c68fc526d7d6f777f2929c0d23174f699  anytun-0.3.8.tar.gz
8c2eece0357666867f8cd9c7ef9307bcf88b9172ac033c18bd33ba470b3c19ad722c7eeafcda3a9ae95539d86ab04285fe5d7fa9766630f689c58e2c3fb239c3  fix-iostream.patch
8ca2691139ed42474fa9d2e81e8c43ae6ec48c61d07055e6436cddb6d43521a735e315ce1e99d7ef253e8d15515416df92db51fd77e7e13f6c58c820fb9d0ffb  anytun.initd"