blob: 5de44e7ed87af19505c6eb0f21d9b652632146e2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# Maintainer: pandada8 <pandada8@gmail.com>
# Contributor: Harry Jeffery <harry|@|exec64|.|co|.|uk>
# Contributor: Alex Jordan <alexander3223098@gmail.com>
pkgname=zerotier-one-with-controller
pkgver=1.1.14
pkgrel=1
pkgdesc="Creates virtual Ethernet networks of almost unlimited size. controller node version"
arch=('i686' 'x86_64')
url="https://www.zerotier.com/index.html"
license=('GPL3')
groups=()
depends=("gcc-libs" "sqlite")
makedepends=("ruby-ronn")
conflicts=("zerotier-one" "zerotier-one-lastest")
source=("https://github.com/zerotier/ZeroTierOne/archive/$pkgver.tar.gz")
sha1sums=('b01a5167f8c9a28c80ed5fbae36c3b3cbbe55108')
build() {
cd "$srcdir/ZeroTierOne-$pkgver"
make ZT_ENABLE_NETWORK_CONTROLLER=1 ZT_DEBUG=1
}
#check() {
# cd "$srcdir/ZeroTierOne-$pkgver"
# make ZT_ENABLE_NETWORK_CONTROLLER=1 selftest
# ./zerotier-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 debian/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
ln -s ../../var/lib/zerotier-one/zerotier-one zerotier-one
}
|