Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 34601 Details for
Bug 54764
rt-3.2.1.ebuild (New Package)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
rt-3.2.0.ebuild
rt-3.2.0.ebuild (text/plain), 6.64 KB, created by
Renat Lumpau (RETIRED)
on 2004-07-01 12:37:22 UTC
(
hide
)
Description:
rt-3.2.0.ebuild
Filename:
MIME Type:
Creator:
Renat Lumpau (RETIRED)
Created:
2004-07-01 12:37:22 UTC
Size:
6.64 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># this ebuild borrows heavily from squirrelmail > >inherit webapp eutils > >IUSE="mysql postgres fastcgi apache2" > >DESCRIPTION="RT is an industrial-grade ticketing system" >HOMEPAGE="http://www.bestpractical.com/rt/" >SRC_URI="http://www.fsck.com/pub/${PN}/release/${P}.tar.gz > ftp://ftp.eu.uu.net/pub/unix/ticketing/${PN}/release/${P}.tar.gz > ftp://rhinst.ece.cmu.edu/${PN}/release/${P}.tar.gz" > >KEYWORDS="~x86" > ># this list does not include several Perl deps not currently in portage ># they need to be installed first from provided ebuilds > >DEPEND=" > >=net-www/webapp-config-1.10-r3 >" >RDEPEND=" > >=dev-lang/perl-5.8.3 > virtual/mta > >=dev-perl/Params-Validate-0.02 > dev-perl/Cache-Cache > >=dev-perl/Exception-Class-1.14 > >=dev-perl/HTML-Mason-1.23 > dev-perl/MLDBM > dev-perl/FreezeThaw > >=dev-perl/Apache-Session-1.53 > dev-perl/XML-RSS > dev-perl/HTML-Tree > dev-perl/HTML-Format > dev-perl/libwww-perl > dev-perl/libapreq > >=dev-perl/Apache-DBI-0.92 > >=dev-perl/DBI-1.37 > dev-perl/Test-Inline > >=dev-perl/class-returnvalue-0.40 > >=dev-perl/dbix-searchbuilder-0.97 > dev-perl/text-template > dev-perl/HTML-Parser > >=dev-perl/HTML-Scrubber-0.08 > >=dev-perl/log-dispatch-2.0 > >=dev-perl/locale-maketext-lexicon-0.32 > dev-perl/locale-maketext-fuzzy > >=dev-perl/MIME-tools-5.411a-r2 > >=dev-perl/MailTools-1.60 > dev-perl/text-wrapper > dev-perl/Time-modules > dev-perl/TermReadKey > dev-perl/text-autoformat > >=dev-perl/Text-Quoted-1.3 > >=dev-perl/Tree-Simple-1.04 > dev-perl/Module-Versions-Report > dev-perl/regexp-common > dev-perl/WWW-Mechanize > > mysql? ( >=dev-db/mysql-4.0.9 >=dev-perl/DBD-mysql-2.0416 ) > postgres? ( >=dev-db/postgresql-7.4.2-r1 dev-perl/DBD-Pg ) > fastcgi? ( dev-perl/FCGI net-www/mod_fastcgi ) > apache2? ( >=net-www/apache-2 dev-perl/FCGI net-www/mod_fastcgi ) : ( =net-www/apache-1.* ) > " ># apache2? ( >=net-www/apache-2 >=dev-perl/mod_perl-1.99.11) : ( =net-www/apache-1.* ) > >LICENSE="GPL-2" > >pkg_setup() { > webapp_pkg_setup > > if use apache2; then > ewarn "mod_perl2 isn't ready for prime time, fastcgi will be used instead" > ewarn "If you really want mod_perl2, you can edit the ebuild and uncomment a few lines" > ewarn "but if your RT breaks, you get to keep the pieces." > ewarn > fi > 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 > > for TICKER in 1 2 3 4 5; do > # Double beep here. > echo -ne "\a" ; sleep 0.1 &>/dev/null ; sleep 0,1 &>/dev/null > echo -ne "\a" ; sleep 1 > done > sleep 8 >} > >src_unpack() { > unpack ${A} > cd ${S} > sed -e "s/\/opt\/rt3\/bin\/rt-mailgate/<YOUR VIRTUAL HOST DIRECTORY>\/bin\/rt-mailgate/g" -i README >} > >src_install() { > webapp_src_preinst > > # install documentation > dodoc README COPYING Changelog > > mkdir -p ${D}/${MY_HOSTROOTDIR}/local/etc > mkdir ${D}/${MY_HOSTROOTDIR}/local/po > mkdir ${D}/${MY_HOSTROOTDIR}/local/html > mkdir -p ${D}/${MY_HOSTROOTDIR}/var/mason_data > mkdir -p ${D}/${MY_HOSTROOTDIR}/var/log > mkdir -p ${D}/${MY_HOSTROOTDIR}/share/html > mkdir ${D}/${MY_HOSTROOTDIR}/var/session_data > # touch files so that webapp_configfile works > touch ${D}/${MY_HOSTROOTDIR}/local/etc/.keep > touch ${D}/${MY_HOSTROOTDIR}/local/po/.keep > touch ${D}/${MY_HOSTROOTDIR}/local/html/.keep > touch ${D}/${MY_HOSTROOTDIR}/var/mason_data/.keep > touch ${D}/${MY_HOSTROOTDIR}/var/log/.keep > touch ${D}/${MY_HOSTROOTDIR}/share/html/.keep > touch ${D}/${MY_HOSTROOTDIR}/var/session_data/.keep > webapp_configfile ${MY_HOSTROOTDIR}/local/etc/.keep > webapp_configfile ${MY_HOSTROOTDIR}/local/po/.keep > webapp_configfile ${MY_HOSTROOTDIR}/local/html/.keep > webapp_configfile ${MY_HOSTROOTDIR}/var/mason_data/.keep > webapp_configfile ${MY_HOSTROOTDIR}/var/log/.keep > webapp_configfile ${MY_HOSTROOTDIR}/share/html/.keep > webapp_configfile ${MY_HOSTROOTDIR}/var/session_data/.keep > > # RT will expect to find its files in locations specified at compile time > # however, webapps will move them around (we want this for virtual hosting) > # so, call ./configure with default values, and > # then (ab)use sed in webapp_hook_script reconfig install > # to do that, we need to capture the output of configure in a temp file > > ./configure | grep config.status: | cut -d' ' -f3 | grep -v Makefile > etc/config.output > > # config files > RT_CONF_DIR="${D}/${MY_HOSTROOTDIR}/etc" > RT_CONF_FILES="RT_Config.pm RT_SiteConfig.pm acl.Informix \ > acl.Oracle acl.Pg acl.Sybase acl.mysql initialdata schema.Informix \ > schema.Oracle schema.Pg schema.SQLite schema.Sybase schema.mysql \ > config.output" > > mkdir ${RT_CONF_DIR} > for file in ${RT_CONF_FILES}; do > cp "etc/${file}" ${RT_CONF_DIR} > webapp_configfile "${MY_HOSTROOTDIR}/etc/${file}" > done > > # update files > cp -r etc/upgrade ${RT_CONF_DIR} > for a in ${RT_CONF_DIR}/upgrade/*; do > webapp_configfile "${MY_HOSTROOTDIR}/etc/upgrade/`basename ${a}`" > done > > # libs > cp -r lib ${D}/${MY_HOSTROOTDIR} > for file in `find lib/ -type d -printf "%p/* "`; do > webapp_serverowned "${MY_HOSTROOTDIR}/${file}" > done > > # bin > RT_BIN_DIR="${D}/${MY_HOSTROOTDIR}/bin" > mkdir ${RT_BIN_DIR} > for file in `find bin/ -not -name "*.in"`; do > cp ${file} ${RT_BIN_DIR} > webapp_serverowned ${MY_HOSTROOTDIR}/${file} > done > > # sbin > RT_SBIN_DIR="${D}/${MY_HOSTROOTDIR}/sbin" > mkdir ${RT_SBIN_DIR} > for file in `find sbin/ -not -name "*.in"`; do > cp ${file} ${RT_SBIN_DIR} > webapp_serverowned ${MY_HOSTROOTDIR}/${file} > done > > # html > cp -r html/* ${D}/${MY_HTDOCSDIR} > > # Apache config ># if use apache2; then ># webapp_server_configfile apache2 ${FILESDIR}/rt_apache.conf ># else > webapp_server_configfile apache1 ${FILESDIR}/rt_apache.conf ># fi > > # add post-installation instructions > webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt > > # add the reconfigure hook > webapp_hook_script ${FILESDIR}/reconfig > > # all done > webapp_src_install >} > >pkg_postinst() { > einfo "The first stage of the installation is done. Now you need to setup your virtual hosts via webapp-config" > einfo "Please read man webapp-config for a detailed description of the process and some examples" > einfo > einfo "After that's done, don't forget to edit your local config files," > einfo "which will be located in <YOUR VHOST_ROOT>/etc/RT_Config.pm and RT_SiteConfig.pm" > einfo "BE SURE TO READ THE README in /usr/share/doc , especially if you'd prefer to use an alias, or if you want to setup RT's e-mail gateway" > einfo > einfo "RT documentation can be found at http://www.bestpractical.com/rt/docs.html" > einfo "If you need more help, consider searching the mailing list (Google site:lists.fsck.com )" >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 54764
:
33862
|
33863
|
33864
|
33865
|
33866
|
33867
|
33868
|
33869
|
33870
|
33871
|
33899
|
34588
|
34589
|
34590
|
34591
|
34592
|
34593
|
34594
|
34595
|
34601
|
34602
|
34711
|
34712
|
34713
|
36771
|
36772
|
36773
|
36815