freebsd-ports/sysutils/portupgrade/Makefile
Akinori MUSHA 145882753d Update to 20011024.
portupgrade, portversion, pkg_deinstall, pkg_glob:

  Introduce the configuration file `pkgtools.conf' for the pkgtools
  suite.  Currently portupgrade(1), portversion(1), pkg_deinstall(1)
  and pkg_glob(1) use it.

  Add a new option -q/--no-config to avoid reading the configuration
  file.

  Introduce dependency sanity checks.  If an inconsistency is
  detected, immediately abort a process suggesting the user should run
  `pkgdb -F'.

  Add a new option -O/--omit-check to omit the sanity checks.

pkgdb:

  Fix the origin guesser's minor bug when the origin port directory
  does not exist.

portupgrade:

  Add a new option -y/--yes, which lets portupgrade assume user
  answers yes to all the questions.

  Make sure to ask user where it should. (Get -N and -i right)

  Fix a bug where portinstall -i didn't work interactively.
  [Submitted by: Gregory Neil Shapiro <gshapiro@gshapiro.net>]

portsdb:

  Attempt to offer fast INDEX generation.  Now it generates an INDEX
  file more than a few minutes faster.

overall:

  Emit a warning when pkgdb cannot be updated though it is not
  up-to-date.

  Finally remove -E/--regex.  Use the ':RE' glob pattern instead.
2001-10-24 13:08:20 +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= 20011024
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>