From 3ee2da162871cbbecb4195b90be874c778e57bb8 Mon Sep 17 00:00:00 2001 From: cantor Date: Mon, 13 Jun 2005 01:32:58 +0000 Subject: [PATCH] Solaris pkg scripts git-svn-id: https://svn.middleware.georgetown.edu/cpp-sp/trunk@1698 cb58f699-b61c-0410-a6fe-9272a202ed29 --- Makefile.am | 12 +++++++++--- checkinstall | 9 +++++++++ pkginfo.in | 11 +++++++++++ 3 files changed, 29 insertions(+), 3 deletions(-) create mode 100644 checkinstall create mode 100644 pkginfo.in diff --git a/Makefile.am b/Makefile.am index 60dbd1d..a6c3d6a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 index 0000000..6c618f9 --- /dev/null +++ b/checkinstall @@ -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 index 0000000..dc3912a --- /dev/null +++ b/pkginfo.in @@ -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 -- 2.1.4