diff options
-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 } |