summaryrefslogtreecommitdiff
path: root/ports-mgmt/pkg_install
diff options
context:
space:
mode:
authorJoe Marcus Clarke <marcus@FreeBSD.org>2003-09-02 02:05:41 +0000
committerJoe Marcus Clarke <marcus@FreeBSD.org>2003-09-02 02:05:41 +0000
commit7e13ce1c3d27ab7534a4cb6a6b1fce0111a8ff58 (patch)
treefa216e7133900e5cc83a4302948676bf760f8355 /ports-mgmt/pkg_install
parentUpdate URLs, from oarcorp.com to rtems.com (diff)
* Remove a dependency on bzip2
* Roll our own deinstall code since we get into a sticky situation when we try to use the new code [1] Reported by: Oliver Eikemeier <eikemeier@fillmore-labs.com>
Notes
Notes: svn path=/head/; revision=88313
Diffstat (limited to 'ports-mgmt/pkg_install')
-rw-r--r--ports-mgmt/pkg_install/Makefile10
-rw-r--r--ports-mgmt/pkg_install/distinfo2
2 files changed, 10 insertions, 2 deletions
diff --git a/ports-mgmt/pkg_install/Makefile b/ports-mgmt/pkg_install/Makefile
index 28bd914e772c..4d9616922cc4 100644
--- a/ports-mgmt/pkg_install/Makefile
+++ b/ports-mgmt/pkg_install/Makefile
@@ -15,7 +15,6 @@ MASTER_SITE_SUBDIR= marcus
MAINTAINER= portmgr@freebsd.org
COMMENT= FreeBSD 5.x version of the package tools for older system releases
-USE_BZIP2= yes
MANCOMPRESSED= yes
MAN1= pkg_add.1 pkg_create.1 pkg_delete.1 \
@@ -47,4 +46,13 @@ pre-configure:
-e 's,%%MANPREFIX%%,${MANPREFIX},g' \
${FILESDIR}/Makefile.inc > ${WRKDIR}/Makefile.inc
+deinstall:
+ @if ${PKG_INFO} -e ${PKGNAME}; then \
+ ${PKG_DELETE} -f ${PKGNAME}; \
+ else \
+ ${ECHO_MSG} "===> ${PKGNAME} not installed; skipping"; \
+ fi
+.endif
+ @${RM} -f ${INSTALL_COOKIE} ${PACKAGE_COOKIE}
+
.include <bsd.port.post.mk>
diff --git a/ports-mgmt/pkg_install/distinfo b/ports-mgmt/pkg_install/distinfo
index 1be684082316..a6a2867d34e5 100644
--- a/ports-mgmt/pkg_install/distinfo
+++ b/ports-mgmt/pkg_install/distinfo
@@ -1 +1 @@
-MD5 (pkg_install-20030714.tar.bz2) = dd98b0275c6bb1e31089e67ea18f22b6
+MD5 (pkg_install-20030714.tar.gz) = 183bed34c5427aeaf2025d9e2176e9ed