pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
pkg/45171: sysutils/apcupsd broken on DragonFly due to PR #40112
>Number: 45171
>Category: pkg
>Synopsis: sysutils/apcupsd broken on DragonFly due to PR #40112
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 24 05:00:00 +0000 2011
>Originator: Francois Tigeot
>Release: DragonFly 2.10
>Organization:
>Environment:
DragonFly akane.zefyris.com 2.10-RELEASE DragonFly v2.10.1.25.g9f5f02-RELEASE
#0: Fri Jul 1 21:53:08 CEST 2011
ftigeot%akane.zefyris.com@localhost:/usr/obj/usr/src/sys/X86_64_GENERIC_SMP
x86_64
>Description:
Since the fix from PR #40112 has been applied, sysutils/apcupsd can no
longer be installed on DragonFly systems
>How-To-Repeat:
Try to install sysutils/apcupsd on a DragonFly system
>Fix:
The rc.d startup script must be installed from the netbsd/ subdirectory.
This patch should do the trick:
diff -u -u -r1.61 Makefile
--- Makefile 22 Apr 2011 13:44:39 -0000 1.61
+++ Makefile 24 Jul 2011 04:55:45 -0000
@@ -65,7 +65,11 @@
CONF_FILES_PERMS+= ${EGDIR}/onbattery ${PKG_SYSCONFDIR}/onbattery
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
CONF_FILES_PERMS+= ${EGDIR}/apccontrol ${PKG_SYSCONFDIR}/apccontrol
${REAL_ROOT_USER} ${REAL_ROOT_GROUP} 755
RCD_SCRIPTS= apcupsd
-RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${OPSYS:tl}/apcupsd
+PLATFORM_SUBDIR=${OPSYS:tl}
+.if ${OPSYS} == "DragonFly"
+PLATFORM_SUBDIR=netbsd
+.endif
+RCD_SCRIPT_SRC.apcupsd= ${WRKSRC}/platforms/${PLATFORM_SUBDIR}/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