From owner-freebsd-ports Wed Jun 13 14:10:18 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 7F36A37B40D for ; Wed, 13 Jun 2001 14:10:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.3/8.11.3) id f5DLA2D69185; Wed, 13 Jun 2001 14:10:02 -0700 (PDT) (envelope-from gnats) Received: from huffman.szit.bme.hu (huffman.szit.bme.hu [152.66.84.48]) by hub.freebsd.org (Postfix) with ESMTP id BB47137B401 for ; Wed, 13 Jun 2001 14:07:23 -0700 (PDT) (envelope-from root@huffman.szit.bme.hu) Received: by huffman.szit.bme.hu (Postfix, from userid 0) id F10F8E322C; Wed, 13 Jun 2001 21:07:16 +0000 (GMT) Message-Id: <20010613210716.F10F8E322C@huffman.szit.bme.hu> Date: Wed, 13 Jun 2001 21:07:16 +0000 (GMT) From: gyori@szit.bme.hu Reply-To: gyori@szit.bme.hu To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/28129: OpenLDAP2: LOCALSTATEDIR variable problem Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >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