summaryrefslogtreecommitdiff
path: root/misc/ppower
diff options
context:
space:
mode:
authordsainty <dsainty@pkgsrc.org>2006-10-25 12:44:26 +0000
committerdsainty <dsainty@pkgsrc.org>2006-10-25 12:44:26 +0000
commite627933b1f700ded832088b761968f657fb3dfae (patch)
tree97d8f4fa5e523669b125227915314f359be0b64b /misc/ppower
parente7332fd614f213aa8c30e8a6a666f790240dd7b7 (diff)
downloadpkgsrc-e627933b1f700ded832088b761968f657fb3dfae.tar.gz
Use the CONF_FILES mechanism to automatically install the example configuration.
Diffstat (limited to 'misc/ppower')
-rw-r--r--misc/ppower/MESSAGE6
-rw-r--r--misc/ppower/Makefile5
2 files changed, 7 insertions, 4 deletions
diff --git a/misc/ppower/MESSAGE b/misc/ppower/MESSAGE
index 4104d6bc6d8..e09b27a5265 100644
--- a/misc/ppower/MESSAGE
+++ b/misc/ppower/MESSAGE
@@ -1,8 +1,8 @@
===========================================================================
-$NetBSD: MESSAGE,v 1.1.1.1 2005/02/26 13:09:11 dsainty Exp $
+$NetBSD: MESSAGE,v 1.2 2006/10/25 12:44:26 dsainty Exp $
-You will need to create a ${PKG_SYSCONFDIR}/ppower.conf file that matches
-your environment.
+You will need to update ${PKG_SYSCONFDIR}/ppower.conf to match
+your X10 environment.
See the file ${PREFIX}/share/examples/ppower/ppower.conf for an example
configuration.
diff --git a/misc/ppower/Makefile b/misc/ppower/Makefile
index b088dea319b..c66fe622a94 100644
--- a/misc/ppower/Makefile
+++ b/misc/ppower/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.5 2006/06/09 16:05:11 minskim Exp $
+# $NetBSD: Makefile,v 1.6 2006/10/25 12:44:26 dsainty Exp $
#
DISTNAME= ppower-0.1.5
@@ -16,6 +16,9 @@ USE_TOOLS+= lex
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
+EGDIR= ${PREFIX}/share/examples/ppower
+CONF_FILES+= ${EGDIR}/ppower.conf ${PKG_SYSCONFDIR}/ppower.conf
+
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ppower
${INSTALL_DATA} \