From c179ec4fd35ac0fe6b6f4f8203f07bbbd6bda157 Mon Sep 17 00:00:00 2001 From: giovanni Date: Thu, 16 Dec 2010 17:52:12 +0000 Subject: [PATCH] Add an rcscript hints and ok ajacoutot@ --- mail/courier-authlib/Makefile | 5 ++--- mail/courier-authlib/pkg/PLIST-main | 3 ++- .../pkg/courier_authdaemond.rc | 19 +++++++++++++++++++ 3 files changed, 23 insertions(+), 4 deletions(-) create mode 100644 mail/courier-authlib/pkg/courier_authdaemond.rc diff --git a/mail/courier-authlib/Makefile b/mail/courier-authlib/Makefile index 9aa7d7446ea..0a15d27d819 100644 --- a/mail/courier-authlib/Makefile +++ b/mail/courier-authlib/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.17 2010/11/19 07:23:06 espie Exp $ +# $OpenBSD: Makefile,v 1.18 2010/12/16 17:52:12 giovanni Exp $ COMMENT-main= authentication library for courier COMMENT-ldap= ldap authentication module for courier-authLib @@ -13,7 +13,7 @@ PKGNAME-mysql= ${DISTNAME:S/lib-/lib-mysql-/} PKGNAME-pgsql= ${DISTNAME:S/lib-/lib-pgsql-/} PKGNAME-userdb= ${DISTNAME:S/lib-/lib-userdb-/} -REVISION-main= 0 +REVISION-main= 1 REVISION-ldap= 0 REVISION-mysql= 0 REVISION-pgsql= 0 @@ -46,7 +46,6 @@ EXTRACT_SUFX= .tar.bz2 USE_GMAKE= Yes USE_LIBTOOL= Yes -USE_GROFF = Yes CONFIGURE_STYLE= gnu CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib" \ diff --git a/mail/courier-authlib/pkg/PLIST-main b/mail/courier-authlib/pkg/PLIST-main index 6783072561b..bb2c22cb53f 100644 --- a/mail/courier-authlib/pkg/PLIST-main +++ b/mail/courier-authlib/pkg/PLIST-main @@ -1,4 +1,4 @@ -@comment $OpenBSD: PLIST-main,v 1.3 2009/10/28 14:18:05 giovanni Exp $ +@comment $OpenBSD: PLIST-main,v 1.4 2010/12/16 17:52:12 giovanni Exp $ @conflict courier-authlib-* @pkgpath mail/courier-authlib @newgroup _courier:571 @@ -55,3 +55,4 @@ share/examples/courier-authlib/ @sample ${SYSCONFDIR}/courier/ share/examples/courier-authlib/authdaemonrc.dist @sample ${SYSCONFDIR}/courier/authdaemonrc +@rcscript ${RCDIR}/courier_authdaemond diff --git a/mail/courier-authlib/pkg/courier_authdaemond.rc b/mail/courier-authlib/pkg/courier_authdaemond.rc new file mode 100644 index 00000000000..a67bafe5373 --- /dev/null +++ b/mail/courier-authlib/pkg/courier_authdaemond.rc @@ -0,0 +1,19 @@ +#!/bin/sh +# +# $OpenBSD: courier_authdaemond.rc,v 1.1 2010/12/16 17:52:12 giovanni Exp $ + +. /etc/rc.d/rc.subr + +daemon="${TRUEPREFIX}/sbin/authdaemond" +pexp=".*courierlogger.*-start ${TRUEPREFIX}/libexec/courier-authlib/authdaemond" + +rc_start() { + mkdir -p /var/run/courier{,-auth}/ + ${daemon} start 2>/dev/null +} + +rc_stop() { + ${daemon} stop 2>/dev/null +} + +rc_cmd $1