head	1.56;
access;
symbols
	RELEASE_7_1_0:1.53
	RELEASE_6_4_0:1.53
	RELEASE_5_EOL:1.52
	RELEASE_7_0_0:1.51
	RELEASE_6_3_0:1.51
	PRE_XORG_7:1.49
	RELEASE_4_EOL:1.49
	RELEASE_6_2_0:1.49
	RELEASE_6_1_0:1.49
	RELEASE_5_5_0:1.49
	RELEASE_6_0_0:1.47
	RELEASE_5_4_0:1.45
	RELEASE_4_11_0:1.44
	RELEASE_5_3_0:1.42
	old_RELEASE_4_10_0:1.36
	old_RELEASE_5_2_1:1.34
	old_RELEASE_5_2_0:1.34
	old_RELEASE_4_9_0:1.26
	old_RELEASE_5_1_0:1.15
	old_old_RELEASE_4_8_0:1.4
	old_old_RELEASE_5_0_0:1.1;
locks; strict;
comment	@# @;


1.56
date	2009.04.11.21.25.15;	author linimon;	state dead;
branches;
next	1.55;

1.55
date	2008.12.29.22.19.07;	author pgollucci;	state Exp;
branches;
next	1.54;

1.54
date	2008.12.27.03.38.24;	author pgollucci;	state Exp;
branches;
next	1.53;

1.53
date	2008.07.23.02.43.54;	author pgollucci;	state Exp;
branches;
next	1.52;

1.52
date	2008.05.01.00.27.59;	author linimon;	state Exp;
branches;
next	1.51;

1.51
date	2007.10.10.03.00.35;	author edwin;	state Exp;
branches;
next	1.50;

1.50
date	2007.09.08.01.11.47;	author linimon;	state Exp;
branches;
next	1.49;

1.49
date	2005.09.19.11.52.14;	author clement;	state Exp;
branches;
next	1.48;

1.48
date	2005.09.10.09.23.12;	author linimon;	state Exp;
branches;
next	1.47;

1.47
date	2005.05.17.17.18.23;	author sem;	state Exp;
branches;
next	1.46;

1.46
date	2005.05.12.14.35.29;	author tobez;	state Exp;
branches;
next	1.45;

1.45
date	2005.01.30.17.16.20;	author krion;	state Exp;
branches;
next	1.44;

1.44
date	2004.10.18.13.58.09;	author dougb;	state Exp;
branches;
next	1.43;

1.43
date	2004.10.15.13.54.41;	author pav;	state Exp;
branches;
next	1.42;

1.42
date	2004.07.26.10.51.03;	author demon;	state Exp;
branches;
next	1.41;

1.41
date	2004.07.26.10.41.36;	author demon;	state Exp;
branches;
next	1.40;

1.40
date	2004.07.26.10.36.39;	author demon;	state Exp;
branches;
next	1.39;

1.39
date	2004.07.25.18.54.55;	author demon;	state Exp;
branches;
next	1.38;

1.38
date	2004.05.26.07.47.34;	author demon;	state Exp;
branches;
next	1.37;

1.37
date	2004.05.11.07.31.20;	author demon;	state Exp;
branches;
next	1.36;

1.36
date	2004.02.16.10.24.19;	author demon;	state Exp;
branches;
next	1.35;

1.35
date	2004.01.03.07.38.19;	author demon;	state Exp;
branches;
next	1.34;

1.34
date	2003.11.18.09.21.10;	author demon;	state Exp;
branches;
next	1.33;

1.33
date	2003.11.10.14.11.01;	author demon;	state Exp;
branches;
next	1.32;

1.32
date	2003.11.08.09.16.42;	author demon;	state Exp;
branches;
next	1.31;

1.31
date	2003.11.07.09.12.57;	author marcus;	state Exp;
branches;
next	1.30;

1.30
date	2003.10.24.16.12.42;	author ijliao;	state Exp;
branches;
next	1.29;

1.29
date	2003.10.24.12.05.01;	author ijliao;	state Exp;
branches;
next	1.28;

1.28
date	2003.09.29.10.40.39;	author demon;	state Exp;
branches;
next	1.27;

1.27
date	2003.09.24.13.02.14;	author demon;	state Exp;
branches;
next	1.26;

1.26
date	2003.09.16.06.26.24;	author erwin;	state Exp;
branches;
next	1.25;

1.25
date	2003.09.16.05.43.52;	author erwin;	state Exp;
branches;
next	1.24;

1.24
date	2003.08.25.06.51.56;	author demon;	state Exp;
branches;
next	1.23;

1.23
date	2003.08.07.13.05.32;	author demon;	state Exp;
branches;
next	1.22;

1.22
date	2003.07.13.10.13.52;	author demon;	state Exp;
branches;
next	1.21;

1.21
date	2003.06.24.07.15.41;	author demon;	state Exp;
branches;
next	1.20;

1.20
date	2003.06.21.09.30.41;	author demon;	state Exp;
branches;
next	1.19;

1.19
date	2003.06.20.08.41.24;	author demon;	state Exp;
branches;
next	1.18;

1.18
date	2003.06.12.09.15.38;	author demon;	state Exp;
branches;
next	1.17;

1.17
date	2003.06.11.13.24.27;	author demon;	state Exp;
branches;
next	1.16;

1.16
date	2003.06.11.09.57.42;	author tobez;	state Exp;
branches;
next	1.15;

1.15
date	2003.05.15.18.59.34;	author demon;	state Exp;
branches;
next	1.14;

1.14
date	2003.05.15.09.04.57;	author demon;	state Exp;
branches;
next	1.13;

1.13
date	2003.05.12.08.10.13;	author demon;	state Exp;
branches;
next	1.12;

