NetBSD Problem Report #41784
From www@NetBSD.org Sun Jul 26 13:30:01 2009
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
by www.NetBSD.org (Postfix) with ESMTP id 3CC0D63B8E9
for <gnats-bugs@gnats.netbsd.org>; Sun, 26 Jul 2009 13:30:01 +0000 (UTC)
Message-Id: <20090726133000.A410E63B8DB@www.NetBSD.org>
Date: Sun, 26 Jul 2009 13:30:00 +0000 (UTC)
From: msporleder@gmail.com
Reply-To: msporleder@gmail.com
To: gnats-bugs@NetBSD.org
Subject: pkgsrc guide 15.2 should mention INSTALL_MAKE_FLAGS
X-Send-Pr-Version: www-1.0
>Number: 41784
>Category: pkg
>Synopsis: pkgsrc guide 15.2 should mention INSTALL_MAKE_FLAGS
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: doc-bug
>Submitter-Id: net
>Arrival-Date: Sun Jul 26 13:35:00 +0000 2009
>Last-Modified: Sun Mar 27 17:21:37 +0000 2011
>Originator: Matthew Sporleder
>Release: current
>Organization:
mspo.com
>Environment:
NetBSD 5.99.11
>Description:
Section 15.2 of the pkgsrc guide gives a good intro to handling config files when making a pkg, but fails to mention the following clearly:
the conf file needs to end up in +FILES of the installed pkg so that it's checked before deleting but the default config file should go into the examples/ hierarchy.
And also fails to mention the easiest way to make that happen:
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} sysconfdir=${EGDIR:Q} can be added to the Makefile if EGDIR is defined as EGDIR= ${PREFIX}/share/examples/${PKGBASE}
And a good thing to add would be:
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}/${PKGBASE}
MAKE_DIRS+= ${PKG_SYSCONFDIR:Q}/${PKGBASE}
The directory must be made since INSTALL was overridden and will not make it automatically. (but that's somewhat optional because you could just use PKG_SYSCONFDIR without the PKGBASE)
>How-To-Repeat:
visit http://www.netbsd.org/docs/pkgsrc/pkginstall.html
>Fix:
see description
>Release-Note:
>Audit-Trail:
[20110327 shattered] edited Environment: field
From: "OBATA Akio" <obache@netbsd.org>
To: gnats-bugs@netbsd.org
Cc:
Subject: Re: pkg/41784: pkgsrc guide 15.2 should mention INSTALL_MAKE_FLAGS
Date: Mon, 27 Jul 2009 08:59:36 +0900
On Sun, 26 Jul 2009 22:35:00 +0900, <msporleder@gmail.com> wrote:
> And a good thing to add would be:
> CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}/${PKGBASE}
> MAKE_DIRS+= ${PKG_SYSCONFDIR:Q}/${PKGBASE}
For this, followings should be used instead:
PKG_SYSCONFSUBDIR= ${PKGBASE}
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
--
"Of course I love NetBSD":-)
OBATA Akio / obache@NetBSD.org
>Unformatted:
(Contact us)
$NetBSD: query-full-pr,v 1.36 2007/11/24 03:27:39 kano Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007
The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.