2001-03-18 00:06:40 +01:00
|
|
|
# New ports collection makefile for: portupgrade
|
|
|
|
# Date created: 18 March 2001
|
|
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= portupgrade
|
2004-01-14 08:23:19 +01:00
|
|
|
PORTVERSION= 20040113
|
2001-03-18 00:06:40 +01:00
|
|
|
CATEGORIES= sysutils
|
2002-10-05 14:34:04 +02:00
|
|
|
MASTER_SITES= ftp://ftp.iDaemons.org/pub/distfiles/ \
|
2002-08-31 17:39:38 +02:00
|
|
|
${MASTER_SITE_LOCAL}
|
2001-03-18 00:06:40 +01:00
|
|
|
MASTER_SITE_SUBDIR= knu
|
2002-08-05 13:10:41 +02:00
|
|
|
DISTNAME= pkgtools-${DISTVERSION}
|
2001-09-07 09:25:47 +02:00
|
|
|
|
2003-04-26 23:31:11 +02:00
|
|
|
DISTVERSION= 20030427
|
2002-08-05 13:10:41 +02:00
|
|
|
|
|
|
|
.if ${DISTVERSION} != ${PORTVERSION}
|
2002-03-26 16:28:40 +01:00
|
|
|
PATCH_SITES= ${MASTER_SITES}
|
|
|
|
PATCH_SITE_SUBDIR= ${MASTER_SITE_SUBDIR}
|
2004-01-14 08:23:19 +01:00
|
|
|
PATCHFILES= ${DISTNAME}-20030723.diff.bz2 \
|
|
|
|
pkgtools-20030723-${PORTVERSION}.diff.bz2
|
2002-03-26 16:28:40 +01:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2002-08-05 13:10:41 +02:00
|
|
|
.endif
|
2001-03-18 00:06:40 +01:00
|
|
|
|
|
|
|
MAINTAINER= knu@FreeBSD.org
|
2003-02-18 06:52:56 +01:00
|
|
|
COMMENT= FreeBSD ports/packages administration and management tool suite
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2002-09-20 20:01:57 +02:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
|
2002-02-13 04:06:05 +01:00
|
|
|
# For PKG_DBDRIVER={bdb_btree,bdb_hash,bdb}
|
|
|
|
# ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2002-02-04 18:47:31 +01:00
|
|
|
USE_BZIP2= yes
|
2001-03-18 00:06:40 +01:00
|
|
|
USE_RUBY= yes
|
2002-09-21 09:11:33 +02:00
|
|
|
USE_RUBY_FEATURES= optparse ruby18
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2001-10-29 23:18:30 +01:00
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}"
|
2001-08-17 16:20:35 +02:00
|
|
|
|
2001-07-26 21:28:42 +02:00
|
|
|
MAN1= pkg_deinstall.1 \
|
2001-08-26 21:58:38 +02:00
|
|
|
pkg_fetch.1 \
|
2001-07-26 21:28:42 +02:00
|
|
|
pkg_glob.1 \
|
2001-11-06 14:57:08 +01:00
|
|
|
pkg_sort.1 \
|
2001-10-06 23:01:34 +02:00
|
|
|
pkgdb.1 \
|
2001-08-11 11:22:05 +02:00
|
|
|
portcvsweb.1 \
|
|
|
|
portsclean.1 \
|
2001-06-15 11:36:29 +02:00
|
|
|
portsdb.1 \
|
|
|
|
portupgrade.1 \
|
|
|
|
portversion.1
|
2001-11-03 13:21:15 +01:00
|
|
|
MAN5= pkgtools.conf.5
|
2001-09-22 00:46:14 +02:00
|
|
|
MLINKS= pkgdb.1 pkg_which.1 \
|
|
|
|
portupgrade.1 portinstall.1 \
|
|
|
|
portsdb.1 ports_glob.1
|
2001-10-29 23:18:30 +01:00
|
|
|
MANCOMPRESSED= maybe
|
2001-06-15 11:36:29 +02:00
|
|
|
|
2001-11-04 21:35:17 +01:00
|
|
|
INSTALL_TARGET= install
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
INSTALL_TARGET+= install-doc
|
|
|
|
.endif
|
2001-08-21 14:29:39 +02:00
|
|
|
|
2002-06-08 20:18:52 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2002-09-20 20:01:57 +02:00
|
|
|
# pkg_create(1) must support -b. (4.5-RELEASE or later)
|
|
|
|
# XXX: PKG_CMD is not defined yet..
|
|
|
|
PKG_CREATE_OK!= /usr/sbin/pkg_create 2>&1 | ${GREP} ' -b ' || ${TRUE}
|
|
|
|
.if empty(PKG_CREATE_OK)
|
2002-11-08 11:51:07 +01:00
|
|
|
IGNORE= pkg_create does not support -b. Please update /usr/sbin/pkg_* to those of the latest RELENG_4
|
2002-06-08 20:18:52 +02:00
|
|
|
.endif
|
|
|
|
|
2001-10-29 23:18:30 +01:00
|
|
|
post-install:
|
2001-10-24 15:08:20 +02:00
|
|
|
if [ ! -f ${PREFIX}/etc/pkgtools.conf ]; then \
|
|
|
|
${CP} -p ${PREFIX}/etc/pkgtools.conf.sample ${PREFIX}/etc/pkgtools.conf; \
|
|
|
|
fi
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2002-06-08 20:18:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|