wok-next annotate privoxy/receipt @ rev 21727

created recipe for vbindiff
author Hans-G?nter Theisgen
date Sat Nov 21 14:32:44 2020 +0100 (2020-11-21)
parents f48456621a9d
children
rev   line source
al@20534 1 # SliTaz package receipt v2.
paul@2275 2
paul@2275 3 PACKAGE="privoxy"
pascal@18585 4 VERSION="3.0.23-stable"
paul@2275 5 CATEGORY="network"
al@20534 6 SHORT_DESC="Non-caching web privacy proxy"
paul@2275 7 MAINTAINER="paul@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
al@20534 9 WEB_SITE="http://www.privoxy.org/"
al@20534 10
paul@2275 11 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
al@21017 12 WGET_URL="$SF_MIRROR/ijbswa/$TARBALL"
paul@2275 13
pascal@15375 14 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils"
pascal@15375 15
al@20534 16 compile_rules() {
paul@2275 17 # Have to create privoxy user/group to be able to compile
slaxemulator@8011 18 adduser -s /bin/false -H -D -u 42 privoxy
slaxemulator@9383 19 addgroup -g 42 privoxy
paul@2275 20
paul@2275 21 autoheader
paul@2275 22 autoconf
paul@2275 23
paul@2275 24 ./configure \
paul@2275 25 --sysconfdir=/etc/privoxy \
pascal@2456 26 $CONFIGURE_ARGS &&
al@20534 27 make &&
al@21020 28 make DESTDIR=$install install || return 1
al@20534 29
al@20534 30 install -Dm755 $stuff/daemon-privoxy $install/etc/init.d/privoxy
paul@2275 31 }
paul@2275 32
al@20534 33 genpkg_rules() {
al@20534 34 copy @std
al@20749 35 DEPENDS="zlib"
paul@2275 36 }
paul@2275 37
al@20534 38 post_install() {
paul@7247 39 # adduser privoxy if needed
pascal@18730 40 if ! grep -q privoxy "$1/etc/passwd"; then
pascal@18730 41 chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
paul@7247 42 fi
paul@7279 43
pascal@18730 44 if ! grep -q privoxy "$1/etc/group"; then
pascal@18730 45 chroot "$1/" addgroup -g 42 privoxy
slaxemulator@9383 46 fi
slaxemulator@9383 47
paul@7279 48 # and change file permissions
pascal@18730 49 chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
pascal@18730 50 chown -R root.root "$1/etc/privoxy/templates"
pascal@18730 51 chown root.root "$1/etc/privoxy"
pascal@18730 52 chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
paul@2275 53 }
paul@7247 54
paul@7247 55 # Del user privoxy when pkg is removed.
al@20534 56 post_remove() {
paul@7247 57 deluser privoxy
slaxemulator@9383 58 delgroup privoxy
paul@7247 59 }