1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-24 00:45:52 +00:00

(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>
This commit is contained in:
Satoshi Asami 1999-04-21 04:59:59 +00:00
parent 3d41f16670
commit ff9f1c323f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=18041
18 changed files with 66 additions and 12 deletions

View File

@ -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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/221upgrade/pkg-req Normal file
View File

@ -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

View File

@ -3,7 +3,7 @@
# Date created: 18 Apr 1997
# Whom: asami
#
# $Id: Makefile,v 1.4 1999/03/10 22:10:49 asami Exp $
# $Id: Makefile,v 1.5 1999/03/29 07:09:44 asami Exp $
#
DISTNAME= 222upgrade-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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/222upgrade/pkg-req Normal file
View File

@ -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

View File

@ -3,7 +3,7 @@
# Date created: 30 Nov 1997
# 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:45 asami Exp $
#
DISTNAME= 225upgrade-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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/225upgrade/pkg-req Normal file
View File

@ -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

View File

@ -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= 227upgrade-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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/227upgrade/pkg-req Normal file
View File

@ -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

View File

@ -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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/30upgrade/pkg-req Normal file
View File

@ -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

View File

@ -3,7 +3,7 @@
# Date created: 8 Mar 1999
# Whom: asami
#
# $Id: Makefile,v 1.3 1999/03/10 22:10:51 asami Exp $
# $Id: Makefile,v 1.4 1999/03/29 07:09:47 asami Exp $
#
DISTNAME= 31upgrade-1999.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>

View File

@ -2,4 +2,4 @@
if [ "$2" != "PRE-INSTALL" ]; then
exit 0
fi
echo %%VERSION%% > /var/db/pkg/.mkversion
echo %%VERSION%% > /var/db/port.mkversion

5
misc/31upgrade/pkg-req Normal file
View File

@ -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