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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Fri Jul 31 05:02:36 CEST 2009


Revision: 5760
          http://gar.svn.sourceforge.net/gar/?rev=5760&view=rev
Author:   valholla
Date:     2009-07-31 03:02:36 +0000 (Fri, 31 Jul 2009)

Log Message:
-----------
add  extra classes

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

Added Paths:
-----------
    csw/mgar/pkg/sendmail/trunk/files/checkinstall
    csw/mgar/pkg/sendmail/trunk/files/i.sol10
    csw/mgar/pkg/sendmail/trunk/files/i.sol8
    csw/mgar/pkg/sendmail/trunk/files/i.sol9

Modified: csw/mgar/pkg/sendmail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-30 22:41:31 UTC (rev 5759)
+++ csw/mgar/pkg/sendmail/trunk/Makefile	2009-07-31 03:02:36 UTC (rev 5760)
@@ -10,6 +10,7 @@
 MASTER_SITES = ftp://ftp.sendmail.org/pub/sendmail/
 DISTFILES  = $(GARNAME).$(GARVERSION).tar.gz
 DISTFILES += cswsendmail site.config.m4
+DISTFILES += i.sol8 i.sol9 i.sol10 checkinstall
 DISTFILES += $(foreach FILE,$(shell cd $(FILEDIR) && ls *.CSW),$(FILE))
 
 # We define upstream file regex so we can be notifed of new upstream software release
@@ -20,8 +21,11 @@
 # UPSTREAM_MASTER_SITES = 
 
 # we require
+SPKG_CLASSES = none cswinitsmf
 REQUIRED_PKGS = CSWbdb CSWoldaprt CSWosslrt CSWsasl CSWtcpwrap
+PROTOTYPE_FILTER = awk '$$$$3 ~/\/init.d\/cswsquid$$$$/ { $$$$2 = "cswinitsmf" } || $$$$3 ~/sol8\./ { $$$$2 = "sol8" } || $$$$3 ~/sol9\./ { $$$$2 = "sol9" } || $$$$3 ~/sol10\./ { $$$$2 = "sol10" } { print }'
 
+
 # patch away GNUism
 PATCHFILES = patch-CC-M.m4
 

Modified: csw/mgar/pkg/sendmail/trunk/checksums
===================================================================
--- csw/mgar/pkg/sendmail/trunk/checksums	2009-07-30 22:41:31 UTC (rev 5759)
+++ csw/mgar/pkg/sendmail/trunk/checksums	2009-07-31 03:02:36 UTC (rev 5760)
@@ -1,6 +1,10 @@
 2bfc78e0f774b7168e29628b6a18570a  download/aliases.CSW
+f581c67e3834d6a520d8faf9dfb8c7eb  download/checkinstall
 33aa403bba2c02d79754977c8af26db2  download/cswsendmail
 c816378b3028cbab410f72168b571775  download/helpfile.CSW
+27994344f69c7c92382d57264c7debf8  download/i.sol10
+24ffe87e0881ffa3e0495eeede9a0602  download/i.sol8
+b3510dc2ae95e585bc922cab8c89b8f0  download/i.sol9
 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/checkinstall
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/checkinstall	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/checkinstall	2009-07-31 03:02:36 UTC (rev 5760)
@@ -0,0 +1,21 @@
+# checkinstall for CSWsendmail
+# 2007-12-09 installation no longer moves files in Sun's sendmail package.
+#
+trap `exit 3` 15
+
+# Assign Solaris release class to install release specific files
+if [ `uname -r` = 5.8 ]; then
+	CLASSES='none sol8 cswinitsmf'
+elif [ `uname -r` = 5.9 ]; then
+	CLASSES='none sol9 cswinitsmf'
+elif [ `uname -r` = 5.10 ]; then
+    CLASSES='none sol10 cswinitsmf'
+fi
+
+# Make env variables available to other packaging scripts
+
+cat >$1 <<!
+CLASSES='$CLASSES'
+!
+
+exit 0

Added: csw/mgar/pkg/sendmail/trunk/files/i.sol10
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/i.sol10	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/i.sol10	2009-07-31 03:02:36 UTC (rev 5760)
@@ -0,0 +1,23 @@
+# PKGINST parameter provided by installation services
+# Move the Solaris 9 version specific files to the base directory.
+# The files specific to Solaris release are:
+# bin/vacation
+# sbin/editmap
+# sbin/mailstats
+# sbin/makemap
+# sbin/praliases
+# lib/mail.local
+# lib/sendmail
+# lib/smrsh
+#
+echo "Installing class <sol10>."
+while read src dest
+do
+	# 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/sol10.//g'`" || exit 2
+	echo $dest2
+	/usr/bin/cp $src $dest2 || exit 2
+done
+exit 0

Added: csw/mgar/pkg/sendmail/trunk/files/i.sol8
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/i.sol8	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/i.sol8	2009-07-31 03:02:36 UTC (rev 5760)
@@ -0,0 +1,23 @@
+# PKGINST parameter provided by installation services
+# Move the Solaris 9 version specific files to the base directory.
+# The files specific to Solaris release are:
+# bin/vacation
+# sbin/editmap
+# sbin/mailstats
+# sbin/makemap
+# sbin/praliases
+# lib/mail.local
+# lib/sendmail
+# lib/smrsh
+#
+echo "Installing class <sol8>."
+while read src dest
+do
+	# 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/sol8.//g'`" || exit 2
+	echo $dest2
+	/usr/bin/cp $src $dest2 || exit 2
+done
+exit 0

Added: csw/mgar/pkg/sendmail/trunk/files/i.sol9
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/i.sol9	                        (rev 0)
+++ csw/mgar/pkg/sendmail/trunk/files/i.sol9	2009-07-31 03:02:36 UTC (rev 5760)
@@ -0,0 +1,23 @@
+# PKGINST parameter provided by installation services
+# Move the Solaris 9 version specific files to the base directory.
+# The files specific to Solaris release are:
+# bin/vacation
+# sbin/editmap
+# sbin/mailstats
+# sbin/makemap
+# sbin/praliases
+# lib/mail.local
+# lib/sendmail
+# lib/smrsh
+#
+echo "Installing class <sol9>."
+while read src dest
+do
+	# 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/sol9.//g'`" || exit 2
+	echo $dest2
+	/usr/bin/cp $src $dest2 || exit 2
+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