summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'net-www/mod_protection/mod_protection-0.0.2.ebuild')
-rw-r--r--net-www/mod_protection/mod_protection-0.0.2.ebuild42
1 files changed, 42 insertions, 0 deletions
diff --git a/net-www/mod_protection/mod_protection-0.0.2.ebuild b/net-www/mod_protection/mod_protection-0.0.2.ebuild
new file mode 100644
index 000000000000..199fbb954384
--- /dev/null
+++ b/net-www/mod_protection/mod_protection-0.0.2.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mod_protection/mod_protection-0.0.2.ebuild,v 1.1 2002/11/28 20:43:41 woodchip Exp $
+
+inherit eutils
+
+DESCRIPTION="Apache2 DSO providing basic IDS functions"
+HOMEPAGE="http://www.twlc.net/"
+
+NEWP="${PN}2-${PV}"
+S=${WORKDIR}/${NEWP}
+SRC_URI="mirror://gentoo/${NEWP}.tar.bz2"
+DEPEND="=net-www/apache-2*"
+LICENSE="GPL-2"
+KEYWORDS="~x86"
+IUSE=""
+SLOT="0"
+
+src_unpack() {
+ unpack ${A} || die; cd ${S} || die
+ epatch ${FILESDIR}/mod_protection-0.0.2-register.patch
+}
+
+src_compile() {
+ apxs2 -c ${PN}.c || die
+}
+
+src_install() {
+ local i=26_mod_protection.conf
+ local j=mod_protection.rules
+
+ exeinto /usr/lib/apache2-extramodules
+ doexe ${PN}.so
+ insinto /etc/apache2/conf/modules.d
+ doins ${FILESDIR}/$i
+ insopts -m 0644 -o root -g root
+ doins $j
+
+ dodoc ${FILESDIR}/$i $j COPYING Changes INSTALL README \
+ THANX TODO USAGE
+ docinto example-client; dodoc example-client/*
+}