diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:49:25 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2013-01-04 22:49:25 +0100 |
commit | f4487ef759ff869103ba36ba82d2366a373e600d (patch) | |
tree | da62a2a65b9a446192c11ad926e268a4369be3c0 /main/knock/APKBUILD | |
parent | aa04d0ad4e9f31c6bdfb2116609253d38bd9b383 (diff) | |
download | aports-f4487ef759ff869103ba36ba82d2366a373e600d.tar.bz2 aports-f4487ef759ff869103ba36ba82d2366a373e600d.tar.xz |
main/knock: fix build on eglibc
Diffstat (limited to 'main/knock/APKBUILD')
-rw-r--r-- | main/knock/APKBUILD | 33 |
1 files changed, 24 insertions, 9 deletions
diff --git a/main/knock/APKBUILD b/main/knock/APKBUILD index 5ae1bd5814..58a63654d5 100644 --- a/main/knock/APKBUILD +++ b/main/knock/APKBUILD @@ -13,26 +13,41 @@ install= subpackages="$pkgname-doc" source="http://www.zeroflux.org/proj/knock/files/$pkgname-$pkgver.tar.gz knock.initd - knock.confd" + knock.confd + path-max.patch" -build() { - cd "$srcdir/$pkgname-$pkgver" +_builddir="$srcdir/$pkgname-$pkgver" + +prepare() { + local i + cd "$_builddir" + for i in $source; do + case $i in + *.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;; + esac + done +} +build() { + cd "$_builddir" ./configure --prefix=/usr \ --sysconfdir=/etc \ --mandir=/usr/share/man \ --infodir=/usr/share/info - make -j1 || return 1 + make || return 1 } package() { - cd "$srcdir/$pkgname-$pkgver" - make -j1 DESTDIR="$pkgdir" install + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 - install -m755 -D "$srcdir"/$pkgname.initd "$pkgdir"/etc/init.d/knockd - install -m644 -D "$srcdir"/$pkgname.confd "$pkgdir"/etc/conf.d/knockd + install -m755 -D "$srcdir"/$pkgname.initd \ + "$pkgdir"/etc/init.d/knockd || return 1 + install -m644 -D "$srcdir"/$pkgname.confd \ + "$pkgdir"/etc/conf.d/knockd || return 1 } md5sums="ca09d61458974cff90a700aba6120891 knock-0.5.tar.gz 5f05196d700c04287523d184226e2dc2 knock.initd -8067d3b8401a0b5d513c44d3ff436032 knock.confd" +8067d3b8401a0b5d513c44d3ff436032 knock.confd +1b7efd25668793c9248e530fd804cb54 path-max.patch" |