summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonny Davies <woodchip@gentoo.org>2003-06-22 19:20:05 +0000
committerDonny Davies <woodchip@gentoo.org>2003-06-22 19:20:05 +0000
commitaf5d8bdf4c50a994029cb6302b532899e4c36092 (patch)
tree8a7ee1e32f76bb87d732bcd38a1ee0a83d2730b4 /net-www/mod_watch
parentClose #14806. (diff)
downloadhistorical-af5d8bdf4c50a994029cb6302b532899e4c36092.tar.gz
historical-af5d8bdf4c50a994029cb6302b532899e4c36092.tar.bz2
historical-af5d8bdf4c50a994029cb6302b532899e4c36092.zip
Close #14806.
Diffstat (limited to 'net-www/mod_watch')
-rw-r--r--net-www/mod_watch/Manifest4
-rw-r--r--net-www/mod_watch/files/digest-mod_watch-3.181
-rw-r--r--net-www/mod_watch/files/mod_watch.conf28
-rw-r--r--net-www/mod_watch/mod_watch-3.18.ebuild50
4 files changed, 81 insertions, 2 deletions
diff --git a/net-www/mod_watch/Manifest b/net-www/mod_watch/Manifest
index 75d63c19e32c..11abb94c0c05 100644
--- a/net-www/mod_watch/Manifest
+++ b/net-www/mod_watch/Manifest
@@ -1,4 +1,4 @@
-MD5 3dd24bcb7d8ca6568f68da502d37d3c6 mod_watch-3.18.ebuild 1216
-MD5 689929c5c5b9fbdea9ef811241bf6da1 ChangeLog 285
+MD5 45ddfdf11fb40b4986473975042f65fd mod_watch-3.18.ebuild 1320
+MD5 b81fc6e040c28312d22882327fe9d9cf ChangeLog 377
MD5 50267e95c06324c0c4f9a603358501ad files/mod_watch.conf 627
MD5 2d99e90c1a0ac34fbc7ad74473f526f7 files/digest-mod_watch-3.18 60
diff --git a/net-www/mod_watch/files/digest-mod_watch-3.18 b/net-www/mod_watch/files/digest-mod_watch-3.18
new file mode 100644
index 000000000000..16e42eb12c72
--- /dev/null
+++ b/net-www/mod_watch/files/digest-mod_watch-3.18
@@ -0,0 +1 @@
+MD5 1409df800f24214bed16ca753b9967ff mod_watch318.tgz 94668
diff --git a/net-www/mod_watch/files/mod_watch.conf b/net-www/mod_watch/files/mod_watch.conf
new file mode 100644
index 000000000000..06290207db85
--- /dev/null
+++ b/net-www/mod_watch/files/mod_watch.conf
@@ -0,0 +1,28 @@
+<IfModule mod_watch.c>
+ # Allows the URL used to query virtual host data:
+ #
+ # http://www.snert.com/watch-info
+ #
+ <Location /watch-info>
+ SetHandler watch-info
+ </Location>
+
+ # Allows the URL used to query file owner and web
+ # server data:
+ #
+ # http://www.snert.com/~achowe/watch-info
+ # http://www.snert.com/~SERVER/watch-info
+ #
+ <Location /~*/watch-info>
+ SetHandler watch-info
+ </Location>
+
+ # Intended for debugging and analysis of shared memory
+ # hash table and weenie files:
+ #
+ # http://www.snert.com/watch-table
+ #
+ <Location /watch-table>
+ SetHandler watch-table
+ </Location>
+</IfModule>
diff --git a/net-www/mod_watch/mod_watch-3.18.ebuild b/net-www/mod_watch/mod_watch-3.18.ebuild
new file mode 100644
index 000000000000..f1e5c795b933
--- /dev/null
+++ b/net-www/mod_watch/mod_watch-3.18.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_watch/mod_watch-3.18.ebuild,v 1.1 2003/06/22 19:19:53 woodchip Exp $
+
+DESCRIPTION="Bandwidth graphing for Apache with MRTG"
+HOMEPAGE="http://www.snert.com/Software/mod_watch/"
+KEYWORDS="~x86"
+
+MY_V="`echo ${PV} | sed -e 's:\.::g'`"
+S=${WORKDIR}/${P}
+SRC_URI="http://www.snert.com/Software/download/${PN}${MY_V}.tgz"
+
+DEPEND="=net-www/apache-1*"
+LICENSE="as-is"
+SLOT="0"
+
+src_compile() {
+ make build-dynamic || die "compile problem"
+}
+
+src_install() {
+ exeinto /usr/lib/apache-extramodules
+ doexe mod_watch.so
+
+ exeinto /usr/sbin
+ doexe apache2mrtg.pl
+ doexe mod_watch.pl
+
+ dodoc CHANGES.txt LICENSE.txt
+ dohtml index.shtml
+
+ insinto /etc/apache/conf/addon-modules
+ doins ${FILESDIR}/mod_watch.conf
+}
+
+pkg_postinst() {
+ einfo
+ einfo "Execute \"ebuild /usr/portage/net-www/${PN}/${PF}.ebuild config\""
+ einfo "to have your apache.conf auto-updated for use with this module."
+ einfo "You should then edit your /etc/conf.d/apache file to suit."
+ einfo
+}
+
+pkg_config() {
+ ${ROOT}/usr/sbin/apacheaddmod \
+ ${ROOT}/etc/apache/conf/apache.conf \
+ extramodules/mod_watch.so mod_watch.c watch_module \
+ define=WATCH addconf=conf/addon-modules/mod_watch.conf
+ :;
+}