mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-23 00:43:28 +00:00
Add a startup script for slapd.
Approved by: Lachlan O'Dea <lodea@vet.com.au> (MAINTAINER)
This commit is contained in:
parent
57754ba65d
commit
ad82bf983f
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=33082
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap/files/slapd.sh
Normal file
31
net/openldap/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap12/files/slapd.sh
Normal file
31
net/openldap12/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap2/files/slapd.sh
Normal file
31
net/openldap2/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap20-server/files/slapd.sh
Normal file
31
net/openldap20-server/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap20/files/slapd.sh
Normal file
31
net/openldap20/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap21-server/files/slapd.sh
Normal file
31
net/openldap21-server/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap21/files/slapd.sh
Normal file
31
net/openldap21/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap22-server/files/slapd.sh
Normal file
31
net/openldap22-server/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap22/files/slapd.sh
Normal file
31
net/openldap22/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap23-server/files/slapd.sh
Normal file
31
net/openldap23-server/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
@ -42,6 +42,9 @@ CONFIGURE_ARGS+= --enable-wrappers
|
||||
pre-build:
|
||||
cd ${WRKSRC} ; make depend
|
||||
|
||||
post-build:
|
||||
${SED} 's,@@PREFIX@@,${PREFIX},g' ${FILESDIR}/slapd.sh >${WRKDIR}/slapd.sh
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ldapadd ${PREFIX}/bin/ldapdelete \
|
||||
${PREFIX}/bin/ldapmodrdn ${PREFIX}/bin/ldapsearch ${PREFIX}/bin/ud \
|
||||
@ -54,5 +57,6 @@ post-install:
|
||||
${PREFIX}/sbin/ldif2id2children ${PREFIX}/sbin/ldif2id2entry \
|
||||
${PREFIX}/sbin/ldif2index ${PREFIX}/sbin/ldif2ldbm \
|
||||
${PREFIX}/bin/ldapmodify ${PREFIX}/bin/ldappasswd
|
||||
${INSTALL_SCRIPT} ${WRKDIR}/slapd.sh ${PREFIX}/etc/rc.d/slapd.sh.sample
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
|
31
net/openldap24-server/files/slapd.sh
Normal file
31
net/openldap24-server/files/slapd.sh
Normal file
@ -0,0 +1,31 @@
|
||||
#!/bin/sh
|
||||
#
|
||||
# $FreeBSD$
|
||||
|
||||
slapd=@@PREFIX@@/libexec/slapd
|
||||
pidfile=/var/run/slapd.pid
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -x $slapd ]; then
|
||||
echo -n ' slapd'
|
||||
$slapd
|
||||
fi
|
||||
;;
|
||||
stop)
|
||||
if [ -f $pidfile ]; then
|
||||
kill `cat $pidfile`
|
||||
telnet localhost ldap </dev/null >/dev/null 2>&1
|
||||
echo -n ' slapd'
|
||||
rm $pidfile
|
||||
else
|
||||
echo ' slapd: not running'
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
echo "Usage: `basename $0` {start|stop}" >&2
|
||||
exit 64
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
Loading…
Reference in New Issue
Block a user