diff options
Diffstat (limited to 'misc/30upgrade')
-rw-r--r-- | misc/30upgrade/Makefile | 6 | ||||
-rw-r--r-- | misc/30upgrade/pkg-install | 2 | ||||
-rw-r--r-- | misc/30upgrade/pkg-req | 5 |
3 files changed, 11 insertions, 2 deletions
diff --git a/misc/30upgrade/Makefile b/misc/30upgrade/Makefile index 23d1115e09c9..1adb98f65718 100644 --- a/misc/30upgrade/Makefile +++ b/misc/30upgrade/Makefile @@ -3,7 +3,7 @@ # Date created: 17 Dec 1998 # Whom: asami # -# $Id: Makefile,v 1.4 1999/03/10 22:10:50 asami Exp $ +# $Id: Makefile,v 1.5 1999/03/29 07:09:46 asami Exp $ # DISTNAME= 30upgrade-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/30upgrade/pkg-install b/misc/30upgrade/pkg-install index 83a9f3edb0df..8ed8de67d62f 100644 --- a/misc/30upgrade/pkg-install +++ b/misc/30upgrade/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/30upgrade/pkg-req b/misc/30upgrade/pkg-req new file mode 100644 index 000000000000..1eb81c651314 --- /dev/null +++ b/misc/30upgrade/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 |