Move keygen.sh into /usr/sbin and clean up /etc/shibboleth
authorRuss Allbery <rra@debian.org>
Wed, 25 Jun 2008 23:59:15 +0000 (16:59 -0700)
committerSam Hartman <hartmans@debian.org>
Mon, 1 Nov 2010 00:05:54 +0000 (20:05 -0400)
Move the keygen.sh script into /usr/sbin/shib-keygen and add a man page
for it since users may want to run it after installation.  Remove the
keys generated as part of the build process, since they'll be for the
build host and hence useless in the package.  Also remove an OS X
configuration file.

Modify keygen.sh to cd to /etc/shibboleth before doing anything so that
its file paths will still be correct and comment the --fqdn change.

debian/libapache2-mod-shib2.shibd.init is created as part of the build,
so remove it in the clean target.

configs/keygen.sh

index 9183e10..bb89e80 100755 (executable)
@@ -1,5 +1,9 @@
 #! /bin/sh
 
+# Added for Debian.  The upstream version is installed in /etc/shibboleth and
+# for Debian we wanted to move it to /usr/bin, so change directories so that
+# it puts files in the correct location.
+cd /etc/shibboleth
 while getopts h:u:g:o:e:y:bf c
      do
          case $c in
@@ -32,6 +36,7 @@ if  [ -s $OUT/sp-key.pem -o -s $OUT/sp-cert.pem ] ; then
     exit 0
 fi
 
+# --fqdn flag added for Debian to generate better names for certificates.
 if [ -z "$FQDN" ] ; then
     FQDN=`hostname --fqdn`
 fi