milis/talimatname/genel/p/privoxy/talimat

64 lines
1.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Gelişmiş filtreleme yeteneklerine sahip bir web proxy'si.
# URL: https://www.privoxy.org
# Paketçi: milisarge
# Gerekler: pcre
# Grup: ağ
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"/'{}' \;)
}