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

wahwah at users.sourceforge.net wahwah at users.sourceforge.net
Thu May 28 21:11:51 CEST 2009


Revision: 5090
          http://gar.svn.sourceforge.net/gar/?rev=5090&view=rev
Author:   wahwah
Date:     2009-05-28 19:11:51 +0000 (Thu, 28 May 2009)

Log Message:
-----------
Updating the minimal SMF package according to the wiki: http://wiki.opencsw.org/cswclassutils-package

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

Removed Paths:
-------------
    csw/mgar/pkg/minimalsmf/trunk/files/CSWminimalsmf.gspec
    csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf.xml
    csw/mgar/pkg/minimalsmf/trunk/files/svc-cswminimalsmf

Property Changed:
----------------
    csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf

Modified: csw/mgar/pkg/minimalsmf/trunk/Makefile
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/Makefile	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/Makefile	2009-05-28 19:11:51 UTC (rev 5090)
@@ -1,5 +1,5 @@
 GARNAME = minimalsmf
-GARVERSION = 0.1
+GARVERSION = 0.2
 CATEGORIES = server
 
 DESCRIPTION = A test of an SMF-enabled package and mGAR SMF support
@@ -10,16 +10,22 @@
   It should contain the least amount of code necessary to build a package,
   which, upon installation, imports a manifest and starts the service in the
   global zone as well as in the non-global zones (full and sparse).
+
+  References:
+    - https://apps.sourceforge.net/trac/gar/wiki/cswclassutils
+- http://wiki.opencsw.org/cswclassutils-package
 endef
 
 ARCHALL = 1
 MASTER_SITES =
 DISTFILES  = sleeping-beauty
-DISTFILES += $(call admfiles,CSW$(GARNAME),)
-DISTFILES += csw$(GARNAME) csw$(GARNAME).xml svc-csw$(GARNAME)
+DISTFILES += csw$(GARNAME)
 
-INITSMF = /opt/csw/etc/init.d/csw$(GARNAME)
+REQUIRED_PKGS = CSWcswclassutils
+SPKG_CLASSES = none cswinitsmf
 
+PROTOTYPE_FILTER  = awk '$$$$3 ~ /\/init.d\/cswminimalsmf$$$$/ { $$$$2 = "cswinitsmf" } { print }'
+
 CONFIGURE_SCRIPTS =
 BUILD_SCRIPTS =
 TEST_SCRIPTS =
@@ -29,7 +35,8 @@
 	ginstall -d $(DESTDIR)
 	ginstall -d $(DESTDIR)$(bindir)
 	ginstall -m 755 files/sleeping-beauty $(DESTDIR)$(bindir)
-	ginstall -d $(DESTDIR)$(libdir)/svc/method
-	ginstall -m 755 files/svc-csw$(GARNAME) $(DESTDIR)$(libdir)/svc/method/csw$(GARNAME)
+	ginstall -d $(DESTDIR)/etc/opt/csw/init.d
+	ginstall -m 755 $(FILEDIR)/csw$(GARNAME) \
+		$(DESTDIR)/etc/opt/csw/init.d/csw$(GARNAME)
 
 include gar/category.mk

Modified: csw/mgar/pkg/minimalsmf/trunk/checksums
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/checksums	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/checksums	2009-05-28 19:11:51 UTC (rev 5090)
@@ -0,0 +1,2 @@
+657ec36646cd2f066141d28cfb7db435  download/cswminimalsmf
+f8f208e8dea57747241d3f997a52c8a6  download/sleeping-beauty

Deleted: csw/mgar/pkg/minimalsmf/trunk/files/CSWminimalsmf.gspec
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/files/CSWminimalsmf.gspec	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/files/CSWminimalsmf.gspec	2009-05-28 19:11:51 UTC (rev 5090)
@@ -1,6 +0,0 @@
-%var		bitname minimalsmf
-%var		pkgname CSWminimalsmf
-%include        url file://%{PKGLIB}/csw_dyndepend.gspec
-%include	url file://%{PKGLIB}/smf_enabled.gspec
-%var		SERVICE_NAME cswminimalsmf
-%var            SERVICE_CONF_FILES /etc/foo

Modified: csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf	2009-05-28 19:11:51 UTC (rev 5090)
@@ -0,0 +1,12 @@
+#!/bin/bash
+
+case $1 in
+  start)
+    /opt/csw/bin/sleeping-beauty &
+    ;;
+  stop)
+    pkill sleeping-beauty
+    ;;
+  *)
+    ;;
+esac


Property changes on: csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf
___________________________________________________________________
Added: svn:executable
   + *

Deleted: csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf.xml
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf.xml	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/files/cswminimalsmf.xml	2009-05-28 19:11:51 UTC (rev 5090)
@@ -1,26 +0,0 @@
-<?xml version='1.0'?>
-<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
-<service_bundle type='manifest' name='export'>
-  <service name='system/cswminimalsmf' type='service' version='0'>
-    <create_default_instance enabled='false'/>
-    <single_instance/>
-    <exec_method name='start' type='method' exec='/opt/csw/lib/svc/method/cswminimalsmf' timeout_seconds='600'>
-      <method_context/>
-    </exec_method>
-    <exec_method name='stop' type='method' exec=':kill' timeout_seconds='60'>
-      <method_context/>
-    </exec_method>
-    <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='60'>
-      <method_context/>
-    </exec_method>
-    <stability value='Unstable'/>
-    <template>
-      <common_name>
-        <loctext xml:lang='C'>Just sleeping</loctext>
-      </common_name>
-      <documentation>
-        <manpage title='bash' section='1' manpath='/usr/share/man'/>
-      </documentation>
-    </template>
-  </service>
-</service_bundle>

Deleted: csw/mgar/pkg/minimalsmf/trunk/files/svc-cswminimalsmf
===================================================================
--- csw/mgar/pkg/minimalsmf/trunk/files/svc-cswminimalsmf	2009-05-28 17:54:52 UTC (rev 5089)
+++ csw/mgar/pkg/minimalsmf/trunk/files/svc-cswminimalsmf	2009-05-28 19:11:51 UTC (rev 5090)
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-/opt/csw/bin/sleeping-beauty &


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