Add an rcscript
hints and ok ajacoutot@
This commit is contained in:
parent
9865427386
commit
c179ec4fd3
@ -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" \
|
||||
|
@ -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
|
||||
|
19
mail/courier-authlib/pkg/courier_authdaemond.rc
Normal file
19
mail/courier-authlib/pkg/courier_authdaemond.rc
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user