slackware-current/source/n/s-nail/doinst.sh
Patrick J Volkerding 6b0434cfef Sat Nov 24 20:44:07 UTC 2018
a/tree-1.8.0-x86_64-1.txz:  Upgraded.
ap/cups-filters-1.21.4-x86_64-1.txz:  Upgraded.
ap/itstool-2.0.5-x86_64-1.txz:  Upgraded.
d/Cython-0.29.1-x86_64-1.txz:  Upgraded.
l/dconf-0.30.1-x86_64-1.txz:  Upgraded.
l/elfutils-0.175-x86_64-1.txz:  Upgraded.
l/gc-8.0.0-x86_64-1.txz:  Upgraded.
l/gobject-introspection-1.58.1-x86_64-1.txz:  Upgraded.
l/json-glib-1.4.4-x86_64-1.txz:  Upgraded.
l/keyutils-1.6-x86_64-1.txz:  Upgraded.
l/libjpeg-turbo-2.0.1-x86_64-1.txz:  Upgraded.
l/libpsl-0.20.2-x86_64-1.txz:  Upgraded.
l/libsecret-0.18.6-x86_64-3.txz:  Rebuilt.
  Recompiled with --enable-introspection (also picks up Vala support).
n/cyrus-sasl-2.1.27-x86_64-1.txz:  Upgraded.
n/dovecot-2.3.4-x86_64-1.txz:  Upgraded.
n/mailx-12.5-x86_64-4.txz:  Removed.
n/s-nail-14.9.11-x86_64-1.txz:  Added.
  This package replaces mailx. Thanks to Johannes Schoepfer.
tcl/tcl-8.6.9-x86_64-1.txz:  Upgraded.
tcl/tk-8.6.9.1-x86_64-1.txz:  Upgraded.
xap/gucharmap-11.0.3-x86_64-1.txz:  Upgraded.
xfce/xfce4-clipman-plugin-1.4.3-x86_64-1.txz:  Upgraded.
xfce/xfce4-screenshooter-1.9.3-x86_64-1.txz:  Upgraded.
2018-11-25 08:59:43 +01:00

13 lines
370 B
Bash

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/nail.rc.new