summaryrefslogtreecommitdiff
path: root/misc/221upgrade
diff options
context:
space:
mode:
authorSatoshi Asami <asami@FreeBSD.org>1999-03-29 07:09:48 +0000
committerSatoshi Asami <asami@FreeBSD.org>1999-03-29 07:09:48 +0000
commit3054f9a583100a7152e316ba207297d947235d2f (patch)
treee1fda7961706d0e96baa1744e234af53823370f3 /misc/221upgrade
parent(1) Move _sedsubplist generation later, just before it is used. The (diff)
Install /var/db/pkg/.mkversion to check version against bsd.port.mk.
Change IGNORE to FORBIDDEN.
Notes
Notes: svn path=/head/; revision=17428
Diffstat (limited to 'misc/221upgrade')
-rw-r--r--misc/221upgrade/Makefile10
-rw-r--r--misc/221upgrade/pkg-install5
2 files changed, 12 insertions, 3 deletions
diff --git a/misc/221upgrade/Makefile b/misc/221upgrade/Makefile
index 895ff9304e6c..b5d121bd7cbb 100644
--- a/misc/221upgrade/Makefile
+++ b/misc/221upgrade/Makefile
@@ -3,7 +3,7 @@
# Date created: 18 Apr 1997
# Whom: asami
#
-# $Id: Makefile,v 1.3 1999/03/09 20:57:18 asami Exp $
+# $Id: Makefile,v 1.4 1999/03/10 22:10:47 asami Exp $
#
DISTNAME= 221upgrade-1998.03.08
@@ -17,11 +17,15 @@ MAINTAINER= asami@Freebsd.ORG
.if !defined(PACKAGE_BUILDING)
BROKEN= this \"port\" is for building packages for distribution only, please get the package from http://www.freebsd.org/ports/ if you need an upgrade
.elif ${OSVERSION} >= 300000
-IGNORE= this needs to be built on a 2.2-stable system
+FORBIDDEN= this needs to be built on a 2.2-stable system
.endif
NO_MTREE= yes
PREFIX= /
NO_BUILD= yes
-NO_INSTALL= yes
+PKGINSTALL= ${WRKDIR}/INSTALL
+
+do-install:
+ ${SED} -e "s/%%VERSION%%/${BSDPORTMKVERSION}/" ${PKGDIR}/INSTALL \
+ > ${PKGINSTALL}
.include <bsd.port.post.mk>
diff --git a/misc/221upgrade/pkg-install b/misc/221upgrade/pkg-install
new file mode 100644
index 000000000000..83a9f3edb0df
--- /dev/null
+++ b/misc/221upgrade/pkg-install
@@ -0,0 +1,5 @@
+#!/bin/sh
+if [ "$2" != "PRE-INSTALL" ]; then
+ exit 0
+fi
+echo %%VERSION%% > /var/db/pkg/.mkversion