[stsf-commit] stsf/STFontServer/loader makefile, 1.3, 1.4 stfsloader.xml, NONE, 1.1

Alan Coopersmith stsf-commit at pdx.freedesktop.org
Mon Feb 28 19:15:07 PST 2005


Committed by: alanc


Index: makefile
===================================================================
RCS file: /cvs/stsf/stsf/STFontServer/loader/makefile,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- makefile	2 Jul 2004 05:00:13 -0000	1.3
+++ makefile	1 Mar 2005 03:15:05 -0000	1.4
@@ -45,12 +45,29 @@
 #CFLAGS += -DDEBUG
 
 
-all:	${PROGS}
+all:	${PROGS} check
 
-install: all
+install:: all
 	$(INSTALL_DIR) $(TARGETLIBEXECDIR)
 	$(INSTALL_LIB) stfsloader $(TARGETLIBEXECDIR)
 
+# Solaris Service Management Framework support
+# XXX should check for S10 and later, not just any Solaris release
+ifeq ($(OS), SunOS)
+
+TARGETSMFDIR=$(TARGETDIR)/../var/svc/manifest/application/font
+
+check::
+	/usr/sbin/svccfg validate stfsloader.xml
+
+install::
+	$(INSTALL_DIR) $(TARGETSMFDIR)
+	$(INSTALL_HEADER) stfsloader.xml $(TARGETSMFDIR)
+else
+check::
+	# Do nothing
+endif
+
 stfsloader.h stfsloader_clnt.c stfsloader_svc.c stfsloader_xdr.c:	stfsloader.x
 	rpcgen -C $<
 	rm -f ../../STClientLibrary/src/stfsloader_clnt.c

--- NEW FILE: stfsloader.xml ---
<?xml version='1.0'?>
<!DOCTYPE service_bundle SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<!--
    Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
    Use is subject to license terms.

    ident	"@(#)stfsloader.xml	1.2	04/11/17 SMI"

    Service manifest for the STSF Font Server loader (stfsloader) service.

    Orignally generated by inetconv(1M) from the inetd.conf(4) format line:
100424/1 tli rpc/ticotsord wait root /usr/lib/ST/stfsloader stfsloader
-->

<service_bundle type='manifest' name='SUNWstsfr:stfsloader'>

<service
	name='application/font/stfsloader'
	type='service'
	version='1'>

	<create_default_instance enabled='true' />

	<single_instance />

	<restarter>
		<service_fmri value='svc:/network/inetd:default' />
	</restarter>

	<!--
	    Set a timeout of -1 to signify to inetd that we don't want to
	    timeout this service, since the forked process is the one that
	    does the services work. This is the case for most/all legacy
	    inetd services; for services written to take advantage of SMF
	    capabilities, the start method should fork off a process to
	    handle the request and return a success code.
	-->
	<exec_method
		type='method'
		name='inetd_start'
		exec='/usr/lib/ST/stfsloader'
		timeout_seconds='-1'>
		<method_context>
			<method_credential user='root' group='root' />
		</method_context>
	</exec_method>

	<property_group name='inetd' type='framework'>
		<propval name='name' type='astring' value='100424' />
		<propval name='endpoint_type' type='astring' value='tli' />
		<propval name='wait' type='boolean' value='true' />
		<propval name='isrpc' type='boolean' value='true' />
		<propval name='rpc_low_version' type='integer' value='1' />
		<propval name='rpc_high_version' type='integer' value='1' />
		<propval name='proto' type='astring' value='ticotsord' />
	</property_group>

	<property_group name='general' type='framework'>
		<!-- manage server state -->
		<propval name='action_authorization' type='astring'
			value='solaris.smf.manage.font' />
	</property_group>

	<stability value='Evolving' />

	<template>
		<common_name>
			<loctext xml:lang='C'>
Standard Type Services Framework (STSF) Font Server loader
			</loctext>
		</common_name>
	</template>
</service>

</service_bundle>



More information about the stsf-commit mailing list