Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 13948 Details for
Bug 23629
A modified ebuild for squirrelmail to detect the apache version installed
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
A modified ebuild to correctly detect apache 1 and 2
squirrelmail-1.4.0-r1.ebuild (text/plain), 3.10 KB, created by
James Young
on 2003-06-27 20:25:36 UTC
(
hide
)
Description:
A modified ebuild to correctly detect apache 1 and 2
Filename:
MIME Type:
Creator:
James Young
Created:
2003-06-27 20:25:36 UTC
Size:
3.10 KB
patch
obsolete
># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License v2 ># $Header: /home/cvsroot/gentoo-x86/net-mail/squirrelmail/squirrelmail-1.4.0-r1.ebuild,v 1.3 2003/05/21 19:17:51 mholzer Exp $ > >DESCRIPTION="Webmail for nuts!" >SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" >HOMEPAGE="http://www.squirrelmail.org/" > >LICENSE="GPL-2" >SLOT="1" >KEYWORDS="x86 ~ppc ~sparc ~alpha" > >RDEPEND="virtual/php" >DEPEND="${RDEPEND}" > >detectapache() { > local domsg= > [ -n "$1" ] && domsg=1 > HAVE_APACHE1= > HAVE_APACHE2= > has_version '=net-www/apache-1*' && HAVE_APACHE1=1 > has_version '=net-www/apache-2*' && HAVE_APACHE2=1 > > [ -n "${HAVE_APACHE1}" ] && APACHEVER=1 > [ -n "${HAVE_APACHE2}" ] && APACHEVER=2 > [ -n "${HAVE_APACHE1}" ] && [ -n "${HAVE_APACHE2}" ] && APACHEVER='both' > > case "${APACHEVER}" in > 1) [ -n "${domsg}" ] && einfo 'Apache1 only detected' ;; > 2) [ -n "${domsg}" ] && einfo 'Apache2 only detected' ;; > both) > if [ "`use apache2`" ]; then > [ -n "${domsg}" ] && einfo "Multiple Apache versions detected, using Apache2 (USE=apache2)" > APACHEVER=2 > else > [ -n "${domsg}" ] && einfo 'Multiple Apache versions detected, using Apache1 (USE=-apache2)' > APACHEVER=1 > fi ;; > *) if [ -n "${domsg}" ]; then > MSG="Unknown Apache version!"; eerror $MSG ; die $MSG > else > APACHEVER=0 > fi ;; > esac >} > >detectapache > > > case "${APACHEVER}" in > 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`" ;; > 2) > HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`"; > HTTPD_USER="`grep '^User' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`"; > HTTPD_GROUP="`grep '^Group' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`";; > esac > >[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" >[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" >[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" > >pkg_setup() { > if [ -L ${HTTPD_ROOT}/${PN} ] ; then > ewarn "You need to unmerge your old SquirrelMail version first." > ewarn "SquirrelMail will be installed into ${HTTPD_ROOT}/squirrelmail" > ewarn "directly instead of a version-dependant directory." > die "need to unmerge old version first" > fi >} > >src_compile() { > #we need to have this empty function ... default compile hangs > echo "Nothing to compile" >} > >src_install() { > dodir ${HTTPD_ROOT}/${PN} > cp -r . ${D}/${HTTPD_ROOT}/${PN} > cd ${D}/${HTTPD_ROOT} > chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${PN}/data >} > >pkg_postinst() { > einfo "Squirrelmail NO LONGER requires PHP to have " > einfo "'register_globals = On' !!!" > old_ver=`ls ${HTTPD_ROOT}/${PN}-[0-9]* 2>/dev/null` > if [ ! -z "${old_ver}" ]; then > einfo "" > einfo "You will also want to move old SquirrelMail data to" > einfo "the new location:" > einfo "" > einfo "\tmv ${HTTPD_ROOT}/${PN}-OLDVERSION/data/* \\" > einfo "\t\t${HTTPD_ROOT}/${PN}/data" > einfo "\tmv ${HTTPD_ROOT}/${PN}-OLDVERSION/config/config.php \\" > einfo "\t\t${HTTPD_ROOT}/${PN}/config" > 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 23629
: 13948