summaryrefslogtreecommitdiff
path: root/system/wmconfig
diff options
context:
space:
mode:
authorTracy Williams <t_s_williams[at]yahoo[dot]com>2015-12-03 00:14:07 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2015-12-03 00:14:07 +0700
commit249134a9e99082fa2d049b7739c1f69633ba8b65 (patch)
tree617ec1bd8753775adef031fe369438ea36fc38db /system/wmconfig
parent243088fc34e4174a225fad26a3378be7853b2c17 (diff)
downloadslackbuilds-249134a9e99082fa2d049b7739c1f69633ba8b65.tar.gz
system/wmconfig: Updated for version 1.4.11.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/wmconfig')
-rw-r--r--system/wmconfig/doinst.sh30
-rw-r--r--system/wmconfig/wmconfig.SlackBuild13
-rw-r--r--system/wmconfig/wmconfig.info6
3 files changed, 45 insertions, 4 deletions
diff --git a/system/wmconfig/doinst.sh b/system/wmconfig/doinst.sh
new file mode 100644
index 0000000000..05a48b8703
--- /dev/null
+++ b/system/wmconfig/doinst.sh
@@ -0,0 +1,30 @@
+config() {
+ NEW="$1"
+ 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...
+}
+
+config etc/wmconfig/Applications.new
+config etc/wmconfig/Astronomy.new
+config etc/wmconfig/Desktop.new
+config etc/wmconfig/Development.new
+config etc/wmconfig/Editors.new
+config etc/wmconfig/Edutainment.new
+config etc/wmconfig/Funcs.new
+config etc/wmconfig/Games.new
+config etc/wmconfig/Graphics.new
+config etc/wmconfig/Graphics_Viewers.new
+config etc/wmconfig/Multimedia.new
+config etc/wmconfig/Network.new
+config etc/wmconfig/Office.new
+config etc/wmconfig/Office_Viewers.new
+config etc/wmconfig/Shells.new
+config etc/wmconfig/System.new
+config etc/wmconfig/Utilities.new
diff --git a/system/wmconfig/wmconfig.SlackBuild b/system/wmconfig/wmconfig.SlackBuild
index 45004022e5..c7fb383a68 100644
--- a/system/wmconfig/wmconfig.SlackBuild
+++ b/system/wmconfig/wmconfig.SlackBuild
@@ -23,7 +23,7 @@
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
PRGNAM=wmconfig
-VERSION=${VERSION:-1.4.10}
+VERSION=${VERSION:-1.4.11}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -82,6 +82,16 @@ make install-strip DESTDIR=$PKG
find $PKG/usr/man -type f -exec gzip -9 {} \;
+# Don't clobber the config files
+CONFIG="Network Graphics Games Utilities Graphics_Viewers Edutainment \
+ Astronomy Funcs Office System Development Multimedia Shells Desktop \
+ Applications Office_Viewers Editors"
+
+for conf in $CONFIG
+do
+ mv $PKG/etc/wmconfig/${conf} $PKG/etc/wmconfig/${conf}.new
+done
+
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a \
AUTHORS ChangeLog COPYING INSTALL README TODO misc \
@@ -90,6 +100,7 @@ cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc
+cat $CWD/doinst.sh > $PKG/install/doinst.sh
cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
diff --git a/system/wmconfig/wmconfig.info b/system/wmconfig/wmconfig.info
index 11d03793f0..a984c2667a 100644
--- a/system/wmconfig/wmconfig.info
+++ b/system/wmconfig/wmconfig.info
@@ -1,8 +1,8 @@
PRGNAM="wmconfig"
-VERSION="1.4.10"
+VERSION="1.4.11"
HOMEPAGE="http://www.arrishq.net/"
-DOWNLOAD="http://www.arrishq.net/files/wmconfig-1.4.10.tar.bz2"
-MD5SUM="d9d32bf075af44d916beaa13104e8b52"
+DOWNLOAD="http://www.arrishq.net/files/wmconfig-1.4.11.tar.bz2"
+MD5SUM="133c5bd12cc37e0a049832967417ac9b"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
REQUIRES=""