Date: Mon, 29 Jun 1998 09:23:20 -0700 (PDT) From: Parag Patel <parag@cgt.com> To: FreeBSD-gnats-submit@FreeBSD.ORG Subject: ports/7114: (port) sysutils/upsd Makefile generates incorrect path in config.h Message-ID: <199806291623.JAA09806@pinhead.parag.codegen.com>
next in thread | raw e-mail | index | archive | help
>Number: 7114 >Category: ports >Synopsis: (port) upsd Makefile generates incorrect path in config.h >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Mon Jun 29 09:30:01 PDT 1998 >Last-Modified: >Originator: Parag Patel >Organization: CodeGen, Inc. >Release: FreeBSD 2.2.6-STABLE i386 >Environment: Nothing special - latest build as of Sun Jun 29, 1998 evening (PST). >Description: The Makefile for the sysutils/upsd port generates the wrong upsd.conf path in the generated config.h header file. Left to its own devices, it creates: #define _PATH_UPSD_CONF "/usr/local/upsd.conf" instead of: #define _PATH_UPSD_CONF "/usr/local/etc/upsd.conf" "make install" however creates the upsd.conf file under /usr/local/etc, so after the make install, upsd will fail to find its config file and die. >How-To-Repeat: Go to sysutils/upsd, type "make clean", then "make", and look at the generated config.h file. >Fix: Here's a patch for the sysutils/upsd/Makefile to fix the problem. (Note that the post-install already does the right thing.) *** Makefile Mon Jun 29 08:53:49 1998 --- Makefile-org Mon Jun 29 08:53:30 1998 *************** *** 19,25 **** pre-build: @${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig ! @sed -e "s!@prefix@!${PREFIX}/etc!g" ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h post-install: if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \ --- 19,25 ---- pre-build: @${MV} ${WRKSRC}/config.h ${WRKSRC}/config.h.orig ! @sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/config.h.orig > ${WRKSRC}/config.h post-install: if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \ >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?199806291623.JAA09806>