head	1.53;
access;
symbols
	RELEASE_7_1_0:1.52
	RELEASE_6_4_0:1.52
	RELEASE_5_EOL:1.51
	RELEASE_7_0_0:1.50
	RELEASE_6_3_0:1.50
	PRE_XORG_7:1.50
	RELEASE_4_EOL:1.48
	RELEASE_6_2_0:1.48
	RELEASE_6_1_0:1.47
	RELEASE_5_5_0:1.47
	RELEASE_6_0_0:1.44
	RELEASE_5_4_0:1.43
	RELEASE_4_11_0:1.41
	RELEASE_5_3_0:1.40
	RELEASE_4_10_0:1.36
	RELEASE_5_2_1:1.34
	RELEASE_5_2_0:1.34
	RELEASE_4_9_0:1.26
	RELEASE_5_1_0:1.15
	old_RELEASE_4_8_0:1.4
	old_RELEASE_5_0_0:1.1;
locks; strict;
comment	@# @;


1.53
date	2008.12.27.03.38.23;	author pgollucci;	state dead;
branches;
next	1.52;

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

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

1.50
date	2007.04.06.06.48.44;	author gabor;	state Exp;
branches;
next	1.49;

1.49
date	2007.03.24.20.38.13;	author kris;	state Exp;
branches;
next	1.48;

1.48
date	2006.05.27.17.51.11;	author pav;	state Exp;
branches;
next	1.47;

1.47
date	2006.02.14.10.18.47;	author lth;	state Exp;
branches;
next	1.46;

1.46
date	2005.09.19.11.52.13;	author clement;	state Exp;
branches;
next	1.45;

1.45
date	2005.09.10.09.23.12;	author linimon;	state Exp;
branches;
next	1.44;

1.44
date	2005.05.17.17.18.23;	author sem;	state Exp;
branches;
next	1.43;

1.43
date	2005.03.31.14.34.52;	author flz;	state Exp;
branches;
next	1.42;

1.42
date	2005.03.05.16.04.46;	author flz;	state Exp;
branches;
next	1.41;

1.41
date	2004.10.23.07.29.33;	author clsung;	state Exp;
branches;
next	1.40;

1.40
date	2004.08.12.15.46.05;	author pav;	state Exp;
branches;
next	1.39;

1.39
date	2004.08.12.12.48.01;	author mat;	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.53
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
@# New ports collection makefile for:   rt3
# Date created:        28 November 2002
# Whom:                autrijus
#
# $FreeBSD: ports/www/rt3/Makefile,v 1.52 2008/07/23 02:43:54 pgollucci Exp $
#

PORTNAME=	rt
PORTVERSION?=	3.0.12
PORTREVISION=	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/

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

BUILD_DEPENDS+=	${APXS}:${PORTSDIR}/${APACHE_PORT} \
		${SITE_PERL}/Apache/Session.pm:${PORTSDIR}/www/p5-Apache-Session \
		${SITE_PERL}/Cache/Cache.pm:${PORTSDIR}/devel/p5-Cache-Cache \
		${SITE_PERL}/CGI/Cookie.pm:${PORTSDIR}/www/p5-CGI.pm \
		${SITE_PERL}/${PERL_ARCH}/DBI.pm:${PORTSDIR}/databases/p5-DBI \
		${SITE_PERL}/DBIx/SearchBuilder.pm:${PORTSDIR}/databases/p5-DBIx-SearchBuilder \
		${SITE_PERL}/${PERL_ARCH}/Digest/MD5.pm:${PORTSDIR}/security/p5-Digest-MD5 \
		${SITE_PERL}/Exception/Class.pm:${PORTSDIR}/devel/p5-Exception-Class \
		${SITE_PERL}/FreezeThaw.pm:${PORTSDIR}/devel/p5-FreezeThaw \
		${SITE_PERL}/Getopt/Long.pm:${PORTSDIR}/devel/p5-Getopt-Long \
		${SITE_PERL}/${PERL_ARCH}/HTML/Entities.pm:${PORTSDIR}/www/p5-HTML-Parser \
		${SITE_PERL}/HTML/FormatText.pm:${PORTSDIR}/textproc/p5-HTML-Format \
		${SITE_PERL}/HTML/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
		${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}/MLDBM.pm:${PORTSDIR}/databases/p5-MLDBM \
		${SITE_PERL}/Net/SMTP.pm:${PORTSDIR}/net/p5-Net \
		${SITE_PERL}/${PERL_ARCH}/Params/Validate.pm:${PORTSDIR}/devel/p5-Params-Validate \
		${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}/WWW/Mechanize.pm:${PORTSDIR}/www/p5-WWW-Mechanize
RUN_DEPENDS=	${BUILD_DEPENDS}

IGNORE=		uses a random gid in the range reserved for local sysadmin use

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

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-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
BUILD_DEPENDS+=	${LOCALBASE}/libexec/apache/libperl.so:${PORTSDIR}/www/mod_perl
.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=	yes
RT_PATH?=	${PREFIX}/rt3
LAYOUT?=	RT3

DB_DBA_USER?=	root
DB_HOST?=	localhost
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} "      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_DBA_USER=username            Name of database administrator (root)"
	@@${ECHO} "      DB_DBA_PASSWORD=password        Password of database administrator"
	@@${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 setup only)"
	@@${ECHO} ""

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

post-patch:
	@@${FIND} ${WRKSRC} -name "*.orig" -a -exec ${RM} -f {} \;

post-install:
	@@${INSTALL_DATA} ${WRKSRC}/README ${RT_PATH}/README
	@@[ -f ${RT_PATH}/etc/RT_SiteConfig.pm ] ||
		${CP} -p ${RT_PATH}/etc/RT_SiteConfig.pm-dist ${RT_PATH}/etc/RT_SiteConfig.pm
	@@PKG_PREFIX=${PREFIX} RT_PATH=${RT_PATH} \
	 DB_DBA_USER=${DB_DBA_USER} DB_DBA_PASSWORD=${DB_DBA_USER} \
	 INITIAL_INSTALL=${INITIAL_INSTALL} PKGMESSAGE=${PKGMESSAGE} \
	 ${SH} ${PKGINSTALL} \
		${PKGNAME} POST-INSTALL

.include <bsd.port.pre.mk>

.if ${PERL_LEVEL} < 500800
BUILD_DEPENDS+=	${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp
.endif

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


1.52
log
@Update my ports to my freebsd address

Approved by:    araujo (mentor)
@
text
@d5 1
a5 1
# $FreeBSD$
@


1.51
log
@Assign to new maintainer by request.
@
text
@d17 1
a17 1
MAINTAINER=	pgollucci@@p6m7g8.com
@


1.50
log
@- Remove old Perl support from unmaintained ports in categories starting
  with letter o-z
@
text
@d17 1
a17 1
MAINTAINER=	ports@@FreeBSD.org
@


1.49
log
@IGNORE: this port uses a random gid in the range reserved for local
sysadmin use
@
text
@a153 4
.if ${PERL_LEVEL} < 500601
IGNORE=		This program only support perl 5.6.1 or above
.endif

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


1.48
log
@- Move to better category

  devel/p5-Encode -> converters/p5-Encode
  devel/p5-Encode-compat -> converters/p5-Encode-compat

PR:		ports/97644
Submitted by:	Rong-En Fan <rafan@@infor.org> (maintainer)
@
text
@d55 2
@


1.47
log
@Fix for updated Mason API, see:
 http://lists.bestpractical.com/pipermail/rt-users/2005-August/033304.html
@
text
@d159 1
a159 1
BUILD_DEPENDS+=	${SITE_PERL}/Encode/compat.pm:${PORTSDIR}/devel/p5-Encode-compat \
@


1.46
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
@d10 1
a10 1
PORTREVISION=	2
@


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

Hat:	portmgr
@
text
@d55 1
@


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


1.43
log
@- Really fix packing list.

Reviewed by:	mat
Approved by:	portmgr (krion)
Pointyhat to:	flz
@
text
@d80 1
@


1.42
log
@- Add a patch that installs RT_SiteConfig.pm as RT_SiteConfig.pm-dist.
- Instanciate RT_SiteConfig.pm from RT_SiteConfig.pm-dist at install stage
if it doesn't exist yet and remove it at deinstall if it hasn't been changed.

PR:		ports/75558
Submitted by:	edwin
Reviewed by:	edwin
Approved by:	pav (mentor), maintainer timeout (2 months)
@
text
@d10 1
a10 1
PORTREVISION=	1
@


1.41
log
@- update 3.0.12
- add two patch files for SQLite

PR:		ports/73029
Submitted by:	clsung
Approved by:	maintainer (Autrijus Tang), co-mentor (vanilla)
@
text
@d10 1
d140 2
@


1.40
log
@- Fix plist

PR:		ports/68980
Submitted by:	Palle Girgensohn <girgen@@banan.pingpong.net>
Approved by:	maintainer timeout (3 weeks)
@
text
@d9 1
a9 2
PORTVERSION?=	3.0.11
PORTREVISION?=	1
a19 1
		${SITE_PERL}/Apache/Mason.pm:${PORTSDIR}/www/p5-HTML-Mason \
d31 1
d55 2
a56 2
NO_BUILD=	yes
NO_PACKAGE=	Executes scripts in post-install phase
d74 1
a74 1
BUILD_DEPENDS+=		${SITE_PERL}/${PERL_ARCH}/FCGI.pm:${PORTSDIR}/www/p5-FastCGI
d90 1
a90 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Oracle.pm:${PORTSDIR}/databases/p5-DBD-Oracle
d93 1
a93 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/Pg.pm:${PORTSDIR}/databases/p5-DBD-Pg
d96 1
a96 1
BUILD_DEPENDS+= ${SITE_PERL}/${PERL_ARCH}/DBD/SQLite.pm:${PORTSDIR}/databases/p5-DBD-SQLite
d127 1
a127 1
	@@${ECHO} "      INITIAL_INSTALL                 Do initialize DB (for initial install only)"
d131 1
a131 1
	PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} \
d134 3
d139 5
a143 7
.if !defined(INITIAL_INSTALL)
	@@echo Upgrade of RT3 complete.
.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
@


1.39
log
@After devel/p5-File-Temp has gained an IGNORE for PERL_LEVEL > 500800, all
these ports were broken because they always depended on it. I've rearranged all
the dependencies to fit the new scheme.
@
text
@d10 1
@


1.38
log
@Update to 3.0.11 release.

Approved by:	maintainer
@
text
@a27 1
		${SITE_PERL}/File/Temp.pm:${PORTSDIR}/devel/p5-File-Temp \
d150 2
d155 1
@


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
@

