Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=9167dac3ce6172d583698500bab0e4603a41fd52
commit 9167dac3ce6172d583698500bab0e4603a41fd52 Author: Priyank <[email protected]> Date: Tue Feb 10 23:10:54 2009 +0530 openldap-2.3.43-2-i686 * New initscript diff --git a/source/network-extra/openldap/FrugalBuild b/source/network-extra/openldap/FrugalBuild index 20d24cd..6322453 100644 --- a/source/network-extra/openldap/FrugalBuild +++ b/source/network-extra/openldap/FrugalBuild @@ -3,7 +3,7 @@ pkgname=openldap pkgver=2.3.43 -pkgrel=1 +pkgrel=2 pkgdesc="A suite of the Lightweight Directory Access Protocol servers" url="http://www.openldap.org/" groups=('network-extra') @@ -16,7 +16,7 @@ up2date="lynx -dump http://www.openldap.org/software/download/|grep 'United Stat source=(ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$pkgname-$pkgver.tgz rc.slapd \ openldap-ntlm.patch0) sha1sums=('796b5db37ae5243b84f7b9c11217bbec44e0da8c' \ - 'e2e32477a3252545c04709b172eb65b1847c3678' \ + '2cb842757c9d58686cc7957fdd00e46cce236d09' \ '29b8e9c4835235c976f026cd5883228b77581083') subpkgs=('libldap') @@ -41,7 +41,7 @@ build() Fln liblber.so /usr/lib/liblber.so.2 Fln libldap.so /usr/lib/libldap.so.2 chmod +x $Fdestdir/usr/lib/*so* - Frcd slapd + Frcd2 slapd Fsplit libldap etc/openldap/ldap.conf* Fsplit libldap usr/lib/libldap* diff --git a/source/network-extra/openldap/messages/slapd.en b/source/network-extra/openldap/messages/slapd.en deleted file mode 100644 index 5860d2a..0000000 --- a/source/network-extra/openldap/messages/slapd.en +++ /dev/null @@ -1,2 +0,0 @@ -stopldap="Stopping OpenLDAP" -startldap="Starting OpenLDAP" diff --git a/source/network-extra/openldap/messages/slapd.hu b/source/network-extra/openldap/messages/slapd.hu deleted file mode 100644 index ece8421..0000000 --- a/source/network-extra/openldap/messages/slapd.hu +++ /dev/null @@ -1,2 +0,0 @@ -stopldap="Az OpenLDAP leállítása" -startldap="Az OpenLDAP indítása" diff --git a/source/network-extra/openldap/rc.slapd b/source/network-extra/openldap/rc.slapd index 38b2e77..d09e716 100644 --- a/source/network-extra/openldap/rc.slapd +++ b/source/network-extra/openldap/rc.slapd @@ -4,22 +4,38 @@ # rc.slapd for Frugalware # distributed under GPL License -. /etc/rc.d/rc.functions +source /lib/initscripts/functions # chkconfig: 2345 39 61 # description: LDAP stands for Lightweight Directory Access Protocol, used \ # for implementing the industry standard directory services. -if [ "$1" = "stop" ]; then - stop "$stopldap" - killall slapd - ok $? -elif [ "$1" = "restart" ]; then - "$0" stop - sleep 1 - "$0" start -else # start - start "$startldap" - /usr/libexec/slapd - ok $? -fi +daemon=$"OpenLDAP" +actions=(start stop restart status) + +pid="pidof slapd 2> /dev/null" + +rc_start() +{ + start_msg + if [ -z "$(eval $pid)" ]; then + /usr/libexec/slapd 2> /dev/null + ok $? + else + ok 999 + fi +} + +rc_stop() +{ + stop_msg + if [ -n "$(eval $pid)" ]; then + killall slapd 2> /dev/null + ok $? + else + ok 999 + fi +} + +rc_exec $1 + _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
