
Receipt for package "privoxy"
# SliTaz package receipt. PACKAGE="privoxy" VERSION="3.0.33" CATEGORY="network" SHORT_DESC="Non-caching web privacy proxy." MAINTAINER="paul@slitaz.org" LICENSE="GPL2" WEB_SITE="https://www.privoxy.org/" TARBALL="$PACKAGE-$VERSION-stable-src.tar.gz" WGET_URL="$SF_MIRROR/ijbswa/$TARBALL" DEPENDS="pcre zlib" BUILD_DEPENDS="autoconf coreutils m4 perl zlib-dev" CONFIG_FILES="/etc/privoxy/config" # What is the latest version available today? current_version() { wget -O - https://sourceforge.net/projects/ijbswa/files/Sources/ 2>/dev/null | \ sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ sed '/scope="row/!d;s|.*/Sources/||;s|%20.*/.*||;q' } # Rules to configure and make the package. compile_rules() { # Have to create privoxy user/group to be able to compile adduser -s /bin/false -H -D -u 42 privoxy addgroup -g 42 privoxy # Needs autoconf autoheader autoconf ./configure \ --prefix=/usr \ --sysconfdir=/etc/privoxy \ --infodir=/usr/share/info \ --mandir=/usr/share/man \ --localstatedir=/var \ $CONFIGURE_ARGS && make && make DESTDIR=$DESTDIR install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/etc/init.d mkdir -p $fs/usr cook_copy_folders etc cook_copy_folders sbin cook_copy_folders var # Copy daemon from stuff cp $stuff/daemon-privoxy $fs/etc/init.d/privoxy } post_install() { # adduser privoxy if needed if ! grep -q privoxy "$1/etc/passwd" then echo echo -n "Adding user privoxy..." chroot "$1/" adduser -s /bin/false -H -D -u 42 privoxy status fi if ! grep -q privoxy "$1/etc/group" then echo echo -n "Adding group privoxy..." chroot "$1/" addgroup -g 42 privoxy status fi # and change file permissions echo echo -n "Changing file permissions..." chroot "$1/" chown -R privoxy.privoxy /etc/privoxy chown -R root.root "$1/etc/privoxy/templates" chown root.root "$1/etc/privoxy" chroot "$1/" chown privoxy.privoxy /var/log/privoxy/logfile status } post_remove() { echo echo -n "Removing user and group privoxy..." deluser privoxy status }
6093 packages and 258600 files in current database (Wed Apr 23 16:49:15 2025)