2018-07-31 14:39:41 +02:00
|
|
|
|
# Tanım: Gelişmiş filtreleme yeteneklerine sahip bir web proxy'si.
|
2018-06-09 00:06:58 +02:00
|
|
|
|
# URL: https://www.privoxy.org
|
|
|
|
|
# Paketçi: milisarge
|
|
|
|
|
# Gerekler: pcre
|
2018-07-31 14:39:41 +02:00
|
|
|
|
# Grup: ağ
|
2018-06-09 00:06:58 +02:00
|
|
|
|
|
|
|
|
|
isim=privoxy
|
|
|
|
|
surum=3.0.26
|
|
|
|
|
devir=1
|
|
|
|
|
kaynak=(https://downloads.sourceforge.net/ijbswa/privoxy-$surum-stable-src.tar.gz
|
|
|
|
|
privoxy.logrotate.d
|
|
|
|
|
privoxy.sysusers)
|
|
|
|
|
|
|
|
|
|
derle() {
|
|
|
|
|
cd "${SRC}/${isim}-${surum}-stable"
|
|
|
|
|
|
|
|
|
|
autoheader
|
|
|
|
|
|
|
|
|
|
autoconf
|
|
|
|
|
|
|
|
|
|
./configure --prefix=/usr --sysconfdir=/etc/privoxy --enable-compression
|
|
|
|
|
|
|
|
|
|
make
|
|
|
|
|
|
|
|
|
|
sed -i '
|
|
|
|
|
|
|
|
|
|
s+^confdir \.+confdir /etc/privoxy+
|
|
|
|
|
|
|
|
|
|
s+^logdir \.+logdir /var/log/privoxy+
|
|
|
|
|
|
|
|
|
|
s+^#\?user-manual .*+user-manual /usr/share/doc/privoxy/user-manual/+' config
|
|
|
|
|
|
|
|
|
|
cd "${SRC}/${isim}-${surum}-stable"
|
|
|
|
|
|
|
|
|
|
install -Dm644 "$SRC/privoxy.sysusers" "$PKG/usr/lib/sysusers.d/privoxy.conf"
|
|
|
|
|
|
|
|
|
|
install -Dm644 "$SRC/privoxy.logrotate.d" "$PKG/etc/logrotate.d/privoxy"
|
|
|
|
|
|
|
|
|
|
install -Dm755 {,"$PKG"/usr/bin/}privoxy
|
|
|
|
|
|
|
|
|
|
install -Dm644 {,"$PKG"/usr/share/man/man1/}privoxy.1
|
|
|
|
|
|
|
|
|
|
install -d -o42 -g42 "$PKG"/var/log/privoxy
|
|
|
|
|
|
|
|
|
|
install -d "$PKG"/etc/privoxy/
|
|
|
|
|
|
|
|
|
|
install -m644 config trust *.{action,filter} "$PKG"/etc/privoxy/ # -m0660 upstream
|
|
|
|
|
|
|
|
|
|
find templates -type f -exec install -Dm644 '{}' "$PKG"/etc/privoxy/'{}' \;
|
|
|
|
|
|
|
|
|
|
(d=$PKG/usr/share/doc/privoxy
|
|
|
|
|
|
|
|
|
|
cd doc/webserver
|
|
|
|
|
|
|
|
|
|
install -Dm644 {privoxy-,"$d"/}index.html
|
|
|
|
|
|
|
|
|
|
install -m644 p_doc.css ../../{AUTHORS,README,ChangeLog} "$d"/
|
|
|
|
|
|
|
|
|
|
install -Dm644 {,"$d"/user-manual/}p_doc.css
|
|
|
|
|
|
|
|
|
|
find user-manual developer-manual faq man-page \( -name '*.html' -o -name '*.jpg' \) -exec install -Dm644 '{}' "$d"/'{}' \;)
|
|
|
|
|
|
|
|
|
|
}
|