Subject: pkg/33552: smartmontools uses wrong config file
To: None <pkg-manager@netbsd.org, gnats-admin@netbsd.org,>
From: Kimmo Suominen <kim@tac.nyc.ny.us>
List: pkgsrc-bugs
Date: 05/25/2006 09:35:00
>Number:         33552
>Category:       pkg
>Synopsis:       smartmontools uses wrong config file
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu May 25 09:35:00 +0000 2006
>Originator:     Kimmo Suominen
>Release:        NetBSD 3.99.1 / pkgsrc 2006-05-25
>Organization:
Kimmo Suominen
>Environment:
System: NetBSD hrothgar.gw.com 3.99.1 NetBSD 3.99.1 (GW-GENERIC) #108: Sun Mar 27 21:59:58 EST 2005 kim@hrothgar.gw.com:/usr/src/sys/arch/i386/compile/GW-GENERIC i386
Architecture: i386
Machine: i386
>Description:
Upon starting smartd it logs the following message:

    May 25 10:29:22 hrothgar smartd[14545]: No configuration file /usr/pkg/etc/smartd.conf found, scanning devices

The config file was installed in /etc/smartd.conf

    -rw-r--r--  1 root  wheel  4125 May 25 10:25 /etc/smartd.conf

This location is correct per my mk.conf setting:

    PKG_SYSCONFBASE=/etc

The setting is just apparently not propagated to building the software.
>How-To-Repeat:
Use the above mk.conf setting and build smartmontools, then start smartd.
>Fix: