pkgsrc/devel/rt3/Makefile

123 lines
4.5 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.32 2008/04/30 10:20:20 cube Exp $
DISTNAME= rt-3.6.6
PKGREVISION= 3
CATEGORIES= devel
MASTER_SITES= http://download.bestpractical.com/pub/rt/release/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://bestpractical.com/rt/
COMMENT= Industrial-grade ticketing system
.include "options.mk"
USE_TOOLS+= perl:run
# Core dependencies:
DEPENDS+= p5-Digest-[0-9]*:../../security/p5-Digest
DEPENDS+= p5-Digest-MD5>=2.27:../../security/p5-Digest-MD5
DEPENDS+= p5-DBI>=1.37:../../databases/p5-DBI
DEPENDS+= p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue
DEPENDS+= p5-TimeDate-[0-9]*:../../time/p5-TimeDate
DEPENDS+= p5-DBIx-SearchBuilder>=1.50:../../databases/p5-DBIx-SearchBuilder
DEPENDS+= p5-Text-Template>=1.43:../../textproc/p5-Text-Template
DEPENDS+= p5-HTML-Parser>=3.35:../../www/p5-HTML-Parser
DEPENDS+= p5-HTML-Scrubber>=0.08:../../www/p5-HTML-Scrubber
DEPENDS+= p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch
DEPENDS+= p5-Locale-Maketext>=1.06:../../misc/p5-Locale-Maketext
DEPENDS+= p5-Locale-Maketext-Lexicon>=0.32:../../misc/p5-Locale-Maketext-Lexicon
DEPENDS+= p5-Locale-Maketext-Fuzzy>=0.02:../../misc/p5-Locale-Maketext-Fuzzy
DEPENDS+= p5-MIME-tools>=5.411.1:../../mail/p5-MIME-tools
DEPENDS+= p5-MailTools>=1.57:../../mail/p5-MailTools
DEPENDS+= p5-Net>=1.15:../../net/p5-Net
DEPENDS+= p5-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper
DEPENDS+= p5-Time>=101.062101:../../time/p5-Time
DEPENDS+= p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat
DEPENDS+= p5-Text-Quoted>=2.02:../../textproc/p5-Text-Quoted
DEPENDS+= p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple
DEPENDS+= p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common
DEPENDS+= p5-Module-Versions-Report>=1.03:../../devel/p5-Module-Versions-Report
DEPENDS+= p5-Cache-Simple-TimedExpiry-[0-9]*:../../devel/p5-Cache-Simple-TimedExpiry
Update to version 3.4.6. Features: New config option 'OldestTransactionsFirst'. By default, RT shows newest transactions at the bottom of the ticket history page, if you want see them at the top set this to 0. Email plugin may return special constant to indicate that it's done requested action and RT shouldn't run default action handling code. See also RT::Interface::Email. Added support for timezones in RT::Date::SetToMidnight method, this allowed us to fix problems with searches by date. Applied David Schweikert's patch that adds the useful LastUpdated field to the fields returned through the REST interface. Added a "RH" RedHat layout option to config.layout. Thanks to Paulo Matos. New command line options in the rt-crontool script: * add --transaction argument with two possible values: 'first' and 'last' * add --transaction-type argument to allow a user to select type of transaction, for example 'Correspond' or 'Comment'. With these changes crontool can send notifications and other actions which need access to transaction object. New callbacks in html/Ticket/Elements/ShowSummary: LeftColumn and RightColumn. Display a custom field value without lists HTML markup when a ticket has only one value for the custom field. Add additional HTML classes to the cells in Ticket/Elements/ShowBasics and Ticket/Elements/ShowDates mason templates. Fixes: Don't die any more on error during custom fields creation in rt-setup-database, but report and continue with next object. Dropped 'exit' call in exceptions handling code. Fixed untake operation during tickets transfer between queues when an owner has no right to own the ticket in the destination queue and the current user is different person. Note in new implementation we write untake tansaction from RT_System user. Fixed problem when RT were failing with error: "Couldn't call method IsLocal on undefined value". Got rid of some noisy warnings and cleaned up some code. Fixed attchments loosing during next steps: 1) open ticket #1 2) click reply 3) upload attachment 4) open ticket #2 in another browser window 5) send reply to the ticket #1 RT was loosing uploaded attachment due to step 4) as RT. Finding disabled groups should actually find them, now. Fixed `rt ls -l` when RT server isn't at /. Thanks to Mark Eichin. Reed Loden caught a perltidy error that, somewhat terrifiyingly, was still a valid mason page. People may saw error "Could not convert attachment from assumed utf8 to ''" in the log. We don't even try to convert any more when target encoding is empty. Fixed maxsize attribute of input fields for subject. In DB we have limit 200, but these tags were set to old value of 100. Backported fix for TimeTaken updates. RT could call method _UpdateTimeTaken on record objects that have no such method. Fixed RT failures under mod_perl2 with Oracle database. In QuickCreate element now we use SelectNewTicketQueue instead of SelectQueue. Fixed problems on server start up with error message 'Not root path(s) specified'. Now we load only required regular expressions from Regexp::Common namespace. In RT::Tickets::_EnumLimit now we load referenced object only if value is defined and is not number, this avoid several fetches from caches or in worst case from DB. Use this advantage in Quicksearch element, change in "RT at glance" load time should be noticable on systems with many queues. Added handling for all possible errors in the RT::Action::SendEmail module. Improved handling of errors in the RT::Template class. In the RT::Group method 'crit' was being called on the wrong object. Thanks to Todd Chapman Allow an administrator to add 0(zero) as a custom field value. Fixed decoding of MIME headers, this chould should fix: * problems with non-ascii names of attachments * problems with partly encoded fields with '=' chars in not encoded parts, for example: X-MyHeader: key="plain"; key="=?encoded?=" X-MyHeader: key="=?encoded?="; key="plain" Fixed RT::Transaction::OldValue and ::NewValue in situations when values of {Old,New}Reference fileds are false. You may saw effect of this bug in a ticket's history saying that custom field value was changed from "random" value to the XXX instead of expected "custom field was set to XXX value". Todd Chapman discovered a case where RT's mail gateway would default to the RT::SystemUser if no valid 'From' header were found. This could allow a malicious user to create tickets or reply to tickets, but not to gain access to data. Localization: Updated German translation. Thanks to Torsten Brumm.
2007-11-13 03:40:06 +01:00
DEPENDS+= p5-UNIVERSAL-require>=0.11:../../devel/p5-UNIVERSAL-require
DEPENDS+= p5-Calendar-Simple>=1.00:../../time/p5-Calendar-Simple
DEPENDS+= p5-CSS-Squish>=0.07:../../www/p5-CSS-Squish
# Mason dependencies:
DEPENDS+= p5-HTML-Mason>=1.31:../../www/p5-HTML-Mason
DEPENDS+= p5-Apache-Session>=1.53:../../www/p5-Apache-Session
DEPENDS+= p5-XML-RSS>=1.05:../../textproc/p5-XML-RSS
DEPENDS+= p5-GD-[0-9]*:../../graphics/p5-GD
DEPENDS+= p5-GDGraph-[0-9]*:../../graphics/p5-GDGraph
DEPENDS+= p5-GDTextUtil-[0-9]*:../../graphics/p5-GDTextUtil
DEPENDS+= p5-Text-WikiFormat>=0.76:../../textproc/p5-Text-WikiFormat
DEPENDS+= p5-Module-Refresh>=0.03:../../devel/p5-Module-Refresh
# Mailgate dependencies:
DEPENDS+= p5-HTML-Tree>=3.18:../../www/p5-HTML-Tree
DEPENDS+= p5-HTML-Format>=2.03:../../www/p5-HTML-Format
DEPENDS+= p5-libwww>=5.76:../../www/p5-libwww
DEPENDS+= p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey
# Front-end dependencies:
.if !empty(PKG_OPTIONS:Mmodperl1)
DEPENDS+= p5-libapreq>=1.2:../../www/p5-libapreq
DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI
.elif !empty(PKG_OPTIONS:Mmodperl2)
DEPENDS+= p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI
.elif !empty(PKG_OPTIONS:Mfastcgi)
DEPENDS+= p5-FCGI>=0.67:../../www/p5-FCGI
.endif
PLIST_VARS+= speedycgi
.if !empty(PKG_OPTIONS:Mspeedycgi)
DEPENDS+= SpeedyCGI-[0-9]*:../../www/SpeedyCGI
PLIST.speedycgi=yes
.else
MAKE_FLAGS+= RT_SPEEDYCGI_HANDLER=""
.PHONY: rm-speedycgi
post-install: rm-speedycgi
rm-speedycgi:
rm -f ${PREFIX}/bin/mason_handler.scgi
.endif
# Back-end dependencies
.if !empty(PKG_OPTIONS:Mmysql)
DEPENDS+= p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql
_RT_DB_TYPE= mysql
.elif !empty(PKG_OPTIONS:Mpgsql)
DEPENDS+= p5-DBD-postgresql>=1.43:../../databases/p5-DBD-postgresql
_RT_DB_TYPE= Pg
.elif !empty(PKG_OPTIONS:Moracle)
DEPENDS+= p5-DBD-Oracle-[0-9]*:../../databases/p5-DBD-Oracle
_RT_DB_TYPE= Oracle
.elif !empty(PKG_OPTIONS:Msqlite)
DEPENDS+= p5-DBD-SQLite>=1.00:../../databases/p5-DBD-SQLite
_RT_DB_TYPE= SQLite
.endif
USE_PKGLOCALEDIR= yes
GNU_CONFIGURE= yes
NO_BUILD= yes
PKG_SYSCONFSUBDIR= rt3
PKG_GROUPS= ${RT_GROUP}
PKG_GROUPS_VARS+= RT_GROUP APACHE_GROUP
PKG_USERS_VARS+= APACHE_USER
CONFIGURE_ARGS+= --enable-layout=pkgsrc
CONFIGURE_ARGS+= --with-rt-group=${RT_GROUP:Q}
CONFIGURE_ARGS+= --with-db-type=${_RT_DB_TYPE:Q}
CONFIGURE_ARGS+= --with-web-user=${APACHE_USER:Q}
CONFIGURE_ARGS+= --with-web-group=${APACHE_GROUP:Q}
CONFIGURE_ARGS+= --with-speedycgi=${PERL5_INSTALLVENDORBIN}/speedy
MESSAGE_SUBST+= HOMEPAGE=${HOMEPAGE:Q}
MESSAGE_SUBST+= RT_GROUP=${RT_GROUP:Q}
MESSAGE_SUBST+= PKG_SYSCONFDIR=${PKG_SYSCONFDIR:Q}
post-extract:
cd ${WRKSRC} && chmod -R g-w .
.include "Makefile.install"
.include "../../mk/bsd.pkg.mk"