Bug 7114 - (port) upsd Makefile generates incorrect path in config.h
Summary: (port) upsd Makefile generates incorrect path in config.h
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 1998-06-29 17:30 UTC by Parag Patel
Modified: 1998-07-04 00:41 UTC (History)
0 users

See Also:


Attachments
file.diff (563 bytes, patch)
1998-06-29 17:30 UTC, Parag Patel
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Parag Patel 1998-06-29 17:30:01 UTC
	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.

Fix: Here's a patch for the sysutils/upsd/Makefile to fix the
	problem.  (Note that the post-install already does the right
	thing.)

How-To-Repeat: 
	Go to sysutils/upsd, type "make clean", then "make", and look at
	the generated config.h file.
Comment 1 Steve Price freebsd_committer freebsd_triage 1998-07-04 00:39:10 UTC
State Changed
From-To: open->closed

Slightly different patch applied, but should be fixed.  Thanks 
for the report.