deps (#63441), sed typo (#64164).
authorEldad Zack <eldad@gentoo.org>
Mon, 11 Oct 2004 23:10:52 +0000 (23:10 +0000)
committerEldad Zack <eldad@gentoo.org>
Mon, 11 Oct 2004 23:10:52 +0000 (23:10 +0000)
net-analyzer/acid/ChangeLog
net-analyzer/acid/Manifest
net-analyzer/acid/acid-0.9.6_beta23.ebuild

index 408b254ddaac6a49580827e00570b44fafce4bb0..2730692162f19e9d3b5e69b2f2366f3df4681b9a 100644 (file)
@@ -1,6 +1,12 @@
 # ChangeLog for net-analyzer/acid
 # Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/ChangeLog,v 1.3 2004/07/31 08:39:01 mr_bones_ Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/ChangeLog,v 1.4 2004/10/11 23:10:52 eldad Exp $
+
+  12 Oct 2004; Eldad Zack <eldad@gentoo.org> acid-0.9.6_beta23.ebuild:
+  Added deps media-libs/gd and dev-php/mod_php. Added a check to see if mod_php
+  was emerged with USE=gd, and bail if not. Closes bug #63441. Thanks to
+  Benjamin Smee (strerror) <ben@disciplina.net>. Fixed typo in sedding. Closes
+  #64164. Thanks to Jakub Moc <jakub.moc@seznam.cz>.
 
   31 Jul 2004; Michael Sterrett <mr_bones_@gentoo.org>
   acid-0.9.6_beta23.ebuild:
index 65e24835b0979191489b24b460b1bbebbedfdbf1..27127cf097a1a495870649627ca70db52b10c0ba 100644 (file)
@@ -1,4 +1,14 @@
-MD5 d5ef92e9d5d177c5329ee0b00ab91cae acid-0.9.6_beta23.ebuild 1139
-MD5 353788c8785d5f1b3adc69b33dd185c4 ChangeLog 686
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+MD5 00843ef9eb0ae8f1b30d6a9b56a9618e acid-0.9.6_beta23.ebuild 1450
+MD5 0dbe0629180e600b08e15a03f64112d0 ChangeLog 1039
 MD5 d5e9bd932b7a02f7fbaa05865d864854 metadata.xml 248
 MD5 26f34d01017d5c8acb2d58fd139cef67 files/digest-acid-0.9.6_beta23 65
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v1.2.6 (GNU/Linux)
+
+iD8DBQFBaxLiT+MN7JbqCpMRAhCMAJ4wmzgopWhUm5CIv/lId27jIIHQKgCfVS24
+0a2zZcLaQnBIBOmAltamN44=
+=PyL6
+-----END PGP SIGNATURE-----
index 361ae32093b29dc27172a486b6e8a49257ce3b64..0512dde4808fcd3ce0c8635edc645008fbde590d 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2004 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.4 2004/09/04 18:55:05 squinky86 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/acid/acid-0.9.6_beta23.ebuild,v 1.5 2004/10/11 23:10:52 eldad Exp $
 
 inherit webapp
 
@@ -20,8 +20,21 @@ DEPEND="apache2? ( >=net-www/apache-2 )
        !apache2? ( =net-www/apache-1* )
        >=dev-php/adodb-4.0.5
        >=dev-php/jpgraph-1.12.2
+       media-libs/gd
+       dev-php/mod_php
        net-analyzer/snort"
 
+pkg_setup() {
+       # Check if mod_php was emerged with GD
+       my_modphp=$(best_version dev-php/mod_php)
+
+       if [[ ! $(grep -wo gd /var/db/pkg/${my_modphp}/USE) ]];
+       then
+               eerror "${my_modphp} was compiled without gd support. Please reemerge it with USE=gd."
+               die "pkg_setup failed"
+       fi
+}
+
 src_compile () {
        einfo "Nothing to compile."
 }
@@ -29,7 +42,7 @@ src_compile () {
 src_install () {
        webapp_src_preinst
 
-       sed -i -e '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb":' acid_conf.php
+       sed -i -e '12s:^$DBlib_path =.*:$DBlib_path = "/usr/lib/php/adodb";:' acid_conf.php
 
        insinto ${MY_HTDOCSDIR}
        doins *