[csw-devel] SF.net SVN: gar:[6137] csw/mgar/pkg/minimalsmf/trunk

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Sat Aug 29 11:50:32 CEST 2009


Revision: 6137
          http://gar.svn.sourceforge.net/gar/?rev=6137&view=rev
Author:   wahwah
Date:     2009-08-29 09:50:32 +0000 (Sat, 29 Aug 2009)

Log Message:
-----------
minimalsmf: Simplified build, using INITSMF

Modified Paths:
--------------
    csw/mgar/pkg/minimalsmf/trunk/Makefile
    csw/mgar/pkg/minimalsmf/trunk/checksums
    csw/mgar/pkg/minimalsmf/trunk/files/sleeping-beauty

Modified: csw/mgar/pkg/minimalsmf/trunk/Makefile
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/Makefile	2009-08-29 09:27:20 UTC (rev 6136)
+++ csw/mgar/pkg/minimalsmf/trunk/Makefile	2009-08-29 09:50:32 UTC (rev 6137)
@@ -1,5 +1,5 @@
 GARNAME = minimalsmf
-GARVERSION = 0.2
+GARVERSION = 0.3
 CATEGORIES = server
 
 DESCRIPTION = A test of an SMF-enabled package and mGAR SMF support
@@ -21,20 +21,19 @@
 DISTFILES  = sleeping-beauty
 DISTFILES += csw$(GARNAME)
 
-REQUIRED_PKGS = CSWcswclassutils
-SPKG_CLASSES = none cswinitsmf
+INITSMF = /etc/opt/csw/init.d/cswminimalsmf
 
-PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/init.d\/cswminimalsmf$$$$/ { $$$$2 = "cswinitsmf" } { print }'
-
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS =
 TEST_SCRIPTS =
 INSTALL_SCRIPTS = $(GARNAME)
 
 install-$(GARNAME):
-	ginstall -d $(DESTDIR)
+	# Installing the executable
 	ginstall -d $(DESTDIR)$(bindir)
-	ginstall -m 755 files/sleeping-beauty $(DESTDIR)$(bindir)
+	ginstall -m 755 $(FILEDIR)/sleeping-beauty $(DESTDIR)$(bindir)
+	# Installing the startup script. It uses init.d for Solaris 8 and 9, and
+	# SMF for Solaris 10.
 	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
 	ginstall -m 755 $(FILEDIR)/csw$(GARNAME) \
 		$(DESTDIR)/etc/opt/csw/init.d/csw$(GARNAME)

Modified: csw/mgar/pkg/minimalsmf/trunk/checksums
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/checksums	2009-08-29 09:27:20 UTC (rev 6136)
+++ csw/mgar/pkg/minimalsmf/trunk/checksums	2009-08-29 09:50:32 UTC (rev 6137)
@@ -1,2 +1,2 @@
 657ec36646cd2f066141d28cfb7db435  download/cswminimalsmf
-f8f208e8dea57747241d3f997a52c8a6  download/sleeping-beauty
+6b1ac1730ff32ce39f5a78e4a9f95eff  download/sleeping-beauty

Modified: csw/mgar/pkg/minimalsmf/trunk/files/sleeping-beauty
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/files/sleeping-beauty	2009-08-29 09:27:20 UTC (rev 6136)
+++ csw/mgar/pkg/minimalsmf/trunk/files/sleeping-beauty	2009-08-29 09:50:32 UTC (rev 6137)
@@ -2,6 +2,6 @@
 
 while true
 do
-	sleep 10
+	sleep 30
 	logger user.info "Sleeping $(date)"
 done


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