Solaris pkg scripts
authorcantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 13 Jun 2005 01:32:58 +0000 (01:32 +0000)
committercantor <cantor@cb58f699-b61c-0410-a6fe-9272a202ed29>
Mon, 13 Jun 2005 01:32:58 +0000 (01:32 +0000)
git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1698 cb58f699-b61c-0410-a6fe-9272a202ed29

Makefile.am
checkinstall [new file with mode: 0644]
pkginfo.in [new file with mode: 0644]

index 60dbd1d..a6c3d6a 100644 (file)
@@ -6,7 +6,7 @@ EXTRA_DIST = \
        schemas doc isapi_shib isapi_shib_gui \
        Shibboleth.dsw libtool.m4 acx_pthread.m4 acx_rpctest.m4 depcomp \
        config_win32.h posttest/posttest.dsp shibtest/shibtest.dsp \
-       shibboleth.spec.in shibboleth.spec
+       shibboleth.spec.in shibboleth.spec pkginfo.in pkginfo checkinstall
 
 dist-hook:
        rm -rf `find $(distdir)/schemas -name CVS`
@@ -24,7 +24,7 @@ SUBDIRS = $(WANT_SUBDIRS)
 DIST_SUBDIRS = doc oncrpc shib schemas configs shib-target shar test \
        apache siterefresh shib-mysql-ccache xmlproviders selinux
 
-all-local: shibboleth.spec
+all-local: shibboleth.spec pkginfo
 
 shibboleth.spec: shibboleth.spec.in Makefile
        rm -f $@.tmp
@@ -32,4 +32,10 @@ shibboleth.spec: shibboleth.spec.in Makefile
            -e 's:@-VERSION-@:${VERSION}:'
        mv $@.tmp $@
 
-DISTCLEANFILES = shibboleth.spec
+pkginfo: pkginfo.in Makefile
+       rm -f $@.tmp
+       sed < $< > $@.tmp \
+           -e 's:@-VERSION-@:${VERSION}:'
+       mv $@.tmp $@
+
+DISTCLEANFILES = shibboleth.spec pkginfo
diff --git a/checkinstall b/checkinstall
new file mode 100644 (file)
index 0000000..6c618f9
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/sh
+
+expected_platform="sparc"
+platform=`uname -p`
+if [ ${platform} != ${expected_platform} ]; then
+       echo "This package must be installed on ${expected_platform}"
+       exit 1
+fi
+exit 0
diff --git a/pkginfo.in b/pkginfo.in
new file mode 100644 (file)
index 0000000..dc3912a
--- /dev/null
@@ -0,0 +1,11 @@
+ARCH=sparc
+PKG=SHIBsp
+NAME=Shibboleth Service Provider
+VERSION=@-VERSION-@
+CATEGORY=system
+VENDOR=http://shibboleth.internet2.edu/ packaged for Shibboleth by Scott Cantor
+HOTLINE=http://bugzilla.internet2.edu/
+EMAIL=cantor.2@osu.edu
+PSTAMP=12Jun2005
+CLASSES=none
+BASEDIR=/opt/shibboleth