summaryrefslogtreecommitdiff
path: root/sysutils/cfengine2-doc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2006-04-07 19:54:16 +0000
committerjlam <jlam@pkgsrc.org>2006-04-07 19:54:16 +0000
commit90bc26e8c27e484538f0b194e2b72107fb51be8d (patch)
tree05135df3032ad91c4e15c3426ff6558fa974a643 /sysutils/cfengine2-doc
parent9d9635b43c0b90406ec6115a2e5c39d41b20c458 (diff)
downloadpkgsrc-90bc26e8c27e484538f0b194e2b72107fb51be8d.tar.gz
List info files directly in the PLIST and honor PKG{INFO,MAN}DIR.
Diffstat (limited to 'sysutils/cfengine2-doc')
-rw-r--r--sysutils/cfengine2-doc/Makefile16
-rw-r--r--sysutils/cfengine2-doc/PLIST5
2 files changed, 13 insertions, 8 deletions
diff --git a/sysutils/cfengine2-doc/Makefile b/sysutils/cfengine2-doc/Makefile
index f59ef7d702f..a0cf24b8651 100644
--- a/sysutils/cfengine2-doc/Makefile
+++ b/sysutils/cfengine2-doc/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2005/06/17 03:50:33 jlam Exp $
+# $NetBSD: Makefile,v 1.8 2006/04/07 19:54:16 jlam Exp $
#
PKGNAME= cfengine-doc-${CFENGINE_VERSION}
@@ -10,14 +10,16 @@ COMMENT= Documentation for cfengine
NO_CONFIGURE= yes
NO_BUILD= yes
-INFO_FILES= cfengine-Reference.info cfengine-Tutorial.info
-INFO_FILES+= cfengine-Anomalies.info
+INFO_FILES= # PLIST
-INSTALLATION_DIRS= info
+HTMLDIR= ${PREFIX}/share/doc/html/cfengine
+INSTALLATION_DIRS= ${PKGINFODIR} ${HTMLDIR}
do-install:
- ${INSTALL_DATA} ${WRKSRC}/doc/cfengine-*.info* ${PREFIX}/info
- ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/html/cfengine
- ${INSTALL_DATA} ${WRKSRC}/doc/cfengine-*.html ${PREFIX}/share/doc/html/cfengine
+ cd ${WRKSRC}/doc; for f in *.info *.info-[0-9]*; do \
+ ${TEST} ! -f "$$f" || \
+ ${INSTALL_DATA} "$$f" ${PREFIX}/${PKGINFODIR}; \
+ done
+ ${INSTALL_DATA} ${WRKSRC}/doc/cfengine-*.html ${HTMLDIR}
.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/cfengine2-doc/PLIST b/sysutils/cfengine2-doc/PLIST
index 3e14978a119..c9a4ca7eb66 100644
--- a/sysutils/cfengine2-doc/PLIST
+++ b/sysutils/cfengine2-doc/PLIST
@@ -1,4 +1,7 @@
-@comment $NetBSD: PLIST,v 1.6 2004/09/23 22:50:59 ben Exp $
+@comment $NetBSD: PLIST,v 1.7 2006/04/07 19:54:16 jlam Exp $
+info/cfengine-Anomalies.info
+info/cfengine-Reference.info
+info/cfengine-Tutorial.info
share/doc/html/cfengine/cfengine-Anomalies.html
share/doc/html/cfengine/cfengine-Reference.html
share/doc/html/cfengine/cfengine-Tutorial.html