1 |
flameeyes 09/11/30 16:51:14 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: mod_httpbl-1.5-r1.ebuild |
5 |
Removed: mod_httpbl-1.5.ebuild |
6 |
Log: |
7 |
Revision bump, change the configuration file to disallow access to the diagnostics page by default. |
8 |
(Portage version: 2.2_rc54/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.3 www-apache/mod_httpbl/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_httpbl/ChangeLog?rev=1.3&view=markup |
14 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_httpbl/ChangeLog?rev=1.3&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_httpbl/ChangeLog?r1=1.2&r2=1.3 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/www-apache/mod_httpbl/ChangeLog,v |
20 |
retrieving revision 1.2 |
21 |
retrieving revision 1.3 |
22 |
diff -u -r1.2 -r1.3 |
23 |
--- ChangeLog 26 Nov 2009 20:39:59 -0000 1.2 |
24 |
+++ ChangeLog 30 Nov 2009 16:51:14 -0000 1.3 |
25 |
@@ -1,6 +1,14 @@ |
26 |
# ChangeLog for www-apache/mod_httpbl |
27 |
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 |
28 |
-# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_httpbl/ChangeLog,v 1.2 2009/11/26 20:39:59 flameeyes Exp $ |
29 |
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_httpbl/ChangeLog,v 1.3 2009/11/30 16:51:14 flameeyes Exp $ |
30 |
+ |
31 |
+*mod_httpbl-1.5-r1 (30 Nov 2009) |
32 |
+ |
33 |
+ 30 Nov 2009; Diego E. Pettenò <flameeyes@g.o> |
34 |
+ files/99_mod_httpbl.conf, -mod_httpbl-1.5.ebuild, |
35 |
+ +mod_httpbl-1.5-r1.ebuild: |
36 |
+ Revision bump, change the configuration file to disallow access to the |
37 |
+ diagnostics page by default. |
38 |
|
39 |
26 Nov 2009; Diego E. Pettenò <flameeyes@g.o> |
40 |
files/99_mod_httpbl.conf, mod_httpbl-1.5.ebuild: |
41 |
|
42 |
|
43 |
|
44 |
1.1 www-apache/mod_httpbl/mod_httpbl-1.5-r1.ebuild |
45 |
|
46 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_httpbl/mod_httpbl-1.5-r1.ebuild?rev=1.1&view=markup |
47 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/www-apache/mod_httpbl/mod_httpbl-1.5-r1.ebuild?rev=1.1&content-type=text/plain |
48 |
|
49 |
Index: mod_httpbl-1.5-r1.ebuild |
50 |
=================================================================== |
51 |
# Copyright 1999-2009 Gentoo Foundation |
52 |
# Distributed under the terms of the GNU General Public License v2 |
53 |
# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_httpbl/mod_httpbl-1.5-r1.ebuild,v 1.1 2009/11/30 16:51:14 flameeyes Exp $ |
54 |
|
55 |
EAPI=2 |
56 |
|
57 |
inherit apache-module |
58 |
|
59 |
DESCRIPTION="http:BL implementation for Apache 2" |
60 |
HOMEPAGE="http://www.projecthoneypot.org/httpbl_download.php" |
61 |
SRC_URI="http://httpbl.cvs.sourceforge.net/viewvc/*checkout*/httpbl/mod_httpbl_for_apache_2.0/mod_httpbl_source/mod_httpbl.c?revision=${PV} -> ${P}.c" |
62 |
|
63 |
LICENSE="GPL-2" |
64 |
SLOT="0" |
65 |
IUSE="debug" |
66 |
|
67 |
KEYWORDS="~amd64" |
68 |
|
69 |
S=${WORKDIR} |
70 |
|
71 |
APACHE2_MOD_FILE=".libs/${PN}.so" |
72 |
APACHE2_MOD_CONF="99_mod_httpbl" |
73 |
APACHE2_MOD_DEFINE="HTTPBL" |
74 |
|
75 |
need_apache2 |
76 |
|
77 |
# We have to copy the file in the work directory because otherwise |
78 |
# apxs will try to build it within distdir (which is luckily read |
79 |
# only). |
80 |
src_unpack() { |
81 |
cp "${DISTDIR}"/${P}.c ${PN}.c || die |
82 |
} |
83 |
|
84 |
src_prepare() { |
85 |
sed -i \ |
86 |
-e '/#define VERBOSITY/i#ifndef VERBOSITY' \ |
87 |
-e '/#define VERBOSITY/a#endif' \ |
88 |
${PN}.c || die |
89 |
} |
90 |
|
91 |
src_compile() { |
92 |
APXS_FLAGS= |
93 |
for flag in ${CFLAGS}; do |
94 |
APXS_FLAGS="${APXS_FLAGS} -Wc,${flag}" |
95 |
done |
96 |
|
97 |
if use debug; then |
98 |
APXS_FLAGS="${APXS_FLAGS} -DVERBOSITY=APLOG_DEBUG" |
99 |
fi |
100 |
|
101 |
# Yes we need to prefix it _twice_ |
102 |
for flag in ${LDFLAGS}; do |
103 |
APXS_FLAGS="${APXS_FLAGS} -Wl,${flag}" |
104 |
done |
105 |
|
106 |
${APXS} -c ${APXS_FLAGS} ${PN}.c || die |
107 |
} |
108 |
|
109 |
src_install() { |
110 |
apache-module_src_install |
111 |
|
112 |
keepdir /var/log/apache2/httpbl |
113 |
fowners apache:apache /var/log/apache2/httpbl || die |
114 |
fperms 0770 /var/log/apache2/httpbl || die |
115 |
|
116 |
keepdir /var/cache/mod_httpbl || die |
117 |
fowners apache:apache /var/cache/mod_httpbl || die |
118 |
fperms 0770 /var/cache/mod_httpbl || die |
119 |
} |
120 |
|
121 |
pkg_postinst() { |
122 |
apache-module_pkg_postinst |
123 |
|
124 |
elog "To use http:BL you will need the API key from Project Honey Pot" |
125 |
elog "that you can receive being an active member." |
126 |
elog "See ${HOMEPAGE} for details." |
127 |
elog "" |
128 |
elog "By default all requests are filtered with the blacklist, you probably" |
129 |
elog "want to restrict that to virtual hosts where actual applications are" |
130 |
elog "running and/or on possibly vulnerable locations." |
131 |
} |