pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/nullmailer Add SMF manifest and ssl/tls support (...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bb2bbb410500
branches:  trunk
changeset: 648102:bb2bbb410500
user:      wiedi <wiedi%pkgsrc.org@localhost>
date:      Wed Mar 11 15:18:51 2015 +0000

description:
Add SMF manifest and ssl/tls support (new gnutls option, enabled by default)

diffstat:

 mail/nullmailer/Makefile               |   5 +++-
 mail/nullmailer/files/smf/manifest.xml |  35 ++++++++++++++++++++++++++++++++++
 mail/nullmailer/options.mk             |  13 ++++++++++++
 3 files changed, 52 insertions(+), 1 deletions(-)

diffs (77 lines):

diff -r 2b17dcd5f87f -r bb2bbb410500 mail/nullmailer/Makefile
--- a/mail/nullmailer/Makefile  Wed Mar 11 15:08:04 2015 +0000
+++ b/mail/nullmailer/Makefile  Wed Mar 11 15:18:51 2015 +0000
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.36 2013/09/03 17:50:27 shattered Exp $
+# $NetBSD: Makefile,v 1.37 2015/03/11 15:18:51 wiedi Exp $
 
 DISTNAME=              nullmailer-1.13
+PKGREVISION=           1
 CATEGORIES=            mail
 MASTER_SITES=          ${HOMEPAGE:Q}
 DIST_SUBDIR=           ${PKGNAME_NOREV}
@@ -59,6 +60,8 @@
 INSTALLATION_DIRS=     share/doc/${PKGBASE} share/examples/${PKGBASE}
 BUILD_DEFS+=           VARBASE
 
+.include "options.mk"
+
 post-extract:
        ${CP} ${FILESDIR}/mailer.conf ${WRKDIR}/mailer.conf
        ${CP} ${FILESDIR}/nullmailer-daemon ${WRKDIR}/nullmailer-daemon
diff -r 2b17dcd5f87f -r bb2bbb410500 mail/nullmailer/files/smf/manifest.xml
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/nullmailer/files/smf/manifest.xml    Wed Mar 11 15:18:51 2015 +0000
@@ -0,0 +1,35 @@
+<?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'>
+       <create_default_instance enabled="false"/>
+       <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>
+       <method_context working_directory='/tmp'>
+               <method_credential user="@NULLMAILER_USER@" group="@NULLMAILER_GROUP@"/>
+       </method_context>
+
+       <exec_method name='start' type='method' exec='@PREFIX@/libexec/nullmailer/nullmailer-send' timeout_seconds='20'/>
+       <exec_method name='stop'  type='method' exec=':kill' timeout_seconds='60'/>
+
+       <property_group name="startd" type="framework">
+               <propval name="duration" type="astring" value="child" />
+               <propval name="ignore_error" type="astring" value="core,signal" />
+       </property_group>
+
+       <stability value='Unstable'/>
+       <template>
+               <common_name>
+                       <loctext xml:lang='C'>Simple relay-only mail transport agent</loctext>
+               </common_name>
+               <documentation>
+                       <manpage title='nullmailer' section='7' manpath='@PREFIX@/@PKGMANDIR@' />
+               </documentation>
+       </template>
+</service>
+</service_bundle>
+
diff -r 2b17dcd5f87f -r bb2bbb410500 mail/nullmailer/options.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/nullmailer/options.mk        Wed Mar 11 15:18:51 2015 +0000
@@ -0,0 +1,13 @@
+# $NetBSD: options.mk,v 1.1 2015/03/11 15:18:51 wiedi Exp $
+
+PKG_OPTIONS_VAR=        PKG_OPTIONS.nullmailer
+PKG_SUPPORTED_OPTIONS=  gnutls
+PKG_SUGGESTED_OPTIONS=  gnutls
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+.  include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+=       --enable-tls
+.endif # option gnutls
+



Home | Main Index | Thread Index | Old Index