diff options
author | jlam <jlam> | 2002-01-30 07:34:00 +0000 |
---|---|---|
committer | jlam <jlam> | 2002-01-30 07:34:00 +0000 |
commit | b5ff5c182fb588931b2b4c8a64a9be981d43ffbd (patch) | |
tree | e390778caaac47919afd5fee81f5c97353193653 /databases/openldap | |
parent | d0aa00c28e1650d9dee3e3c505dc5c00ab4311d7 (diff) | |
download | pkgsrc-b5ff5c182fb588931b2b4c8a64a9be981d43ffbd.tar.gz |
Add a rc.d-style control script for slapd.
Diffstat (limited to 'databases/openldap')
-rw-r--r-- | databases/openldap/Makefile | 13 | ||||
-rw-r--r-- | databases/openldap/PLIST | 3 | ||||
-rw-r--r-- | databases/openldap/files/slapd.sh | 29 |
3 files changed, 43 insertions, 2 deletions
diff --git a/databases/openldap/Makefile b/databases/openldap/Makefile index b9d31b10b0c..f370003e1a4 100644 --- a/databases/openldap/Makefile +++ b/databases/openldap/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.36 2002/01/15 23:26:31 kleink Exp $ +# $NetBSD: Makefile,v 1.37 2002/01/30 07:34:00 jlam Exp $ DISTNAME= openldap-2.0.21 SVR4_PKGNAME= oldap @@ -76,8 +76,19 @@ CONF_FILES_PERMS+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} \ .for FILE in ${SUPPS} SUPPORT_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE} .endfor +RCD_SCRIPTS= slapd + +post-build: + @for script in ${RCD_SCRIPTS}; do \ + ${SED} ${FILES_SUBST_SED} ${FILESDIR}/$${script}.sh \ + > ${WRKDIR}/$${script}; \ + done post-install: + for script in ${RCD_SCRIPTS}; do \ + ${INSTALL_SCRIPT} ${WRKDIR}/$${script} \ + ${PREFIX}/etc/rc.d/$${script}; \ + done ${INSTALL_DATA_DIR} ${EGDIR}/schema for file in ${CNFS} ${CNFS_PERMS} ${SUPPS}; do \ if [ ! -e ${PKG_SYSCONFDIR}/$${file}.default ]; then \ diff --git a/databases/openldap/PLIST b/databases/openldap/PLIST index f691d7b1fff..85464911a53 100644 --- a/databases/openldap/PLIST +++ b/databases/openldap/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.2 2002/01/14 22:21:03 kleink Exp $ +@comment $NetBSD: PLIST,v 1.3 2002/01/30 07:34:00 jlam Exp $ bin/ldapadd bin/ldapdelete bin/ldapmodify @@ -6,6 +6,7 @@ bin/ldapmodrdn bin/ldappasswd bin/ldapsearch bin/ud +etc/rc.d/slapd include/disptmpl.h include/lber.h include/lber_types.h diff --git a/databases/openldap/files/slapd.sh b/databases/openldap/files/slapd.sh new file mode 100644 index 00000000000..1e762c7caaf --- /dev/null +++ b/databases/openldap/files/slapd.sh @@ -0,0 +1,29 @@ +#! /bin/sh +# +# $NetBSD: slapd.sh,v 1.1 2002/01/30 07:34:01 jlam Exp $ +# +# OpenLDAP standalone LDAP daemon +# +# PROVIDE: slapd +# REQUIRE: DAEMON + +if [ -e /etc/rc.subr ] +then + . /etc/rc.subr +fi + +name="slapd" +rcvar=${name} +command="@PREFIX@/libexec/${name}" +pidfile="/var/openldap/slapd.pid" +required_files="@PKG_SYSCONFDIR@/${name}.conf" +extra_commands="reload" + +if [ -e /etc/rc.subr ] +then + load_rc_config $name + run_rc_command "$1" +else + @ECHO@ -n " ${name}" + ${command} ${slapd_flags} ${command_args} +fi |