Skip to content

Instantly share code, notes, and snippets.

@pandada8
Last active August 28, 2015 05:53
Show Gist options
  • Save pandada8/b930d09e2344f135ce97 to your computer and use it in GitHub Desktop.
Save pandada8/b930d09e2344f135ce97 to your computer and use it in GitHub Desktop.
PKGBUILDS
# Maintainer: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Alex Jordan <[email protected]>
pkgname=zerotier-one
pkgver=1.0.5
pkgrel=1
pkgdesc="Creates virtual Ethernet networks of almost unlimited size."
arch=('i686' 'x86_64')
url="https://www.zerotier.com/index.html"
license=('GPL3')
groups=()
depends=("gcc-libs")
makedepends=()
source=("https://github.com/zerotier/ZeroTierOne/archive/$pkgver.tar.gz")
sha1sums=('de1dfb3ecc3bcbdea38388f51e91ac5927eba2b6')
build() {
cd "$srcdir/ZeroTierOne-$pkgver"
make
}
check() {
cd "$srcdir/ZeroTierOne-$pkgver"
make selftest
}
package() {
cd "$srcdir/ZeroTierOne-$pkgver"
mkdir -p $pkgdir/var/lib/zerotier-one $pkgdir/usr/bin $pkgdir/usr/lib/systemd/system
install zerotier-one $pkgdir/var/lib/zerotier-one
install ext/installfiles/linux/systemd/zerotier-one.service $pkgdir/usr/lib/systemd/system
cd $pkgdir/usr/bin
ln -s ../../var/lib/zerotier-one/zerotier-one zerotier-cli
ln -s ../../var/lib/zerotier-one/zerotier-one zerotier-idtool
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment