pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/xymonclient Add SMF support for Solarish OSes.
details: https://anonhg.NetBSD.org/pkgsrc/rev/197f1db73477
branches: trunk
changeset: 440636:197f1db73477
user: hauke <hauke%pkgsrc.org@localhost>
date: Wed Oct 14 10:53:44 2020 +0000
description:
Add SMF support for Solarish OSes.
diffstat:
net/xymonclient/Makefile | 4 ++-
net/xymonclient/files/smf/manifest.xml | 49 ++++++++++++++++++++++++++++++++++
2 files changed, 52 insertions(+), 1 deletions(-)
diffs (75 lines):
diff -r 45895e13d059 -r 197f1db73477 net/xymonclient/Makefile
--- a/net/xymonclient/Makefile Wed Oct 14 10:45:43 2020 +0000
+++ b/net/xymonclient/Makefile Wed Oct 14 10:53:44 2020 +0000
@@ -1,8 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2020/01/26 05:26:26 rillig Exp $
+# $NetBSD: Makefile,v 1.25 2020/10/14 10:53:44 hauke Exp $
#
DISTNAME= xymon-4.3.29
PKGNAME= xymonclient-4.3.29
+PKGREVISION= 1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=xymon/}
@@ -39,6 +40,7 @@
# startup and config
RCD_SCRIPTS+= xymonclient
+SMF_INSTANCES+= xymonclient
PKG_SYSCONFDIR.xymon= ${PREFIX}/etc/xymon
EXAMPLEDIR= ${PREFIX}/share/examples/xymon
diff -r 45895e13d059 -r 197f1db73477 net/xymonclient/files/smf/manifest.xml
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/xymonclient/files/smf/manifest.xml Wed Oct 14 10:53:44 2020 +0000
@@ -0,0 +1,49 @@
+<?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='@SMF_PREFIX@/@SMF_NAME@' type='service' version='1'>
+ <dependency name='fs-root' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/filesystem/root' />
+ </dependency>
+ <dependency name='network-service' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/network/service'/>
+ </dependency>
+ <dependency name='filesystem' grouping='require_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/system/filesystem/local'/>
+ </dependency>
+ <dependency name='multi-user-server' grouping='optional_all' restart_on='none' type='service'>
+ <service_fmri value='svc:/milestone/multi-user-server' />
+ </dependency>
+
+
+ <instance name='xymonclient' enabled='false'>
+ <exec_method type='method' name='start' exec='@PREFIX@/libexec/xymon/client/runclient.sh start' timeout_seconds='10'>
+ <method_context>
+ <method_credential user='xymon'/>
+ </method_context>
+ </exec_method>
+
+ <exec_method type='method' name='stop' exec='@PREFIX@/libexec/xymon/client/runclient.sh stop' timeout_seconds='10'>
+ <method_context>
+ <method_credential user='xymon' />
+ </method_context>
+ </exec_method>
+
+ <exec_method type='method' name='restart' exec='@PREFIX@/libexec/xymon/client/runclient.sh restart' timeout_seconds='10'>
+ <method_context>
+ <method_credential user='xymon' />
+ </method_context>
+ </exec_method>
+
+ <template>
+ <common_name>
+ <loctext xml:lang='C'>Xymon System Monitor Client</loctext>
+ </common_name>
+ <documentation>
+ <manpage title='xymonclient' section='8' manpath='@PREFIX@/@PKGMANDIR@'/>
+ </documentation>
+ </template>
+ </instance>
+
+</service>
+</service_bundle>
Home |
Main Index |
Thread Index |
Old Index