moved apache module installs into src_install. Bug 67000.
authorEldad Zack <eldad@gentoo.org>
Wed, 20 Oct 2004 18:01:49 +0000 (18:01 +0000)
committerEldad Zack <eldad@gentoo.org>
Wed, 20 Oct 2004 18:01:49 +0000 (18:01 +0000)
net-analyzer/nagios-core/ChangeLog
net-analyzer/nagios-core/Manifest
net-analyzer/nagios-core/nagios-core-1.2-r2.ebuild
net-analyzer/nagios-core/nagios-core-1.2-r3.ebuild

index 2b5ed34385e14dde7199d18ee210e25c716e8c6c..5eb6406cbb9a0a7db8f83ba5f8ae8c95ad58d2ec 100644 (file)
@@ -1,6 +1,11 @@
 # ChangeLog for net-analyzer/nagios-core
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.40 2004/10/20 16:37:55 eldad Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/ChangeLog,v 1.41 2004/10/20 18:01:49 eldad Exp $
+
+  20 Oct 2004; Eldad Zack <eldad@gentoo.org> nagios-core-1.2-r2.ebuild,
+  nagios-core-1.2-r3.ebuild:
+  Moved apache module installations from pkg_postinst to src_install where it
+  belongs. Closes #67000.
 
   20 Oct 2004; Eldad Zack <eldad@gentoo.org> files/nagios:
   Added reload function to init.d script, based on a suggestion by Jason Frank
index 5e446660f79c317da2e2aa69ec96468901fa289b..95cd88869fffd46ea1b289207b60fad9ab973507 100644 (file)
@@ -1,9 +1,9 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 ba3d132a9c25c4a0002451a2516842e3 nagios-core-1.2-r3.ebuild 7124
-MD5 29d3ad573066390a78e460299c042bda nagios-core-1.2-r2.ebuild 6641
-MD5 8fdda06a26d5317d5a390c1cf0f51129 ChangeLog 7099
+MD5 1a285b4d637ab46d4e58df0e3747ec0c nagios-core-1.2-r3.ebuild 7200
+MD5 1cfd13915abfbb204b3192d331c26c8e nagios-core-1.2-r2.ebuild 6717
+MD5 3ae1e81ebcd5cce03882585a81309596 ChangeLog 7305
 MD5 a1ece421fae3536d1e5dd9b5ecb0215d metadata.xml 928
 MD5 8e2eaa206717b94fb41508c7ab17a135 nagios-core-1.2-r1.ebuild 6669
 MD5 dad3fb46e8f73ac54d9239a542bc82e0 files/nagios.conf 362
@@ -20,7 +20,7 @@ MD5 cd183719838dc2a8b9cafa8a639f4ad2 files/digest-nagios-core-1.2-r3 63
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBdpRnT+MN7JbqCpMRAlueAJ0faGqy96nJ2aZFczNH6IJLbIsybQCfYryB
-BdyoEf1FcYqhZ8D/hhHk+Xo=
-=PLQt
+iD8DBQFBdqgFT+MN7JbqCpMRAuCPAKCGl7BHM12JsKOEmcvgSGyWuGz9SQCeKvDv
+fs1aOTXvqgSpP7x1x3L0w/Y=
+=vFKo
 -----END PGP SIGNATURE-----
index 57268969e4509789396b2999278f1909171bff0c..249bef5d9c1cf50bb492e9a68358d7ba4f685cc8 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/nagios-core/nagios-core-1.2-r2.ebuild,v 1.6 2004/08/16 10:37:07 eldad Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.2-r2.ebuild,v 1.7 2004/10/20 18:01:49 eldad Exp $
 
 inherit eutils
 
@@ -66,7 +66,7 @@ src_compile() {
                        echo ""
                        einfo "to /etc/portage/package.use to permanently set this package's USE flags"
                        einfo "More info on package.use is available on:"
-                       einfo "     man 5 portage"
+                       einfo "     man 5 portage"
                )
        elif use postgres ; then
                myconf="${myconf} --with-pgsql-xdata"
