[cpp-sp] 24/40: Don't include /var/run/shibboleth in the package and clean up on remove
Scott Cantor
cantor.2 at osu.edu
Thu Dec 20 19:42:45 EST 2018
This is an automated email from the git hooks/post-receive script.
scantor pushed a commit to annotated tag debian/2.2.1+dfsg-1
in repository cpp-sp.
View the commit online:
http://git.shibboleth.net/view/?p=cpp-sp.git;a=commit;h=5d4f4c76115e9bdfcef94f898f0864eef5f4e459
commit 5d4f4c76115e9bdfcef94f898f0864eef5f4e459
Author: Russ Allbery <rra at debian.org>
AuthorDate: Fri Aug 21 11:56:50 2009 -0700
Don't include /var/run/shibboleth in the package and clean up on remove
- Don't ship /var/run/shibboleth in the package.
- Remove /var/run/shibboleth in postrm if it exists.
---
debian/changelog | 2 ++
debian/libapache2-mod-shib2.postrm | 7 +++++++
debian/rules | 1 +
3 files changed, 10 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 41c70c3..ac23b51 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -33,6 +33,8 @@ shibboleth-sp2 (2.2.1+dfsg-1) UNRELEASED; urgency=low
TestShib web pages.
* Update standards version to 3.8.3.
- Create /var/run/shibboleth in the init script if it doesn't exist.
+ - Don't ship /var/run/shibboleth in the package.
+ - Remove /var/run/shibboleth in postrm if it exists.
-- Russ Allbery <rra at debian.org> Fri, 24 Jul 2009 15:29:01 -0700
diff --git a/debian/libapache2-mod-shib2.postrm b/debian/libapache2-mod-shib2.postrm
new file mode 100755
index 0000000..d039399
--- /dev/null
+++ b/debian/libapache2-mod-shib2.postrm
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" = purge ] || [ "$1" = remove ] ; then
+ rm -rf /var/run/shibboleth
+fi
diff --git a/debian/rules b/debian/rules
index f9392e0..b1fb7a3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -85,6 +85,7 @@ install-stamp:
dh_clean -k
$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
rm -r $(CURDIR)/debian/tmp/usr/share/doc/shibboleth
+ rm -r $(CURDIR)/debian/tmp/var/run
rm $(CURDIR)/debian/tmp/etc/shibboleth/*.dist
rm $(CURDIR)/debian/tmp/etc/shibboleth/*.config
rm $(CURDIR)/debian/tmp/etc/shibboleth/shibd-osx.plist
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the commits
mailing list