From 473388597803932cdefb6154e056f2a458200758 Mon Sep 17 00:00:00 2001 From: rhatto Date: Sat, 10 Jan 2009 14:43:31 +0000 Subject: mozplugger: fixing config file stuff git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@2076 370017ae-e619-0410-ac65-c121f96126d4 --- net/www/mozplugger/mozplugger.SlackBuild | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'net/www/mozplugger/mozplugger.SlackBuild') 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" -- cgit v1.2.3