summaryrefslogtreecommitdiff
path: root/libraries/libcap/doinst.sh
diff options
context:
space:
mode:
authorMenno E. Duursma <druiloor@zonnet.nl>2010-05-11 14:56:16 +0200
committerRobby Workman <rworkman@slackbuilds.org>2010-05-11 14:56:16 +0200
commite76ba428a2cf2abb8b3c03c522146beeb536b1c1 (patch)
tree7c6f1cdf87771f9f8bd87684da1bf2504ed55c3f /libraries/libcap/doinst.sh
parent39705f65a6a657639b43c36c9f29087722cce40f (diff)
downloadslackbuilds-e76ba428a2cf2abb8b3c03c522146beeb536b1c1.tar.gz
libraries/libcap: Initial import
Diffstat (limited to 'libraries/libcap/doinst.sh')
-rw-r--r--libraries/libcap/doinst.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/libraries/libcap/doinst.sh b/libraries/libcap/doinst.sh
new file mode 100644
index 0000000000..c129647617
--- /dev/null
+++ b/libraries/libcap/doinst.sh
@@ -0,0 +1,15 @@
+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 usr/include/sys/capability.h.new
+