diff options
-rw-r--r-- | www-apps/otrs/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/otrs/Manifest | 14 | ||||
-rw-r--r-- | www-apps/otrs/otrs-3.0.11.ebuild | 156 |
3 files changed, 165 insertions, 12 deletions
diff --git a/www-apps/otrs/ChangeLog b/www-apps/otrs/ChangeLog index 4f1f596194eb..af022a7afef9 100644 --- a/www-apps/otrs/ChangeLog +++ b/www-apps/otrs/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/otrs # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.49 2011/11/02 21:52:16 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/ChangeLog,v 1.50 2011/12/27 04:31:58 patrick Exp $ + +*otrs-3.0.11 (27 Dec 2011) + + 27 Dec 2011; Patrick Lauer <patrick@gentoo.org> +otrs-3.0.11.ebuild: + Bump 02 Nov 2011; Mike Frysinger <vapier@gentoo.org> otrs-3.0.10.ebuild: Drop superfluous -c usage. diff --git a/www-apps/otrs/Manifest b/www-apps/otrs/Manifest index 5356816819d6..ea06dabb5d3c 100644 --- a/www-apps/otrs/Manifest +++ b/www-apps/otrs/Manifest @@ -1,18 +1,10 @@ ------BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 - AUX apache2.patch 874 RMD160 c3e87de6e20429ed80c2fd08f731aabb198dfa60 SHA1 0847d39c32fead0a19716dcd9bdb4d83c56d089e SHA256 fbad80b193717c42d7b1daf9a5026772e20ddb39d985e5042f50dbfd1876c4ad AUX dbi_finish.patch 293 RMD160 7178dee7a8f250733510feb9ffdbe6bd9b044429 SHA1 a4a16eaca625edb53cee172262b93989ab82c7fd SHA256 5ab5d742efb0c6287d4571178f711bcfc18e0bfa700f0efed33576519a02c6d4 AUX postinstall-en-2.txt 670 RMD160 4d41cebe350ff1b7a726845c22e882e264d096e6 SHA1 44b1fa6fa53364de2b40a01351c47782f12703ea SHA256 46f22f02a567e97794b3b3f2b7aa3810d5daea1afdf1d6730046d659a19dbdc9 AUX reconfig-2 880 RMD160 eb71fbb7b086e60e648f06828353baf9b3f8bec7 SHA1 442203fc0694b9591ee21baababc697c31ad65e4 SHA256 f08ef6e1258bb64d77fbf34bad33eee2e8556580509706eb17cbd2ae079e0a29 DIST otrs-3.0.10.tar.bz2 19614384 RMD160 c72e9947ca4ac29dda7f4d0cf47fa740b355c294 SHA1 d27606d3dff6e178aebbf072f157cbd281750d4e SHA256 b181e203c1397e920ae0e973d2093aeabbf1bfc68ec66d7255284daf1f8a05bb +DIST otrs-3.0.11.tar.bz2 19833439 RMD160 9209d6ed1988e4379d19e726f0d17c81fd9b9645 SHA1 350380495f0e77765548853fe47259d8eea801bf SHA256 acab41782c1248c0de316d2fc4f33a6466afbca5ed699b4c969140bafc8d5ff8 EBUILD otrs-3.0.10.ebuild 3960 RMD160 f16dc6f5648f54fac6f7fb673dcde38471857180 SHA1 f6e0d369894a16c3065ad3fd3319a3d5f8df76ee SHA256 a60c912455af43430d12d66e301b1600d52c644c3916ac886f13569a8a041015 -MISC ChangeLog 7255 RMD160 a1e030c4ee2352b2c1d1f9a005068aff21ca3a83 SHA1 36894704039e6f290d14465a989a06cefad41c24 SHA256 68ae6fedaa3f788aecdb089e04dc6a256d97f9cb7b5c0d774decc7fd77ff2a0b +EBUILD otrs-3.0.11.ebuild 4150 RMD160 7348ea98becd1ca41a1ec59f6a7c72f39643e486 SHA1 e7e730eb7537f1ff213ad649209c85bced896a61 SHA256 8af4e99c905383de08a17a87a7ec3b2bf7fcc346fe91697c080330d3eeef1f6f +MISC ChangeLog 7363 RMD160 4c63d3041b3804a694dd98c01092047a636e7d1e SHA1 f6a48028c2479d0d75172fc1d0d6330447c3fd1a SHA256 06a247800e54775327bbe0cb08ba1f5b1b688214164de2eca56ca23d1d63db9d MISC metadata.xml 408 RMD160 da50a119f1080b516b98a82a1632c80792e9b828 SHA1 97bfca80134bc2da65b849f472f79a6fa292cd4f SHA256 83cd0c36f1d093461fc9cf081c3801102671ff3da66ed48c5222117daf1c50ca ------BEGIN PGP SIGNATURE----- -Version: GnuPG v2.0.18 (GNU/Linux) - -iF4EAREIAAYFAk6xu5oACgkQaC/OocHi7JYcdwD9EK/dZYERdRrlp9uimSpiXkUo -q++KWO2M4Curk/fQYBQA/0bQvAZqCIMGecROLPg+eGn6HMeIzRxg1Mnf5RCTTZBf -=ZAmi ------END PGP SIGNATURE----- diff --git a/www-apps/otrs/otrs-3.0.11.ebuild b/www-apps/otrs/otrs-3.0.11.ebuild new file mode 100644 index 000000000000..f3c7de9e3532 --- /dev/null +++ b/www-apps/otrs/otrs-3.0.11.ebuild @@ -0,0 +1,156 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/www-apps/otrs/otrs-3.0.11.ebuild,v 1.1 2011/12/27 04:31:57 patrick Exp $ + +EAPI=2 + +inherit eutils confutils + +DESCRIPTION="OTRS is an Open source Ticket Request System" +HOMEPAGE="http://otrs.org/" +SRC_URI="http://ftp.otrs.org/pub/${PN}/${P}.tar.bz2" + +LICENSE="AGPL-3" +KEYWORDS="~amd64 ~x86" +IUSE="apache2 fastcgi +gd ldap mod_perl +mysql pdf postgres soap" +SLOT="0" +#WEBAPP_MANUAL_SLOT="yes" + +# FIXME add oracle/mssql/DB2 DB support +# FIXME #cjk? ( >=dev-perl/Encode-HanExtra-0.23 ) unsatisfied dep + +DEPEND="" +RDEPEND="${DEPEND} + dev-perl/Authen-SASL + dev-perl/Crypt-PasswdMD5 + dev-perl/CSS-Minifier + dev-perl/Date-Pcalc + mysql? ( dev-perl/DBD-mysql ) + postgres? ( dev-perl/DBD-Pg ) + dev-perl/DBI + gd? ( dev-perl/GD + dev-perl/GDTextUtil + dev-perl/GDGraph ) + dev-perl/IO-Socket-SSL + >=dev-perl/JavaScript-Minifier-1.05 + >=dev-perl/JSON-2.21 + dev-perl/JSON-XS + dev-perl/LWP-UserAgent-Determined + dev-perl/Mail-POP3Client + dev-perl/MailTools + >=dev-perl/MIME-tools-5.427 + dev-perl/NetxAP + dev-perl/Net-IMAP-Simple-SSL + >dev-perl/Net-DNS-0.60 + dev-perl/Net-SMTP-SSL + dev-perl/Net-SMTP-TLS + dev-perl/IO-stringy + pdf? ( >=dev-perl/PDF-API2-0.73 + virtual/perl-Compress-Raw-Zlib ) + ldap? ( dev-perl/perl-ldap ) + soap? ( + dev-perl/SOAP-Lite + !=dev-perl/SOAP-Lite-0.711 + !=dev-perl/SOAP-Lite-0.712 ) + dev-perl/Text-CSV + dev-perl/Text-CSV_XS + dev-perl/TimeDate + dev-perl/XML-Parser + + virtual/perl-MIME-Base64 + >=virtual/perl-CGI-3.33 + virtual/perl-libnet + virtual/perl-Digest-MD5 + >=virtual/perl-Digest-SHA-5.48 + + virtual/mta + + apache2? ( mod_perl? ( www-servers/apache:2 + =www-apache/libapreq2-2* www-apache/mod_perl ) + fastcgi? ( || ( www-apache/mod_fcgid www-apache/mod_fastcgi ) + www-servers/apache:2[suexec] ) + !fastcgi? ( + !mod_perl? ( www-servers/apache:2[suexec] ) ) + ) + fastcgi? ( dev-perl/FCGI virtual/httpd-fastcgi ) + !fastcgi? ( + !apache2? ( virtual/httpd-cgi ) )" + +# dev-perl/libwww-perl + +OTRS_HOME="/var/lib/otrs" + +pkg_setup() { + # The enewuser otrs will fail if apache isn't there, but it's an optional dep + # so we create the apache user here just in case + enewgroup apache 81 + enewuser apache 81 -1 /var/www apache + enewuser otrs -1 -1 ${OTRS_HOME} apache + confutils_require_any mysql postgres +} + +src_prepare() { + rm -fr "${S}/scripts"/{auto_*,redhat*,suse*,*.spec} || die + cp Kernel/Config.pm{.dist,} || die + # procmail/fetchmail/mailfilter +# local mailrc=".fetchmailrc .mailfilter .procmailrc" +# for i in ${mailrc}; do +# mv ${i}{.dist,} || die +# done +# fperms 600 ${mailrc} || die +# fowners otrs ${mailrc} || die + + sed -i -e "s:/opt/otrs:${OTRS_HOME}:g" "${S}"/Kernel/Config.pm \ + || die "sed failed" + + grep -lR "/opt" "${S}"/scripts | \ + xargs sed -i -e "s:/opt/otrs:${OTRS_HOME}:g" \ + || die "sed failed" + + cd Kernel/Config/ || die + for i in *.dist; do + cp ${i} $(basename ${i} .dist) || die + done + + perl "${S}"/bin/otrs.SetPermissions.pl \ + --otrs-user=otrs \ + --web-user=apache \ + --otrs-group=apache \ + --web-group=apache "${S}" \ + || die "Could not set permissions" + + echo "CONFIG_PROTECT=\"${OTRS_HOME}/Kernel/Config.pm \ + ${OTRS_HOME}/Kernel/Config/GenericAgent.pm\"" > "${T}/50${PN}" + +} + +src_install() { + dodoc CHANGES CREDITS INSTALL README* TODO UPGRADING \ + doc/otrs-database.dia doc/X-OTRS-Headers.txt || die + + dodoc doc/manual/en/otrs_admin_book.pdf + + insinto "${OTRS_HOME}" + doins -r .fetchmailrc.dist .mailfilter.dist .procmailrc.dist RELEASE \ + Custom Kernel bin scripts var || die "doins failed" + + cat "${S}"/var/cron/*.dist > crontab + insinto /usr/share/doc/${PF}/ + doins crontab + + for a in article log pics/images pics/stats pics sessions spool tmp tmp/CacheFileStorable; do + keepdir "${OTRS_HOME}/var/${a}" + done + doenvd "${T}/50${PN}" || die +} + +# This is too automagic, either einfo telling user or installing to /etc/cron.d/ should be preferred +pkg_config() { + einfo "Installing cronjobs" + crontab -u otrs /usr/share/doc/${PF}/crontab +} + +pkg_postinst() { + elog "Enable cronjobs with the following command:" + elog "crontab -u otrs crontab" +} |