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