pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/rt3 Initial import of rt3, version 3.2.1, into t...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/576bc9ee748c
branches:  trunk
changeset: 479021:576bc9ee748c
user:      cube <cube%pkgsrc.org@localhost>
date:      Tue Aug 03 15:33:48 2004 +0000

description:
Initial import of rt3, version 3.2.1, into the NetBSD Packages
Collection.

This package is based on the work of Dieter Roelants in pkgsrc-wip, with
a lot of changes to make it proper WRT pkgsrc.

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.

diffstat:

 devel/rt3/DESCR            |    5 +
 devel/rt3/INSTALL          |   19 +
 devel/rt3/MESSAGE          |   11 +
 devel/rt3/Makefile         |  101 +++++++++
 devel/rt3/Makefile.install |   67 ++++++
 devel/rt3/Makefile.options |   21 +
 devel/rt3/PLIST            |  498 +++++++++++++++++++++++++++++++++++++++++++++
 devel/rt3/distinfo         |    5 +
 devel/rt3/patches/patch-aa |   33 ++
 9 files changed, 760 insertions(+), 0 deletions(-)

diffs (truncated from 796 to 300 lines):

diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/DESCR
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/DESCR   Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,5 @@
+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.
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/INSTALL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/INSTALL Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,19 @@
+# $NetBSD: INSTALL,v 1.1.1.1 2004/08/03 15:33:49 cube Exp $
+
+case $STAGE in
+POST-INSTALL)
+       @ECHO@ "==> Creating additional directories"
+       @MKDIR@ @RTVARDIR@ 2>/dev/null
+       @MKDIR@ @RTVARDIR@/mason_data 2>/dev/null
+       @MKDIR@ @RTVARDIR@/session_data 2>/dev/null
+       @MKDIR@ @RTLOCALDIR@ 2>/dev/null
+       @MKDIR@ @RTLOCALDIR@/etc 2>/dev/null
+       @MKDIR@ @RTLOCALDIR@/lib 2>/dev/null
+       @MKDIR@ @RTLOCALDIR@/po 2>/dev/null
+       @MKDIR@ @RTLOCALDIR@/html 2>/dev/null
+       @ECHO@ "==> Fixing permissions"
+       @CHMOD@ 0770 @RTVARDIR@/mason_data @RTVARDIR@/session_data 2>/dev/null
+       @CHOWN@ @WEBUSER@ @RTVARDIR@/mason_data @RTVARDIR@/session_data 2>/dev/null
+       @CHGRP@ @WEBGROUP@ @RTVARDIR@/mason_data @RTVARDIR@/session_data 2>/dev/null
+       ;;
+esac
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/MESSAGE
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/MESSAGE Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,11 @@
+===========================================================================
+$NetBSD: MESSAGE,v 1.1.1.1 2004/08/03 15:33:50 cube Exp $
+
+You must configure RT by editing ${PKG_SYSCONFDIR}/RT_SiteConfig.pm.
+
+To initialize the RT database, run
+       ${PREFIX}/sbin/rt-setup-database --action init
+as a user in the ${RT_GROUP} group or as superuser.
+
+See also the manual on ${HOMEPAGE}docs.html
+===========================================================================
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/Makefile
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/Makefile        Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,101 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/08/03 15:33:49 cube Exp $
+
+DISTNAME=              rt-3.2.1
+CATEGORIES=            devel
+MASTER_SITES=          http://download.bestpractical.com/pub/rt/release/
+
+MAINTAINER=            cube%NetBSD.org@localhost
+HOMEPAGE=              http://bestpractical.com/rt/
+COMMENT=               Industrial-grade ticketing system
+
+.include "Makefile.options"
+
+# 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-Test-Inline>=0.15:../../devel/p5-Test-Inline
+DEPENDS+=      p5-Class-ReturnValue>=0.40:../../devel/p5-Class-ReturnValue
+DEPENDS+=      p5-DBIx-SearchBuilder>=1.01:../../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-Net>=1.15:../../net/p5-Net
+DEPENDS+=      p5-Log-Dispatch>=2.0:../../devel/p5-Log-Dispatch
+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-Text-Wrapper>=1.0:../../textproc/p5-Text-Wrapper
+DEPENDS+=      p5-Time>=101.062101:../../time/p5-Time
+DEPENDS+=      p5-Term-ReadKey>=2.21:../../devel/p5-Term-ReadKey
+DEPENDS+=      p5-Text-Autoformat>=1.04:../../textproc/p5-Text-Autoformat
+DEPENDS+=      p5-Text-Quoted>=1.5:../../textproc/p5-Text-Quoted
+DEPENDS+=      p5-Tree-Simple>=1.04:../../devel/p5-Tree-Simple
+DEPENDS+=      p5-Module-Versions-Report-[0-9]*:../../devel/p5-Module-Versions-Report
+
+# Mason dependencies:
+DEPENDS+=      p5-Params-Validate>=0.02:../../devel/p5-Params-Validate
+DEPENDS+=      p5-Cache-Cache>=1.02:../../devel/p5-Cache-Cache
+DEPENDS+=      p5-Exception-Class>=1.14:../../devel/p5-Exception-Class
+DEPENDS+=      p5-HTML-Mason>=1.23:../../www/p5-HTML-Mason
+DEPENDS+=      p5-MLDBM>=2.01:../../databases/p5-MLDBM
+DEPENDS+=      p5-FreezeThaw>=0.43:../../devel/p5-FreezeThaw
+DEPENDS+=      p5-Storable>=2.08:../../devel/p5-Storable
+DEPENDS+=      p5-Apache-Session>=1.53:../../www/p5-Apache-Session
+DEPENDS+=      p5-XML-RSS-[0-9]*:../../textproc/p5-XML-RSS
+
+# 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
+
+# Front-end dependencies:
+.if !empty(PKG_OPTIONS:Mfrontend-modperl1)
+DEPENDS+=      p5-libapreq>=1.2:../../www/p5-libapreq
+DEPENDS+=      p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI
+.elif !empty(PKG_OPTIONS:Mfrontend-modperl2)
+DEPENDS+=      p5-Apache-DBI>=0.92:../../databases/p5-Apache-DBI
+.elif !empty(PKG_OPTIONS:Mfrontend-fastcgi)
+DEPENDS+=      p5-FCGI>=0.67:../../www/p5-FCGI
+.endif
+
+# Back-end dependencies
+.if !empty(PKG_OPTIONS:Mbackend-mysql)
+DEPENDS+=      mysql-client>=4.0.9:../../databases/mysql4-client
+DEPENDS+=      p5-DBD-mysql>=2.1018:../../databases/p5-DBD-mysql
+_RT_DB_TYPE=           mysql
+.elif !empty(PKG_OPTIONS:Mbackend-pgsql)
+DEPENDS+=      p5-DBD-Pg-[0-9]*:../../database/p5-DBD-Pg
+_RT_DB_TYPE=           Pg
+.endif
+
+# Dev dependencies:
+DEPENDS+=      p5-Regexp-Common>=2.113:../../textproc/p5-Regexp-Common
+DEPENDS+=      p5-Apache-Test-[0-9]*:../../wip/p5-Apache-Test
+DEPENDS+=      p5-WWW-Mechanize>=0.72:../../www/p5-WWW-Mechanize
+
+USE_BUILDLINK3=                yes
+USE_PKGLOCALEDIR=      yes
+GNU_CONFIGURE=         yes
+NO_BUILD=              yes
+USE_PKGINSTALL=                yes
+PKG_SYSCONFSUBDIR=     rt3
+
+PERL5_REQD+=           5.8.3
+
+PKG_GROUPS=            ${RT_GROUP}
+
+CONFIGURE_ARGS+=       --enable-layout=pkgsrc
+CONFIGURE_ARGS+=       --with-rt-group=${RT_GROUP}
+CONFIGURE_ARGS+=       --with-db-type=${_RT_DB_TYPE}
+CONFIGURE_ARGS+=       --with-web-user=${APACHE_USER}
+CONFIGURE_ARGS+=       --with-web-group=${APACHE_GROUP}
+
+MESSAGE_SUBST+=                HOMEPAGE=${HOMEPAGE}
+MESSAGE_SUBST+=                RT_GROUP=${RT_GROUP}
+MESSAGE_SUBST+=                PKG_SYSCONFDIR=${PKG_SYSCONFDIR}
+
+.include "Makefile.install"
+
+.include "../../mk/bsd.pkg.mk"
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/Makefile.install
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/Makefile.install        Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,67 @@
+# $NetBSD: Makefile.install,v 1.1.1.1 2004/08/03 15:33:50 cube Exp $
+
+RT_SHARE_DIR=          ${PREFIX}/share/rt3
+RT_EXAMPLE_DIR=        ${PREFIX}/share/examples/rt3
+RT_LIB_DIR=            ${PREFIX}/lib/rt3
+RT_VAR_DIR=            ${VARBASE}/spool/rt3
+RT_LOCAL_DIR?=         ${RT_SHARE_DIR}/local
+RT_HTML_DIR=           ${RT_SHARE_DIR}/html
+RT_DOC_DIR=            ${PREFIX}/share/doc/rt3
+
+BUILD_DEFS+=           RT_LOCAL_DIR
+
+OWN_DIRS+=             ${RT_LOCAL_DIR} ${RT_SHARE_DIR} ${RT_VAR_DIR}
+
+SUBST_CLASSES+=                prefix
+SUBST_FILES.prefix=    config.layout
+SUBST_SED.prefix=      -e s,@PREFIX@,${PREFIX},                \
+                       -e s,@PKGSYSCONFDIR@,${PKG_SYSCONFDIR}, \
+                       -e s,@RTLIBDIR@,${RT_LIB_DIR},          \
+                       -e s,@RTSHAREDIR@,${RT_SHARE_DIR},      \
+                       -e s,@RTHTMLDIR@,${RT_HTML_DIR},        \
+                       -e s,@RTDOCDIR@,${RT_DOC_DIR},          \
+                       -e s,@RTVARDIR@,${RT_VAR_DIR},          \
+                       -e s,@RTLOCALDIR@,${RT_LOCAL_DIR},
+SUBST_STAGE.prefix=    pre-configure
+
+RT_CONFIG_FILES=       RT_Config.pm RT_SiteConfig.pm
+RT_SUPPORT_FILES=      acl.Informix acl.Oracle acl.Pg acl.Sybase acl.mysql             \
+                       initialdata schema.Informix schema.Oracle schema.Pg             \
+                       schema.Sybase schema.mysql
+
+.for _file_ in ${RT_CONFIG_FILES}
+CONF_FILES_PERMS+=     ${RT_EXAMPLE_DIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_} \
+${ROOT_USER} ${RT_GROUP} 0550
+.endfor
+.for _file_ in ${RT_SUPPORT_FILES}
+CONF_FILES_PERMS+=     ${RT_EXAMPLE_DIR}/${_file_} ${PKG_SYSCONFDIR}/${_file_} \
+${ROOT_USER} ${RT_GROUP} 0500
+.endfor
+
+INSTALL_EXTRA_TMPL+=   ${PKGDIR}/INSTALL
+FILES_SUBST+=          RTVARDIR=${RT_VAR_DIR:Q} RTLOCALDIR=${RT_LOCAL_DIR:Q}
+FILES_SUBST+=          WEBUSER=${APACHE_USER} WEBGROUP=${APACHE_GROUP}
+
+do-install:
+       @${ECHO} "=> Configuration files"
+       ${INSTALL_DATA_DIR} ${RT_EXAMPLE_DIR}
+.for _file_ in ${RT_CONFIG_FILES} ${RT_SUPPORT_FILES}
+       ${INSTALL_DATA} ${WRKSRC}/etc/${_file_} ${RT_EXAMPLE_DIR}
+.endfor
+       @${ECHO} "=> Libraries"
+       ${INSTALL_DATA_DIR} ${RT_LIB_DIR}
+       cd ${WRKSRC}/lib && ${FIND} . -type f ! -name '*.orig' 2>/dev/null | ${PAX} -rw ${RT_LIB_DIR}
+       @${ECHO} "=> Binaries"
+       ${INSTALL_SCRIPT} ${WRKSRC}/bin/rt-mailgate ${WRKSRC}/bin/rt-crontool           \
+               ${WRKSRC}/bin/mason_handler.fcgi ${WRKSRC}/bin/mason_handler.scgi       \
+               ${WRKSRC}/bin/standalone_httpd ${WRKSRC}/bin/mason_handler.svc          \
+               ${WRKSRC}/bin/rt ${WRKSRC}/bin/webmux.pl ${WRKSRC}/bin/rt-crontool      \
+               ${PREFIX}/bin
+       ${INSTALL_SCRIPT} ${WRKSRC}/sbin/rt-setup-database                              \
+               ${WRKSRC}/sbin/rt-test-dependencies ${PREFIX}/sbin
+       @${ECHO} "=> HTML documents"
+       ${INSTALL_DATA_DIR} ${RT_HTML_DIR}
+       cd ${WRKSRC}/html && ${FIND} . -type f ! -name '*.orig' 2>/dev/null | ${PAX} -rw ${RT_HTML_DIR}
+       @${ECHO} "=> Documentation"
+       ${INSTALL_DATA_DIR} ${RT_DOC_DIR}
+       ${INSTALL_DATA} ${WRKSRC}/README ${RT_DOC_DIR}
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/Makefile.options
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/Makefile.options        Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.options,v 1.1.1.1 2004/08/03 15:33:50 cube Exp $
+
+PKG_OPTIONS_VAR=       PKG_OPTIONS.rt
+PKG_SUPPORTED_OPTIONS= backend-mysql backend-pgsql             \
+                       frontend-modperl1 frontend-modperl2     \
+                       frontend-fastcgi
+PKG_DEFAULT_OPTIONS=   backend-mysql frontend-fastcgi
+
+.include "../../mk/bsd.options.mk"
+
+# Too bad -1-6's make doesn't have :[#] modifier
+.for _option_ in backend frontend
+. if empty(PKG_OPTIONS:M${_option_}-*)
+PKG_FAIL_REASON+=      "There must one and only one ${_option_} defined."
+. endif
+.endfor
+
+# Other options
+
+RT_GROUP?=             rt
+BUILD_DEFS+=           RT_GROUP
diff -r 8af40a6404e2 -r 576bc9ee748c devel/rt3/PLIST
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/rt3/PLIST   Tue Aug 03 15:33:48 2004 +0000
@@ -0,0 +1,498 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/08/03 15:33:49 cube Exp $
+bin/mason_handler.fcgi
+bin/mason_handler.scgi
+bin/mason_handler.svc
+bin/rt
+bin/rt-crontool
+bin/rt-mailgate
+bin/standalone_httpd
+bin/webmux.pl
+lib/rt3/RT.pm
+lib/rt3/RT.pm.in
+lib/rt3/RT/ACE.pm
+lib/rt3/RT/ACE_Overlay.pm
+lib/rt3/RT/ACL.pm
+lib/rt3/RT/ACL_Overlay.pm
+lib/rt3/RT/Action/AutoOpen.pm
+lib/rt3/RT/Action/Autoreply.pm
+lib/rt3/RT/Action/CreateTickets.pm
+lib/rt3/RT/Action/EscalatePriority.pm
+lib/rt3/RT/Action/Generic.pm
+lib/rt3/RT/Action/Notify.pm
+lib/rt3/RT/Action/NotifyAsComment.pm
+lib/rt3/RT/Action/ResolveMembers.pm
+lib/rt3/RT/Action/SendEmail.pm
+lib/rt3/RT/Action/SetPriority.pm
+lib/rt3/RT/Action/UserDefined.pm
+lib/rt3/RT/Attachment.pm
+lib/rt3/RT/Attachment_Overlay.pm
+lib/rt3/RT/Attachments.pm
+lib/rt3/RT/Attachments_Overlay.pm
+lib/rt3/RT/Attribute.pm
+lib/rt3/RT/Attribute_Overlay.pm
+lib/rt3/RT/Attributes.pm
+lib/rt3/RT/Attributes_Overlay.pm
+lib/rt3/RT/Base.pm
+lib/rt3/RT/CachedGroupMember.pm
+lib/rt3/RT/CachedGroupMember_Overlay.pm
+lib/rt3/RT/CachedGroupMembers.pm
+lib/rt3/RT/CachedGroupMembers_Overlay.pm
+lib/rt3/RT/Condition/AnyTransaction.pm
+lib/rt3/RT/Condition/BeforeDue.pm
+lib/rt3/RT/Condition/Generic.pm
+lib/rt3/RT/Condition/Overdue.pm
+lib/rt3/RT/Condition/OwnerChange.pm
+lib/rt3/RT/Condition/PriorityChange.pm
+lib/rt3/RT/Condition/PriorityExceeds.pm
+lib/rt3/RT/Condition/QueueChange.pm
+lib/rt3/RT/Condition/StatusChange.pm



Home | Main Index | Thread Index | Old Index