freebsd-ports/ports-mgmt/portupgrade-devel/Makefile
Akinori MUSHA 90003baa60 Update to 20011027, the latest and greatest release ever, with lots of
people's help.  Thanks so much!

portupgrade:

- D'oh!  Fix a stupid bug where portupgrade didn't modify
  dependencies when upgrading a package while portupgrade _is_ meant
  to do that. ;)  But you don't need to worry: `pkgdb -F' can always
  handle that situation.

  This bug had been there since 2 October, and was finally exposed by
  the newly introduced dependency sanity checks.  I guess you has been
  annoyed by the warnings, but they are gone now. ;)

  Reported by:	Ollivier Robert <roberto@eurocontrol.fr>

- Make portupgrade download packages from a remote site if -P is
  specified. Now one can do binary upgrading in a handy way:

    portupgrade -P foo bar

  Instead of:

    portupgrade -FP foo bar && portupgrade -P foo bar

  Although the latter is friendlier to dialup users.

- Add a delay between deinstallation and installation to let pkgdb
  properly detect the update of PKG_DBDIR entries.

- Since pkg_add(1) is mute, always show a progress message when
  invoking it no matter whether -v is given or not.

- Make -f override "hold" marks set in pkgtools.conf.

pkgdb:

- Since the dbm routines in libc seem to dead lock in some cases,
  slightly change the DB format and bump the DB version accordingly.

  Reported by: Ollivier Robert <roberto@eurocontrol.fr> and others

- Make sure to check DB version when checking for a DB. (-u)

pkg_fetch, pkgdb, portsclean, portsdb:

- Make them read the configuration file and add the -q/--no-config
  option just as other tools.

pkgtools.conf:

- Add examples for PKG_FETCH, PACKAGEROOT and PACKAGESITE.

- Introduce new configuration variables: IGNORE_CATEGORIES and
  EXTRA_CATEGORIES.

- Now one can set common environment variables in this file.

- Now all the tools read this file by default.

overall:

- Reword and enhance the manual pages and the usage instructions.

- Clarify the explanation about port/package dependency.

  Submitted by:	Jos Backus <josb@cncdsl.com> (Thanks a lot!)
2001-10-26 18:16:18 +00:00

83 lines
2 KiB
Makefile

# New ports collection makefile for: portupgrade
# Date created: 18 March 2001
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
#
# $FreeBSD$
#
PORTNAME= portupgrade
PORTVERSION= 20011027
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL} \
http://www.iDaemons.org/distfiles/
MASTER_SITE_SUBDIR= knu
DISTNAME= pkgtools-${PORTVERSION}
#PATCH_SITES= ${MASTER_SITES}
#PATCHFILES= pkgtools-${PORTVERSION}.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 \
pkgdb.1 \
portcvsweb.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/
# Remove old database
${RM} -f /var/db/pkg/pkgdb.byfile.db
if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \
${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \
fi
.if !defined(NOPORTDOCS)
${MKDIR} ${DOCSDIR}
.for f in ${DOCS}
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
.endfor
.endif
.include <bsd.port.mk>