aboutsummaryrefslogtreecommitdiff
path: root/net/www/mozplugger/mozplugger.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'net/www/mozplugger/mozplugger.SlackBuild')
-rw-r--r--net/www/mozplugger/mozplugger.SlackBuild7
1 files changed, 6 insertions, 1 deletions
diff --git a/net/www/mozplugger/mozplugger.SlackBuild b/net/www/mozplugger/mozplugger.SlackBuild
index c38085f3..209aa7d8 100644
--- a/net/www/mozplugger/mozplugger.SlackBuild
+++ b/net/www/mozplugger/mozplugger.SlackBuild
@@ -164,7 +164,7 @@ make install root=$PKG || exit $ERROR_INSTALL
# Copy config files
mkdir -p $PKG/etc
-for conf in mozpluggerrc.new; do
+for conf in mozpluggerrc; do
mkdir -p $PKG/etc/`dirname $conf`
if [ -e "$CWD/conf/$conf" ]; then
cp -a $CWD/conf/$conf $PKG/etc/$conf
@@ -208,6 +208,11 @@ mozplugger:
mozplugger:
EODESC
+# Move config files to .new to avoid overwriting any system config
+for config_file in mozpluggerrc; do
+ mv $PKG/$config_file $PKG/$config_file.new
+done
+
# Add a post-installation script (doinst.sh)
mkdir -p "$PKG/install" || exit $ERROR_MKDIR
cat << EOSCRIPT > "$PKG/install/doinst.sh"