Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 33899 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.0.11.ebuild
rt-3.0.11.ebuild (text/plain), 7.32 KB, created by
Renat Lumpau (RETIRED)
on 2004-06-22 13:56:30 UTC
(
hide
)
Description:
rt-3.0.11.ebuild
Filename:
MIME Type:
Creator:
Renat Lumpau (RETIRED)
Created:
2004-06-22 13:56:30 UTC
Size:
7.32 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > ># no fcgi/speedycgi or apache2/modperl2 support ># needs unstable perl > >IUSE="mysql postgres" > >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" > ># only Apache1 is supported, per RT docs > >HTTPD_VER=1 >HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" >HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" >HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" >[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" >[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" >[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" > ># this list does not include Text::Quoted and HTML::FormatText ># because they are not currently in portage ># they need to be installed first from provided ebuilds ># also note that unstable Storable and dbix-searchbuilder are needed > >DEPEND=" > >=dev-lang/perl-5.8.3 > <net-www/apache-2.0.0 > virtual/mta > dev-perl/Digest-MD5 > dev-perl/DBI > dev-perl/Test-Inline > >=dev-perl/class-returnvalue-0.40 > dev-perl/text-template > >=dev-perl/File-Spec-0.8 > dev-perl/HTML-Parser > dev-perl/libnet > >=dev-perl/log-dispatch-2.0 > dev-perl/locale-maketext > >=dev-perl/locale-maketext-lexicon-0.10 > 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/File-Temp > dev-perl/TermReadKey > dev-perl/text-autoformat > dev-perl/Text-Reform > dev-perl/Text-Autoformat > dev-perl/Text-Quoted > >=dev-perl/dbix-searchbuilder-0.97 > dev-perl/Scalar-List-Utils > >=dev-perl/Params-Validate-0.02 > dev-perl/Cache-Cache > dev-perl/Exception-Class > >=dev-perl/HTML-Mason-1.16 > dev-perl/MLDBM > dev-perl/FreezeThaw > >=dev-perl/Storable-2.08 > >=dev-perl/CGI-2.753 > >=dev-perl/Apache-Session-1.53 > dev-perl/HTML-Tree > dev-perl/Font-AFM > dev-perl/HTML-Format > >=dev-perl/Getopt-Long-2.24 > dev-perl/libwww-perl > dev-perl/regexp-common > dev-perl/Time-HiRes > dev-perl/WWW-Mechanize > dev-perl/libapreq > dev-perl/Apache-DBI > 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 ) >" >LICENSE="GPL-2" >SLOT="0" > >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 > > if has_version '>=net-www/rt-3.0.0' > then > UPGRADE=1 > fi > > 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 > > if ! grep -q ^rt: /etc/group ; then > groupadd rt || die "problem adding group rt" > fi >} > >src_compile() { > > local myconf > > cd "${S}" > > myconf="${myconf} \ > --enable-layout=Gentoo \ > --with-rt-group=rt \ > --with-bin-owner=root \ > --with-libs-owner=root \ > --with-libs-group=root \ > --with-db-host=localhost \ > --with-db-database=rt3 \ > --with-web-user=${HTTPD_USER} \ > --with-web-group=${HTTPD_GROUP}" > > if [ "`use mysql`" ] > then > myconf="${myconf} --with-db-type=mysql \ > --with-db-dba=root \ > --with-db-rt-user=root \ > --with-db-rt-pass= " > elif [ "`use postgres`" ] > then > myconf="${myconf} --with-db-type=Pg \ > --with-db-dba=postgres \ > --with-db-rt-user=rt_user \ > --with-db-rt-pass=rt_pass" > fi > > myconf="${myconf} --with-apache1 --with-modperl1" > econf ${myconf} || die "configure failed (myconf=${myconf})" > >} > >src_unpack() { > unpack ${A} > cd ${S} > > epatch ${FILESDIR}/${PV}/config_layout.gentoo > epatch ${FILESDIR}/${PV}/Makefile.in.gentoo > epatch ${FILESDIR}/${PV}/README.gentoo >} > >src_install() { > local myconf > > # config script expects these to exist, so create them now (in sandbox) > cd "${D}" > mkdir -p "usr/lib/rt3" > mkdir -p "usr/share/doc/rt3" > > cd "${S}" > > myconf="${myconf} \ > DESTDIR=${D}" > > # > # copy config snippet to the conf dir: > # > insinto /etc/apache/conf/ > doins ${FILESDIR}/${PV}/rt_apache1.conf > > # check if this is an upgrade or a fresh install > if [ ${UPGRADE} ] > then > make upgrade DESTDIR=${D} || die "upgrade failed" > else > make install DESTDIR=${D} || die "install failed" > fi > dodoc README COPYING Changelog >} > >pkg_postinst() { > # > # insert a few lines into /etc/apache/conf/commonapache.conf: > # > HTTPD_CONF=/etc/apache/conf/commonapache.conf > > if ! grep -q "^Include /etc/apache/conf/rt_apache1.conf\$" ${HTTPD_CONF}; then > ewarn "Updating ${HTTPD_CONF}..." > echo "Include /etc/apache/conf/rt_apache1.conf" >> ${HTTPD_CONF} > else > einfo "apache.conf already patched" > fi > > # check if this is an upgrade or a fresh install > if [ ${UPGRADE} ] > then > ewarn > ewarn "It appears that you are upgrading from an existing RT3 installation." > ewarn "1. You should check /etc/rt3/RT_Config.pm" > ewarn "for any necessary site customization" > ewarn > ewarn "2. Per RT's docs, it might be necessary to upgrade your database." > ewarn "If you don't see any warnings below, then no upgrades were required." > > cd "${S}/etc/upgrade" > BV=`best_version 'net-www/rt' | cut -d'-' -f3` > for i in * > do > if [ `expr "${BV} < ${i}"` ] > then > ewarn "/usr/sbin/rt-setup-database --action insert \ " > ewarn "--datafile etc/upgrade/${i}" > /usr/sbin/rt-setup-database --action insert --datafile etc/upgrade/${i} || ewarn "Automatic upgrade failed. Make note of the error message above and upgrade manually." > fi > done > else > einfo "RT has been successfully installed on your machine." > einfo "You must now configure your installation." > einfo "1. Edit /etc/rt3/RT_SiteConfig.pm" > einfo "(You will definitely need to set RT's database password before" > einfo "continuing. Not doing so could be very dangerous)" > einfo "Also check /etc/rt3/initialdata for root's password" > einfo > einfo "2. Initialize RT's database." > if [ "`use mysql`" ] > then > einfo "For MySQL:" > einfo "perl /usr/sbin/rt-setup-database --action init --dba root \ " > einfo " --prompt-for-dba-password" > einfo "For this to work, you might have to tweak your MySQL settings" > fi > if [ "`use postgres`" ] > then > einfo "For PostgreSQL:" > einfo "perl /usr/sbin/rt-setup-database --action init --dba postgres \ " > einfo " --prompt-for-dba-password" > einfo "For this to work, PostgreSQL needs to listen on TCP 5432:" > einfo "In your postgresql.conf, set tcpip_socket = true, port = 5432" > fi > einfo > einfo "3. Edit /etc/apache/conf/rt_apache1.conf" > einfo "and change \"MY_RT_DOMAIN\" to point to a real VirtualHost" > einfo > einfo "If you are installing mod_perl for the first time, be sure to" > einfo "modify your Apache configs accordingly. Try:" > einfo "<IfDefine PERL>" > einfo " LoadModule perl_module extramodules/libperl.so" > einfo "</IfDefine>" > einfo "<IfDefine PERL>" > einfo " AddModule mod_perl.c" > einfo "</IfDefine>" > einfo "and add -D PERL to your APACHE_OPTS in /etc/conf.d/apache" > einfo > einfo "4. Restart Apache: /etc/init.d/apache restart" > einfo > einfo "BE SURE TO READ THE README in /usr/share/doc/${PF}" > einfo "especially if you'd prefer to use an alias," > einfo "or if you want to setup RT's e-mail gateway" > einfo > fi >}
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