Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 20373 - Adapted phprojekt to include use='apache2'
Summary: Adapted phprojekt to include use='apache2'
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Todd Heim (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-03 03:50 UTC by Rigo
Modified: 2003-05-08 22:01 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
phprojekt-4.0-r1.ebuild (phprojekt-4.0-r1.ebuild,1.32 KB, text/plain)
2003-05-03 03:51 UTC, Rigo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rigo 2003-05-03 03:50:16 UTC
diff -ur phprojekt-4.0.ebuild phprojekt-4.0-r1.ebuild

--- phprojekt-4.0.ebuild        2003-05-04 02:40:59.000000000 +0200
+++ phprojekt-4.0-r1.ebuild     2003-05-04 02:39:14.000000000 +0200
@@ -5,8 +5,12 @@
 # lid of download link
 MY_DOWNLOAD_ID=14
  
-HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\  -f2`"
-HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \  -f2`"
+use apache2 && \
+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`" ||
+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"

Regards, Rogi
Comment 1 Rigo 2003-05-03 03:51:22 UTC
Created attachment 11425 [details]
phprojekt-4.0-r1.ebuild
Comment 2 Todd Heim (RETIRED) gentoo-dev 2003-05-08 22:01:51 UTC
fixed.