summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2003-08-04 01:22:04 +0000
committerStuart Herbert <stuart@gentoo.org>2003-08-04 01:22:04 +0000
commitee8bc3948acd89bbcf149f61c4003d8617d4426e (patch)
tree2d24bc2e292749d3ebb145167dda31830dbdca07 /dev-php
parentMarked stable on hppa. (diff)
downloadhistorical-ee8bc3948acd89bbcf149f61c4003d8617d4426e.tar.gz
historical-ee8bc3948acd89bbcf149f61c4003d8617d4426e.tar.bz2
historical-ee8bc3948acd89bbcf149f61c4003d8617d4426e.zip
Fix for installation problem when apache not yet installed
Diffstat (limited to 'dev-php')
-rw-r--r--dev-php/jpgraph/Manifest2
-rw-r--r--dev-php/jpgraph/jpgraph-1.12.2.ebuild15
2 files changed, 14 insertions, 3 deletions
diff --git a/dev-php/jpgraph/Manifest b/dev-php/jpgraph/Manifest
index e6a8948c9053..00ffc366ec34 100644
--- a/dev-php/jpgraph/Manifest
+++ b/dev-php/jpgraph/Manifest
@@ -1,3 +1,3 @@
-MD5 43ab004f6a5691fd3a7a0435e5b220a6 jpgraph-1.12.2.ebuild 1601
+MD5 9e381d2d177b1b9d1e4bb73768ebab44 jpgraph-1.12.2.ebuild 1919
MD5 de741e00821ff163119f289d0ae008fd ChangeLog 434
MD5 4f6fb9ae9a7dd1daf9b37c4b458bf0d3 files/digest-jpgraph-1.12.2 67
diff --git a/dev-php/jpgraph/jpgraph-1.12.2.ebuild b/dev-php/jpgraph/jpgraph-1.12.2.ebuild
index e78a424093ee..800a1009536a 100644
--- a/dev-php/jpgraph/jpgraph-1.12.2.ebuild
+++ b/dev-php/jpgraph/jpgraph-1.12.2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Released under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/jpgraph-1.12.2.ebuild,v 1.1 2003/08/04 00:33:41 stuart Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-php/jpgraph/jpgraph-1.12.2.ebuild,v 1.2 2003/08/04 01:21:56 stuart Exp $
#
# Based on the ebuild submitted by ??
@@ -29,7 +29,18 @@ inherit php-lib
HTTPD_USER=root
HTTPD_GROUP=root
-has_version "net-www/apache" && inherit webapp-apache
+has_version "net-www/apache" && USE_APACHE=1 && inherit webapp-apache
+[ -n $"{USE_APACHE}" ] && webapp-detect || NO_WEBSERVER=1
+
+pkg_setup ()
+{
+ if [ "${NO_WEBSERVER}" = "1" ]; then
+ ewarn "No webserver detected - ${JPGRAPH_CACHE_DIR} will be"
+ ewarn "owned by ${HTTPD_USER} instead"
+ else
+ einfo "Configuring cache dir ${JPGRAPH_CACHE_DIR} for ${WEBAPP_SERVER}"
+ fi
+}
src_install ()
{