aboutsummaryrefslogtreecommitdiff
path: root/misc/221upgrade
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-04-21 04:59:59 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-04-21 04:59:59 +0000
commitff9f1c323fc2f93c1047b8e922f214c6658645c8 (patch)
tree4f3494c52c6771fcc2f278c305104a59e83b6c84 /misc/221upgrade
parent3d41f16670f3ecbc809209c75a6571d87a054a96 (diff)
downloadports-ff9f1c323fc2f93c1047b8e922f214c6658645c8.tar.gz
ports-ff9f1c323fc2f93c1047b8e922f214c6658645c8.zip
(1) Move /var/db/pkg/.mkversion to /var/db/port.mkversion.
Requested by: jkh (2) Don't let user pkg_delete the "upgrade kits". Requested by: Toshihiko Kodama <kodama@ayame.mfd.cs.fujitsu.co.jp>
Notes
Notes: svn path=/head/; revision=18041
Diffstat (limited to 'misc/221upgrade')
-rw-r--r--misc/221upgrade/Makefile6
-rw-r--r--misc/221upgrade/pkg-install2
-rw-r--r--misc/221upgrade/pkg-req5
3 files changed, 11 insertions, 2 deletions
diff --git a/misc/221upgrade/Makefile b/misc/221upgrade/Makefile
index b5d121bd7cbb..3772bb511cbc 100644
--- a/misc/221upgrade/Makefile
+++ b/misc/221upgrade/Makefile
@@ -3,7 +3,7 @@
# Date created: 18 Apr 1997
# Whom: asami
#
-# $Id: Makefile,v 1.4 1999/03/10 22:10:47 asami Exp $
+# $Id: Makefile,v 1.5 1999/03/29 07:09:42 asami Exp $
#
DISTNAME= 221upgrade-1998.03.08
@@ -28,4 +28,8 @@ do-install:
${SED} -e "s/%%VERSION%%/${BSDPORTMKVERSION}/" ${PKGDIR}/INSTALL \
> ${PKGINSTALL}
+deinstall:
+ @${ECHO} "You can't delete this port."
+ @${FALSE}
+
.include <bsd.port.post.mk>
diff --git a/misc/221upgrade/pkg-install b/misc/221upgrade/pkg-install
index 83a9f3edb0df..8ed8de67d62f 100644
--- a/misc/221upgrade/pkg-install
+++ b/misc/221upgrade/pkg-install
@@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
-echo %%VERSION%% > /var/db/pkg/.mkversion
+echo %%VERSION%% > /var/db/port.mkversion
diff --git a/misc/221upgrade/pkg-req b/misc/221upgrade/pkg-req
new file mode 100644
index 000000000000..1eb81c651314
--- /dev/null
+++ b/misc/221upgrade/pkg-req
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ $2 = "DEINSTALL" ]; then
+ echo "Package $1 cannot be removed -- to do so will render your system useless."
+ exit 1
+fi