summaryrefslogtreecommitdiff
path: root/pkgtools
diff options
context:
space:
mode:
authorjlam <jlam>2006-03-10 22:38:30 +0000
committerjlam <jlam>2006-03-10 22:38:30 +0000
commit91bb4fb460f35cc99a9c6eaca778de96e2532d2a (patch)
treea07a8518997058ff1759ae5e0bc319aecbfee9c8 /pkgtools
parent8145734cd7b7d7b8f112a5155de6955c556f354f (diff)
downloadpkgsrc-91bb4fb460f35cc99a9c6eaca778de96e2532d2a.tar.gz
Use pkginstall to generate the INSTALL script instead.
Diffstat (limited to 'pkgtools')
-rw-r--r--pkgtools/pkg_install/Makefile25
1 files changed, 7 insertions, 18 deletions
diff --git a/pkgtools/pkg_install/Makefile b/pkgtools/pkg_install/Makefile
index 9202fa66bdf..48956bca17d 100644
--- a/pkgtools/pkg_install/Makefile
+++ b/pkgtools/pkg_install/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.123 2006/03/04 21:30:27 jlam Exp $
+# $NetBSD: Makefile,v 1.124 2006/03/10 22:38:30 jlam Exp $
# Notes to package maintainers:
#
@@ -34,8 +34,6 @@ NO_PKGTOOLS_REQD_CHECK= yes
NO_CHECKSUM= yes
NO_MTREE= yes
PKG_PRESERVE= yes
-INSTALL_FILE= ${PKG_DB_TMPDIR}/+INSTALL
-INSTALL_SCRIPTS_ENV+= PKG_PREFIX=${PREFIX:Q}
# These are needed to solve a chicken-and-egg problem where pkgsrc uses
# newer features of pkg_install, but older NetBSD installations won't
@@ -62,6 +60,12 @@ PKG_ADMIN= PKG_DBDIR=${PKG_DBDIR:Q} ${PKG_ADMIN_CMD}
PLIST_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q}
+INSTALL_SRC= ${PKGDIR}/INSTALL
+DEINSTALL_SRC= # empty
+FILES_SUBST+= PKG_DBDIR=${PKG_DBDIR:Q} \
+ PKG_TOOLS_BIN=${PKG_TOOLS_BIN:Q} \
+ MKDIR=${MKDIR:Q}
+
.include "../../mk/bsd.prefs.mk"
PKG_TOOLS_PREFIX= ${PKG_TOOLS_BIN:C|/[^/]?bin$||}
@@ -78,21 +82,6 @@ PKGMANDIR= share/man
do-extract:
@${CP} -R ${FILESDIR} ${WRKSRC}
-post-build:
- ${SED} -e "s|@PKG_DBDIR@|${PKG_DBDIR}|g" \
- -e "s|@PKG_TOOLS_BIN@|${PKG_TOOLS_BIN}|g" \
- -e "s|@MKDIR@|${MKDIR}|g" \
- ${PKGDIR}/INSTALL > ${INSTALL_FILE}
- ${CHMOD} +x ${INSTALL_FILE}
-
-pre-install-script:
- cd ${PKG_DB_TMPDIR} && ${SETENV} ${INSTALL_SCRIPTS_ENV} \
- ${INSTALL_FILE} ${PKGNAME} PRE-INSTALL
-
-post-install-script:
- cd ${PKG_DB_TMPDIR} && ${SETENV} ${INSTALL_SCRIPTS_ENV} \
- ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
-
# XXX Reverse the order that update does things since
# XXX we need pkg_delete built before we can deinstall.
# XXX This should probably be the default order for all packages.