aboutsummaryrefslogtreecommitdiffstats
path: root/main/tinc
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2017-03-25 22:30:06 +0100
committerJakub Jirutka <jakub@jirutka.cz>2017-03-25 22:30:19 +0100
commit8652414fde9f8952b3afe89b73de43f83084acf6 (patch)
tree4fbbae17958b6c74bae7572a145d0ab339ca288d /main/tinc
parentc38cf9bb99d8ea8c3977c2e00f87b846e9b3afb3 (diff)
downloadaports-8652414fde9f8952b3afe89b73de43f83084acf6.tar.bz2
aports-8652414fde9f8952b3afe89b73de43f83084acf6.tar.xz
main/tinc: modernize abuild
Diffstat (limited to 'main/tinc')
-rw-r--r--main/tinc/APKBUILD18
1 files changed, 4 insertions, 14 deletions
diff --git a/main/tinc/APKBUILD b/main/tinc/APKBUILD
index 4b61d1ce95..dc4f888b9a 100644
--- a/main/tinc/APKBUILD
+++ b/main/tinc/APKBUILD
@@ -7,27 +7,16 @@ pkgdesc="tinc is a Virtual Private Network (VPN) daemon"
url="http://www.tinc-vpn.org/"
arch="all"
license="GPL2+"
-depends=""
makedepends="zlib-dev lzo-dev libressl-dev linux-headers"
-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"
- for i in $source; do
- case $i in
- *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
- esac
- done
-}
+builddir="$srcdir/$pkgname-$pkgver"
build() {
- cd "$_builddir"
+ cd "$builddir"
./configure \
--build=$CBUILD \
--host=$CHOST \
@@ -44,7 +33,8 @@ build() {
}
package() {
- cd "$_builddir"
+ cd "$builddir"
+
make DESTDIR="$pkgdir" install || return 1
install -m755 -D "$srcdir"/tincd.initd "$pkgdir"/etc/init.d/tincd