diff options
author | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-18 06:49:23 +0000 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2017-04-18 06:49:23 +0000 |
commit | 66fa02797c9678e5208f36b7db2bd3d6adabfb6e (patch) | |
tree | 8d81538c57848ef108ebe3517729d501d9b48b96 /main/tinc | |
parent | 4e9f6739c943fe37767d9cc23fed86c7c97bd527 (diff) | |
download | aports-66fa02797c9678e5208f36b7db2bd3d6adabfb6e.tar.bz2 aports-66fa02797c9678e5208f36b7db2bd3d6adabfb6e.tar.xz |
main/tinc: upgrade to 1.0.31, modernize APKBUILD
Diffstat (limited to 'main/tinc')
-rw-r--r-- | main/tinc/APKBUILD | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD index dc4f888b9a..9cee5f8b11 100644 --- a/main/tinc/APKBUILD +++ b/main/tinc/APKBUILD @@ -1,7 +1,7 @@ # Contributor: Ćukasz Jendrysik <scadu@yandex.com> # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=tinc -pkgver=1.0.30 +pkgver=1.0.31 pkgrel=0 pkgdesc="tinc is a Virtual Private Network (VPN) daemon" url="http://www.tinc-vpn.org/" @@ -15,6 +15,11 @@ source="http://www.tinc-vpn.org/packages/tinc-$pkgver.tar.gz tinc.networks" builddir="$srcdir/$pkgname-$pkgver" +check() { + cd "$builddir" + make check +} + build() { cd "$builddir" ./configure \ @@ -27,15 +32,14 @@ build() { --localstatedir=/var \ --enable-jumbograms \ --enable-lzo \ - --enable-zlib \ - || return 1 - make || return 1 + --enable-zlib + make } package() { cd "$builddir" - make DESTDIR="$pkgdir" install || return 1 + make DESTDIR="$pkgdir" install install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd install -m755 -D "$srcdir"/tincd.lo.initd \ @@ -44,7 +48,7 @@ package() { "$pkgdir"/etc/conf.d/tinc.networks } -sha512sums="2e98658eeb77ceaf2973f3b77cac0c31beecd1382dc6976461da55cf22e27469d30cf6b35d5b3ce489a1809f38e82635b24a86956d62ef34e28ec43b8d09d1e6 tinc-1.0.30.tar.gz +sha512sums="ac694d4ceec19bddebd3d5b9f37eb703a4701b93f65a7bbcdbc0b364f2a4f8b116c85748d06ec7821474de5c4d434caf5448109a0846e15c4a96adb92a0fc622 tinc-1.0.31.tar.gz 81397ee122517b1e33a4b561ed1878329605c0b2bf771097cd076a982a6b3dd690097c50c0cbd035ad2964c0a48fe03c727a2d9584af7301dfd244e2ff5e8609 tincd.initd 7f5fa69d6e5e500a012f036a7692d19560ea8b9c66de6ab8775f37c2edb55fb4fabd245758f7577d2e1540d2e0c0964ff1e98d761c86bba4fa3c35c0dc6b5413 tincd.lo.initd f7cb459c170898e51176bd92c642335386db90b7bca2abb3f6eb2514546efbd74e5fd2c8845060111dd48a0dd2cc1890717a03315c9b86185047c259cdc27135 tinc.networks" |