aboutsummaryrefslogblamecommitdiffstats
path: root/community/zerotier-one/APKBUILD
blob: 9ebf2a1505d3cbddcc3c08136e40323305f11c94 (plain) (tree)
1
2
3
4
5
6
7
8
9


                                                 
            
        

                                                                                           
          
                          

                                          
                                                                                               

                        



                                      
                                               



            
                     


           
                                      
                                                   
                                             

                                                                   

 

                                                                                                                                                           
                                                                                                                                                    

                                                                                                                                                  
# Contributor: Kyle Parisi <kyleparisi@gmail.com>
# Maintainer: Kyle Parisi <kyleparisi@gmail.com>
pkgname=zerotier-one
pkgver=1.6.5
pkgrel=0
pkgdesc="ZeroTier One allows systems to join and participate in ZeroTier virtual networks."
url="https://www.zerotier.com/"
arch="all"
license="GPL-3.0-or-later"
makedepends="linux-headers"
subpackages="$pkgname-doc $pkgname-openrc"
source="$pkgname-$pkgver.tar.gz::https://github.com/zerotier/ZeroTierOne/archive/$pkgver.tar.gz
	$pkgname.initd
	make-linux.patch
	"

builddir="$srcdir"/ZeroTierOne-$pkgver
build() {
	sed -i.bak s:/bash:/sh:g ./doc/build.sh
	make
}

check() {
	make selftest
}

package() {
	make DESTDIR="$pkgdir" install
	install -m755 -D "$srcdir"/$pkgname.initd \
		"$pkgdir"/etc/init.d/$pkgname
	install -d "$pkgdir"/usr/lib/modules-load.d
	echo "tun" > "$pkgdir"/usr/lib/modules-load.d/$pkgname.conf
}

sha512sums="
34052693c94bce239b6a3edb48083806d790874585b4f79a47d007afa9b71c779716f5ee8f1dec9395045c2adb3b183af151e69806f7ff657f851e246dba751b  zerotier-one-1.6.5.tar.gz
a63f8e649d63a3de58a556b3adca440cd0c0d4b36239ea547d555b97852d89d0a1446f348d35e98f77faabe1fe4ffb76868b8290ad9f2b4cd8b6c599945a176c  zerotier-one.initd
efee4e5e6d553d4914e4de35844a5fddd42af3a1bcb1e8b54a3c1e62529fe3b75a5ca3ebc7f1ec0e531f5c72547cec68c6dd5acb33000664b148117ed89ecc53  make-linux.patch
"