# Created by: Sergey Skvortsov # $FreeBSD$ PORTNAME= otrs PORTVERSION= 3.1.14 CATEGORIES= devel MASTER_SITES= http://ftp.otrs.org/pub/otrs/ \ ftp://ftp.samurai.com/pub/otrs/ \ http://ftp.gwdg.de/pub/misc/otrs/ \ http://mirror.xaranet.de/otrs/ MAINTAINER= m.tsatsenko@gmail.com COMMENT= Open Ticket Request System LICENSE= GPLv3 BUILD_DEPENDS= p5-Date-Pcalc>=0:${PORTSDIR}/devel/p5-Date-Pcalc \ p5-TimeDate>=0:${PORTSDIR}/devel/p5-TimeDate \ p5-DBI>=0:${PORTSDIR}/databases/p5-DBI \ p5-Crypt-PasswdMD5>=0:${PORTSDIR}/security/p5-Crypt-PasswdMD5 \ p5-Digest-SHA>=0:${PORTSDIR}/security/p5-Digest-SHA \ p5-libwww>=0:${PORTSDIR}/www/p5-libwww \ p5-IO-stringy>=0:${PORTSDIR}/devel/p5-IO-stringy \ p5-Mail-Tools>=0:${PORTSDIR}/mail/p5-Mail-Tools \ p5-MIME-Tools>=5.427:${PORTSDIR}/mail/p5-MIME-Tools \ p5-Net-DNS>=0.66:${PORTSDIR}/dns/p5-Net-DNS \ p5-Algorithm-Diff>=0:${PORTSDIR}/devel/p5-Algorithm-Diff \ p5-XML-Parser>=0:${PORTSDIR}/textproc/p5-XML-Parser \ p5-Text-CSV>=0:${PORTSDIR}/textproc/p5-Text-CSV \ p5-Text-CSV_XS>=0:${PORTSDIR}/textproc/p5-Text-CSV_XS \ p5-JSON>=0:${PORTSDIR}/converters/p5-JSON \ p5-JSON-XS>=0:${PORTSDIR}/converters/p5-JSON-XS \ p5-CSS-Minifier-XS>=0:${PORTSDIR}/textproc/p5-CSS-Minifier-XS \ p5-JavaScript-Minifier-XS>=0:${PORTSDIR}/textproc/p5-JavaScript-Minifier-XS \ p5-Text-Diff>=0:${PORTSDIR}/textproc/p5-Text-Diff \ p5-XML-FeedPP>=0:${PORTSDIR}/textproc/p5-XML-FeedPP RUN_DEPENDS:= ${BUILD_DEPENDS} OPTIONS_DEFINE= MYSQL PGSQL REPORTS_MODULES SMTP POP3 IMAP LDAP PDF \ GNUPG DOCS OPTIONS_DEFAULT= MYSQL REPORTS_MODULES SMTP POP3 IMAP PDF ASPELL OPTIONS_RADIO= SPELL OPTIONS_RADIO_SPELL= ASPELL ISPELL IMAP_DESC= Fetch email via IMAP POP3_DESC= Fetch email via POP3 SMTP_DESC= Send email via SMTP REPORTS_MODULES_DESC= Reports support USE_BZIP2= yes OTRSDIR= ${PREFIX}/otrs USERS= ${PORTNAME} GROUPS= ${USERS} SUB_FILES= pkg-install pkg-message PKGMESSAGE= ${WRKDIR}/pkg-message ROOT_DIRS_LIST= Kernel bin scripts BIN_DIRS_LIST= "" cgi-bin fcgi-bin PM_DIRS_LIST= Kernel Kernel/Config Kernel/Config/Files Kernel/Language \ Modules Kernel/Output/HTML Kernel/Output/HTML/Lite \ Kernel/Output/HTML/Standard System System/Auth System/AuthSession \ System/Crypt System/CustomerAuth System/CustomerUser \ System/CustomerUser/ System/ DOCS_DIRS_LIST= "" manual/en DOCS_FILES_LIST= C[A-Z]* INSTALL RE* UPGRADING SCRIPTS_DIRS_LIST= "" database/update test tools CLEAN_FILES= scripts/suse* scripts/redhat* \ var/httpd/htdocs/js/thirdparty/ckeditor-3.4.2/_source \ var/httpd/htdocs/skins/Agent/*/img/source USE_APACHE_RUN= 22+ USE_PERL5= yes PLIST_SUB+= VER_CKEDITOR="3.6.6" .include .if ${PORT_OPTIONS:MMYSQL} RUN_DEPENDS+= p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql USE_MYSQL= yes .endif .if ${PORT_OPTIONS:MPGSQL} RUN_DEPENDS+= p5-DBD-Pg>=0:${PORTSDIR}/databases/p5-DBD-Pg USE_PGSQL= yes .endif RUN_DEPENDS+= ${APACHE_PKGNAMEPREFIX}mod_perl2>=2.0.5:${PORTSDIR}/www/mod_perl2 .if ${PORT_OPTIONS:MREPORTS_MODULES} RUN_DEPENDS+= p5-GD>=0:${PORTSDIR}/graphics/p5-GD \ p5-GD-Graph>=0:${PORTSDIR}/graphics/p5-GD-Graph \ p5-GD-TextUtil>=0:${PORTSDIR}/graphics/p5-GD-TextUtil .endif .if ${PORT_OPTIONS:MSMTP} RUN_DEPENDS+= p5-Net-SMTP-SSL>=0:${PORTSDIR}/mail/p5-Net-SMTP-SSL \ p5-Net-SMTP-TLS>=0:${PORTSDIR}/mail/p5-Net-SMTP-TLS \ p5-Authen-SASL>=0:${PORTSDIR}/security/p5-Authen-SASL .endif .if ${PORT_OPTIONS:MPOP3} RUN_DEPENDS+= p5-Mail-POP3Client>=0:${PORTSDIR}/mail/p5-Mail-POP3Client \ p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL .endif .if ${PORT_OPTIONS:MIMAP} RUN_DEPENDS+= p5-Net-IMAP-Simple-SSL>=0:${PORTSDIR}/mail/p5-Net-IMAP-Simple-SSL .endif .if ${PORT_OPTIONS:MLDAP} RUN_DEPENDS+= p5-perl-ldap>=0:${PORTSDIR}/net/p5-perl-ldap .endif .if ${PORT_OPTIONS:MPDF} RUN_DEPENDS+= p5-PDF-API2>=0.57:${PORTSDIR}/textproc/p5-PDF-API2 . if ${PERL_LEVEL} < 500903 RUN_DEPENDS+= p5-IO-Compress>=2.017:${PORTSDIR}/archivers/p5-IO-Compress . endif .endif .if ${PORT_OPTIONS:MISPELL} RUN_DEPENDS+= ispell:${PORTSDIR}/textproc/ispell .endif .if ${PORT_OPTIONS:MASPELL} RUN_DEPENDS+= aspell:${PORTSDIR}/textproc/aspell .endif .if ${PORT_OPTIONS:MGNUPG} RUN_DEPENDS+= gpg:${PORTSDIR}/security/gnupg1 .endif post-patch: @${FIND} ${WRKSRC} -name "*.pm" | \ ${XARGS} ${REINPLACE_CMD} -i '' \ -e 's|Digest::SHA::PurePerl|Digest::SHA|g' @${FIND} ${WRKSRC} -name "*.orig" -delete @${RM} -rf ${WRKSRC}/Kernel/cpan-lib/ \ ${CLEAN_FILES:S!^!${WRKSRC}/!} do-build: @${FIND} ${WRKSRC}/Kernel -type d | ${XARGS} ${CHMOD} 0755 @${FIND} ${WRKSRC}/Kernel -type f | ${XARGS} ${CHMOD} ${SHAREMODE} @${FIND} ${WRKSRC} -type f | ${XARGS} ${SED} -i '' \ -e "s=/opt/=${PREFIX}/=g;s=wwwrun=${WWWOWN}=g;" .if ${PORT_OPTIONS:MISPELL} @${FIND} ${WRKSRC} -type f | ${XARGS} ${SED} -i '' \ -e "s=/usr/bin/ispell=${PREFIX}/bin/ispell=g" .endif .if ${PORT_OPTIONS:MASPELL} @${FIND} ${WRKSRC} -type f | ${XARGS} ${SED} -i '' \ -e "s=/usr/bin/ispell=${PREFIX}/bin/aspell=g" .endif .if ${PORT_OPTIONS:MGNUPG} @${FIND} ${WRKSRC} -type f | ${XARGS} ${SED} -i '' \ -e "s=/usr/bin/gpg=${PREFIX}/bin/gpg=g" .endif do-install: @${MKDIR} ${ROOT_DIRS_LIST:S!^!${OTRSDIR}/!} ${BIN_DIRS_LIST:S!^!${OTRSDIR}/bin/!} \ ${SCRIPTS_DIRS_LIST:S!^!${OTRSDIR}/scripts/!} @${INSTALL_DATA} ${WRKSRC}/.*.dist ${OTRSDIR}/ @${INSTALL_DATA} ${WRKSRC}/RELEASE ${OTRSDIR}/ .for D in ${BIN_DIRS_LIST} @${INSTALL_SCRIPT} ${WRKSRC}/bin/${D}/*.* ${OTRSDIR}/bin/${D}/ .endfor @(cd ${WRKSRC} && ${PAX} -r -w Kernel var ${OTRSDIR}) .if !exists(${OTRSDIR}/Kernel/Config.pm) @${CP} ${OTRSDIR}/Kernel/Config.pm.dist ${OTRSDIR}/Kernel/Config.pm .endif .if !exists(${OTRSDIR}/Kernel/Config/GenericAgent.pm) @${CP} ${OTRSDIR}/Kernel/Config/GenericAgent.pm.dist ${OTRSDIR}/Kernel/Config/GenericAgent.pm .endif @${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${OTRSDIR}/Kernel @${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.[ps][lh] ${OTRSDIR}/scripts/ @${INSTALL_DATA} ${WRKSRC}/scripts/*.p[hm]* ${WRKSRC}/scripts/apache* \ ${WRKSRC}/scripts/*.sql ${OTRSDIR}/scripts/ @${INSTALL_DATA} ${WRKSRC}/scripts/database/update/*.* ${OTRSDIR}/scripts/database/update/ @${INSTALL_DATA} ${WRKSRC}/scripts/database/*.* ${OTRSDIR}/scripts/database/ @${INSTALL_SCRIPT} ${WRKSRC}/scripts/test/*.t ${OTRSDIR}/scripts/test/ @${INSTALL_SCRIPT} ${WRKSRC}/scripts/tools/*.pl ${OTRSDIR}/scripts/tools/ .if ${PORT_OPTIONS:MDOCS} @${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" @${MKDIR} ${DOCS_DIRS_LIST:S!^!${DOCSDIR}/!} @${INSTALL_DATA} ${DOCS_FILES_LIST:S!^!${WRKSRC}/!} ${DOCSDIR}/ .for D in ${DOCS_DIRS_LIST} @${INSTALL_DATA} ${WRKSRC}/doc/${D}/*.* ${DOCSDIR}/${D}/ .endfor .endif @PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL post-install: @${CAT} ${PKGMESSAGE} x-generate-plist: (${PORTSDIR}/Tools/scripts/plist -d -m ${MTREE_FILE} ${PREFIX} \ | ${SED} -E '\ s=share/doc/${PORTNAME}=%%DOCSDIR%%=; \ ')> temp-pkg-plist .include -gnome/log/ports-mgmt/portaudit?id=b70378ed9de897c41cbd686f1cdbfc749b906045&showmsg=1'>Expand)AuthorAgeFilesLines * Add some improvements via Doug:remko2011-02-052-9/+13 * Don't enclose URLs in <>, it makes them harder to copy&paste and URLs areuqs2011-02-012-3/+3 * Prefer using base system binaries.delphij2010-05-042-1/+4 * Forgot to bump version.remko2009-10-261-1/+1 * Fix unmatched quote.remko2009-10-211-1/+1 * Download portaudit database from http://portaudit.FreeBSD.org/ insteadsimon2009-06-214-5/+5 * - Fix portaudit -Fq to actually be quiet. [1]simon2007-12-272-18/+6 * Add security to CATEGORIESerwin2007-04-021-1/+1 * Correct URL to the VuXML pages for FreeBSD. Also bump modification date.remko2007-03-151-2/+2 * Populate a new ports-mgmt category. List of moved ports:pav2007-02-051-3/+3 * Avoid unnecessary invocations of pkg_info by checking whether thesimon2006-04-162-1/+5 * Replace ugly "@unexec rmdir %D... 2>/dev/null || true" with @dirrmtryedwin2006-01-221-2/+2 * Change MAINTAINER address for ports maintained by the Security Team tosimon2005-07-311-1/+1 * portaudit 0.5.10:simon2005-07-043-16/+29 * Grab maintainer-ship of portaudit. While I do not currently have anysimon2005-06-15