[csw-devel] SF.net SVN: gar:[5789] csw/mgar/pkg/sendmail/trunk

valholla at users.sourceforge.net valholla at users.sourceforge.net
Fri Jul 31 23:28:41 CEST 2009


Revision: 5789
          http://gar.svn.sourceforge.net/gar/?rev=5789&view=rev
Author:   valholla
Date:     2009-07-31 21:28:40 +0000 (Fri, 31 Jul 2009)

Log Message:
-----------
test pacakge install scripts

Modified Paths:
--------------
    csw/mgar/pkg/sendmail/trunk/Makefile
    csw/mgar/pkg/sendmail/trunk/checksums

Added Paths:
-----------
    csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.space
    csw/mgar/pkg/sendmail/trunk/files/i.cswosrel

Modified: csw/mgar/pkg/sendmail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-31 19:20:28 UTC (rev 5788)
+++ csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-31 21:28:40 UTC (rev 5789)
@@ -12,10 +12,13 @@
 COOKIEDIR = $(COOKIEROOTDIR)/$(GAROSREL)-$(MODULATION)
 
 MASTER_SITES = ftp://ftp.sendmail.org/pub/sendmail/
+
 DISTFILES  = $(GARNAME).$(GARVERSION).tar.gz
 DISTFILES += README.CSW sendmail.schema
 DISTFILES += Sun-sendmail-deactivate.sh Sun-sendmail-reactivate.sh
-DISTFILES += cswsendmail site.config.m4
+DISTFILES += cswsendmail site.config.m4 i.cswosrel
+DISTFILES += CSWsendmail.preremove CSWsendmail.preinstall CSWsendmail.space
+DISTFILES += $(CLASS_SCRIPTS)
 DISTFILES += $(foreach FILE,$(shell cd $(FILEDIR) && ls *.CSW),$(FILE))
 
 # We define upstream file regex so we can be notifed of new upstream software release
@@ -31,21 +34,20 @@
 
 REQUIRED_PKGS_CSWsendmail = CSWbdb CSWoldaprt CSWosslrt CSWsasl CSWtcpwrap CSWcswclassutils CSWsendmailcommon
 REQUIRED_PKGS_CSWsendmailcommon = CSWbdb CSWoldaprt CSWosslrt CSWsasl CSWtcpwrap CSWcswclassutils
-ARCHALL_CSWsendmail_common = 1
-SPKG_CLASSES_CSWsendmail = none cswinitsmf
+ARCHALL_CSWsendmailcommon = 1
+SPKG_CLASSES_CSWsendmail = none cswinitsmf cswosrel
 PROTOTYPE_FILTER = awk \
 				   '$$$$3 ~/\/init\.d\/cswsendmail$$$$/ {$$$$2 = "cswinitsmf"} \
-					$$$$3 ~/sol8\./ { $$$$2 = "sol8" } \
-					$$$$3 ~/sol9\./ { $$$$2 = "sol9" } \
-					$$$$3 ~/sol10\./ { $$$$2 = "sol10" } \
-					$$$$3 ~/\/sendmail$$$$/ { $$$$4 = "2755" } \
+					$$$$3 ~/sol8\./ { $$$$2 = "cswosrel" } \
+					$$$$3 ~/sol9\./ { $$$$2 = "cswosrel" } \
+					$$$$3 ~/sol10\./ { $$$$2 = "cswosrel" } \
+					$$$$3 ~/\/sol[0-9]*\.sendmail$$$$/ { $$$$4 = "2755" } \
 					{ print }'
 
 PKGFILES_CSWsendmailcommon  = .*$(sharedstatedir)/.*
 PKGFILES_CSWsendmailcommon += .*$(mandir)/.*
 PKGFILES_CSWsendmailcommon += .*$(sysconfdir)/.*
 PKGFILES_CSWsendmailcommon += .*/clientmqueue/.*
-PKGFILES_CSWsendmailcommon += .*/csw\/init\.d/.*
 
 ENABLE_CHECK = 0
 
@@ -59,6 +61,7 @@
 EXTRA_MERGE_SCRIPTS = OS
 
 include gar/category.mk
