summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-03-26 16:32:14 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-03-26 16:32:14 +0000
commitcdcadc1cf0ce9d7134c8db947e685f4371f20f66 (patch)
treee3da4006558d205b0152d44bc20ea358e62bf214 /www-apache/mod_security
parentUpdate Manifest (upstream changed tarball, no content change). (diff)
downloadgentoo-2-cdcadc1cf0ce9d7134c8db947e685f4371f20f66.tar.gz
gentoo-2-cdcadc1cf0ce9d7134c8db947e685f4371f20f66.tar.bz2
gentoo-2-cdcadc1cf0ce9d7134c8db947e685f4371f20f66.zip
Remove ancient version.
(Portage version: 2.2.0_alpha95/cvs/Linux x86_64)
Diffstat (limited to 'www-apache/mod_security')
-rw-r--r--www-apache/mod_security/ChangeLog6
-rw-r--r--www-apache/mod_security/mod_security-2.5.12.ebuild136
2 files changed, 5 insertions, 137 deletions
diff --git a/www-apache/mod_security/ChangeLog b/www-apache/mod_security/ChangeLog
index 7d7a0b9956c0..79ce184b6fc9 100644
--- a/www-apache/mod_security/ChangeLog
+++ b/www-apache/mod_security/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for www-apache/mod_security
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.70 2012/03/25 13:50:16 ranger Exp $
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/ChangeLog,v 1.71 2012/03/26 16:32:14 flameeyes Exp $
+
+ 26 Mar 2012; Diego E. Pettenò <flameeyes@gentoo.org>
+ -mod_security-2.5.12.ebuild:
+ Remove ancient version.
25 Mar 2012; Brent Baude <ranger@gentoo.org> mod_security-2.6.3.ebuild:
Marking mod_security-2.6.3 ppc for bug 409199
diff --git a/www-apache/mod_security/mod_security-2.5.12.ebuild b/www-apache/mod_security/mod_security-2.5.12.ebuild
deleted file mode 100644
index 0fa62c123946..000000000000
--- a/www-apache/mod_security/mod_security-2.5.12.ebuild
+++ /dev/null
@@ -1,136 +0,0 @@
-# Copyright 1999-2011 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_security/mod_security-2.5.12.ebuild,v 1.6 2011/09/17 15:39:32 mattst88 Exp $
-
-EAPI=2
-
-inherit apache-module autotools
-
-MY_P=${P/mod_security-/modsecurity-apache_}
-MY_P=${MY_P/_rc/-rc}
-
-DESCRIPTION="Web application firewall and Intrusion Detection System for Apache."
-HOMEPAGE="http://www.modsecurity.org/"
-SRC_URI="http://www.modsecurity.org/download/${MY_P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="amd64 ppc sparc x86"
-IUSE="lua perl vanilla"
-
-DEPEND="dev-libs/libxml2
- perl? ( dev-perl/libwww-perl )
- lua? ( >=dev-lang/lua-5.1 )
- www-servers/apache[apache2_modules_unique_id]"
-RDEPEND="${DEPEND}"
-
-S="${WORKDIR}/${MY_P}"
-
-APACHE2_MOD_FILE="apache2/.libs/${PN}2.so"
-APACHE2_MOD_CONF="2.5.10/99_mod_security"
-APACHE2_MOD_DEFINE="SECURITY"
-
-need_apache2
-
-src_prepare() {
- epatch "${FILESDIR}"/${PN}-2.5.10-as-needed.patch
-
- cd apache2
- eautoreconf
-}
-
-src_configure() {
- cd apache2
-
- econf --with-apxs="${APXS}" \
- --without-curl \
- $(use_with lua) \
- || die "econf failed"
-}
-
-src_compile() {
- cd apache2
-
- APXS_FLAGS=
- for flag in ${CFLAGS}; do
- APXS_FLAGS="${APXS_FLAGS} -Wc,${flag}"
- done
-
- # Yes we need to prefix it _twice_
- for flag in ${LDFLAGS}; do
- APXS_FLAGS="${APXS_FLAGS} -Wl,${flag}"
- done
-
- emake \
- APXS_CFLAGS="${CFLAGS}" \
- APXS_LDFLAGS="${LDFLAGS}" \
- APXS_EXTRA_CFLAGS="${APXS_FLAGS}" \
- || die "emake failed"
-}
-
-src_test() {
- cd apache2
- emake test || die
-}
-
-src_install() {
- apache-module_src_install
-
- # install rules updater only if perl is enabled (optionally)
- if use perl; then
- newsbin tools/rules-updater.pl modsec-rules-updater || die
- fi
-
- # install documentation
- dodoc CHANGES || die
- newdoc rules/CHANGELOG CHANGES.crs || die
- newdoc rules/README README.crs || die
- dohtml -r doc/* || die
-
- # Prepare the core ruleset
- cd "${S}"/rules/
-
- sed -i -e 's:logs/:/var/log/apache2/:g' *.conf || die
-
- insinto ${APACHE_MODULES_CONFDIR}/mod_security/
- doins *.conf base_rules/* || die
-
- insinto ${APACHE_MODULES_CONFDIR}/mod_security/optional_rules
- doins optional_rules/* || die
-
- if ! use vanilla; then
- mv "${D}"${APACHE_MODULES_CONFDIR}/mod_security/modsecurity_*{41_phpids,50_outbound}* \
- "${D}"${APACHE_MODULES_CONFDIR}/mod_security/optional_rules || die
- fi
-
- keepdir /var/cache/mod_security || die
- fowners apache:apache /var/cache/mod_security || die
- fperms 0770 /var/cache/mod_security || die
-}
-
-pkg_postinst() {
- if ! use vanilla; then
- elog "Please note that the core rule set distributed with mod_security is quite"
- elog "draconic; to make it more usable, the Gentoo distribution disables a few"
- elog "rule set files, that are relevant for PHP-only websites or that would make it"
- elog "kill a website that discussed of source code."
- elog
- elog "Furthermore we disable the 'HTTP Parameter Pollution' tests that disallow"
- elog "multiple parameters with the same name, because that's common practice both"
- elog "for Rails-based web-applications and Bugzilla."
- if use perl; then
- elog
- elog "You want to install the Perl-based updater script for the Core Rule Set."
- elog "Be warned that the script will update the rules iwth the original, draconic"
- elog "rules, so you might end up with unusable web applications."
- fi
- else
- elog "You decided to enable the original Core Rule Set from ModSecurity."
- elog "Be warned that the original Core Rule Set is draconic and most likely will"
- elog "render your web application unusable if you don't disable at leat some of"
- elog "the rules."
- fi
- elog
- elog "If you want to enable further rules, check the following directory:"
- elog " ${APACHE_MODULES_CONFDIR}/mod_security/optional_rules"
-}