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

valholla at users.sourceforge.net valholla at users.sourceforge.net
Wed Aug 5 19:33:25 CEST 2009


Revision: 5862
          http://gar.svn.sourceforge.net/gar/?rev=5862&view=rev
Author:   valholla
Date:     2009-08-05 17:33:25 +0000 (Wed, 05 Aug 2009)

Log Message:
-----------
tweaks for custom classes

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

Removed Paths:
-------------
    csw/mgar/pkg/sendmail/trunk/files/i.cswosrel

Modified: csw/mgar/pkg/sendmail/trunk/Makefile
===================================================================
--- csw/mgar/pkg/sendmail/trunk/Makefile	2009-08-05 14:46:52 UTC (rev 5861)
+++ csw/mgar/pkg/sendmail/trunk/Makefile	2009-08-05 17:33:25 UTC (rev 5862)
@@ -16,7 +16,8 @@
 DISTFILES  = $(GARNAME).$(GARVERSION).tar.gz
 DISTFILES += README.CSW sendmail.schema
 DISTFILES += Sun-sendmail-deactivate.sh Sun-sendmail-reactivate.sh
-DISTFILES += cswsendmail site.config.m4 i.cswosrel
+DISTFILES += cswsendmail site.config.m4 CSWsendmail.i.sol8
+DISTFILES += CSWsendmail.i.sol9 CSWsendmail.i.sol10
 DISTFILES += CSWsendmail.preremove CSWsendmail.preinstall CSWsendmail.space
 DISTFILES += $(foreach FILE,$(shell cd $(FILEDIR) && ls *.CSW),$(FILE))
 
@@ -37,11 +38,14 @@
 SPKG_CLASSES_CSWsendmail = none cswinitsmf cswosrel
 PROTOTYPE_FILTER = awk \
 				   '$$$$3 ~/\/init\.d\/cswsendmail$$$$/ {$$$$2 = "cswinitsmf"} \
-					$$$$3 ~/sol8\./ { $$$$2 = "cswosrel" } \
-					$$$$3 ~/sol9\./ { $$$$2 = "cswosrel" } \
-					$$$$3 ~/sol10\./ { $$$$2 = "cswosrel" } \
+					$$$$3 ~/sol8\./ { $$$$2 = "sol8" } \
+					$$$$3 ~/sol9\./ { $$$$2 = "sol9" } \
+					$$$$3 ~/sol10\./ { $$$$2 = "sol10" } \
 					$$$$3 ~/\/sol[0-9]*\.sendmail$$$$/ { $$$$4 = "2755" } \
 					{ print }'
+PROTOTYPE_FILTER += (fgrep -v "i.sol8";echo "i i.sol8=\$$$$WORKDIR_FIRSTMOD/i.sol8")
+PROTOTYPE_FILTER += (fgrep -v "i.sol9";echo "i i.sol9=\$$$$WORKDIR_FIRSTMOD/i.sol9")
+PROTOTYPE_FILTER += (fgrep -v "i.sol10";echo "i i.sol10=\$$$$WORKDIR_FIRSTMOD/i.sol10")
 
 PKGFILES_CSWsendmailcommon  = .*$(sharedstatedir)/.*
 PKGFILES_CSWsendmailcommon += .*$(mandir)/.*
@@ -100,7 +104,6 @@
 	ginstall -d $(DESTDIR)$(sharedstatedir)/mail
 	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 	ginstall -d $(DESTDIR)$(sysconfdir)/mail
-	ginstall -d $(DESTDIR)/usr/sadm/install/scripts
 
 	@# install the libraries
 	@( for file in $(LIBFILES) ; do \
@@ -151,7 +154,6 @@
 		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:

Deleted: csw/mgar/pkg/sendmail/trunk/files/i.cswosrel
===================================================================
--- csw/mgar/pkg/sendmail/trunk/files/i.cswosrel	2009-08-05 14:46:52 UTC (rev 5861)
+++ csw/mgar/pkg/sendmail/trunk/files/i.cswosrel	2009-08-05 17:33:25 UTC (rev 5862)
@@ -1,22 +0,0 @@
-#!/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="`echo ${dest} |sed 's/.*\(sol[0-9]*\).*/\1/'`"
-    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/${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