Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 24 Feb 2003 15:37:08 +0100 (CET)
From:      Christian Kratzer <ck@cksoft.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        Christian Kratzer <ck@cksoft.de>
Subject:   ports/48630: openldap21 port broken, file missing 
Message-ID:  <20030224143708.E206044ABA@majakka.cksoft.de>

next in thread | raw e-mail | index | archive | help

>Number:         48630
>Category:       ports
>Synopsis:       openldap21 port broken, file missing
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 24 06:40:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Christian Kratzer
>Release:        FreeBSD 4.7-STABLE i386
>Organization:
CK Software GmbH
>Environment:
System: FreeBSD majakka.cksoft.de 4.7-STABLE FreeBSD 4.7-STABLE #1: Thu Dec 19 14:57:42 CET 2002 ck@majakka.cksoft.de:/usr/obj/usr/src/RELENG_4/src/sys/MAJAKKA i386

>Description:

files/slapd.sh somehow ended up in the Attic in the initial 
repocopy and commit frenzy.

Please either recover files/slapd.sh from Attic or recreate with
attached patch.

Due to this the port is currently broken and does not buil.d

For consistency this is the same slapd.sh that is in the openldap20 port.

Once this gets cleared up I will consider a new set of startup scripts for 
slapd and  slurpd that pull their arguments from rc.conf as is coming
popular. But lets get this fixed first..

>How-To-Repeat:
	
>Fix:

--- openldap21/files/slapd.sh.orig	Mon Feb 24 15:27:02 2003
+++ openldap21/files/slapd.sh	Mon Feb 24 15:27:44 2003
@@ -0,0 +1,47 @@
+#!/bin/sh
+#
+# $FreeBSD: ports/net/openldap20/files/slapd.sh,v 1.3 2002/09/19 21:49:55 ijliao Exp $
+
+slapd_program=@@PREFIX@@/libexec/slapd
+
+# Uncomment one of the following:
+#
+# IPv4 Only
+#slapd_args='-h ldap://0.0.0.0;'
+#
+# IPv6 and IPv4
+#slapd_ags='-h "ldap://[::] ldap://0.0.0.0";'
+#
+# IPv6 Only
+#slapd_args='-h ldap://[::];'
+#
+#
+slapd_args=
+
+pidfile=/var/run/slapd.pid
+
+case "$1" in
+start)
+    if [ -x $slapd ]; then
+	echo -n ' slapd'
+	${slapd_program} ${slapd_args}
+
+    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


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030224143708.E206044ABA>