NetBSD Problem Report #40112

From www@NetBSD.org  Fri Dec  5 11:38:37 2008
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id DB35D63BB39
	for <gnats-bugs@gnats.netbsd.org>; Fri,  5 Dec 2008 11:38:37 +0000 (UTC)
Message-Id: <20081205113837.B255263BAE7@narn.NetBSD.org>
Date: Fri,  5 Dec 2008 11:38:37 +0000 (UTC)
From: asau@inbox.ru
Reply-To: asau@inbox.ru
To: gnats-bugs@NetBSD.org
Subject: sysutils/apcupsd hardcodes "netbsd"
X-Send-Pr-Version: www-1.0

>Number:         40112
>Category:       pkg
>Synopsis:       sysutils/apcupsd hardcodes "netbsd"
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    bouyer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Fri Dec 05 11:40:03 +0000 2008
>Closed-Date:    Sun Dec 07 22:56:51 +0000 2008
>Last-Modified:  Sun Dec 07 22:56:51 +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

>Release-Note:

>Audit-Trail:

Responsible-Changed-From-To: pkg-manager->bouyer
Responsible-Changed-By: obache@NetBSD.org
Responsible-Changed-When: Fri, 05 Dec 2008 12:00:06 +0000
Responsible-Changed-Why:
Over to maintainer.


State-Changed-From-To: open->closed
State-Changed-By: bouyer@NetBSD.org
State-Changed-When: Sun, 07 Dec 2008 22:56:51 +0000
State-Changed-Why:
patch commited, thanks !


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.