aboutsummaryrefslogtreecommitdiff
path: root/net/www/mozplugger/mozplugger.SlackBuild
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-01-10 14:43:31 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2009-01-10 14:43:31 +0000
commit473388597803932cdefb6154e056f2a458200758 (patch)
tree95f42f84d89a9d08beed3e154135bc0c2ea7566b /net/www/mozplugger/mozplugger.SlackBuild
parent6309e7f355338d2f3a49cb2f2a55e0b6e80a4e37 (diff)
downloadslackbuilds-473388597803932cdefb6154e056f2a458200758.tar.gz
slackbuilds-473388597803932cdefb6154e056f2a458200758.tar.bz2
mozplugger: fixing config file stuff
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2076 370017ae-e619-0410-ac65-c121f96126d4
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"