Subject: Re: CVS commit: pkgsrc/audio/solfege
To: None <schmonz@netbsd.org>
From: Johnny Lam <jlam@pkgsrc.org>
List: tech-pkg
Date: 01/13/2006 17:17:22
Amitai Schlair wrote:
> Module Name:	pkgsrc
> Committed By:	schmonz
> Date:		Fri Jan 13 21:23:42 UTC 2006
> 
> Modified Files:
> 	pkgsrc/audio/solfege: Makefile PLIST distinfo
> Added Files:
> 	pkgsrc/audio/solfege/patches: patch-ab
> 
> Log Message:
> Install the config file under share/examples/solfege and use
> CONF_FILES to copy it into ${PKG_SYSCONFDIR}, instead of letting
> the package install it directly there. Bump PKGREVISION. This
> should fix the CHECK_FILES error found in Krister's bulk build.

You can usually do this without a patch for most software that uses the 
GNU autotools by adding the following to the package Makefile:

EXAMPLEDIR=		${PREFIX}/share/examples/solfege
INSTALL_MAKE_FLAGS=	${MAKE_FLAGS} sysconfdir=${EXAMPLEDIR}

This will cause "sysconfdir" to be overridden only during the install 
phase, which usually forces the example config files (or anything else 
that may get copied into ${sysconfdir}) to be copied into ${EXAMPLEDIR} 
instead.  See databases/openldap/Makefile for a concrete example of this.

Doing it this way instead of using a patch means one fewer patch to 
maintain :)

	Cheers,

	-- Johnny Lam <jlam@pkgsrc.org>