summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--doc/guide/files/fixes.xml24
-rw-r--r--mk/install/bsd.pkginstall.mk15
-rw-r--r--mk/plist/plist.mk21
3 files changed, 9 insertions, 51 deletions
diff --git a/doc/guide/files/fixes.xml b/doc/guide/files/fixes.xml
index 4bfcbf8d6d1..b94c06d65c2 100644
--- a/doc/guide/files/fixes.xml
+++ b/doc/guide/files/fixes.xml
@@ -1,4 +1,4 @@
-<!-- $NetBSD: fixes.xml,v 1.50 2006/04/08 07:43:41 reed Exp $ -->
+<!-- $NetBSD: fixes.xml,v 1.51 2006/04/16 04:27:18 jlam Exp $ -->
<chapter id="fixes"> <?dbhtml filename="fixes.html"?>
<title>Making your package work</title>
@@ -1148,25 +1148,9 @@
located. <varname>PKGINFODIR</varname> defaults to
<quote>info</quote> and can be overridden by the user.</para>
- <para>There are two mutually exclusive ways to specify the info
- files for the package:</para>
-
- <itemizedlist>
- <listitem>
- <para>list each of info files in the package
- <filename>PLIST</filename>; however any split info files
- need not be listed, or</para>
- </listitem>
-
- <listitem>
- <para>list the filename of each info file in the
- <varname>INFO_FILES</varname> variable; however any split
- info file filenames need not be listed. In this case
- each of the info files should be installed into the
- directory <filename>${PREFIX}/${PKGINFODIR}</filename>.</para>
- </listitem>
-
- </itemizedlist>
+ <para>The info files for the package should be listed in the
+ package <filename>PLIST</filename>; however any split info files
+ need not be listed.</para>
<para>A package which needs the <quote>makeinfo</quote> command
at build time must add <quote>makeinfo</quote> to
diff --git a/mk/install/bsd.pkginstall.mk b/mk/install/bsd.pkginstall.mk
index ba4538df970..bb38461922b 100644
--- a/mk/install/bsd.pkginstall.mk
+++ b/mk/install/bsd.pkginstall.mk
@@ -1,4 +1,4 @@
-# $NetBSD: bsd.pkginstall.mk,v 1.45 2006/04/06 17:57:34 jlam Exp $
+# $NetBSD: bsd.pkginstall.mk,v 1.46 2006/04/16 04:27:17 jlam Exp $
#
# This Makefile fragment is included by bsd.pkg.mk and implements the
# common INSTALL/DEINSTALL scripts framework. To use the pkginstall
@@ -488,17 +488,8 @@ FILES_SUBST+= INSTALL_INFO=${INSTALL_INFO:Q}
${_INSTALL_INFO_FILES_DATAFILE}:
${_PKG_SILENT}${_PKG_DEBUG}${MKDIR} ${.TARGET:H}
- ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${.TARGET}.tmp
- ${_PKG_SILENT}${_PKG_DEBUG} \
- set -- dummy ${INFO_FILES}; shift; \
- exec 1>>${.TARGET}.tmp; \
- while ${TEST} $$# -gt 0; do \
- file="$$1"; shift; \
- file=${PKGINFODIR:Q}"/$$file"; \
- ${ECHO} "# INFO: $$file"; \
- done
- ${_PKG_SILENT}${_PKG_DEBUG}${MV} -f ${.TARGET}.tmp ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${RM} -f ${.TARGET}
+ ${_PKG_SILENT}${_PKG_DEBUG}${TOUCH} ${TOUCH_ARGS} ${.TARGET}
${_INSTALL_INFO_FILES_FILE}: ${_INSTALL_INFO_FILES_DATAFILE}
${_INSTALL_INFO_FILES_FILE}: ../../mk/install/info-files
diff --git a/mk/plist/plist.mk b/mk/plist/plist.mk
index e831679bf74..b52c3adac65 100644
--- a/mk/plist/plist.mk
+++ b/mk/plist/plist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: plist.mk,v 1.8 2006/04/05 05:54:01 jlam Exp $
+# $NetBSD: plist.mk,v 1.9 2006/04/16 04:27:18 jlam Exp $
#
# This Makefile fragment handles the creation of PLISTs for use by
# pkg_create(8).
@@ -173,18 +173,6 @@ _SHLIB_TYPE_cmd= \
#
GENERATE_PLIST?= ${TRUE};
-# XXX Generate info page entries for each of the listed INFO_FILES.
-# XXX This section should go away after info file listings have been
-# XXX pushed into the PLISTs.
-# XXX
-.if defined(INFO_FILES) && !empty(INFO_FILES)
-. for _file_ in ${INFO_FILES}
-_INFO_GENERATE_PLIST+= ${ECHO} "info/"${_file_:Q};
-. endfor
-.else
-_INFO_GENERATE_PLIST= ${TRUE};
-.endif
-
.if ${PKG_INSTALLATION_TYPE} == "pkgviews"
#
# _PLIST_IGNORE_FILES basically mirrors the list of ignored files found
@@ -224,8 +212,7 @@ _GENERATE_PLIST= \
${SED} -e "s|^${PREFIX}/|@unexec ${RMDIR} -p %D/|" \
-e "s,$$, 2>/dev/null || ${TRUE},";
.else
-_GENERATE_PLIST= { ${_INFO_GENERATE_PLIST} }; \
- ${CAT} ${PLIST_SRC}; \
+_GENERATE_PLIST= ${CAT} ${PLIST_SRC}; \
${GENERATE_PLIST}
.endif
@@ -243,12 +230,8 @@ ${PLIST}:
> ${.TARGET}
.if defined(INFO_FILES)
-. if empty(INFO_FILES)
INFO_FILES_cmd= \
${CAT} ${PLIST} | \
${SETENV} ${_PLIST_AWK_ENV} ${AWK} ${_PLIST_INFO_AWK} | \
${AWK} '($$0 !~ "-[0-9]*(\.gz)?$$") { print }'
-. else
-INFO_FILES_cmd= ${TRUE}
-. endif
.endif