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
|
2012-08-26 05:15:31 +02:00
|
|
|
PORTVERSION= 2.4.9.8
|
2006-06-19 14:41:58 +02:00
|
|
|
PORTEPOCH= 2
|
2007-02-05 02:08:46 +01:00
|
|
|
CATEGORIES= ports-mgmt
|
2012-07-30 07:02:33 +02:00
|
|
|
MASTER_SITES= SF/portupgrade/pkgtools/dist/ \
|
|
|
|
http://mirror.shatow.net/freebsd/pkgtools/
|
2012-04-20 18:43:12 +02:00
|
|
|
DISTNAME= pkgtools-${PORTVERSION}
|
2001-09-07 09:25:47 +02:00
|
|
|
|
2012-08-02 23:42:30 +02:00
|
|
|
MAINTAINER= bdrewery@FreeBSD.org
|
2005-06-29 10:03:30 +02:00
|
|
|
COMMENT= FreeBSD ports/packages administration and management tool suite
|
|
|
|
|
2012-04-20 18:43:12 +02:00
|
|
|
LICENSE= BSD
|
|
|
|
|
2012-07-30 07:02:33 +02:00
|
|
|
NO_OPTIONS_SORT= yes
|
|
|
|
OPTIONS_DEFINE= DOCS DB_OVERRIDE
|
|
|
|
OPTIONS_SINGLE= DB_OVERRIDE
|
2012-06-02 11:38:19 +02:00
|
|
|
OPTIONS_SINGLE_DB_OVERRIDE= BDB4 BDB1
|
2012-07-30 07:02:33 +02:00
|
|
|
OPTIONS_DEFAULT= DB_OVERRIDE BDB4 DOCS
|
2012-06-02 11:38:19 +02:00
|
|
|
DB_OVERRIDE_DESC= Override DB backend instead of default DBM
|
|
|
|
BDB1_DESC= Use Berkeley DB 1
|
|
|
|
BDB4_DESC= Use Berkeley DB >=2
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2011-04-03 09:18:31 +02:00
|
|
|
CONFLICTS_INSTALL= portupgrade-devel-*
|
2006-07-01 10:11:05 +02:00
|
|
|
|
2012-08-26 05:15:31 +02:00
|
|
|
DIST_SUBDIR= ${PORTNAME}
|
2012-04-20 18:43:12 +02:00
|
|
|
USE_BZIP2= yes
|
2001-03-18 00:06:40 +01:00
|
|
|
USE_RUBY= yes
|
|
|
|
|
2006-05-29 19:45:34 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/compat/pkg
|
|
|
|
|
2012-08-26 05:15:31 +02:00
|
|
|
MAKE_ARGS= PREFIX="${PREFIX}" RUBY="${RUBY}" RUBY_SITELIBDIR="${RUBY_SITELIBDIR}" MKDIR="${MKDIR}"
|
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 \
|
2008-07-16 22:36:49 +02:00
|
|
|
pkgdu.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
|
|
|
|
2006-11-21 18:17:41 +01:00
|
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/pkgtools
|
|
|
|
DOCSDIR= ${PREFIX}/share/doc/pkgtools
|
|
|
|
|
2012-06-02 11:38:19 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2001-11-04 21:35:17 +01:00
|
|
|
INSTALL_TARGET= install
|
2012-06-02 11:38:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2001-11-04 21:35:17 +01:00
|
|
|
INSTALL_TARGET+= install-doc
|
|
|
|
.endif
|
2001-08-21 14:29:39 +02:00
|
|
|
|
2012-06-02 11:38:19 +02:00
|
|
|
.if ${PORT_OPTIONS:MBDB4}
|
2006-06-30 12:06:53 +02:00
|
|
|
# For PKG_DBDRIVER={bdb_btree,bdb_hash}
|
2006-06-09 22:19:51 +02:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb.so:${PORTSDIR}/databases/ruby-bdb
|
2012-06-02 11:38:19 +02:00
|
|
|
.elif ${PORT_OPTIONS:MBDB1}
|
2006-06-30 12:06:53 +02:00
|
|
|
# For PKG_DBDRIVER={bdb1_btree,bdb1_hash}
|
2006-06-09 22:19:51 +02:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/bdb1.so:${PORTSDIR}/databases/ruby-bdb1
|
2005-06-29 10:03:30 +02:00
|
|
|
.endif
|
|
|
|
|
2012-04-16 23:44:38 +02:00
|
|
|
# parsedate is needed for date globbing
|
2012-04-20 18:43:12 +02:00
|
|
|
.if ${RUBY_VER} == 1.9
|
2012-04-16 23:44:38 +02:00
|
|
|
RUN_DEPENDS+= ${RUBY_SITELIBDIR}/parsedate.rb:${PORTSDIR}/devel/ruby-date2
|
|
|
|
.endif
|
|
|
|
|
2012-08-26 05:15:31 +02:00
|
|
|
# Need to install working script(1)
|
|
|
|
.if ${OSVERSION} < 801000
|
|
|
|
PLIST_SUB+= SCRIPT=""
|
|
|
|
MAKE_ENV+= NEED_COMPAT_SCRIPT=yes
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= SCRIPT="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-06-30 12:06:53 +02:00
|
|
|
pre-extract:
|
2012-06-02 11:38:19 +02:00
|
|
|
.if exists(${RUBY_SITEARCHLIBDIR}/bdb.so) && ${PORT_OPTIONS:MBDB1}
|
2006-06-30 12:06:53 +02:00
|
|
|
@${ECHO_MSG} "================================================================="
|
2012-06-02 11:38:19 +02:00
|
|
|
@${ECHO_MSG} "BDB1 is defined but databases/ruby-bdb port installed."
|
2006-06-30 12:06:53 +02:00
|
|
|
@${ECHO_MSG} "Remove ruby-bdb or redefine options."
|
|
|
|
@${ECHO_MSG} "================================================================="
|
|
|
|
@exit 1
|
|
|
|
.endif
|
|
|
|
|
2009-02-12 17:46:23 +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
|
2007-01-25 17:49:10 +01:00
|
|
|
${MKDIR} ${PREFIX}/lib/compat/pkg
|
2007-03-01 10:09:01 +01:00
|
|
|
${CAT} ${PKGMESSAGE}
|
2001-03-18 00:06:40 +01:00
|
|
|
|
2002-06-08 20:18:52 +02:00
|
|
|
.include <bsd.port.post.mk>
|