@@ -146,6 +146,20 @@ src_install() {
 
        insinto /usr/nagios/contrib/eventhandlers/redundancy-scenario1
        doins contrib/eventhandlers/redundancy-scenario1/*
+
+       #Apache Module
+
+       if use !noweb; then
+               if use apache2; then
+                       insinto /etc/apache2/conf/modules.d
+                       doins ${FILESDIR}/99_nagios.conf
+               else
+                       insinto /etc/apache/conf/addon-modules
+                       doins ${FILESDIR}/nagios.conf
+                       echo "Include  conf/addon-modules/nagios.conf" >> ${ROOT}/etc/apache/conf/apache.conf
+               fi
+       fi
+
 }
 
 pkg_preinst() {
@@ -178,25 +192,18 @@ pkg_postinst() {
        einfo "Remember to edit the config files in /etc/nagios"
        einfo "Also, if you want nagios to start at boot time"
        einfo "remember to execute:"
-       einfo "  rc-update add nagios default"
+       einfo "  rc-update add nagios default"
        einfo
 
-       if ! use noweb; then
+       if use !noweb; then
                einfo "This does not include cgis that are perl-dependent"
                einfo "Currently traceroute.cgi is perl-dependent"
                einfo "To have ministatus.cgi requires copying of ministatus.c"
                einfo "to cgi directory for compiling."
 
                if use apache2; then
-                       insinto /etc/apache2/conf/modules.d
-                       doins ${FILESDIR}/99_nagios.conf
-
                        einfo " Edit /etc/conf.d/apache2 and add \"-D NAGIOS\""
                else
-                       insinto /etc/apache/conf/addon-modules
-                       doins ${FILESDIR}/nagios.conf
-                       echo "Include  conf/addon-modules/nagios.conf" >> ${ROOT}/etc/apache/conf/apache.conf
-
                        einfo " Edit /etc/conf.d/apache and add \"-D NAGIOS\""
                fi
 
index e374f2560bcd01142aca3d7442d6764eee00fb68..93092d522f674baa038e4bc868f4127bcf0f89f8 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/nagios-core/nagios-core-1.2-r3.ebuild,v 1.1 2004/08/20 13:38:13 eldad Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-core/nagios-core-1.2-r3.ebuild,v 1.2 2004/10/20 18:01:49 eldad Exp $
 
 inherit eutils
 
@@ -158,6 +158,20 @@ src_install() {
 
        exeinto /usr/nagios/contrib/eventhandlers/redundancy-scenario1
        doexe contrib/eventhandlers/redundancy-scenario1/*
+
+       #Apache Module
+
+       if use !noweb; then
+               if use apache2; then
+                       insinto /etc/apache2/conf/modules.d
+                       doins ${FILESDIR}/99_nagios.conf
+               else
+                       insinto /etc/apache/conf/addon-modules
+                       doins ${FILESDIR}/nagios.conf
+                       echo "Include  conf/addon-modules/nagios.conf" >> ${ROOT}/etc/apache/conf/apache.conf
+               fi
+       fi
+
 }
 
 pkg_preinst() {
@@ -195,22 +209,15 @@ pkg_postinst() {
        einfo "  rc-update add nagios default"
        einfo
 
-       if ! use noweb; then
+       if use !noweb; then
                einfo "This does not include cgis that are perl-dependent"
                einfo "Currently traceroute.cgi is perl-dependent"
                einfo "To have ministatus.cgi requires copying of ministatus.c"
                einfo "to cgi directory for compiling."
 
                if use apache2; then
-                       insinto /etc/apache2/conf/modules.d
-                       doins ${FILESDIR}/99_nagios.conf
-
                        einfo " Edit /etc/conf.d/apache2 and add \"-D NAGIOS\""
                else
-                       insinto /etc/apache/conf/addon-modules
-                       doins ${FILESDIR}/nagios.conf
-                       echo "Include  conf/addon-modules/nagios.conf" >> ${ROOT}/etc/apache/conf/apache.conf
-
                        einfo " Edit /etc/conf.d/apache and add \"-D NAGIOS\""
                fi