summaryrefslogtreecommitdiff
path: root/net/samba
diff options
context:
space:
mode:
authorwiedi <wiedi@pkgsrc.org>2014-05-14 21:26:59 +0000
committerwiedi <wiedi@pkgsrc.org>2014-05-14 21:26:59 +0000
commit34faa29db8d9fb6fd4123f20f81e80e2d29d1cd2 (patch)
tree0f2bec08143f5a3bdcee60a16b60515046d747a7 /net/samba
parente7dfd98a0d8b145693856b929c0e6166d5456d7c (diff)
downloadpkgsrc-34faa29db8d9fb6fd4123f20f81e80e2d29d1cd2.tar.gz
Add SMF manifest
Diffstat (limited to 'net/samba')
-rw-r--r--net/samba/Makefile6
-rw-r--r--net/samba/files/smf/manifest.xml42
2 files changed, 47 insertions, 1 deletions
diff --git a/net/samba/Makefile b/net/samba/Makefile
index 210dcc11b86..9b8ec233428 100644
--- a/net/samba/Makefile
+++ b/net/samba/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.247 2014/03/17 14:01:57 taca Exp $
+# $NetBSD: Makefile,v 1.248 2014/05/14 21:26:59 wiedi Exp $
DISTNAME= samba-${VERSION}
CATEGORIES= net
@@ -10,6 +10,8 @@ COMMENT= SMB/CIFS protocol server suite
LICENSE= gnu-gpl-v3
VERSION= 3.6.23
+PKGREVISION= 1
+
CONFLICTS+= ja-samba-[0-9]* pam-smbpass-[0-9]* winbind-[0-9]*
USE_GCC_RUNTIME= yes
@@ -34,6 +36,8 @@ SAMBA_STATEDIR?= ${SAMBA_VARDIR}/db/samba
SAMBA_VARDIR?= ${VARBASE}
WINBINDD_RCD_SCRIPT= # empty
+SMF_INSTANCES= smbd nmbd
+
FILES_SUBST+= SAMBA_ETCDIR=${SAMBA_ETCDIR}
FILES_SUBST+= SAMBA_LOCKDIR=${SAMBA_LOCKDIR}
FILES_SUBST+= SAMBA_LOGDIR=${SAMBA_LOGDIR}
diff --git a/net/samba/files/smf/manifest.xml b/net/samba/files/smf/manifest.xml
new file mode 100644
index 00000000000..d4c20ef05e8
--- /dev/null
+++ b/net/samba/files/smf/manifest.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0"?>
+<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
+<service_bundle type='manifest' name='@SMF_NAME@'>
+<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>
+
+ <instance name='smbd' enabled='false'>
+ <exec_method name='start' type='method' exec='@PREFIX@/sbin/smbd -D' timeout_seconds='0'/>
+ <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
+ <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='0'/>
+ <template>
+ <common_name>
+ <loctext xml:lang='C'>Samba SMB/CIFS services</loctext>
+ </common_name>
+ <documentation>
+ <manpage title='smbd' section='8' manpath='man'/>
+ </documentation>
+ </template>
+ </instance>
+
+ <instance name='nmbd' enabled='false'>
+ <exec_method name='start' type='method' exec='@PREFIX@/sbin/nmbd -D' timeout_seconds='0'/>
+ <exec_method name='stop' type='method' exec=':kill' timeout_seconds='30'/>
+ <exec_method name='refresh' type='method' exec=':kill -HUP' timeout_seconds='0'/>
+ <template>
+ <common_name>
+ <loctext xml:lang='C'>Samba NetBIOS name server</loctext>
+ </common_name>
+ <documentation>
+ <manpage title='nmbd' section='8' manpath='man'/>
+ </documentation>
+ </template>
+ </instance>
+
+ <stability value='Unstable'/>
+</service>
+</service_bundle>