freebsd-ports/ports-mgmt/portupgrade/Makefile

80 lines
1.9 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: portupgrade
# Date created: 18 March 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= portupgrade
Update to 20011006 with many improvements. Beware, there can probably be some bugs left in the new pkgdb code. In such a case please run "pkgdb -fu" to fix the situation. overall: Utilize pkgdb better and optimize. portupgrade: Do not scan packages all at once when -P is given, but find one per request. [Requested by: Hideaki OKADA <hokada@isl.melco.co.jp>] Create a backup package record in tmpdir instead of pkgdbdir, in order not to update pkgdbdir's mtime. Rephrase/add messages. portinstall: Commit major changes and improvements over portinstall. Now it warns and asks the user for confirmation if a port is being installed when a package of the same origin is already installed. Upgrade all the required packages before installing a new port. [Requested by: Hajimu UMEMOTO <ume@mahoroba.org>] Do not install ports immediately but queue them up, then install them after upgrading all the specified and required packages. pkgdb: Record pkgname <=> origin mapping in the pkgdb and make full use of it instead of repeatedly calling pkg_info -o which has undesirable overheads. Make portupgrade, pkg_deinstall update the pkgdb after they install/deinstall packages or modify package records. Integrate pkgdepfix(1) within. (pkgdb -F/--fix) Add -o/--origin, which looks up an origin of a package in pkgdb. Detect added/deleted/reinstalled packages more strictly so pkgdb can keep being sane and consistent. Do not fail over a small conflict found during updating pkgdb; portupgrade should not be aborted by such a minor problem. pkgdepfix: Obsolete -o and turn -o on by default. Now we can look up an origin of a package so quickly thanks to the pkgdb. Integrate into pkgdb(1). (pkgdb -F/--fix) portsdb: A date spec is not a valid ports glob; emit a warning if specified. [Found by: Hajimu UMEMOTO <ume@mahoroba.org>]
2001-10-06 17:52:58 +02:00
PORTVERSION= 20011006
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
MASTER_SITE_SUBDIR= knu
Update to 20011006 with many improvements. Beware, there can probably be some bugs left in the new pkgdb code. In such a case please run "pkgdb -fu" to fix the situation. overall: Utilize pkgdb better and optimize. portupgrade: Do not scan packages all at once when -P is given, but find one per request. [Requested by: Hideaki OKADA <hokada@isl.melco.co.jp>] Create a backup package record in tmpdir instead of pkgdbdir, in order not to update pkgdbdir's mtime. Rephrase/add messages. portinstall: Commit major changes and improvements over portinstall. Now it warns and asks the user for confirmation if a port is being installed when a package of the same origin is already installed. Upgrade all the required packages before installing a new port. [Requested by: Hajimu UMEMOTO <ume@mahoroba.org>] Do not install ports immediately but queue them up, then install them after upgrading all the specified and required packages. pkgdb: Record pkgname <=> origin mapping in the pkgdb and make full use of it instead of repeatedly calling pkg_info -o which has undesirable overheads. Make portupgrade, pkg_deinstall update the pkgdb after they install/deinstall packages or modify package records. Integrate pkgdepfix(1) within. (pkgdb -F/--fix) Add -o/--origin, which looks up an origin of a package in pkgdb. Detect added/deleted/reinstalled packages more strictly so pkgdb can keep being sane and consistent. Do not fail over a small conflict found during updating pkgdb; portupgrade should not be aborted by such a minor problem. pkgdepfix: Obsolete -o and turn -o on by default. Now we can look up an origin of a package so quickly thanks to the pkgdb. Integrate into pkgdb(1). (pkgdb -F/--fix) portsdb: A date spec is not a valid ports glob; emit a warning if specified. [Found by: Hajimu UMEMOTO <ume@mahoroba.org>]
2001-10-06 17:52:58 +02:00
DISTNAME= pkgtools-${PORTVERSION}
Update to 20011006 with many improvements. Beware, there can probably be some bugs left in the new pkgdb code. In such a case please run "pkgdb -fu" to fix the situation. overall: Utilize pkgdb better and optimize. portupgrade: Do not scan packages all at once when -P is given, but find one per request. [Requested by: Hideaki OKADA <hokada@isl.melco.co.jp>] Create a backup package record in tmpdir instead of pkgdbdir, in order not to update pkgdbdir's mtime. Rephrase/add messages. portinstall: Commit major changes and improvements over portinstall. Now it warns and asks the user for confirmation if a port is being installed when a package of the same origin is already installed. Upgrade all the required packages before installing a new port. [Requested by: Hajimu UMEMOTO <ume@mahoroba.org>] Do not install ports immediately but queue them up, then install them after upgrading all the specified and required packages. pkgdb: Record pkgname <=> origin mapping in the pkgdb and make full use of it instead of repeatedly calling pkg_info -o which has undesirable overheads. Make portupgrade, pkg_deinstall update the pkgdb after they install/deinstall packages or modify package records. Integrate pkgdepfix(1) within. (pkgdb -F/--fix) Add -o/--origin, which looks up an origin of a package in pkgdb. Detect added/deleted/reinstalled packages more strictly so pkgdb can keep being sane and consistent. Do not fail over a small conflict found during updating pkgdb; portupgrade should not be aborted by such a minor problem. pkgdepfix: Obsolete -o and turn -o on by default. Now we can look up an origin of a package so quickly thanks to the pkgdb. Integrate into pkgdb(1). (pkgdb -F/--fix) portsdb: A date spec is not a valid ports glob; emit a warning if specified. [Found by: Hajimu UMEMOTO <ume@mahoroba.org>]
2001-10-06 17:52:58 +02:00
#PATCH_SITES= ${MASTER_SITES}
#PATCHFILES= pkgtools-${PORTVERSION}.1.patch.gz
MAINTAINER= knu@FreeBSD.org
RUN_DEPENDS= ${RUBY_SITELIBDIR}/optparse.rb:${PORTSDIR}/devel/ruby-optparse \
${RUBY_SITEARCHLIBDIR}/fnmatch.so:${PORTSDIR}/devel/ruby-fnmatch \
${RUBY_SITELIBDIR}/uri.rb:${PORTSDIR}/net/ruby-uri \
${LOCALBASE}/sbin/pkg_tarup:${PORTSDIR}/misc/pkg_tarup
USE_RUBY= yes
RUBY_SHEBANG_FILES= \
${WRKSRC}/pkg_fetch \
${WRKSRC}/pkg_glob \
${WRKSRC}/pkgdb \
${WRKSRC}/portcvsweb \
${WRKSRC}/portsclean \
${WRKSRC}/portsdb \
${WRKSRC}/portupgrade \
${WRKSRC}/portversion
NO_BUILD= yes
MAN1= pkg_deinstall.1 \
pkg_fetch.1 \
pkg_glob.1 \
pkg_which.1 \
portcvsweb.1 \
ports_glob.1 \
portsclean.1 \
portsdb.1 \
portupgrade.1 \
portversion.1
MLINKS= pkgdb.1 pkg_which.1 \
portupgrade.1 portinstall.1 \
portsdb.1 ports_glob.1
MANCOMPRESSED= yes
DOCS= ChangeLog README
EXAMPLESDIR= ${PREFIX}/share/examples/${PORTNAME}
post-patch:
.for f in pkgdb.rb pkgtools.rb
${RUBY} -i~ -pe 'sub %r:/usr/local:, "${LOCALBASE}"' ${WRKSRC}/${f}
.endfor
do-install:
cd ${WRKSRC} && ${RUBY} install.rb
${MKDIR} ${PREFIX}/share/zsh/site-functions
${INSTALL_DATA} ${WRKSRC}/misc/zsh/* ${PREFIX}/share/zsh/site-functions/
${MKDIR} ${EXAMPLESDIR}/bash
${INSTALL_DATA} ${WRKSRC}/misc/bash/* ${EXAMPLESDIR}/bash/
${MKDIR} ${EXAMPLESDIR}/tcsh
${INSTALL_DATA} ${WRKSRC}/misc/tcsh/* ${EXAMPLESDIR}/tcsh/
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>