network/privoxy: Updated for version 3.0.12
This commit is contained in:
parent
6c021c6765
commit
7276756906
|
@ -12,8 +12,4 @@ a privoxy user and group. To do that, run the following commands:
|
||||||
groupadd -g 206 privoxy
|
groupadd -g 206 privoxy
|
||||||
useradd -u 206 -g 206 -c "Web Proxy" -d /dev/null -s /bin/false privoxy
|
useradd -u 206 -g 206 -c "Web Proxy" -d /dev/null -s /bin/false privoxy
|
||||||
|
|
||||||
To run privoxy at boot, the following code needs to
|
See README.SLACKWARE for setup information.
|
||||||
be added to /etc/rc.d/rc.local:
|
|
||||||
if [ -x /etc/rc.d/rc.privoxy ]; then
|
|
||||||
/etc/rc.d/rc.privoxy start
|
|
||||||
fi
|
|
||||||
|
|
|
@ -0,0 +1,15 @@
|
||||||
|
README.SLACKWARE for privoxy
|
||||||
|
|
||||||
|
To run privoxy at boot, the following code needs to
|
||||||
|
be added to /etc/rc.d/rc.local:
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.privoxy ]; then
|
||||||
|
/etc/rc.d/rc.privoxy start
|
||||||
|
fi
|
||||||
|
|
||||||
|
Then add the following to /etc/rc.d/rc.local_shutdown:
|
||||||
|
|
||||||
|
if [ -x /etc/rc.d/rc.privoxy ]; then
|
||||||
|
/etc/rc.d/rc.privoxy stop
|
||||||
|
fi
|
||||||
|
|
|
@ -63,6 +63,7 @@ config etc/privoxy/templates/cgi-error-file-read-only.new
|
||||||
config etc/privoxy/templates/edit-actions-for-url-filter.new
|
config etc/privoxy/templates/edit-actions-for-url-filter.new
|
||||||
config etc/privoxy/templates/show-status.new
|
config etc/privoxy/templates/show-status.new
|
||||||
config etc/privoxy/templates/show-url-info.new
|
config etc/privoxy/templates/show-url-info.new
|
||||||
|
config etc/privoxy/templates/url-info-osd.xml.new
|
||||||
config etc/privoxy/default.action.new
|
config etc/privoxy/default.action.new
|
||||||
config etc/privoxy/user.action.new
|
config etc/privoxy/user.action.new
|
||||||
config etc/privoxy/user.filter.new
|
config etc/privoxy/user.filter.new
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
PRGNAM=privoxy
|
PRGNAM=privoxy
|
||||||
VERSION=3.0.12
|
VERSION=3.0.12
|
||||||
ARCH=${ARCH:-i486}
|
ARCH=${ARCH:-i486}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
CWD=$(pwd)
|
CWD=$(pwd)
|
||||||
|
@ -38,11 +38,14 @@ PKG=$TMP/package-$PRGNAM
|
||||||
OUTPUT=${OUTPUT:-/tmp}
|
OUTPUT=${OUTPUT:-/tmp}
|
||||||
|
|
||||||
if [ "$ARCH" = "i486" ]; then
|
if [ "$ARCH" = "i486" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i486 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "i686" ]; then
|
elif [ "$ARCH" = "i686" ]; then
|
||||||
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
SLKCFLAGS="-O2 -march=i686 -mtune=i686"
|
||||||
|
LIBDIRSUFFIX=""
|
||||||
elif [ "$ARCH" = "x86_64" ]; then
|
elif [ "$ARCH" = "x86_64" ]; then
|
||||||
SLKCFLAGS="-O2 -fPIC"
|
SLKCFLAGS="-O2 -fPIC"
|
||||||
|
LIBDIRSUFFIX="64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
## privoxy user & group *MUST* exist before package creation
|
## privoxy user & group *MUST* exist before package creation
|
||||||
|
@ -67,7 +70,7 @@ set -e
|
||||||
rm -rf $PKG
|
rm -rf $PKG
|
||||||
mkdir -p $TMP $PKG $OUTPUT
|
mkdir -p $TMP $PKG $OUTPUT
|
||||||
cd $TMP
|
cd $TMP
|
||||||
rm -rf $PRGNAM-$VERSION
|
rm -rf $PRGNAM-$VERSION-stable
|
||||||
tar xvf $CWD/$PRGNAM-$VERSION-stable-src.tar.gz
|
tar xvf $CWD/$PRGNAM-$VERSION-stable-src.tar.gz
|
||||||
cd $PRGNAM-$VERSION-stable
|
cd $PRGNAM-$VERSION-stable
|
||||||
chown -R root:root .
|
chown -R root:root .
|
||||||
|
@ -79,6 +82,7 @@ CFLAGS="$SLKCFLAGS" \
|
||||||
CXXFLAGS="$SLKCFLAGS" \
|
CXXFLAGS="$SLKCFLAGS" \
|
||||||
./configure \
|
./configure \
|
||||||
--prefix=$PKG/usr \
|
--prefix=$PKG/usr \
|
||||||
|
--libdir=$PKG/usr/lib${LIBDIRSUFFIX} \
|
||||||
--sbindir=$PKG/usr/bin \
|
--sbindir=$PKG/usr/bin \
|
||||||
--sysconfdir=$PKG/etc/$PRGNAM \
|
--sysconfdir=$PKG/etc/$PRGNAM \
|
||||||
--localstatedir=$PKG/var \
|
--localstatedir=$PKG/var \
|
||||||
|
@ -99,16 +103,16 @@ make install-strip || exit 1
|
||||||
|
|
||||||
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
|
mv $PKG/usr/doc/$PRGNAM $PKG/usr/doc/$PRGNAM-$VERSION
|
||||||
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
|
||||||
|
cat $CWD/README.SLACKWARE > $PKG/usr/doc/$PRGNAM-$VERSION/README.SLACKWARE
|
||||||
find $PKG/usr/doc -type f -exec chmod 644 {} \;
|
find $PKG/usr/doc -type f -exec chmod 644 {} \;
|
||||||
|
|
||||||
mkdir $PKG/etc/rc.d
|
mkdir $PKG/etc/rc.d
|
||||||
cat slackware/rc.privoxy.orig > $PKG/etc/rc.d/rc.$PRGNAM.new
|
cat slackware/rc.privoxy.orig > $PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
sed -i " s/%PROGRAM%/$PRGNAM/
|
sed -i " s/%PROGRAM%/$PRGNAM/
|
||||||
s/%SBIN_DEST%/\/usr\/bin/
|
s,%SBIN_DEST%,/usr/bin,
|
||||||
s/%CONF_DEST%/\/etc\/$PRGNAM/
|
s,%CONF_DEST%,/etc/$PRGNAM,
|
||||||
s/%USER%/$PRGNAM/
|
s/%USER%/$PRGNAM/
|
||||||
s/%GROUP%/$PRGNAM/
|
s/%GROUP%/$PRGNAM/
|
||||||
s/\/var\/run\/\$PRIVOXY_PRG/\/var\/run/
|
|
||||||
" $PKG/etc/rc.d/rc.$PRGNAM.new
|
" $PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
|
|
||||||
# Fix Path within the configuration files (thanks to h4kteur)
|
# Fix Path within the configuration files (thanks to h4kteur)
|
||||||
|
@ -131,4 +135,4 @@ cat $CWD/slack-desc > $PKG/install/slack-desc
|
||||||
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
cat $CWD/doinst.sh > $PKG/install/doinst.sh
|
||||||
|
|
||||||
cd $PKG
|
cd $PKG
|
||||||
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.tgz
|
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
|
||||||
|
|
|
@ -3,6 +3,8 @@ VERSION="3.0.12"
|
||||||
HOMEPAGE="http://www.privoxy.org/"
|
HOMEPAGE="http://www.privoxy.org/"
|
||||||
DOWNLOAD="http://downloads.sourceforge.net/sourceforge/ijbswa/privoxy-3.0.12-stable-src.tar.gz"
|
DOWNLOAD="http://downloads.sourceforge.net/sourceforge/ijbswa/privoxy-3.0.12-stable-src.tar.gz"
|
||||||
MD5SUM="c973e608d27b248ef567b47664308da1"
|
MD5SUM="c973e608d27b248ef567b47664308da1"
|
||||||
|
DOWNLOAD_x86_64=""
|
||||||
|
MD5SUM_x86_64=""
|
||||||
MAINTAINER="alkos333"
|
MAINTAINER="alkos333"
|
||||||
EMAIL="me@alkos333.net"
|
EMAIL="me@alkos333.net"
|
||||||
APPROVED="dsomero"
|
APPROVED="dsomero"
|
||||||
|
|
Loading…
Reference in New Issue