pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/40112: sysutils/apcupsd hardcodes "netbsd"



>Number:         40112
>Category:       pkg
>Synopsis:       sysutils/apcupsd hardcodes "netbsd"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 05 11:40:03 +0000 2008
>Originator:     Aleksej Saushev
>Release:        
>Organization:
>Environment:
FreeBSD 6.3-STABLE i386
>Description:
sysutils/apcupsd breaks on FreeBSD due to hardcoded "netbsd" in file path.
>How-To-Repeat:
cd sysutils/apcupsd && bmake
>Fix:
--- Makefile    20 Jun 2008 05:09:35 +0400      1.58
+++ Makefile    05 Dec 2008 14:03:57 +0300      
@@ -64,7 +64,7 @@
 CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery ${ROOT_USER} 
${ROOT_GROUP} 755
 CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol 
${ROOT_USER} ${ROOT_GROUP} 755
 RCD_SCRIPTS=   apcupsd
-RCD_SCRIPT_SRC.apcupsd=        ${WRKSRC}/platforms/netbsd/apcupsd
+RCD_SCRIPT_SRC.apcupsd=        ${WRKSRC}/platforms/${OPSYS:tl}/apcupsd
 
 EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \
     etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf



Home | Main Index | Thread Index | Old Index