From 36488edc12498265141bb9a68be5b24b953303b7 Mon Sep 17 00:00:00 2001 From: Eric Hameleers Date: Sun, 17 Apr 2011 13:45:09 +0000 Subject: No .new files to take care of --- wireshark/build/wireshark.SlackBuild | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/wireshark/build/wireshark.SlackBuild b/wireshark/build/wireshark.SlackBuild index 93ea78c0..36f5b152 100755 --- a/wireshark/build/wireshark.SlackBuild +++ b/wireshark/build/wireshark.SlackBuild @@ -198,25 +198,6 @@ done # Add this to the doinst.sh: mkdir -p $PKG/install cat <> $PKG/install/doinst.sh -# Handle the incoming configuration files: -config() { - for infile in \$1; do - NEW="\$infile" - OLD="\`dirname \$NEW\`/\`basename \$NEW .new\`" - # If there's no config file by that name, mv it over: - if [ ! -r \$OLD ]; then - mv \$NEW \$OLD - elif [ "\`cat \$OLD | md5sum\`" = "\`cat \$NEW | md5sum\`" ]; then - # toss the redundant copy - rm \$NEW - fi - # Otherwise, we leave the .new copy for the admin to consider... - done -} - -# An example of how you handle your '.new' config files: -#config etc/wireshark.conf.new - # Update the desktop database: if [ -x usr/bin/update-desktop-database ]; then chroot . /usr/bin/update-desktop-database usr/share/applications > /dev/null 2>&1 -- cgit v1.2.3-79-gdb01