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
|
2002-09-19 20:53:27 +02:00
|
|
|
PORTVERSION= 20020920
|
2001-03-18 00:06:40 +01:00
|
|
|
CATEGORIES= sysutils
|
2002-08-31 17:39:38 +02:00
|
|
|
MASTER_SITES= http://www.iDaemons.org/distfiles/ \
|
|
|
|
${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
|
|
|
|
2002-08-30 14:51:46 +02:00
|
|
|
DISTVERSION= 20020805
|
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}
|
2002-09-02 15:16:35 +02:00
|
|
|
PATCHFILES= ${DISTNAME}-20020830.diff.bz2 \
|
2002-09-19 20:53:27 +02:00
|
|
|
pkgtools-20020830-20020902.diff.bz2 \
|
|
|
|
pkgtools-20020902-${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
|
|
|
|
|
2002-07-15 13:27:21 +02:00
|
|
|
RUN_DEPENDS= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1 \
|
2002-02-01 09:20:19 +01:00
|
|
|
${LOCALBASE}/sbin/pkg_tarup:${PORTSDIR}/sysutils/pkg_tarup
|
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
|
|
|
|
|
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>
|
|
|
|
|
|
|
|
.if ${RUBY_VER} < 1.7
|
2002-09-13 06:50:40 +02:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/features/ruby18/file_ruby18.so:${PORTSDIR}/lang/ruby16-shim-ruby18
|
2002-06-08 20:18:52 +02:00
|
|
|
.endif
|
|
|
|
|
2002-06-12 12:00:11 +02:00
|
|
|
pre-install:
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
# Cope with a bug in CURRENT's bsd.*.mk infrastructure
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/pkgtools/bash
|
|
|
|
${MKDIR} ${PREFIX}/share/examples/pkgtools/tcsh
|
|
|
|
${MKDIR} ${PREFIX}/share/zsh/site-functions
|
|
|
|
.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>
|