diff options
author | Aaron Swenson <titanofold@gentoo.org> | 2014-05-28 10:47:23 +0000 |
---|---|---|
committer | Aaron Swenson <titanofold@gentoo.org> | 2014-05-28 10:47:23 +0000 |
commit | 1fcab39f7a86a72c095595c980857c4fec416686 (patch) | |
tree | b01f09bac937532a28bce91efa272e503fd4f811 /www-apps | |
parent | Version bump. Removed old (diff) | |
download | historical-1fcab39f7a86a72c095595c980857c4fec416686.tar.gz historical-1fcab39f7a86a72c095595c980857c4fec416686.tar.bz2 historical-1fcab39f7a86a72c095595c980857c4fec416686.zip |
Remove old, insecure versions.
Package-Manager: portage-2.2.8-r1/cvs/Linux x86_64
Manifest-Sign-Key: 0xD1BBFDA0
Diffstat (limited to 'www-apps')
-rw-r--r-- | www-apps/rt/ChangeLog | 7 | ||||
-rw-r--r-- | www-apps/rt/Manifest | 19 | ||||
-rw-r--r-- | www-apps/rt/metadata.xml | 4 | ||||
-rw-r--r-- | www-apps/rt/rt-3.8.11.ebuild | 244 | ||||
-rw-r--r-- | www-apps/rt/rt-3.8.15.ebuild | 244 | ||||
-rw-r--r-- | www-apps/rt/rt-4.0.5.ebuild | 276 | ||||
-rw-r--r-- | www-apps/rt/rt-4.0.8-r1.ebuild | 276 | ||||
-rw-r--r-- | www-apps/rt/rt-4.0.8.ebuild | 276 |
8 files changed, 13 insertions, 1333 deletions
diff --git a/www-apps/rt/ChangeLog b/www-apps/rt/ChangeLog index de6ae8a65ec4..98381cf89289 100644 --- a/www-apps/rt/ChangeLog +++ b/www-apps/rt/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for www-apps/rt # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.81 2014/05/28 10:32:06 titanofold Exp $ +# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/ChangeLog,v 1.82 2014/05/28 10:47:14 titanofold Exp $ + + 28 May 2014; Aaron W. Swenson <titanofold@gentoo.org> -rt-3.8.11.ebuild, + -rt-3.8.15.ebuild, -rt-4.0.5.ebuild, -rt-4.0.8.ebuild, -rt-4.0.8-r1.ebuild, + metadata.xml: + Remove old, insecure versions. *rt-4.2.4 (28 May 2014) diff --git a/www-apps/rt/Manifest b/www-apps/rt/Manifest index e23c0aab60d9..ad2de2914756 100644 --- a/www-apps/rt/Manifest +++ b/www-apps/rt/Manifest @@ -8,23 +8,14 @@ AUX rt.conf.d.2 336 SHA256 f41dd245b73b65de21c04307994048c6517523deb36dd753891cc AUX rt.init.d.2 1424 SHA256 dcaddd4045fbc05f44b78505ebd6429026602910a65851eaab0ddca078ab282e SHA512 908459752c1837900d3c64bd8d88b7c46c73d4db22eaf4bd72d2cc016f0c06e2fc78d0c0bc4f0ce28c005f717372e4ba46060269d2177bf6148f8db87766483f WHIRLPOOL a2e44bf6be10a9b8d9cb7ece05dfb7ea38d0eddecca6d5792ef06b9f9414df95953c09acb2101e742c8a8565549d473de41432dc53861144bb4eb6d486935b9e AUX rt_apache2.conf 550 SHA256 db52d05f10cb6ed1bb236ed9e6fc5cc7574b5949c5cb85b5719d0132cbb072cc SHA512 030c585590231abcf875cd8dd66e2350e346fc073f811922415d9ab390ab4b23f5915fd06ec72fece5fb00026b2e015b7a2843765c3e507ec6b665552c5be3d5 WHIRLPOOL 942fb53a24eeb96c30d5c77c0ba8fe1bbacc645900a9b736752402f251b2c06173ecc753ddfdb2a205bf8e13698bc6cc90923dbc114ac72d73bf920038df7db5 AUX rt_apache2_fcgi.conf 989 SHA256 7dff43c9fb73daa06c9c4841199e7618758250129946ec9d20adf5a1852e4e91 SHA512 58df2f37961eedec8260e2feeda75530b50ce2fa748e2188d47825e9da78ddbf12559a4d3485ab01df89a6ebcddab3fa75215fdca5b35583cf863a7be1c1ccc7 WHIRLPOOL c811079d962e9e5d810e612f017d3d5749a00f9ae2bc83ea19242592d440437d69a0dee446ac013ab4d36afea048d0a7e6219e5ce70af4780a735f300150af65 -DIST rt-3.8.11.tar.gz 5734246 SHA256 76b5b631ef6fb5f2c3f94cc1a1774046998ef157d83f68c274a2dfa8e71f89a8 -DIST rt-3.8.15.tar.gz 5650409 SHA256 fca1283189bd670fde7a041e99e85aa4a58e0e302bb1f3c7ddab2f4997b5da55 SHA512 b695492b4ce16eed1a3fb819c928a86fc238677ef2996b696ff4b9d02ba8f70db76291dc7de859e271a3e1c4b418fd9624829d4add35f5eb27af401ca390985e WHIRLPOOL 0e687d130cbd1c351cd204e4f3860472bf981b74854538981f38a5b69619dd5fc550479ef2ca6115da95800660f87f159617712ed0e2c24d30a57cf0eb09c3f4 -DIST rt-4.0.5.tar.gz 5877387 SHA256 280daadff11595fe4baa4f55544cedd26ada560b421c165bba45340fd6eaddb0 SHA512 df2df71e975e40ecce0c69067888c60e5a5f6357f26fa9a4c1c3fcd31e585e87f98ebfba3942c2d36f075107dd5a1e4d5d3b9eeaf17c4027005769528a98aeb1 WHIRLPOOL 537ed022db8b97a557d8556db13a5d9fdce730d6d4da5bcd9d0ab076bc1de0e4c39761ff384c5772a5480835f6b2bf6a4994467ff7d0e44550315c9e7b178f2e -DIST rt-4.0.8.tar.gz 5911492 SHA256 bdbdfeb93beba21d7579745fa4a28d90d4a672346dfbd9752b9bbc16310e30b5 SHA512 9c087cd9d201a777defd4110dddd690676bf7a94f927c9e79fd157b47750a91e8c73d35917e03395f455dbba8631bdea775191d185f8dbb2b412f526fcebbdf7 WHIRLPOOL c0db83e2332f6efdf59766f5a8c22d84379b3c93f39803126f706ed7df176d4446d6d05b678fdb4ed7756e2b8e42c5d92f1b5cc744ac0380f1109cc250c63c83 DIST rt-4.2.4.tar.gz 7563426 SHA256 309373699473b6f5531732fc403dba39773daf73d04bf72f5d6100aadfcfb033 SHA512 38dfb3c219d20defc9ca25263d676db28135e56945e33c8fe5b48ab65b6773422d607cbcc0ec3995455630cbc1504015ee99406a294f1c24f3cfc004d0000b5e WHIRLPOOL 8302418e7d9f3328fd2efa6f106a36a5c6d09485dcf365a5dc92ffc48fba772468afed3742bd2d6a5a6acbaa51d174d78c62d9c1c7f131c6ec995234d7df4b63 -EBUILD rt-3.8.11.ebuild 6542 SHA256 cfa930af057c3cb6c63bb949da0522524df4eb9458414cbedd42abd6e19a212b SHA512 966f435653299b3c013b17f7befcd69af5b182121ab4eda5baceff42c266c5684a03091685fb94fd2d7d3bcbcc7bc5461537c2617bc47479adbda4849c90bea7 WHIRLPOOL ce02b874eec0a7660aece583f63594d488b65c1725d6189d20844ec95aee6817a1a9c8caff3d95b8967a4b5a169f61da5b9a3b411a0dccf6c0871672a8c0ab07 -EBUILD rt-3.8.15.ebuild 6542 SHA256 4397bd3f956ee1ff7a2e41f3c938077b0a99ef52cbac01522c64c88a6d22d7f3 SHA512 d8865ffe1a94200fc70d6ca3deea6bc35d159ec471f87c907e16e347b19e19736819d35591071cf5892cba959dc9f156243449dc142c05e887c8ef271623a6eb WHIRLPOOL 89c8b900f46d33774cdbbbd3aae11556f62e3f5d8ad70514bf23bdd8cd68417e759dfa89d82dbebb1f9e6b347b3e4b3034b855795885eb457faf87861c6ab9f7 -EBUILD rt-4.0.5.ebuild 7224 SHA256 0bf8bb92f4dffdd5a16e352a83be4550473f3e9f69622cfb789160227f17fe0e SHA512 39fa93cf437034394638d7611e5290cf5b53175c8ef6aebc3ef2282327ccc83beec8cdfa05422d8481f3e44ef0f12453c3a3bf3f2fc43c62a4dd3d15d766e653 WHIRLPOOL d9a76f4bcd448361e3e98ca1bb9d12b65160ad49eb9b9402e7374e7058d29606cf2a860241e8ea88e00ebdef3a400762ff27e0ac06db29db346960cbf4f6d3b2 -EBUILD rt-4.0.8-r1.ebuild 7227 SHA256 0310f4d24a2ae36b2fb444e804a6a484a6c01c7839bbb2c71332957352232058 SHA512 d24464f50cf2e06a2ec19af88e1bcd34d72b0d95b6ca02ab7101206dc35997c1a803850bdf195f2a39d0a32679682f0fcc3132a10b69fa9b50ccc6972949baf2 WHIRLPOOL 409a14882bca698a11ba4b06630579f9e8e7769c62d1a0988608c4961eac1ab532a298056105afd27084e061f00efa7c8b9eb756503717d45b4d3778c04a379b -EBUILD rt-4.0.8.ebuild 7224 SHA256 02bcb5bf3e26e28a3f6b457db11dd36f06103b6fa92a3ff1b55041b1d05c83d6 SHA512 8bb908e231d96e8effdc923206ed59ff3a65fc60b79fabca3c6c922dba6c698104b7f54f9d34d3a5ebd969076f72e4c35bc30d094ecd0ed6d25da17a5002c6b8 WHIRLPOOL 70213d0d700ca3ca5cb06eddca0e0597de207f6c793b394fa9f8e387d938c822d6d77f2e269ea490d16c1fcb88bd562d702a8bc297bf11a61a0d3dbab155d7ff EBUILD rt-4.2.4.ebuild 7381 SHA256 90c3f9fe1a2a60d1138bb234a1d1f89f0f7ac9d0b48b48645a3103e673872c7c SHA512 e0a5ee56eab9187c03326ccb3b420fd920ab710f5250159eb8143e4fffc33e63b4edfd80f6ef4bf55044e9b1aec55dbe15819a0d6b4bf169cf78d00c15c9efb7 WHIRLPOOL 4c159bb0dc5387668b5f3f8a58926e1c62821ccf496849f594c1cccd57306639a658884019bfc09bd78af7360cd25e967c680231ea14639fe95e66a02afa03a6 -MISC ChangeLog 12796 SHA256 3c3d69720349ef744aac20ff136b124f11b91e4d657e86330488ef3d4060096d SHA512 b970b0f71d5fdbda70718a074dc8c5a47f086d7528dd4f38b112b9411e332aa6eba46abe183291615345ff80455084d1c45b7860f1e1852b34cef625e6ab3516 WHIRLPOOL cea45db9740edf35456bea026e05e1b08a6da592fcd6eecffa78821e645312db419191a6fdeb4ed3845adc384b500e73605c5fbfbf7c0f5be46fa203762aa6d3 -MISC metadata.xml 553 SHA256 bc9a40234182a86f086f7a67b40f960d16cb956235ce8fb1f580cc1b0b344f9a SHA512 609638f0c70d321f35a2e50f5791772c9ba0d905aeec4a7ee691c0763cf88cd7456916b49d1bb4a48f0564d9271fa62e687bc8529c7cdf98f967591d10db5ebd WHIRLPOOL f25c33aa03f3d4911c146109c39ac1565fdeaa9fc2240d5635a441dc4687abfc36a292980bc3571333bcc85773bb6c1da626a7691da469a866006e62f2a5af0f +MISC ChangeLog 12999 SHA256 1b1384980350707b129e800eb341974df99857d54e3e865bd4193c2bd3acb569 SHA512 e386ab0cf60528489b98f6ce8341202dad541e52175ce492c7bb3b3225e93892a44a95fdeb63765ad652a801b2e5dc3047fd73284d625d014725f7f1399326d0 WHIRLPOOL 89d69983f5d7788984d07980940a472ef9edc462281b8a8a18b083129503050ee7c434040fb14b530b0d70bafad7776be162b9813c91a4a52aa768795f43c731 +MISC metadata.xml 564 SHA256 a261da27b08561f8a52676e849b12974d6aa01ee8a6ca2d3ba8269d96332db94 SHA512 30ea53c1bd6bdb1e11573723c32324181e278e6006a06b9b17d9c22ab99ff5e1db963be09e073c2f7842b0bb30024a62629984fecff759e3b883a8da97998aa0 WHIRLPOOL d06b6e5a42dab1fc118ab71438b7e4a905dcea6f0084dca6c4e47d1d3ccbaa167430cefedb11046603671948c2dff56ea4ef0495afd5cc654fd3e5b31b24e410 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iF4EAREIAAYFAlOFuygACgkQVxOqA9G7/aDizwD/czau2yjq1kn33KPHaBhD0G6B -YmDUC+XLaJKM0Y8cdyUA/iNaE1u9BVuhQiOuKOfB90Vv0QfKawkLYFFwg7LjL7q/ -=DWRK +iF4EAREIAAYFAlOFvrMACgkQVxOqA9G7/aAqXgD+NBM9Fh/DrH7Qm8BZ92kVvEBC +EV2XEqVB0O8DymlFJmsA/0HH3fp3afxBSmetRrC+R9A/si1xqQ93G6jYEhGjqpFn +=fxqN -----END PGP SIGNATURE----- diff --git a/www-apps/rt/metadata.xml b/www-apps/rt/metadata.xml index 9d93aeeadf2d..1a61ca9bfee3 100644 --- a/www-apps/rt/metadata.xml +++ b/www-apps/rt/metadata.xml @@ -4,8 +4,8 @@ <herd>web-apps</herd> <herd>proxy-maintainers</herd> <maintainer> - <email>pva@gentoo.org</email> - <name>Peter Volkov</name> + <email>titanofold@gentoo.org</email> + <name>Aaron W. Swenson</name> </maintainer> <maintainer> <email>eric.joshua.martin@gmail.com</email> diff --git a/www-apps/rt/rt-3.8.11.ebuild b/www-apps/rt/rt-3.8.11.ebuild deleted file mode 100644 index 5640489b612a..000000000000 --- a/www-apps/rt/rt-3.8.11.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.8.11.ebuild,v 1.2 2014/01/08 06:12:48 vapier Exp $ - -EAPI=4 - -inherit webapp eutils depend.apache user - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="http://www.bestpractical.com/rt/" -SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -IUSE="mysql postgres fastcgi lighttpd" -REQUIRED_USE="|| ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - >=dev-lang/perl-5.8.3 - - >=dev-perl/Apache-Session-1.53 - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - >=dev-perl/class-returnvalue-0.40 - >=dev-perl/CSS-Squish-0.06 - dev-perl/Data-ICal - >=dev-perl/DBI-1.37 - >=dev-perl/dbix-searchbuilder-1.53 - >=dev-perl/Devel-StackTrace-1.19 - dev-perl/Email-Address - dev-perl/File-ShareDir - dev-perl/GD - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GnuPG-Interface - dev-perl/HTML-Format - >dev-perl/HTML-Mason-1.31 - dev-perl/HTML-Parser - dev-perl/HTML-RewriteAttributes - >=dev-perl/HTML-Scrubber-0.08 - dev-perl/HTML-Tree - >=dev-perl/HTTP-Server-Simple-0.07 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - dev-perl/libwww-perl - dev-perl/locale-maketext-fuzzy - >=dev-perl/locale-maketext-lexicon-0.32 - >=dev-perl/log-dispatch-2.0 - >=dev-perl/MailTools-1.60 - >=dev-perl/MIME-tools-5.417 - dev-perl/MIME-Types - >=dev-perl/Module-Versions-Report-1.05 - dev-perl/net-server - dev-perl/PerlIO-eol - dev-perl/regexp-common - dev-perl/TermReadKey - dev-perl/text-autoformat - >=dev-perl/Text-Quoted-2.02 - dev-perl/text-template - >=dev-perl/Text-WikiFormat-0.76 - dev-perl/text-wrapper - dev-perl/Time-modules - dev-perl/TimeDate - >=dev-perl/Tree-Simple-1.04 - dev-perl/UNIVERSAL-require - >=dev-perl/XML-RSS-1.05 - >=virtual/perl-CGI-2.92 - virtual/perl-digest-base - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-File-Spec-0.8 - virtual/perl-File-Temp - >=virtual/perl-Getopt-Long-2.24 - virtual/perl-libnet - >=virtual/perl-locale-maketext-1.06 - virtual/perl-Scalar-List-Utils - >=virtual/perl-Storable-2.08 - virtual/perl-Time-HiRes - - !lighttpd? ( dev-perl/Apache-DBI ) - lighttpd? ( dev-perl/FCGI ) - fastcgi? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -add_user_rt() { - # add new user - # suexec2 requires uid >= 1000; enewuser is of no help here - # From: Mike Frysinger <vapier@gentoo.org> - # Date: Fri, 17 Jun 2005 08:41:44 -0400 - # i'd pick a 5 digit # if i were you - - local euser="rt" - - # first check if username rt exists - if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then - # check uid - rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) - if $(expr ${rt_uid} '<' 1000 > /dev/null); then - ewarn "uid of user rt is less than 1000. suexec2 will not work." - ewarn "If you want to use FastCGI, please delete the user 'rt'" - ewarn "from your system and re-emerge www-apps/rt" - fi - return 0 # all is well - fi - - # add user - # stolen from enewuser - local pwrange euid - - pwrange=$(seq 10001 11001) - for euid in ${pwrange} ; do - [[ -z $(egetent passwd ${euid}) ]] && break - done - if [[ ${euid} == "11001" ]]; then - # she gets around, doesn't she? - die "No available uid's found" - fi - - elog " - Userid: ${euid}" - - enewuser rt ${euid} -1 /dev/null rt - return 0 -} - -pkg_setup() { - webapp_pkg_setup - ewarn - ewarn "If you are upgrading from an existing _RT2_ installation," - ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool," - ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz" - ewarn "and follow the included instructions." - ewarn - enewgroup rt - add_user_rt || die "Could not add user" -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| - s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die -} - -src_configure() { - local web myconf depsconf - - if use mysql ; then - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - if use postgres ; then - myconf+=" --with-db-type=Pg --with-db-dba=postgres" - depsconf+=" --with-postgresql" - fi - if use postgres && use mysql ; then - ewarn "Both mysql and postgres USE flags enabled, default is mysql." - ewarn "You can set the default value in RT_SiteConfig before DB init." - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-fastcgi" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-fastcgi" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-modperl2" - fi - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_install() { - webapp_src_preinst - emake -j1 install - - # make sure we don't clobber existing site configuration - rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - if use lighttpd ; then - newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} - newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} - sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die - else - doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} - fi - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} diff --git a/www-apps/rt/rt-3.8.15.ebuild b/www-apps/rt/rt-3.8.15.ebuild deleted file mode 100644 index bd696f9898d0..000000000000 --- a/www-apps/rt/rt-3.8.15.ebuild +++ /dev/null @@ -1,244 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-3.8.15.ebuild,v 1.2 2014/01/08 06:12:48 vapier Exp $ - -EAPI=4 - -inherit webapp eutils depend.apache user - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="http://www.bestpractical.com/rt/" -SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -IUSE="mysql postgres fastcgi lighttpd" -REQUIRED_USE="|| ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - >=dev-lang/perl-5.8.3 - - >=dev-perl/Apache-Session-1.53 - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - >=dev-perl/class-returnvalue-0.40 - >=dev-perl/CSS-Squish-0.06 - dev-perl/Data-ICal - >=dev-perl/DBI-1.37 - >=dev-perl/dbix-searchbuilder-1.53 - >=dev-perl/Devel-StackTrace-1.19 - dev-perl/Email-Address - dev-perl/File-ShareDir - dev-perl/GD - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GnuPG-Interface - dev-perl/HTML-Format - >dev-perl/HTML-Mason-1.31 - dev-perl/HTML-Parser - dev-perl/HTML-RewriteAttributes - >=dev-perl/HTML-Scrubber-0.08 - dev-perl/HTML-Tree - >=dev-perl/HTTP-Server-Simple-0.07 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - dev-perl/libwww-perl - dev-perl/locale-maketext-fuzzy - >=dev-perl/locale-maketext-lexicon-0.32 - >=dev-perl/log-dispatch-2.0 - >=dev-perl/MailTools-1.60 - >=dev-perl/MIME-tools-5.417 - dev-perl/MIME-Types - >=dev-perl/Module-Versions-Report-1.05 - dev-perl/net-server - dev-perl/PerlIO-eol - dev-perl/regexp-common - dev-perl/TermReadKey - dev-perl/text-autoformat - >=dev-perl/Text-Quoted-2.02 - dev-perl/text-template - >=dev-perl/Text-WikiFormat-0.76 - dev-perl/text-wrapper - dev-perl/Time-modules - dev-perl/TimeDate - >=dev-perl/Tree-Simple-1.04 - dev-perl/UNIVERSAL-require - >=dev-perl/XML-RSS-1.05 - >=virtual/perl-CGI-2.92 - virtual/perl-digest-base - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-File-Spec-0.8 - virtual/perl-File-Temp - >=virtual/perl-Getopt-Long-2.24 - virtual/perl-libnet - >=virtual/perl-locale-maketext-1.06 - virtual/perl-Scalar-List-Utils - >=virtual/perl-Storable-2.08 - virtual/perl-Time-HiRes - - !lighttpd? ( dev-perl/Apache-DBI ) - lighttpd? ( dev-perl/FCGI ) - fastcgi? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -add_user_rt() { - # add new user - # suexec2 requires uid >= 1000; enewuser is of no help here - # From: Mike Frysinger <vapier@gentoo.org> - # Date: Fri, 17 Jun 2005 08:41:44 -0400 - # i'd pick a 5 digit # if i were you - - local euser="rt" - - # first check if username rt exists - if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then - # check uid - rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) - if $(expr ${rt_uid} '<' 1000 > /dev/null); then - ewarn "uid of user rt is less than 1000. suexec2 will not work." - ewarn "If you want to use FastCGI, please delete the user 'rt'" - ewarn "from your system and re-emerge www-apps/rt" - fi - return 0 # all is well - fi - - # add user - # stolen from enewuser - local pwrange euid - - pwrange=$(seq 10001 11001) - for euid in ${pwrange} ; do - [[ -z $(egetent passwd ${euid}) ]] && break - done - if [[ ${euid} == "11001" ]]; then - # she gets around, doesn't she? - die "No available uid's found" - fi - - elog " - Userid: ${euid}" - - enewuser rt ${euid} -1 /dev/null rt - return 0 -} - -pkg_setup() { - webapp_pkg_setup - ewarn - ewarn "If you are upgrading from an existing _RT2_ installation," - ewarn "stop this ebuild (Ctrl-C now), download the upgrade tool," - ewarn "http://bestpractical.com/pub/rt/devel/rt2-to-rt3.tar.gz" - ewarn "and follow the included instructions." - ewarn - enewgroup rt - add_user_rt || die "Could not add user" -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| - s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die -} - -src_configure() { - local web myconf depsconf - - if use mysql ; then - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - if use postgres ; then - myconf+=" --with-db-type=Pg --with-db-dba=postgres" - depsconf+=" --with-postgresql" - fi - if use postgres && use mysql ; then - ewarn "Both mysql and postgres USE flags enabled, default is mysql." - ewarn "You can set the default value in RT_SiteConfig before DB init." - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-fastcgi" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-fastcgi" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-modperl2" - fi - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_install() { - webapp_src_preinst - emake -j1 install - - # make sure we don't clobber existing site configuration - rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - if use lighttpd ; then - newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} - newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} - sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die - else - doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} - fi - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} diff --git a/www-apps/rt/rt-4.0.5.ebuild b/www-apps/rt/rt-4.0.5.ebuild deleted file mode 100644 index 0800204fc8d4..000000000000 --- a/www-apps/rt/rt-4.0.5.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.0.5.ebuild,v 1.3 2014/01/08 06:12:48 vapier Exp $ - -EAPI=4 - -inherit webapp eutils depend.apache user - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="http://www.bestpractical.com/rt/" -SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -IUSE="mysql postgres fastcgi lighttpd" -REQUIRED_USE="|| ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - >=dev-lang/perl-5.8.3 - - >=dev-perl/Apache-Session-1.53 - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - dev-perl/CGI-Emulate-PSGI - dev-perl/CGI-PSGI - >=dev-perl/Class-Accessor-0.34 - >=dev-perl/class-returnvalue-0.40 - dev-perl/Convert-Color - >=dev-perl/CSS-Squish-0.06 - dev-perl/Data-ICal - dev-perl/DBD-SQLite - >=dev-perl/DBI-1.37 - >=dev-perl/dbix-searchbuilder-1.59 - dev-perl/Devel-GlobalDestruction - >=dev-perl/Devel-StackTrace-1.19 - dev-perl/Email-Address - dev-perl/File-ShareDir - dev-perl/GD - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GnuPG-Interface - dev-perl/GraphViz - dev-perl/HTML-Format - >=dev-perl/HTML-Mason-1.43 - dev-perl/HTML-Mason-PSGIHandler - dev-perl/HTML-Parser - dev-perl/HTML-Quoted - dev-perl/HTML-RewriteAttributes - >=dev-perl/HTML-Scrubber-0.08 - dev-perl/HTML-Tree - >=dev-perl/HTTP-Server-Simple-0.34 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - dev-perl/IPC-Run3 - dev-perl/JavaScript-Minifier - dev-perl/JSON - dev-perl/libwww-perl - dev-perl/locale-maketext-fuzzy - >=dev-perl/locale-maketext-lexicon-0.32 - >=dev-perl/log-dispatch-2.2.3 - >=dev-perl/log-dispatch-2.23 - >=dev-perl/MailTools-1.60 - >=dev-perl/MIME-tools-5.425 - dev-perl/MIME-Types - dev-perl/Module-Refresh - >=dev-perl/Module-Versions-Report-1.05 - dev-perl/Net-CIDR - dev-perl/net-server - dev-perl/PerlIO-eol - dev-perl/Plack - dev-perl/regexp-common - dev-perl/Regexp-Common-net-CIDR - dev-perl/Regexp-IPv6 - dev-perl/Starlet - dev-perl/TermReadKey - dev-perl/text-autoformat - dev-perl/Text-Password-Pronounceable - >=dev-perl/Text-Quoted-2.02 - dev-perl/text-template - >=dev-perl/Text-WikiFormat-0.76 - dev-perl/text-wrapper - dev-perl/Time-modules - dev-perl/TimeDate - >=dev-perl/Tree-Simple-1.04 - dev-perl/UNIVERSAL-require - >=dev-perl/XML-RSS-1.05 - >=virtual/perl-CGI-3.38 - virtual/perl-digest-base - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-File-Spec-0.8 - virtual/perl-File-Temp - >=virtual/perl-Getopt-Long-2.24 - virtual/perl-libnet - >=virtual/perl-locale-maketext-1.06 - virtual/perl-Scalar-List-Utils - >=virtual/perl-Storable-2.08 - virtual/perl-Time-HiRes - - fastcgi? ( - dev-perl/FCGI - dev-perl/FCGI-ProcManager - ) - !lighttpd? ( dev-perl/Apache-DBI ) - lighttpd? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -add_user_rt() { - # add new user - # suexec2 requires uid >= 1000; enewuser is of no help here - # From: Mike Frysinger <vapier@gentoo.org> - # Date: Fri, 17 Jun 2005 08:41:44 -0400 - # i'd pick a 5 digit # if i were you - - local euser="rt" - - # first check if username rt exists - if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then - # check uid - rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) - if $(expr ${rt_uid} '<' 1000 > /dev/null); then - ewarn "uid of user rt is less than 1000. suexec2 will not work." - ewarn "If you want to use FastCGI, please delete the user 'rt'" - ewarn "from your system and re-emerge www-apps/rt" - fi - return 0 # all is well - fi - - # add user - # stolen from enewuser - local pwrange euid - - pwrange=$(seq 10001 11001) - for euid in ${pwrange} ; do - [[ -z $(egetent passwd ${euid}) ]] && break - done - if [[ ${euid} == "11001" ]]; then - # she gets around, doesn't she? - die "No available uid's found" - fi - - elog " - Userid: ${euid}" - - enewuser rt ${euid} -1 /dev/null rt - return 0 -} - -pkg_setup() { - webapp_pkg_setup - - ewarn - ewarn "If you are upgrading from an existing RT installation" - ewarn "make sure to read the related upgrade documentation in" - ewarn "${ROOT}usr/share/doc/${PF}." - ewarn - - enewgroup rt - add_user_rt || die "Could not add user" -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| - s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die -} - -src_configure() { - local web myconf depsconf - - if use mysql ; then - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - if use postgres ; then - myconf+=" --with-db-type=Pg --with-db-dba=postgres" - depsconf+=" --with-postgresql" - fi - if use postgres && use mysql ; then - ewarn "Both mysql and postgres USE flags enabled, default is mysql." - ewarn "You can set the default value in RT_SiteConfig before DB init." - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-fastcgi" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-fastcgi" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-modperl2" - fi - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_compile() { :; } - -src_install() { - webapp_src_preinst - emake install - - dodoc "${S}"/docs/UPGRADING* - dodoc "${S}"/docs/*.pod - dodoc "${S}"/docs/network-diagram.svg - cp -R "${S}"/docs/customizing/ "${D}"/usr/share/doc/"${P}"/ - cp -R "${S}"/docs/extending/ "${D}"/usr/share/doc/"${P}"/ - - # make sure we don't clobber existing site configuration - rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - if use lighttpd ; then - newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} - newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} - sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die - else - doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} - fi - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} diff --git a/www-apps/rt/rt-4.0.8-r1.ebuild b/www-apps/rt/rt-4.0.8-r1.ebuild deleted file mode 100644 index cecf185d8b89..000000000000 --- a/www-apps/rt/rt-4.0.8-r1.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.0.8-r1.ebuild,v 1.2 2014/01/08 06:12:48 vapier Exp $ - -EAPI=4 - -inherit webapp eutils depend.apache user - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="http://www.bestpractical.com/rt/" -SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -IUSE="mysql postgres fastcgi lighttpd" -REQUIRED_USE="|| ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - >=dev-lang/perl-5.8.3 - - >=dev-perl/Apache-Session-1.53 - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - dev-perl/CGI-Emulate-PSGI - dev-perl/CGI-PSGI - >=dev-perl/Class-Accessor-0.34 - >=dev-perl/class-returnvalue-0.40 - dev-perl/Convert-Color - >=dev-perl/CSS-Squish-0.06 - dev-perl/Data-ICal - dev-perl/DBD-SQLite - >=dev-perl/DBI-1.37 - >=dev-perl/dbix-searchbuilder-1.59 - dev-perl/Devel-GlobalDestruction - >=dev-perl/Devel-StackTrace-1.19 - dev-perl/Email-Address - dev-perl/File-ShareDir - dev-perl/GD - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GnuPG-Interface - dev-perl/GraphViz - dev-perl/HTML-Format - >=dev-perl/HTML-Mason-1.43 - dev-perl/HTML-Mason-PSGIHandler - dev-perl/HTML-Parser - dev-perl/HTML-Quoted - dev-perl/HTML-RewriteAttributes - >=dev-perl/HTML-Scrubber-0.08 - dev-perl/HTML-Tree - >=dev-perl/HTTP-Server-Simple-0.34 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - dev-perl/IPC-Run3 - dev-perl/JavaScript-Minifier - dev-perl/JSON - dev-perl/libwww-perl - dev-perl/locale-maketext-fuzzy - >=dev-perl/locale-maketext-lexicon-0.32 - >=dev-perl/log-dispatch-2.2.3 - >=dev-perl/log-dispatch-2.23 - >=dev-perl/MailTools-1.60 - >=dev-perl/MIME-tools-5.425 - dev-perl/MIME-Types - dev-perl/Module-Refresh - >=dev-perl/Module-Versions-Report-1.05 - dev-perl/Net-CIDR - dev-perl/net-server - dev-perl/PerlIO-eol - dev-perl/Plack - dev-perl/regexp-common - dev-perl/Regexp-Common-net-CIDR - dev-perl/Regexp-IPv6 - dev-perl/Starlet - dev-perl/TermReadKey - dev-perl/text-autoformat - dev-perl/Text-Password-Pronounceable - >=dev-perl/Text-Quoted-2.02 - dev-perl/text-template - >=dev-perl/Text-WikiFormat-0.76 - dev-perl/text-wrapper - dev-perl/Time-modules - dev-perl/TimeDate - >=dev-perl/Tree-Simple-1.04 - dev-perl/UNIVERSAL-require - >=dev-perl/XML-RSS-1.05 - >=virtual/perl-CGI-3.38 - virtual/perl-digest-base - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-File-Spec-0.8 - virtual/perl-File-Temp - >=virtual/perl-Getopt-Long-2.24 - virtual/perl-libnet - >=virtual/perl-locale-maketext-1.06 - virtual/perl-Scalar-List-Utils - >=virtual/perl-Storable-2.08 - virtual/perl-Time-HiRes - - fastcgi? ( - dev-perl/FCGI - dev-perl/FCGI-ProcManager - ) - !lighttpd? ( dev-perl/Apache-DBI ) - lighttpd? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -add_user_rt() { - # add new user - # suexec2 requires uid >= 1000; enewuser is of no help here - # From: Mike Frysinger <vapier@gentoo.org> - # Date: Fri, 17 Jun 2005 08:41:44 -0400 - # i'd pick a 5 digit # if i were you - - local euser="rt" - - # first check if username rt exists - if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then - # check uid - rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) - if $(expr ${rt_uid} '<' 1000 > /dev/null); then - ewarn "uid of user rt is less than 1000. suexec2 will not work." - ewarn "If you want to use FastCGI, please delete the user 'rt'" - ewarn "from your system and re-emerge www-apps/rt" - fi - return 0 # all is well - fi - - # add user - # stolen from enewuser - local pwrange euid - - pwrange=$(seq 10001 11001) - for euid in ${pwrange} ; do - [[ -z $(egetent passwd ${euid}) ]] && break - done - if [[ ${euid} == "11001" ]]; then - # she gets around, doesn't she? - die "No available uid's found" - fi - - elog " - Userid: ${euid}" - - enewuser rt ${euid} -1 /dev/null rt - return 0 -} - -pkg_setup() { - webapp_pkg_setup - - ewarn - ewarn "If you are upgrading from an existing RT installation" - ewarn "make sure to read the related upgrade documentation in" - ewarn "${ROOT}usr/share/doc/${PF}." - ewarn - - enewgroup rt - add_user_rt || die "Could not add user" -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| - s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die -} - -src_configure() { - local web myconf depsconf - - if use mysql ; then - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - if use postgres ; then - myconf+=" --with-db-type=Pg --with-db-dba=postgres" - depsconf+=" --with-postgresql" - fi - if use postgres && use mysql ; then - ewarn "Both mysql and postgres USE flags enabled, default is mysql." - ewarn "You can set the default value in RT_SiteConfig before DB init." - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-fastcgi" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-fastcgi" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-modperl2" - fi - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_compile() { :; } - -src_install() { - webapp_src_preinst - emake install - - dodoc "${S}"/docs/UPGRADING* - dodoc "${S}"/docs/*.pod - dodoc "${S}"/docs/network-diagram.svg - cp -R "${S}"/docs/customizing/ "${D}"/usr/share/doc/"${P}"/ - cp -R "${S}"/docs/extending/ "${D}"/usr/share/doc/"${P}"/ - - # make sure we don't clobber existing site configuration - rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - if use lighttpd ; then - newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} - newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} - sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die - else - doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} - fi - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} diff --git a/www-apps/rt/rt-4.0.8.ebuild b/www-apps/rt/rt-4.0.8.ebuild deleted file mode 100644 index cccc83a5780a..000000000000 --- a/www-apps/rt/rt-4.0.8.ebuild +++ /dev/null @@ -1,276 +0,0 @@ -# Copyright 1999-2014 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/www-apps/rt/rt-4.0.8.ebuild,v 1.2 2014/01/08 06:12:48 vapier Exp $ - -EAPI=4 - -inherit webapp eutils depend.apache user - -DESCRIPTION="RT is an enterprise-grade ticketing system" -HOMEPAGE="http://www.bestpractical.com/rt/" -SRC_URI="http://download.bestpractical.com/pub/${PN}/release/${P}.tar.gz" - -KEYWORDS="~amd64 ~x86" -LICENSE="GPL-2" -IUSE="mysql postgres fastcgi lighttpd" -REQUIRED_USE="|| ( mysql postgres )" - -RESTRICT="test" - -DEPEND=" - >=dev-lang/perl-5.8.3 - - >=dev-perl/Apache-Session-1.53 - dev-perl/Cache-Simple-TimedExpiry - dev-perl/Calendar-Simple - dev-perl/CGI-Emulate-PSGI - dev-perl/CGI-PSGI - >=dev-perl/Class-Accessor-0.34 - >=dev-perl/class-returnvalue-0.40 - dev-perl/Convert-Color - >=dev-perl/CSS-Squish-0.06 - dev-perl/Data-ICal - dev-perl/DBD-SQLite - >=dev-perl/DBI-1.37 - >=dev-perl/dbix-searchbuilder-1.59 - dev-perl/Devel-GlobalDestruction - >=dev-perl/Devel-StackTrace-1.19 - dev-perl/Email-Address - dev-perl/File-ShareDir - dev-perl/GD - dev-perl/GDGraph - dev-perl/GDTextUtil - dev-perl/GnuPG-Interface - dev-perl/GraphViz - dev-perl/HTML-Format - >=dev-perl/HTML-Mason-1.43 - dev-perl/HTML-Mason-PSGIHandler - dev-perl/HTML-Parser - dev-perl/HTML-Quoted - dev-perl/HTML-RewriteAttributes - >=dev-perl/HTML-Scrubber-0.08 - dev-perl/HTML-Tree - >=dev-perl/HTTP-Server-Simple-0.34 - >=dev-perl/HTTP-Server-Simple-Mason-0.14 - dev-perl/IPC-Run3 - dev-perl/JavaScript-Minifier - dev-perl/JSON - dev-perl/libwww-perl - dev-perl/locale-maketext-fuzzy - >=dev-perl/locale-maketext-lexicon-0.32 - >=dev-perl/log-dispatch-2.2.3 - >=dev-perl/log-dispatch-2.23 - >=dev-perl/MailTools-1.60 - >=dev-perl/MIME-tools-5.425 - dev-perl/MIME-Types - dev-perl/Module-Refresh - >=dev-perl/Module-Versions-Report-1.05 - dev-perl/Net-CIDR - dev-perl/net-server - dev-perl/PerlIO-eol - dev-perl/Plack - dev-perl/regexp-common - dev-perl/Regexp-Common-net-CIDR - dev-perl/Regexp-IPv6 - dev-perl/Starlet - dev-perl/TermReadKey - dev-perl/text-autoformat - dev-perl/Text-Password-Pronounceable - >=dev-perl/Text-Quoted-2.02 - dev-perl/text-template - >=dev-perl/Text-WikiFormat-0.76 - dev-perl/text-wrapper - dev-perl/Time-modules - dev-perl/TimeDate - >=dev-perl/Tree-Simple-1.04 - dev-perl/UNIVERSAL-require - >=dev-perl/XML-RSS-1.05 - >=virtual/perl-CGI-3.38 - virtual/perl-digest-base - >=virtual/perl-Digest-MD5-2.27 - >=virtual/perl-File-Spec-0.8 - virtual/perl-File-Temp - >=virtual/perl-Getopt-Long-2.24 - virtual/perl-libnet - >=virtual/perl-locale-maketext-1.06 - virtual/perl-Scalar-List-Utils - >=virtual/perl-Storable-2.08 - virtual/perl-Time-HiRes - - fastcgi? ( - dev-perl/FCGI - dev-perl/FCGI-ProcManager - ) - !lighttpd? ( dev-perl/Apache-DBI ) - lighttpd? ( dev-perl/FCGI ) - mysql? ( >=dev-perl/DBD-mysql-2.1018 ) - postgres? ( >=dev-perl/DBD-Pg-1.43 ) -" - -RDEPEND="${DEPEND} - virtual/mta - !lighttpd? ( ${APACHE2_DEPEND} ) - lighttpd? ( - >=www-servers/lighttpd-1.3.13 - sys-apps/openrc - ) -" - -need_httpd_cgi - -add_user_rt() { - # add new user - # suexec2 requires uid >= 1000; enewuser is of no help here - # From: Mike Frysinger <vapier@gentoo.org> - # Date: Fri, 17 Jun 2005 08:41:44 -0400 - # i'd pick a 5 digit # if i were you - - local euser="rt" - - # first check if username rt exists - if [[ ${euser} == $(egetent passwd "${euser}" | cut -d: -f1) ]] ; then - # check uid - rt_uid=$(egetent passwd "${euser}" | cut -d: -f3) - if $(expr ${rt_uid} '<' 1000 > /dev/null); then - ewarn "uid of user rt is less than 1000. suexec2 will not work." - ewarn "If you want to use FastCGI, please delete the user 'rt'" - ewarn "from your system and re-emerge www-apps/rt" - fi - return 0 # all is well - fi - - # add user - # stolen from enewuser - local pwrange euid - - pwrange=$(seq 10001 11001) - for euid in ${pwrange} ; do - [[ -z $(egetent passwd ${euid}) ]] && break - done - if [[ ${euid} == "11001" ]]; then - # she gets around, doesn't she? - die "No available uid's found" - fi - - elog " - Userid: ${euid}" - - enewuser rt ${euid} -1 /dev/null rt - return 0 -} - -pkg_setup() { - webapp_pkg_setup - - ewarn - ewarn "If you are upgrading from an existing RT installation" - ewarn "make sure to read the related upgrade documentation in" - ewarn "${ROOT}usr/share/doc/${PF}." - ewarn - - enewgroup rt - add_user_rt || die "Could not add user" -} - -src_prepare() { - # add Gentoo-specific layout - cat "${FILESDIR}"/config.layout-gentoo >> config.layout - sed -e "s|PREFIX|${D}/${MY_HOSTROOTDIR}/${PF}| - s|HTMLDIR|${D}/${MY_HTDOCSDIR}|g" -i ./config.layout || die - - # don't need to check dev dependencies - sed -e "s|\$args{'with-DEV'} =1;|#\$args{'with-DEV'} =1;|" -i sbin/rt-test-dependencies.in || die -} - -src_configure() { - local web myconf depsconf - - if use mysql ; then - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - if use postgres ; then - myconf+=" --with-db-type=Pg --with-db-dba=postgres" - depsconf+=" --with-postgresql" - fi - if use postgres && use mysql ; then - ewarn "Both mysql and postgres USE flags enabled, default is mysql." - ewarn "You can set the default value in RT_SiteConfig before DB init." - myconf+=" --with-db-type=mysql --with-db-dba=root" - depsconf+=" --with-mysql" - fi - - if use fastcgi ; then - myconf+=" --with-web-handler=fastcgi" - web="apache" - depsconf+=" --with-fastcgi" - elif use lighttpd ; then - myconf+=" --with-web-handler=fastcgi" - web="lighttpd" - depsconf+=" --with-fastcgi" - else - myconf+=" --with-web-handler=modperl2" - web="apache" - depsconf+=" --with-modperl2" - fi - - ./configure --enable-layout=Gentoo \ - --with-bin-owner=rt \ - --with-libs-owner=rt \ - --with-libs-group=rt \ - --with-rt-group=rt \ - --with-web-user=${web} \ - --with-web-group=${web} \ - ${myconf} - - # check for missing deps and ask to report if something is broken - /usr/bin/perl ./sbin/rt-test-dependencies ${depsconf} > "${T}"/t - if grep -q "MISSING" "${T}"/t; then - ewarn "Missing Perl dependency!" - ewarn - cat "${T}"/t | grep MISSING - ewarn - ewarn "Please run perl-cleaner. If the problem persists," - ewarn "please file a bug in the Gentoo Bugzilla with the information above" - die "Missing dependencies." - fi -} - -src_compile() { :; } - -src_install() { - webapp_src_preinst - emake install - - dodoc "${S}"/docs/UPGRADING* - dodoc "${S}"/docs/*.pod - dodoc "${S}"/docs/network-diagram.svg - cp -R "${S}"/docs/customizing/ "${D}"/usr/share/doc/"${P}"/ - cp -R "${S}"/docs/extending/ "${D}"/usr/share/doc/"${P}"/ - - # make sure we don't clobber existing site configuration - rm -f "${D}"/${MY_HOSTROOTDIR}/${PF}/etc/RT_SiteConfig.pm - - # fix paths - find "${D}" -type f -print0 | xargs -0 sed -i -e "s:${D}::g" - - # copy upgrade files - insinto "${MY_HOSTROOTDIR}/${PF}" - doins -r etc/upgrade - - if use lighttpd ; then - newinitd "${FILESDIR}"/${PN}.init.d.2 ${PN} - newconfd "${FILESDIR}"/${PN}.conf.d.2 ${PN} - sed -i -e "s/@@PF@@/${PF}/g" "${D}"/etc/conf.d/${PN} || die - else - doins "${FILESDIR}"/{rt_apache2_fcgi.conf,rt_apache2.conf} - fi - - # require the web server's permissions - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var - webapp_serverowned "${MY_HOSTROOTDIR}"/${PF}/var/mason_data/obj - - webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt - webapp_hook_script "${FILESDIR}"/reconfig - - webapp_src_install -} |