diff options
Diffstat (limited to 'main/tinc/APKBUILD')
-rw-r--r-- | main/tinc/APKBUILD | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD new file mode 100644 index 0000000000..1ae15310e4 --- /dev/null +++ b/main/tinc/APKBUILD @@ -0,0 +1,50 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=tinc +pkgver=1.0.13 +pkgrel=0 +pkgdesc="tinc is a Virtual Private Network (VPN) daemon" +url="http://www.tinc-vpn.org/" +license="GPL-2" +depends= +makedepends="zlib-dev lzo-dev openssl-dev" +install= +subpackages="$pkgname-doc" +source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz + tincd.initd + tincd.lo.initd + tinc.networks" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + # apply patches here +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --infodir=/usr/share/info \ + --enable-jumbograms \ + --enable-lzo \ + --enable-zlib + make || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install + + mkdir "$pkgdir"/etc/tinc + install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd + install -m755 -D "$srcdir"/tincd.lo.initd \ + "$pkgdir"/etc/init.d/tincd.lo + install -m644 -D "$srcdir"/tinc.networks \ + "$pkgdir"/etc/conf.d/tinc.networks +} + +md5sums="86263994d38c750431efd17e9a91a248 tinc-1.0.13.tar.gz +89d104d38bab84d6f92d27464e48628d tincd.initd +96d8778284637fa7790a4c6239a72070 tincd.lo.initd +475d64d9aa410ec7e91f5b079800abc9 tinc.networks" |