1.12
date	2003.05.12.07.13.35;	author demon;	state Exp;
branches;
next	1.11;

1.11
date	2003.05.08.15.15.06;	author demon;	state Exp;
branches;
next	1.10;

1.10
date	2003.05.08.14.36.40;	author demon;	state Exp;
branches;
next	1.9;

1.9
date	2003.05.08.06.53.57;	author demon;	state Exp;
branches;
next	1.8;

1.8
date	2003.05.05.06.32.50;	author edwin;	state Exp;
branches;
next	1.7;

1.7
date	2003.05.05.05.10.35;	author edwin;	state Exp;
branches;
next	1.6;

1.6
date	2003.04.29.10.24.14;	author edwin;	state Exp;
branches;
next	1.5;

1.5
date	2003.04.29.05.10.28;	author edwin;	state Exp;
branches;
next	1.4;

1.4
date	2003.02.12.12.24.00;	author edwin;	state Exp;
branches;
next	1.3;

1.3
date	2003.02.12.11.36.57;	author edwin;	state Exp;
branches;
next	1.2;

1.2
date	2003.01.31.19.31.11;	author keichii;	state Exp;
branches;
next	1.1;

1.1
date	2002.12.22.04.50.13;	author keichii;	state Exp;
branches;
next	;


desc
@@


1.56
log
@Remove obsolete, expired versions of RT.  Use www/rt38 instead.
@
text
@# New ports collection makefile for:	rt3
# Date created:				28 November 2002
# Whom:					autrijus
#
# $FreeBSD: ports/www/rt32/Makefile,v 1.55 2008/12/29 22:19:07 pgollucci Exp $
#

PORTNAME=	rt
PORTVERSION?=	3.2.3
CATEGORIES=	www
MASTER_SITES?=	http://download.bestpractical.com/pub/rt/release/ \
		http://download.bestpractical.com/pub/rt/devel/ \
		ftp://ftp.eu.uu.net/pub/unix/ticketing/rt/release/ \
		ftp://ftp.eu.uu.net/pub/unix/ticketing/rt/devel/
DISTFILES=	${DISTNAME}${EXTRACT_SUFX} ${DISTNAME}${EXTRACT_SUFX}.sig
EXTRACT_ONLY=	${DISTNAME}${EXTRACT_SUFX}

MAINTAINER=	ports@@FreeBSD.org
COMMENT?=	RT is an industrial-grade ticketing system written in Perl

BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT} \
		${SITE_PERL}/Apache/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
		${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session \
		${SITE_PERL}/CGI/Cookie.pm:${PORTSDIR}/www/p5-CGI.pm \
		${SITE_PERL}/DBIx/SearchBuilder.pm:${PORTSDIR}/databases/p5-DBIx-SearchBuilder \
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
		${SITE_PERL}/HTML/FormatText.pm:${PORTSDIR}/textproc/p5-HTML-Format \
		${SITE_PERL}/HTML/Scrubber.pm:${PORTSDIR}/www/p5-HTML-Scrubber \
		${SITE_PERL}/HTML/TreeBuilder.pm:${PORTSDIR}/www/p5-HTML-Tree \
		${SITE_PERL}/Locale/Maketext.pm:${PORTSDIR}/devel/p5-Locale-Maketext \
		${SITE_PERL}/Locale/Maketext/Fuzzy.pm:${PORTSDIR}/devel/p5-Locale-Maketext-Fuzzy \
		${SITE_PERL}/Locale/Maketext/Lexicon.pm:${PORTSDIR}/devel/p5-Locale-Maketext-Lexicon \
		${SITE_PERL}/Log/Dispatch.pm:${PORTSDIR}/devel/p5-Log-Dispatch \
		${SITE_PERL}/Mail/Mailer.pm:${PORTSDIR}/mail/p5-Mail-Tools \
		${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
		${SITE_PERL}/Module/Versions/Report.pm:${PORTSDIR}/devel/p5-Module-Versions-Report \
		${SITE_PERL}/MLDBM.pm:${PORTSDIR}/databases/p5-MLDBM \
		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
		${SITE_PERL}/Regexp/Common.pm:${PORTSDIR}/textproc/p5-Regexp-Common \
		${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
		${SITE_PERL}/${PERL_ARCH}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
		${SITE_PERL}/Text/Autoformat.pm:${PORTSDIR}/textproc/p5-Text-Autoformat \
		${SITE_PERL}/Text/Quoted.pm:${PORTSDIR}/textproc/p5-Text-Quoted \
		${SITE_PERL}/Text/Template.pm:${PORTSDIR}/textproc/p5-Text-Template \
		${SITE_PERL}/Text/Wrapper.pm:${PORTSDIR}/textproc/p5-Text-Wrapper \
		${SITE_PERL}/${PERL_ARCH}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
		${SITE_PERL}/Time/ParseDate.pm:${PORTSDIR}/devel/p5-Time-modules \
		${SITE_PERL}/Tree/Simple.pm:${PORTSDIR}/devel/p5-Tree-Simple \
		${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize \
		${SITE_PERL}/XML/RSS.pm:${PORTSDIR}/textproc/p5-XML-RSS
RUN_DEPENDS=	${BUILD_DEPENDS}

CONFLICTS=	rt-2* rt-3.0* rt-3.4* rt-3.6* rt-3.8*

IGNORE=	use www/rt38
DEPRECATED=	${IGNORE}
EXPIRE_DATE=	2009-02-01

LATEST_LINK=	rt32
HAS_CONFIGURE=	yes
NO_BUILD=	yes
NO_PACKAGE=	Executes scripts in post-install phase
APACHE_COMPAT=	yes

CONFIGURE_ARGS=	--prefix=${RT_PATH} \
		--enable-layout=${LAYOUT} \
		--with-web-user=${WEB_USER} \
		--with-web-group=${WEB_GROUP} \
		--with-libs-group=${LIBS_GROUP} \
		--with-db-host=${DB_HOST} \
		--with-db-port=${DB_PORT} \
		--with-db-type=${DB_TYPE} \
		--with-db-rt-user=${DB_USER} \
		--with-db-rt-pass=${DB_PASSWORD} \
		--with-db-database=${DB_DATABASE} \
		--with-db-dba=${DB_DBA_USER}

.if defined(WITH_FASTCGI)
.if defined(WITH_APACHE2)
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache2/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
.else
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi
.endif
BUILD_DEPENDS+=		${SITE_PERL}/${PERL_ARCH}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
DEPENDS_ARGS+=	WITHOUT_MODPERL=yes
.else
BUILD_DEPENDS+=	${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI
.if defined(WITH_APACHE2)
BROKEN=		Broken due the new mod_perl2 API
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
DEPENDS_ARGS+=	WITHOUT_MODPERL=yes
DEPENDS_ARGS+=	WITH_MODPERL2=yes
.else
# XXX - probe for static mod_perl using `httpd -l | grep perl`
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
		${SITE_PERL}/${PERL_ARCH}/Apache/Request.pm:${PORTSDIR}/www/p5-libapreq
.endif
.endif

DB_TYPE?=	mysql

.if ${DB_TYPE} == "Oracle"
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
.else
.if ${DB_TYPE} == "Pg"
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
.else
.if ${DB_TYPE} == "SQLite"
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
.else
DB_TYPE=	mysql
BUILD_DEPENDS+=	${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
.endif
.endif
.endif

USE_PERL5=	5.8.3+
RT_PATH?=	${PREFIX}/rt3
LAYOUT?=	RT3

DB_DBA_USER?=	root
DB_USER?=	rt_user
DB_PASSWORD?=	rt_pass
DB_HOST?=	localhost
DB_DATABASE?=	rt3
DB_DBA_PASSWORD?=

WEB_USER?=	www
WEB_GROUP?=	www
LIBS_GROUP?=	wheel

pre-fetch:
	@@${ECHO} ""
	@@${ECHO} "You may use the following build options:"
	@@${ECHO} ""
	@@${ECHO} "      UPGRADE_RT30                    Upgrading from a RT 3.0 installation"
	@@${ECHO} "      INITIAL_INSTALL                 Do initialize DB (for initial install only)"
	@@${ECHO} "      WITH_FASTCGI                    Use FastCGI instead of mod_perl"
	@@${ECHO} "      WITH_APACHE2                    Use Apache2 as the web server"
	@@${ECHO} ""
	@@${ECHO} "      DB_TYPE=type                    mysql, Oracle, Pg or SQLite (mysql)"
	@@${ECHO} "      DB_HOST=hostname                The database host (localhost)"
	@@${ECHO} "      DB_PORT=port                    The database port"
	@@${ECHO} "      DB_DATABASE=port                The database name (rt3)"

	@@${ECHO} "      DB_DBA_USER=username            Name of database administrator (root)"
	@@${ECHO} "      DB_DBA_PASSWORD=password        Password of database administrator"
	@@${ECHO} "      DB_USER=username                Name of database user for RT (rt_user)"
	@@${ECHO} "      DB_PASSWORD=password            Name of database password for RT (rt_pass)"
	@@sleep 3

pre-install:
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \
		${PKGNAME} PRE-INSTALL

post-install:
	@@${INSTALL_DATA} ${WRKSRC}/README ${RT_PATH}/README
.if !defined(INITIAL_INSTALL)
.if defined(UPGRADE_RT30)
.for version in 3.1.0 3.1.15 3.1.17
	-@@${PERL} ${RT_PATH}/sbin/rt-setup-database --action schema --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} ${RT_PATH}/sbin/rt-setup-database --action acl --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} ${RT_PATH}/sbin/rt-setup-database --action insert --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
.endfor
	@@${ECHO} ""
	@@${ECHO} "Upgrade of RT3 complete."
.else
	@@${ECHO} ""
	@@${ECHO} "Installation of RT3 complete.  You may safely ignore the"
	@@${ECHO} "'make initialize-database' instruction above.  Instead,"
	@@${ECHO} "if you are upgrading from RT 3.0, please enter this now:"
	@@${ECHO} "    make post-install -DUPGRADE_RT30"
	@@${ECHO} ""
	@@${ECHO} "If you are initializing a new installation, please do this:"
	@@${ECHO} "    make post-install -DINITIAL_INSTALL"
	@@${ECHO} ""
	@@${ECHO} "Note that for both commands above, you will still need to"
	@@${ECHO} "supply the same build flags as passed to 'make install',"
	@@${ECHO} "in particular DB_DBA_USER and DB_DBA_PASSWORD."
	@@${ECHO} ""
.endif
.else
	-@@${PERL} ${RT_PATH}/sbin/rt-setup-database --force --action drop --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} ${RT_PATH}/sbin/rt-setup-database --force --action init --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	@@${SED} s!%%RT_PATH%%!${RT_PATH}!g ${PKGMESSAGE}
.endif

.include <bsd.port.mk>
@


1.55
log
@Reset maintainer
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.54
log
@               PLEASE WELCOME www/rt38

o www/rt3 has marked been IGNORE for at least one year, so has been removed.
o All www/rt* ports are now deprecated and will be removed 2008-02-01
  except www/rt36.
o GID 180 has been registered officially for rt's use.
o exactly one of www/rt36 or www/rt38 may be installed at any one time

www/p5-RT* and www/p5-RTx* will be updated shortly to depend on www/rt38.

www/rt38 is now packageable.  This means that you have to run some scripts
BY HAND after the port installation is done.

PR:             ports/125745, ports/125785
Requested by:   several on ports@@
Approved by:    vivek@@khera.org (previous rt maintainer)
@
text
@d18 1
a18 1
MAINTAINER=	pgollucci@@FreeBSD.org
@


1.53
log
@Update my ports to my freebsd address

Approved by:    araujo (mentor)
@
text
@d54 6
@


1.52
log
@Assign to new maintainer by request.
@
text
@d18 1
a18 1
MAINTAINER=	pgollucci@@p6m7g8.com
@


1.51
log
@[PATCH]: www/* use {} vs () consistently

	Fix all occurrences of this that are not part of REPLACE_CMD commands.

PR:		ports/117051
Submitted by:	"Philip M. Gollucci" <pgollucci@@p6m7g8.com>
@
text
@d18 1
a18 1
MAINTAINER=	ports@@FreeBSD.org
@


1.50
log
@Welcome bsd.perl.mk.  Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
@
text
@d156 3
a158 3
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action schema --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action acl --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action insert --datadir ${WRKSRC}/etc/upgrade/${version} --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
d178 2
a179 2
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --force --action drop --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --force --action init --dba '${DB_DBA_USER}' --dba-password '${DB_DBA_PASSWORD}'
@


1.49
log
@- Define APACHE_COMPAT
  It fixed INDEX build with next exp-build patchset and prepare a smooth
  migration to bsd.apache.mk
  It's a no-op for now.

Approved by:	portmgr (self)
@
text
@d112 1
a112 1
USE_PERL5=	yes
d183 1
a183 7
.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500803
IGNORE=		This program only support perl 5.8.3 or above
.endif

.include <bsd.port.post.mk>
@


1.48
log
@Reset bouncing maintainer address.  Sorry to see you go.

Hat:	portmgr
@
text
@d58 1
@


1.47
log
@- Mark ports BROKEN when/if they depend on mod_perl2.
  With current mod_perl2 API change all old code *will* broken.
@
text
@d18 1
a18 1
MAINTAINER=	autrijus@@autrijus.org
@


1.46
log
@Update to 3.2.3.

Approved by:	maintainer (blanket approval)
@
text
@d83 1
@


1.45
log
@Set LATEST_LINK.
@
text
@d9 1
a9 1
PORTVERSION?=	3.2.2
@


1.44
log
@Upgrade to version 3.2.2, the latest from Best Practical.

Download the PGP signature for the tarball.

Twiddle some whitespace.

Approved by:	Autrijus Tang <autrijus@@autrijus.org> (maintainer)
@
text
@d54 1
@


1.43
log
@- Add SQL authentization to upgrade process

PR:		ports/72708
Submitted by:	Brent B. Powers <freebsd@@b2pi.com>
Approved by:	Autrijus Tang <autrijus@@autrijus.org> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION?=	3.2.1
d15 2
d95 1
a95 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
d98 1
a98 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d101 1
a101 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
@


1.42
log
@Add missing dependencies.
@
text
@d151 3
a153 3
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action schema --datadir ${WRKSRC}/etc/upgrade/${version}
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action acl --datadir ${WRKSRC}/etc/upgrade/${version}
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --action insert --datadir ${WRKSRC}/etc/upgrade/${version}
@


1.41
log
@Remove extra dependencies (they are inherited from others).
This should be no-op.
@
text
@d48 2
a49 1
		${SITE_PERL}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize
d85 2
a86 1
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
@


1.40
log
@Modern version of RT supports perl 5.8.3 and above.
@
text
@a21 1
		${SITE_PERL}/Cache/Cache.pm:${PORTSDIR}/devel/p5-Cache-Cache \
a22 1
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
a24 3
		${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
		${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
		${SITE_PERL}/FreezeThaw.pm:${PORTSDIR}/devel/p5-FreezeThaw \
a25 1
		${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser \
a37 1
		${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
@


1.39
log
@Upgrade to RT version 3.2.1 after a repo-copy from rt3 (thanks marcus!).

Submitted by:	autrijus@@autrijus.org (maintainer)
@
text
@d185 2
a186 7
.if ${PERL_LEVEL} < 500601
IGNORE=		This program only support perl 5.6.1 or above
.endif

.if ${PERL_LEVEL} == 500601
BUILD_DEPENDS+=	${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat \
		${SITE_PERL}/${PERL_ARCH}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv
@


1.38
log
@Update to 3.0.11 release.

Approved by:	maintainer
@
text
@d1 3
a3 3
# New ports collection makefile for:   rt3
# Date created:        28 November 2002
# Whom:                autrijus
d9 1
a9 1
PORTVERSION?=	3.0.11
d33 1
d41 1
d54 1
d70 3
d90 1
d117 2
d120 1
d131 5
d139 2
d143 3
a145 4
	@@${ECHO} "      WITH_FASTCGI                    Use FastCGI instead of mod_perl"
	@@${ECHO} "      WITH_APACHE2                    Use Apache2 as the web server"
	@@${ECHO} "      INITIAL_INSTALL                 Do initialize DB (for initial install only)"
	@@${ECHO} ""
d154 23
a176 1
	@@echo Upgrade of RT3 complete.
d178 2
a179 2
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --force --action drop --dba ${DB_DBA_USER} --dba-password ${DB_DBA_PASSWORD}
	-@@${PERL} $(RT_PATH)/sbin/rt-setup-database --force --action init --dba ${DB_DBA_USER} --dba-password ${DB_DBA_PASSWORD}
@


1.37
log
@Update to version 3.0.11.rc1

Submitted by:	maintainer
@
text
@d8 2
a9 2
PORTNAME=	rt3
PORTVERSION?=	3.0.11.rc1
a14 1
DISTNAME?=	rt-${PORTVERSION:S/.rc/rc/g}
a54 1
WRKSRC?=	${WRKDIR}/rt-${PORTVERSION:S/.rc/rc/g}
@


1.36
log
@Update to version 3.0.9

Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.9
d11 2
a12 2
MASTER_SITES?=	http://www.fsck.com/pub/rt/release/ \
		http://www.fsck.com/pub/rt/devel/ \
d15 1
a15 1
DISTFILES?=	rt-${PORTVERSION:S/./-/g}.tar.gz
d56 1
a56 1
WRKSRC?=	${WRKDIR}/rt-${PORTVERSION:S/./-/g}
a78 1
DEPENDS_ARGS+=	BATCH=yes
a84 1
DEPENDS_ARGS+=	BATCH=yes
@


1.35
log
@Update to version 3.0.8.

Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.8
d79 1
d86 1
d128 1
a128 1
	@@${ECHO} "      DB_DBA_USER=password            Name of database administrator (root)"
@


1.34
log
@Update to version 3.0.7.

Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.7
@


1.33
log
@Do not force users to install MySQL server on the same machine;
Add Oracle and SQLite as possible DB types.

Submitted by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.6
a138 1
	@@${INSTALL_SCRIPT} ${FILESDIR}/ap2mp2-fix.pl ${RT_PATH}/bin
@


1.32
log
@Add explicit dependency to p5-DBD-mysql port.

Submitted by:	maintainer
@
text
@d92 3
d96 4
a99 2
BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 \
		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d102 3
a104 2
BUILD_DEPENDS+=	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server \
		${SITE_PERL}/${PERL_ARCH}/DBD/mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
d123 1
a123 1
	@@${ECHO} "      DB_TYPE=type                    Pg for postgresql, mysql for MySQL (mysql)"
@


1.31
log
@Use the new Apache bits from bsd.port.mk.

Submitted by:	dinoex
@
text
@d97 2
a98 1
BUILD_DEPENDS+=	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server
@


1.30
log
@fix SITE_PERL
@
text
@d20 1
a20 1
BUILD_DEPENDS+=	${APXS}:${APACHE_PORT} \
a72 1
APACHE_PORT?=	${PORTSDIR}/www/apache2
a74 1
APACHE_PORT?=	${PORTSDIR}/www/apache13
a81 1
APACHE_PORT?=	${PORTSDIR}/www/apache2
a85 1
APACHE_PORT?=	${PORTSDIR}/www/apache13
a88 2

APXS?=		${LOCALBASE}/sbin/apxs
@


1.29
log
@utilize SITE_PERL

PR:		58166
Submitted by:	Cheng-Lung Sung <clsung@@dragon2.net>
@
text
@d25 1
a25 1
		${ARCH_PERL}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
d27 1
a27 1
		${ARCH_PERL}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
d32 1
a32 1
		${ARCH_PERL}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser \
d43 1
a43 1
		${ARCH_PERL}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
d45 2
a46 2
		${ARCH_PERL}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
		${ARCH_PERL}/Term/ReadKey.pm:${PORTSDIR}/devel/p5-Term-ReadKey \
d51 1
a51 1
		${ARCH_PERL}/Time/HiRes.pm:${PORTSDIR}/devel/p5-Time-HiRes \
d79 1
a79 1
BUILD_DEPENDS+=		${ARCH_PERL}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
d100 1
a100 1
		${ARCH_PERL}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
a105 2
SITE_PERL:=	${SITE_PERL}
ARCH_PERL=	${SITE_PERL}/${PERL_ARCH}/
d155 1
a155 1
		${ARCH_PERL}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv
@


1.28
log
@Update to version 3.0.6

Approved by:	maintainer
@
text
@d106 1
a106 1
SITE_PERL:=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
@


1.27
log
@Update to version 3.0.5.

Submitted by:	Autrijus Tang <autrijus@@autrijus.org> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.5
@


1.26
log
@Revert previous commit. This port doesn't work with perl < 5.6.1, so
the DBI cleaning was not necessary. The removal of the dependency on p5-DBI
didn't actually do anything as it already depends on it via other dependencies,
but I'll leave it up to the maintainer to decide after the freeze.

Requested by: 	demon
@
text
@d9 1
a9 1
PORTVERSION?=	3.0.4
@


1.25
log
@Conditionalise dependencies on databases/p5-DBI: for perl
5.005_03 use databases/p5-DBI-137 as newer versions do not
support the old perl.

Note that for some port, I merely removed the explicit
dependency as they already have implicit dependencies
via other ports.

Approved by:	portmgr (marcus)
@
text
@d25 1
@


1.24
log
@Correct dependencies when building with FastCGI and Apache2.

Submitted by:	Rob Austein <sra@@hactrn.net> via maintainer.
@
text
@a24 1
		${ARCH_PERL}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
@


1.23
log
@Allow to override PORTVERSION and WRKSRC.
Use '+=' instead of '=' for BUILD_DEPENDS.

This is for use in slave port(s).
@
text
@d72 4
d77 3
a79 2
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/mod_fastcgi.so:${PORTSDIR}/www/mod_fastcgi \
		${ARCH_PERL}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
@


1.22
log
@Update to version 3.0.4.

Submitted by:	Autrijus Tang <autrijus@@autrijus.org> (maintainer)
@
text
@d9 1
a9 1
PORTVERSION=	3.0.4
d20 1
a20 1
BUILD_DEPENDS=	${APXS}:${APACHE_PORT} \
d56 1
a56 1
WRKSRC=		${WRKDIR}/rt-${PORTVERSION:S/./-/g}
@


1.21
log
@Update to version 3.0.3.

Approved by:	maintainer
@
text
@d9 1
a9 1
PORTVERSION=	3.0.3
d12 3
a14 1
		ftp://ftp.eu.uu.net/pub/unix/ticketing/rt/
@


1.20
log
@Without options, assume it is an upgrade and do not re-initialize DB.
Provide INITIAL_INSTALL knob for that.

Approved by:	maintainer
@
text
@d9 1
a9 2
PORTVERSION=	3.0.2
PORTREVISION=	2
@


1.19
log
@Tidy up DEPENDS list;
Correct pkg-plist;
Fixes for Apache2 users.

PR:		53205
Submitted by:	Tim Bishop <tim@@bishnet.net>
Approved by:	maintainer
@
text
@d125 1
a125 1
	@@${ECHO} "      UPGRADE                         Upgrade only, don't initialize DB"
d135 1
a135 1
.if defined(UPGRADE)
@


1.18
log
@This was accidentally removed in my previous commit.
This line is needed to build RT with FastCGI support.

Submitted by:	tobez
@
text
@d10 1
a10 1
PORTREVISION=	1
a23 2
		${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
		${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
a24 1
		${SITE_PERL}/DBIx/DataSource.pm:${PORTSDIR}/databases/p5-DBIx-DataSource \
d32 1
a32 1
		${SITE_PERL}/HTML/Formatter.pm:${PORTSDIR}/textproc/p5-HTML-Format \
a49 1
		${SITE_PERL}/Tie/IxHash.pm:${PORTSDIR}/devel/p5-Tie-IxHash \
d80 2
d134 1
@


1.17
log
@Remove unused variables.
@
text
@d78 1
@


1.16
log
@Make www/rt3 compatible with www/p5-FastCGI.

PR:		51659
Approved by:	maintainer
@
text
@a77 2
TESTDEPS_ARGS+=	--with-FASTCGI
DEPENDS_ARGS+=	WITHOUT_MODPERL=yes
@


1.15
log
@o Remove explicit dependency on p5-DBD-Mysql; it is inherited
  from mysql40-server;
o Add dependency on p5-DBD-Pg when building with postgres;  [1]
o Do not hardcode version number three times in the Makefile;
o Do not chmod a+x configure, it is not needed;
o Remove do-install target and move installation of README file
  to post-install;
o Update to version 3.0.2.

PR:		52107 [1]
Submitted by:	Palle Girgensohn <girgen@@rambutan.pingpong.net> [1]
Approved by:	maintainer
@
text
@d10 1
a19 1
		${SITE_PERL}/Apache/DBI.pm:${PORTSDIR}/www/p5-Apache-DBI \
d74 8
d89 1
d126 1
@


1.14
log
@Add one more mirror.
Replace spaces with tabs.
@
text
@d9 1
a9 1
PORTVERSION=	3.0.1
d13 1
a13 1
DISTFILES?=	rt-3-0-1.tar.gz
d59 1
a59 1
WRKSRC=		${WRKDIR}/rt-3-0-1
d87 2
a88 1
BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7
d91 1
a91 2
BUILD_DEPENDS+=	${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server \
		${ARCH_PERL}/Mysql.pm:${PORTSDIR}/databases/p5-DBD-mysql
a120 3
post-extract:
	-@@${CHMOD} a+x ${WRKSRC}/configure

d125 1
a125 2
do-install:
	@@cd ${WRKSRC} && ${MAKE} install
a126 2

post-install:
@


1.13
log
@Depend on p5-Time-modules port rather than p5-Time.
This is newer version of the same software.
@
text
@d9 5
a13 4
PORTVERSION=    3.0.1
CATEGORIES=     www
MASTER_SITES?=   http://www.fsck.com/pub/rt/release/
DISTFILES?=      rt-3-0-1.tar.gz
d15 1
a15 1
MAINTAINER=     autrijus@@autrijus.org
d18 1
a18 1
BUILD_DEPENDS=  ${APXS}:${APACHE_PORT} \
d57 1
a57 1
RUN_DEPENDS=    ${BUILD_DEPENDS}
d59 2
a60 2
WRKSRC=         ${WRKDIR}/rt-3-0-1
HAS_CONFIGURE=  yes
d64 1
a64 1
CONFIGURE_ARGS= --prefix=${RT_PATH} \
d75 2
a76 2
APACHE_PORT?=   ${PORTSDIR}/www/apache2
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache2/mod_perl.so:${PORTSDIR}/www/mod_perl2
d78 2
a79 2
APACHE_PORT?=   ${PORTSDIR}/www/apache13
BUILD_DEPENDS+= ${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
d82 1
a82 1
APXS?=          ${LOCALBASE}/sbin/apxs
d84 1
a84 1
DB_TYPE?=  mysql
d87 1
a87 1
BUILD_DEPENDS+= ${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7
d89 2
a90 2
DB_TYPE=        mysql
BUILD_DEPENDS+= ${LOCALBASE}/bin/mysql_config:${PORTSDIR}/databases/mysql40-server \
d96 2
a97 2
USE_PERL5=      yes
RT_PATH?=       ${PREFIX}/rt3
@


1.12
log
@Remove now unused variables.
@
text
@d54 1
a54 1
		${SITE_PERL}/Time/ParseDate.pm:${PORTSDIR}/devel/p5-Time \
@


1.11
log
@Create group 'rt' in pre-install phase, rather than post-extract.

Approved by:	maintainer
@
text
@a75 1
TESTDEPS_ARGS+=	--with-MODPERL2
a78 1
TESTDEPS_ARGS+=	--with-MODPERL1
a86 1
TESTDEPS_ARGS+=	--with-POSTGRESQL
a90 1
TESTDEPS_ARGS+=	--with-MYSQL
@


1.10
log
@o Remove do-build: it is redundant if all dependencies are listed correctly;
o Change default user/group from nobody:nogroup to www:www;
o Remove redundant '-f Makefile' from 'make' invocation;
o Add NO_PACKAGE, since it executes scripts in post-install phase.

Approved by:	maintainer
@
text
@a109 1
RT_GROUP?=	rt
d125 5
a129 2
	-@@pw groupadd ${RT_GROUP}
	-@@cd ${WRKSRC} && chmod a+x configure
@


1.9
log
@Correct a typo.
@
text
@d56 1
d60 2
a96 2
RUN_DEPENDS=    ${BUILD_DEPENDS}

d107 2
a108 2
WEB_USER?=	nobody
WEB_GROUP?=	nogroup
a128 3
do-build:
	-@@cd ${WRKSRC} && ${PERL} ./sbin/rt-test-dependencies --install ${TESTDEPS_ARGS}

d130 1
a130 1
	@@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile install
@


1.8
log
@prepare to be a master-port with www/rt3-elixus

Submitted by:	Autrijus Tang <autrijus@@autrijus.org>
@
text
@d125 1
a125 1
	-@@pw groupadd ${RTGROUP}
@


1.7
log
@Some tweaks:

       - Apache::Cookie was never used, and breaks mod_perl2 build.
       - Encode::compat is only needed for 5.6.1.

Submitted by:	Autrijus Tang <autrijus@@autrijus.org>
@
text
@d11 2
a12 2
MASTER_SITES=   http://www.fsck.com/pub/rt/release/
DISTFILES=      rt-3-0-1.tar.gz
d15 1
a15 1
COMMENT=	RT is an industrial-grade ticketing system written in Perl
a48 1
		${ARCH_PERL}/Text/Iconv.pm:${PORTSDIR}/converters/p5-Text-Iconv \
d109 1
d125 1
d151 2
a152 1
BUILD_DEPENDS+=	${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat
@


1.6
log
@Upgrade to rt 3.0.1

Submitted by:	Autrijus Tang <autrijus@@autrijus.org>
@
text
@a11 1
WRKSRC=         ${WRKDIR}/rt-3-0-1
a17 1
		${ARCH_PERL}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
a28 1
		${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat \
d58 1
d105 1
a105 1
DB_DBA_PASSWORD?=	
d143 11
a153 1
.include <bsd.port.mk>
@


1.5
log
@New port: devel/rt3

	RT is an industrial-grade ticketing system. It lets a group
	of people intelligently and efficiently manage requests
	submitted by a community of users. RT is used by systems
	administrators, customer support staffs, NOCs, developers
	and even marketing departments at over a thousand sites
	around the world.

PR:		ports/45905
Submitted by:	Autrijus Tang <autrijus@@autrijus.org>
@
text
@d9 1
a9 1
PORTVERSION=    3.0.0
d12 2
a13 2
WRKSRC=         ${WRKDIR}/rt-3-0-0
DISTFILES=      rt-3-0-0.tar.gz
a18 1
		${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
d103 1
@


1.4
log
@Remove errornous reference to ${LOCALBASE}/var
@
text
@d1 3
a3 3
# New ports collection makefile for:   RT2
# Date created:        12 Auguest 2002
# Whom:                plasma
d8 6
a13 5
PORTNAME=	rt2
PORTVERSION=	2.0.15
CATEGORIES=	www
MASTER_SITES=	http://www.fsck.com/pub/rt/release/
DISTNAME=	rt-${PORTVERSION:S/./-/g}
d15 1
a15 1
MAINTAINER=	plasmaball@@pchome.com.tw
d18 3
a20 2
BUILD_DEPENDS=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl \
		${SITE_PERL}/${PERL_ARCH}/Apache/Cookie.pm:${PORTSDIR}/www/p5-libapreq \
d22 1
d24 5
a28 1
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
d31 4
a34 3
		${SITE_PERL}/Date/Format.pm:${PORTSDIR}/devel/p5-TimeDate \
		${SITE_PERL}/Date/Parse.pm:${PORTSDIR}/devel/p5-TimeDate \
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
d37 6
a42 2
		${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser \
		${SITE_PERL}/Apache/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
d44 1
a46 1
		${SITE_PERL}/Mail/Mailer.pm:${PORTSDIR}/mail/p5-Mail-Tools \
d48 7
a54 2
		${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
		${SITE_PERL}/${PERL_ARCH}/Storable.pm:${PORTSDIR}/devel/p5-Storable \
d58 27
a84 2
		${SITE_PERL}/CGI/Cookie.pm:${PORTSDIR}/www/p5-CGI.pm \
		${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
d86 1
a86 3
WRKSRC=		${WRKDIR}/rt-${RT_VERSION}
RT_VERSION=	${PORTVERSION:C/\./-/g}
DB_TYPE?=	mysql
d89 2
a90 2
BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7 \
		${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d92 4
a95 2
DB_TYPE=	mysql
BUILD_DEPENDS+=	${LOCALBASE}/bin/safe_mysqld:${PORTSDIR}/databases/mysql323-server
d98 1
a98 1
RUN_DEPENDS=	${BUILD_DEPENDS}
d100 4
a103 3
SITE_PERL=	${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
USE_REINPLACE=	yes
USE_PERL5=	yes
d105 1
a105 2
RT_PATH?=	${PREFIX}/rt2
DB_DBA_PASSWORDD?=
d107 1
a107 1
DB_RT_PASS=	rt_pass
d109 3
a111 45
MAN3=		RT::Links.3 \
		RT::Watchers.3 \
		RT::Group.3 \
		RT::Keyword.3 \
		RT::Record.3 \
		RT::ScripConditions.3 \
		RT::Action::Generic.3 \
		RT::Transaction.3 \
		RT::Interface::Email.3 \
		RT::Link.3 \
		RT.3 \
		RT::Watcher.3 \
		RT::ObjectKeywords.3 \
		RT::EasySearch.3 \
		RT::ScripActions.3 \
		RT::Scrip.3 \
		RT::GroupMembers.3 \
		RT::Action::SendPasswordEmail.3 \
		RT::Transactions.3 \
		RT::Scrips.3 \
		RT::Action::SendEmail.3 \
		RT::User.3 \
		RT::ScripCondition.3 \
		RT::Users.3 \
		RT::Ticket.3 \
		RT::ACE.3 \
		RT::Queue.3 \
		RT::Interface::CLI.3 \
		RT::Tickets.3 \
		RT::GroupMember.3 \
		RT::Template.3 \
		RT::Templates.3 \
		RT::Queues.3 \
		RT::Date.3 \
		RT::CurrentUser.3 \
		RT::ScripAction.3 \
		RT::Keywords.3 \
		RT::ObjectKeyword.3 \
		RT::Attachment.3 \
		RT::Groups.3 \
		RT::KeywordSelect.3 \
		RT::Condition::Generic.3 \
		RT::Handle.3 \
		RT::ACL.3 \
		RT::Attachments.3
d117 7
a123 7
	@@${ECHO} "	DB_DBA_PASSWORD=password	Your password of MySQL root ();"
	@@${ECHO} "	DB_HOST=hostname		Where MySQL resident (localhost);"
	@@${ECHO} "	DB_RT_PASS=password		Your password of MySQL RT user (rt_pass);"
	@@${ECHO} "	DB_TYPE=type			Pg for postgresql, mysql for MySQL (mysql);"
	@@${ECHO} "	INSTALL_NEW			Install a fresh port, otherwise just upgrade;"
	@@${ECHO} ""
	@@${ECHO} "IMPORTANT!!! If you want to install a fresh new port, define INSTALL_NEW to do so, otherwise this port just do a upgrade."
d126 2
a127 5
post-patch:
.for _FILE in tools/testdeps
	${REINPLACE_CMD} 's,/usr/bin/perl,${PERL},' ${WRKSRC}/${_FILE}
	${CHMOD} +x ${WRKSRC}/${_FILE}
.endfor
d130 1
a130 5
.for _NAME in RT_PATH DB_DBA_PASSWORD DB_HOST DB_RT_PASS DB_TYPE
	@@${REINPLACE_CMD} "s!%%${_NAME}%%!${${_NAME}}!g" ${WRKSRC}/Makefile
.endfor
	@@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile testdeps
	@@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile fixdeps
a132 3
	@@${MKDIR} /var/log/rt2
.if defined(INSTALL_NEW)
	-@@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile dropdb
d134 1
a134 5
.else
	@@cd ${WRKSRC} && ${MAKE} -f ${WRKSRC}/Makefile upgrade
.endif
	@@${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/rt2/README
	@@${CHOWN} -R www /var/log/rt2
d137 6
a142 7
	@@${SED} s!%%PREFIX%%!${PREFIX}!g ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500601
BUILD_DEPENDS+=	${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
RUN_DEPENDS+=	${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec
d145 1
a145 1
.include <bsd.port.post.mk>
@


1.3
log
@www/rt2 upgrade to 2.0.15

Note: I haven't been able to test it on in mysql environment, I'll
keep an eye on bento for any problems.

PR:		ports/47106
Submitted by:	plasma <plasma@@freebsd.sinica.edu.tw>
@
text
@d140 1
a140 1
	@@${MKDIR} ${LOCALBASE}/var/log/rt2
@


1.2
log
@Update RT to make it build.
2.0.15 is pending maintainer communications with the committer.
We are also working on a RT3 port.
@
text
@a7 1

d9 1
a9 2
PORTVERSION=	2.0.14
RT_VERSION=    ${PORTVERSION:C/\./-/g}
d12 1
a12 3
RT_VERSION=    ${PORTVERSION:C/\./-/g}
DISTFILES=     rt-${RT_VERSION}.tar.gz
WRKSRC=        ${WRKDIR}/rt-${RT_VERSION}
d15 1
a25 1
		${SITE_PERL}/File/Spec.pm:${PORTSDIR}/devel/p5-File-Spec \
d36 1
a36 1
		${SITE_PERL}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
d40 3
a42 1
		${SITE_PERL}/Tie/IxHash.pm:${PORTSDIR}/devel/p5-Tie-IxHash
d44 2
d49 2
a50 1
BUILD_DEPENDS+=	${LOCALBASE}/bin/psql:${PORTSDIR}/databases/postgresql7
d63 1
a63 1
DB_DBA_PASSWORDD?=	
d126 6
d140 1
a140 1
	@@${MKDIR} /var/log/rt2
d153 8
a160 1
.include <bsd.port.mk>
@


1.1
log
@Add rt2 2.0.14,
rT is an industrial-grade ticketing system written
in Perl.

PR:		41701
Submitted by:	plasma
@
text
@d8 1
d11 1
d14 3
a16 2
WRKSRC=		${WRKDIR}/rt-2-0-14
DISTFILES=	rt.tar.gz
@

