diff options
author | Menno E. Duursma <druiloor@zonnet.nl> | 2010-05-11 14:56:16 +0200 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2010-05-11 14:56:16 +0200 |
commit | e76ba428a2cf2abb8b3c03c522146beeb536b1c1 (patch) | |
tree | 7c6f1cdf87771f9f8bd87684da1bf2504ed55c3f /libraries/libcap/doinst.sh | |
parent | 39705f65a6a657639b43c36c9f29087722cce40f (diff) | |
download | slackbuilds-e76ba428a2cf2abb8b3c03c522146beeb536b1c1.tar.gz |
libraries/libcap: Initial import
Diffstat (limited to 'libraries/libcap/doinst.sh')
-rw-r--r-- | libraries/libcap/doinst.sh | 15 |
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 + |