wok-6.x annotate privoxy/receipt @ rev 20932

updated fop (1.0 -> 2.3)
author Hans-G?nter Theisgen
date Sat Mar 02 14:33:42 2019 +0100 (2019-03-02)
parents 80f0897ed3d3
children 72d34faa7fd6
rev   line source
paul@2275 1 # SliTaz package receipt.
paul@2275 2
paul@2275 3 PACKAGE="privoxy"
psychomaniak@19974 4 VERSION="3.0.26-stable"
paul@2275 5 CATEGORY="network"
paul@2275 6 SHORT_DESC="Non-caching web privacy proxy."
paul@2275 7 MAINTAINER="paul@slitaz.org"
pascal@15375 8 LICENSE="GPL2"
paul@2275 9 TARBALL="$PACKAGE-$VERSION-src.tar.gz"
paul@2275 10 WEB_SITE="http://www.privoxy.org/"
paul@2275 11 WGET_URL="http://downloads.sourceforge.net/ijbswa/$TARBALL"
paul@2275 12
psychomaniak@19974 13 CONFIG_FILES="/etc/privoxy/config"
psychomaniak@19974 14
pascal@15375 15 DEPENDS="zlib pcre"
pascal@15375 16 BUILD_DEPENDS="zlib-dev autoconf perl m4 coreutils"
pascal@15375 17
paul@2275 18 # Rules to configure and make the package.
paul@2275 19 compile_rules()
paul@2275 20 {
paul@2275 21 # Have to create privoxy user/group to be able to compile
slaxemulator@8011 22 adduser -s /bin/false -H -D -u 42 privoxy
slaxemulator@9383 23 addgroup -g 42 privoxy
erjo@5885 24
paul@2275 25 cd $src
paul@2275 26
paul@2275 27 # Needs autoconf
paul@2275 28 autoheader
paul@2275 29 autoconf
paul@2275 30
paul@2275 31 ./configure \
paul@2275 32 --prefix=/usr \
paul@2275 33 --sysconfdir=/etc/privoxy \
paul@2275 34 --infodir=/usr/share/info \
paul@2275 35 --mandir=/usr/share/man \
pascal@4211 36 --localstatedir=/var \
pascal@2456 37 $CONFIGURE_ARGS &&
pascal@15375 38 make && make DESTDIR=$DESTDIR install
paul@2275 39 }
paul@2275 40
paul@2275 41 # Rules to gen a SliTaz package suitable for Tazpkg.
paul@2275 42 genpkg_rules()
paul@2275 43 {
paul@4836 44 mkdir -p $fs/etc/init.d $fs/usr
pascal@15375 45 cp -a $install/usr/sbin $fs/usr
pascal@15375 46 cp -a $install/var $fs
pascal@15375 47 cp -a $install/etc $fs
paul@2275 48
slaxemulator@9701 49 # Copy daemon from stuff
slaxemulator@9701 50 cp $stuff/daemon-privoxy $fs/etc/init.d/privoxy
paul@2275 51 }
paul@2275 52
paul@7279 53 post_install()
paul@2275 54 {
paul@7247 55 # adduser privoxy if needed
pascal@18730 56 if ! grep -q privoxy "$1/etc/passwd"; then
pascal@20319 57 echo
paul@7247 58 echo -n "Adding user privoxy..."
pascal@18730 59 chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy
paul@7247 60 status
paul@7247 61 fi
paul@7279 62
pascal@18730 63 if ! grep -q privoxy "$1/etc/group"; then
pascal@20319 64 echo
slaxemulator@9383 65 echo -n "Adding group privoxy..."
pascal@18730 66 chroot "$1/" addgroup -g 42 privoxy
slaxemulator@9383 67 status
slaxemulator@9383 68 fi
slaxemulator@9383 69
paul@7279 70 # and change file permissions
pascal@20319 71 echo
paul@7279 72 echo -n "Changing file permissions..."
pascal@18730 73 chroot "$1/" chown -R privoxy.privoxy /etc/privoxy
pascal@18730 74 chown -R root.root "$1/etc/privoxy/templates"
pascal@18730 75 chown root.root "$1/etc/privoxy"
pascal@18730 76 chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile
paul@7279 77 status
paul@2275 78 }
paul@7247 79
paul@7247 80 # Del user privoxy when pkg is removed.
paul@7247 81 post_remove()
paul@7247 82 {
paul@7247 83 deluser privoxy
slaxemulator@9383 84 delgroup privoxy
paul@7247 85 }