Date: Wed, 13 Jun 2001 21:07:16 +0000 (GMT) From: gyori@szit.bme.hu To: FreeBSD-gnats-submit@freebsd.org Subject: ports/28129: OpenLDAP2: LOCALSTATEDIR variable problem Message-ID: <20010613210716.F10F8E322C@huffman.szit.bme.hu>
next in thread | raw e-mail | index | archive | help
>Number: 28129 >Category: ports >Synopsis: OpenLDAP2: LOCALSTATEDIR variable problem >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Wed Jun 13 14:10:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Gyori Sandor >Release: FreeBSD 4.3-STABLE i386 >Organization: Technical University of Budapest >Environment: System: FreeBSD huffman.szit.bme.hu 4.3-STABLE FreeBSD 4.3-STABLE #0: Mon Jun 11 14:18:59 GMT 2001 root@huffman.szit.bme.hu:/usr/obj/usr/src/sys/HUFFMAN i386 >Description: /usr/local/etc/rc.d/slapd.sh can't stop OpenLDAP2 daemon if you use default slapd.conf, because slapd.sh want to get slapd's PID from /var/run/slapd.pid, but slapd.conf contains /var/db/slapd.pid instead of /var/run/slapd.pid (the same is true for slapd.args). The problem comes from the fact that there are 3 references to the LOCALSTATEDIR install-time variable in servers/slapd/slapd.conf. The first and second one should be replaced by "/var/run" during installation time, but the third one should be replaced by "/var/db". The main Makefile in this Port contains "/var/db" for LOCALSTATEDIR (--localstatedir=/var/db in CONFIGURE_ARGS). >How-To-Repeat: >Fix: This two meaning of the LOCALSTATEDIR variable should be distinguished, therefore two variable is needed with different names, or not a variable but a FreeBSD-specific patch which replace these lines: pidfile %LOCALSTATEDIR%/slapd.pid argsfile %LOCALSTATEDIR%/slapd.args with the following ones: pidfile /var/run/slapd.pid argsfile /var/run/slapd.args >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010613210716.F10F8E322C>