diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-25 22:41:02 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-03-25 22:41:02 +0100 |
commit | ef16b9ff4c0244ec630279dfb18711da2e68ddd0 (patch) | |
tree | e8d6338957a858c87728f582c1bb652bfc474558 /main/privoxy | |
parent | 89c339b6cab6713cb585a3426e545a63d94c3013 (diff) | |
download | aports-ef16b9ff4c0244ec630279dfb18711da2e68ddd0.tar.bz2 aports-ef16b9ff4c0244ec630279dfb18711da2e68ddd0.tar.xz |
main/privoxy: improve abuild
Diffstat (limited to 'main/privoxy')
-rw-r--r-- | main/privoxy/APKBUILD | 23 |
1 files changed, 13 insertions, 10 deletions
diff --git a/main/privoxy/APKBUILD b/main/privoxy/APKBUILD index f94b2a31d3..3454043293 100644 --- a/main/privoxy/APKBUILD +++ b/main/privoxy/APKBUILD @@ -8,7 +8,6 @@ arch="all" license="GPL" pkgusers="privoxy" pkggroups="privoxy" -depends= makedepends="autoconf automake pcre-dev zlib-dev coreutils" install="privoxy.pre-install" subpackages="$pkgname-doc" @@ -17,21 +16,20 @@ source="http://downloads.sourceforge.net/ijbswa/$pkgname-$pkgver-stable-src.tar. $pkgname.logrotate privoxy-alpine.patch " +builddir="$srcdir/$pkgname-$pkgver-stable" -_builddir="$srcdir"/$pkgname-$pkgver-stable prepare() { - cd "$_builddir" + cd "$builddir" + update_config_sub || return 1 - for i in $source; do - case $i in - *.patch) patch -p1 -i "$srcdir"/$i || return 1;; - esac - done + default_prepare || return 1 + aclocal && autoheader && autoconf } build() { - cd "$_builddir" + cd "$builddir" + ./configure \ --build=$CBUILD \ --host=$CHOST \ @@ -48,14 +46,19 @@ build() { } package() { - cd "$_builddir" + cd "$builddir" + make DESTDIR="$pkgdir" install + rm $pkgdir/var/log/privoxy/* || true + install -D -m755 "$srcdir"/privoxy.initd "$pkgdir"/etc/init.d/privoxy install -D -m644 "$srcdir"/privoxy.logrotate \ "$pkgdir"/etc/logrotate.d/privoxy + find "$pkgdir"/etc/privoxy/ -type d | xargs chmod 770 find "$pkgdir"/etc/privoxy/ -type f | xargs chmod 660 + chown -R privoxy:privoxy "$pkgdir"/var/log/privoxy \ "$pkgdir"/etc/privoxy } |