summaryrefslogtreecommitdiff
path: root/databases/openldap/files
diff options
context:
space:
mode:
authorjlam <jlam>2004-02-14 11:31:50 +0000
committerjlam <jlam>2004-02-14 11:31:50 +0000
commitb893603ceae8ca743696507ab2efb5d5d0dc5183 (patch)
tree3a37fd63bc8235769c4db8159104c7d29114ebee /databases/openldap/files
parentc6c70c5a3f33415e34e6b3da2876b6599968e17e (diff)
downloadpkgsrc-b893603ceae8ca743696507ab2efb5d5d0dc5183.tar.gz
Update databases/openldap to 2.1.25 (latest stable release as of
20031217. Changes from version 2.1.22 include many bug fixes including memory leaks, adding lutil_passwd extensions, and adding config file keywords to control the replication daemon.
Diffstat (limited to 'databases/openldap/files')
-rw-r--r--databases/openldap/files/slapd.sh10
-rw-r--r--databases/openldap/files/slurpd.sh27
2 files changed, 30 insertions, 7 deletions
diff --git a/databases/openldap/files/slapd.sh b/databases/openldap/files/slapd.sh
index a30d5aa0d5a..0d507fec889 100644
--- a/databases/openldap/files/slapd.sh
+++ b/databases/openldap/files/slapd.sh
@@ -1,26 +1,22 @@
#!@RCD_SCRIPTS_SHELL@
#
-# $NetBSD: slapd.sh,v 1.4 2002/09/20 02:01:55 grant Exp $
+# $NetBSD: slapd.sh,v 1.5 2004/02/14 11:31:50 jlam Exp $
#
# OpenLDAP standalone LDAP daemon
#
# PROVIDE: slapd
# REQUIRE: DAEMON
-if [ -f /etc/rc.subr ]
-then
+if [ -f /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 [ -f /etc/rc.subr ]
-then
+if [ -f /etc/rc.subr ]; then
load_rc_config $name
eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO
run_rc_command "$1"
diff --git a/databases/openldap/files/slurpd.sh b/databases/openldap/files/slurpd.sh
new file mode 100644
index 00000000000..438e30d31b0
--- /dev/null
+++ b/databases/openldap/files/slurpd.sh
@@ -0,0 +1,27 @@
+#!@RCD_SCRIPTS_SHELL@
+#
+# $NetBSD: slurpd.sh,v 1.1 2004/02/14 11:31:50 jlam Exp $
+#
+# OpenLDAP LDAP database replication daemon
+#
+# PROVIDE: slurpd
+# REQUIRE: slapd
+
+if [ -f /etc/rc.subr ]; then
+ . /etc/rc.subr
+fi
+
+name="slurpd"
+rcvar=${name}
+command="@PREFIX@/libexec/${name}"
+required_files="@PKG_SYSCONFDIR@/slapd.conf"
+required_vars="slapd"
+
+if [ -f /etc/rc.subr ]; then
+ load_rc_config $name
+ eval [ -z "\$${rcvar}" ] && eval ${rcvar}=NO
+ run_rc_command "$1"
+else
+ @ECHO@ -n " ${name}"
+ ${command} ${slurpd_flags} ${command_args}
+fi