parent
33a646fc7a
commit
5f040f506d
4 changed files with 52 additions and 0 deletions
5
srcpkgs/privoxy/INSTALL
Normal file
5
srcpkgs/privoxy/INSTALL
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
case ${ACTION} in
|
||||||
|
post)
|
||||||
|
chown -R privoxy:privoxy etc/privoxy
|
||||||
|
;;
|
||||||
|
esac
|
2
srcpkgs/privoxy/files/privoxy/log/run
Executable file
2
srcpkgs/privoxy/files/privoxy/log/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec logger -t privoxy
|
2
srcpkgs/privoxy/files/privoxy/run
Executable file
2
srcpkgs/privoxy/files/privoxy/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec chpst -u privoxy:privoxy privoxy --no-daemon /etc/privoxy/config 2>&1
|
43
srcpkgs/privoxy/template
Normal file
43
srcpkgs/privoxy/template
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
# Template file for 'privoxy'
|
||||||
|
pkgname=privoxy
|
||||||
|
version=3.0.22
|
||||||
|
revision=1
|
||||||
|
wrksrc="${pkgname}-${version}-stable"
|
||||||
|
build_style=gnu-configure
|
||||||
|
configure_args="--sysconfdir=/etc/privoxy --enable-compression --enable-dynamic-pcre"
|
||||||
|
make_install_args="STRIP="
|
||||||
|
conf_files="
|
||||||
|
/etc/privoxy/config
|
||||||
|
/etc/privoxy/default.action
|
||||||
|
/etc/privoxy/match-all.action
|
||||||
|
/etc/privoxy/user.filter
|
||||||
|
/etc/privoxy/trust
|
||||||
|
/etc/privoxy/default.filter
|
||||||
|
/etc/privoxy/user.action"
|
||||||
|
system_accounts="privoxy"
|
||||||
|
privoxy_homedir="/etc/privoxy"
|
||||||
|
hostmakedepends="autoconf"
|
||||||
|
makedepends="pcre-devel zlib-devel"
|
||||||
|
short_desc="A non-caching web proxy with advanced filtering capabilities"
|
||||||
|
maintainer="Eivind Uggedal <eivind@uggedal.com>"
|
||||||
|
license="GPL-2"
|
||||||
|
homepage="http://www.privoxy.org/"
|
||||||
|
distfiles="${SOURCEFORGE_SITE}/ijbswa/${pkgname}-${version}-stable-src.tar.gz"
|
||||||
|
update_ignore="*.mpkg"
|
||||||
|
checksum=1a214fec1f3616ea7ff42f1ecdb67ce82690199ec403de9d34b99d0896efcc41
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
autoheader && autoconf
|
||||||
|
|
||||||
|
sed -e 's|^confdir .*|confdir /etc/privoxy|' \
|
||||||
|
-e 's|^logdir .*|logdir /var/log/privoxy|' \
|
||||||
|
-e 's|^\(logfile .*\)|# \1|' \
|
||||||
|
-i config
|
||||||
|
}
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsv privoxy
|
||||||
|
|
||||||
|
# privoxy writes logs to stdout with --no-daemon
|
||||||
|
rm -r ${DESTDIR}/var/log/privoxy
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue