merge patched-debian into debian
[shibboleth/sp.git] / debian / patches / 0006-Update-standards-version-to-3.8.3.patch
1 From 63ca64f50dd74e5454027fdb0a62535d5cd05ddc Mon Sep 17 00:00:00 2001
2 From: Russ Allbery <rra@debian.org>
3 Date: Fri, 21 Aug 2009 11:40:16 -0700
4 Subject: Update standards version to 3.8.3
5
6 * Update standards version to 3.8.3.
7   - Create /var/run/shibboleth in the init script if it doesn't exist.
8 ---
9  configs/shibd-debian.in |    6 ++++++
10  1 files changed, 6 insertions(+), 0 deletions(-)
11
12 diff --git a/configs/shibd-debian.in b/configs/shibd-debian.in
13 index 4c7894d..bcfd52b 100644
14 --- a/configs/shibd-debian.in
15 +++ b/configs/shibd-debian.in
16 @@ -53,6 +53,9 @@ DAEMON_OPTS="$DAEMON_OPTS -w 30"
17  
18  case "$1" in
19  start)
20 +    # Ensure @-PKGRUNDIR-@ exists.  /var/run may be on a tmpfs file system.
21 +    [ -d '@-PKGRUNDIR-@' ] || mkdir -p '@-PKGRUNDIR-@'
22 +
23      # Don't start shibd if NO_START is set.
24      if [ "$NO_START" = 1 ] ; then
25          echo "Not starting $DESC (see /etc/default/$NAME)"
26 @@ -70,6 +73,9 @@ stop)
27      echo "$NAME."
28      ;;
29  restart|force-reload)
30 +    # Ensure @-PKGRUNDIR-@ exists.  /var/run may be on a tmpfs file system.
31 +    [ -d '@-PKGRUNDIR-@' ] || mkdir -p '@-PKGRUNDIR-@'
32 +
33      echo -n "Restarting $DESC: "
34      start-stop-daemon --stop --quiet --pidfile $PIDFILE \
35          --retry TERM/30/KILL/5 --exec $DAEMON
36 -- 
37 1.7.1
38