Subject: pkg/36970: sysutils/apcupsd can not install due to change path in archive
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: None <h-masuda@ootani.nagata.kobe.jp>
List: pkgsrc-bugs
Date: 09/11/2007 22:05:00
>Number:         36970
>Category:       pkg
>Synopsis:       sysutils/apcupsd can not install due to change path in archive
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Sep 11 22:05:00 +0000 2007
>Originator:     MASUDA Hideo
>Release:        4.0_BETA2
>Organization:
>Environment:
NetBSD localhost 4.0_BETA2 NetBSD 4.0_BETA2 (XEN3_DOM0) #4: Fri May 25 18:59:30 JST 2007  admin@localhost:/usr/netbsd-4/src/sys/arch/i386/compile/XEN3_DOM0 i386

>Description:
sysutils/apcupsd can not install due to change path in archive.

# cd $PKGSRC/sysutils/apcupsd
# make update
(snip)
=> Unwrapping files-to-be-installed.
/usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|'  /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apcupsd.8
/usr/bin/sed -e 's|@@PREFIX@@|/usr/pkg|' -e 's|@@SYSCONFDIR@@|/usr/pkg/etc/apcupsd|'  /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.man > /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/doc/apctest.8
make: don't know how to make /export/work/current/pkgsrc/sysutils/apcupsd/work/apcupsd-3.14.1/distributions/netbsd/apcupsd. Stop

make: stopped in /export/work/current/pkgsrc/sysutils/apcupsd
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/sysutils/apcupsd
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/sysutils/apcupsd

>How-To-Repeat:
# cd $PKGSRC/sysutils/apcupsd
# make install

>Fix:
The following patch will fix this problem.

Index: Makefile
===================================================================
RCS file: /cvsroot/pkgsrc/sysutils/apcupsd/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile    19 Jun 2007 22:22:55 -0000      1.52
+++ Makefile    11 Sep 2007 19:48:31 -0000
@@ -67,7 +67,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}/distributions/netbsd/apcupsd
+RCD_SCRIPT_SRC.apcupsd=        ${WRKSRC}/platforms/netbsd/apcupsd

 EGFILES= netbsd/apccontrol etc/changeme etc/commfailure etc/commok \
     etc/offbattery etc/onbattery etc/multimon.conf etc/hosts.conf