diff options
author | asami <asami@FreeBSD.org> | 1999-03-29 07:09:48 +0000 |
---|---|---|
committer | asami <asami@FreeBSD.org> | 1999-03-29 07:09:48 +0000 |
commit | 7931da6a896ef8f64aacecf5c67d6c1ffa5af05e (patch) | |
tree | 3389aeddef64feaa6154efa3ce34d1be40c7d404 /misc/225upgrade | |
parent | d72b5028c66e505114e3c9fddd68e2e1193ace57 (diff) | |
download | FreeBSD-ports-7931da6a896ef8f64aacecf5c67d6c1ffa5af05e.zip FreeBSD-ports-7931da6a896ef8f64aacecf5c67d6c1ffa5af05e.tar.gz |
Install /var/db/pkg/.mkversion to check version against bsd.port.mk.
Change IGNORE to FORBIDDEN.
Diffstat (limited to 'misc/225upgrade')
-rw-r--r-- | misc/225upgrade/Makefile | 10 | ||||
-rw-r--r-- | misc/225upgrade/pkg-install | 5 |
2 files changed, 12 insertions, 3 deletions
diff --git a/misc/225upgrade/Makefile b/misc/225upgrade/Makefile index b3e450f..98a580e 100644 --- a/misc/225upgrade/Makefile +++ b/misc/225upgrade/Makefile @@ -3,7 +3,7 @@ # Date created: 30 Nov 1997 # Whom: asami # -# $Id: Makefile,v 1.3 1999/03/09 20:57:22 asami Exp $ +# $Id: Makefile,v 1.4 1999/03/10 22:10:50 asami Exp $ # DISTNAME= 225upgrade-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/225upgrade/pkg-install b/misc/225upgrade/pkg-install new file mode 100644 index 0000000..83a9f3e --- /dev/null +++ b/misc/225upgrade/pkg-install @@ -0,0 +1,5 @@ +#!/bin/sh +if [ "$2" != "PRE-INSTALL" ]; then + exit 0 +fi +echo %%VERSION%% > /var/db/pkg/.mkversion |