mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-18 22:06:04 +01:00
network/privoxy: Fix .new file creation
Signed-off-by: Kyle Guinn <elyk03@gmail.com> Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
This commit is contained in:
parent
8cfeaf7080
commit
56877006d5
1 changed files with 8 additions and 2 deletions
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
PRGNAM=privoxy
|
PRGNAM=privoxy
|
||||||
VERSION=${VERSION:-3.0.21}
|
VERSION=${VERSION:-3.0.21}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-2}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
if [ -z "$ARCH" ]; then
|
if [ -z "$ARCH" ]; then
|
||||||
|
@ -89,6 +89,10 @@ chmod -R u+w,go-w,a+rX-st .
|
||||||
# Put the docs where we tell them to go.
|
# Put the docs where we tell them to go.
|
||||||
sed -i "/^DOC_DEST/s/= .*/= @docdir@/" GNUmakefile.in
|
sed -i "/^DOC_DEST/s/= .*/= @docdir@/" GNUmakefile.in
|
||||||
|
|
||||||
|
# The Makefile checks if certain config files exist, and if so, adds a
|
||||||
|
# .new suffix. Turn this behavior off. We will do it below.
|
||||||
|
sed -i "s/\[ -s \"\$(CONF_DEST)\/\$\$i\" \]/false/" GNUmakefile.in
|
||||||
|
|
||||||
autoheader
|
autoheader
|
||||||
autoconf
|
autoconf
|
||||||
CFLAGS="$SLKCFLAGS" \
|
CFLAGS="$SLKCFLAGS" \
|
||||||
|
@ -127,7 +131,9 @@ sed -i \
|
||||||
$PKG/etc/rc.d/rc.$PRGNAM.new
|
$PKG/etc/rc.d/rc.$PRGNAM.new
|
||||||
|
|
||||||
# Make .new files so we don't clobber the existing configuration.
|
# Make .new files so we don't clobber the existing configuration.
|
||||||
# The makefile already adds the .new extension to the user-editable files.
|
for i in config match-all.action trust user.action user.filter; do
|
||||||
|
mv $PKG/etc/privoxy/$i $PKG/etc/privoxy/$i.new
|
||||||
|
done
|
||||||
# Others are not intended to be user-editable and will be overwritten.
|
# Others are not intended to be user-editable and will be overwritten.
|
||||||
# To disregard, uncomment this and the corresponding lines in doinst.sh.
|
# To disregard, uncomment this and the corresponding lines in doinst.sh.
|
||||||
#find $PKG/etc/privoxy -name '*.new' -prune -o -type f -exec mv {} {}.new \;
|
#find $PKG/etc/privoxy -name '*.new' -prune -o -type f -exec mv {} {}.new \;
|
||||||
|
|
Loading…
Reference in a new issue