+ADMSCRIPTS = preremove preinstall space depend i.sol8 i.sol9 i.sol10
 
 SOLVER = sol$(shell uname -r |sed 's/5\.//')
 PLATFORM  = $(shell if [ `uname -i` = "i86pc" ] ; then echo i86pc ; else echo sun4 ; fi )
@@ -148,6 +151,7 @@
 		done )
 	( mv $(DESTDIR)$(sysconfdir)/mail/sm-client.st.CSW \
 		$(DESTDIR)/var/opt/csw/spool/clientmqueue/ )
+	cp $(DOWNLOADDIR)/i.cswosrel $(DESTDIR)/usr/sadm/install/scripts/
 	@$(MAKECOOKIE)
 
 merge-OS:

Modified: csw/mgar/pkg/sendmail/trunk/checksums
===================================================================
--- csw/mgar/pkg/sendmail/trunk/checksums	2009-07-31 19:20:28 UTC (rev 5788)
+++ csw/mgar/pkg/sendmail/trunk/checksums	2009-07-31 21:28:40 UTC (rev 5789)
@@ -1,3 +1,6 @@
+4c53e32ed6b4ac66c35d5079ebcb548d  download/CSWsendmail.preinstall
+644a174b1a1e74ef8655ea0002aff8f7  download/CSWsendmail.preremove
+f49c3339aa897df97abf1baf54582fb8  download/CSWsendmail.space
 6c030e7a797209ddfa4f6dbc531d753c  download/README.CSW
 e89e68f3e0ae84d665c4ab898a8f3325  download/Sun-sendmail-deactivate.sh
 1c3a63f98171aa28a2714995ee938a2c  download/Sun-sendmail-reactivate.sh
@@ -4,9 +7,7 @@
 2bfc78e0f774b7168e29628b6a18570a  download/aliases.CSW
 2592f7d191867c1d1c63ff16d818dcb5  download/cswsendmail
 c816378b3028cbab410f72168b571775  download/helpfile.CSW
-27994344f69c7c92382d57264c7debf8  download/i.sol10
-24ffe87e0881ffa3e0495eeede9a0602  download/i.sol8
-b3510dc2ae95e585bc922cab8c89b8f0  download/i.sol9
+63ecca8e9ed3a37b6cd31e82d921d443  download/i.cswosrel
 d41d8cd98f00b204e9800998ecf8427e  download/local-host-names.CSW
 95c787a371c63caebc5d76faddba08e4  download/patch-CC-M.m4
 a5ee5d26e1f546a2da5fb9a513bd6bce  download/sendmail.8.14.3.tar.gz

Added: csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.space
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.space	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/CSWsendmail.space	2009-07-31 21:28:40 UTC (rev 5789)
@@ -0,0 +1,3 @@
+# No additional space is actually needed.
+# In fact, only one set of the Solaris release specific files are installed.
+# So the space required for this package is less than what is in pkgmap.

Added: csw/mgar/pkg/sendmail/trunk/files/i.cswosrel
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/i.cswosrel	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/i.cswosrel	2009-07-31 21:28:40 UTC (rev 5789)
@@ -0,0 +1,21 @@
+#!/bin/sh
+#
+# Move the OS version specific files to the base directory.
+#
+MYOSREL="sol`/sbin/uname -r |sed 's/5\.//'`"
+echo "Installing class <osrel> for ${MYOSREL}."
+
+while read src dest
+do
+    FILEOSREL="sol`echo ${dest} |sed 's/.*\(sol[0-9]*\).*//'`"
+    if [ "_x${MYOSREL}x_" = "_x${FILEOSREL}x_" ]; then
+	    # Keep pkgadd happy by copying the file as defined
+	    /usr/bin/cp $src $dest || exit 2
+	    # Copy the version specific file to the original name
+	    dest2=`echo $dest | sed "s/sol${MYOSREL}.//g"` || exit 2
+	    echo $dest2
+	    /usr/bin/cp $src $dest2 || exit 2
+    fi
+done
+exit 0
+


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list