pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/41784: pkgsrc guide 15.2 should mention INSTALL_MAKE_FLAGS



>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
>Originator:     Matthew Sporleder
>Release:        current
>Organization:
mspo.com
>Environment:
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



Home | Main Index | Thread Index | Old Index