Gentoo Archives: gentoo-commits

From: "Pacho Ramos (pacho)" <pacho@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-firewall/firehol: firehol-1.273-r2.ebuild ChangeLog
Date: Mon, 02 Apr 2012 20:29:33
Message-Id: 20120402202846.E79942004B@flycatcher.gentoo.org
1 pacho 12/04/02 20:28:46
2
3 Modified: ChangeLog
4 Added: firehol-1.273-r2.ebuild
5 Log:
6 Add missing kernel checks (#310797 by Phil Koenig, Tom Knight, Tyler Montbriand), use static and fixed RESERVED_IPS file (#332135 by Richard Gray), handle errors better (#332507 by Tyler Montbriand).
7
8 (Portage version: 2.1.10.54/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.47 net-firewall/firehol/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firehol/ChangeLog?rev=1.47&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firehol/ChangeLog?rev=1.47&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firehol/ChangeLog?r1=1.46&r2=1.47
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-firewall/firehol/ChangeLog,v
20 retrieving revision 1.46
21 retrieving revision 1.47
22 diff -u -r1.46 -r1.47
23 --- ChangeLog 25 Feb 2012 06:34:01 -0000 1.46
24 +++ ChangeLog 2 Apr 2012 20:28:46 -0000 1.47
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-firewall/firehol
27 # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/ChangeLog,v 1.46 2012/02/25 06:34:01 robbat2 Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/ChangeLog,v 1.47 2012/04/02 20:28:46 pacho Exp $
30 +
31 +*firehol-1.273-r2 (02 Apr 2012)
32 +
33 + 02 Apr 2012; Pacho Ramos <pacho@g.o>
34 + +files/firehol-1.273-log-output.patch, +firehol-1.273-r2.ebuild:
35 + Add missing kernel checks (#310797 by Phil Koenig, Tom Knight, Tyler
36 + Montbriand), use static and fixed RESERVED_IPS file (#332135 by Richard Gray),
37 + handle errors better (#332507 by Tyler Montbriand).
38
39 25 Feb 2012; Robin H. Johnson <robbat2@g.o> firehol-1.273-r1.ebuild:
40 Bug #405687: Depend on virtual/modutils instead of sys-apps/module-init-tools.
41
42
43
44 1.1 net-firewall/firehol/firehol-1.273-r2.ebuild
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firehol/firehol-1.273-r2.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/firehol/firehol-1.273-r2.ebuild?rev=1.1&content-type=text/plain
48
49 Index: firehol-1.273-r2.ebuild
50 ===================================================================
51 # Copyright 1999-2012 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-firewall/firehol/firehol-1.273-r2.ebuild,v 1.1 2012/04/02 20:28:46 pacho Exp $
54
55 EAPI=4
56 inherit eutils linux-info
57
58 DESCRIPTION="iptables firewall generator"
59 HOMEPAGE="http://firehol.sourceforge.net/"
60 SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
61
62 LICENSE="GPL-2"
63 SLOT="0"
64 IUSE=""
65 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
66
67 DEPEND="sys-apps/iproute2"
68 RDEPEND="net-firewall/iptables
69 sys-apps/iproute2[-minimal]
70 virtual/modutils
71 || (
72 net-misc/wget
73 net-misc/curl
74 )"
75
76 src_prepare() {
77 epatch "${FILESDIR}"/${P}-CVE-2008-4953.patch
78 epatch "${FILESDIR}"/${P}-log-output.patch #332507
79 }
80
81 pkg_setup() {
82 local KCONFIG_OPTS="~NF_CONNTRACK_IPV4 ~NF_CONNTRACK_MARK ~NF_NAT ~NF_NAT_FTP ~NF_NAT_IRC \
83 ~IP_NF_IPTABLES ~IP_NF_FILTER ~IP_NF_TARGET_REJECT ~IP_NF_TARGET_LOG ~IP_NF_TARGET_ULOG \
84 ~IP_NF_TARGET_MASQUERADE ~IP_NF_TARGET_REDIRECT ~IP_NF_MANGLE \
85 ~NETFILTER_XT_MATCH_LIMIT ~NETFILTER_XT_MATCH_STATE ~NETFILTER_XT_MATCH_OWNER"
86
87 get_version
88 if [ ${KV_PATCH} -ge 25 ]; then
89 CONFIG_CHECK="~NF_CONNTRACK ${KCONFIG_OPTS}"
90 else
91 CONFIG_CHECK="~NF_CONNTRACK_ENABLED ${KCONFIG_OPTS}"
92 fi
93 linux-info_pkg_setup
94 }
95
96 src_install() {
97 newsbin firehol.sh firehol
98
99 dodir /etc/firehol /etc/firehol/examples /etc/firehol/services
100 insinto /etc/firehol/examples
101 doins examples/* || die
102
103 newconfd "${FILESDIR}/firehol.conf.d" firehol
104 newinitd "${FILESDIR}/firehol.initrd" firehol
105
106 dodoc ChangeLog README TODO WhatIsNew
107 dohtml doc/*.html doc/*.css
108
109 docinto scripts
110 dodoc get-iana.sh adblock.sh
111
112 doman man/*.1 man/*.5
113
114 # Install this RESERVED_IPS as discussed in bug #332135
115 insinto /etc/firehol
116 doins "${FILESDIR}"/RESERVED_IPS
117 }
118
119 pkg_postinst() {
120 elog "The default path to firehol's configuration file is /etc/firehol/firehol.conf"
121 elog "See /etc/firehol/examples for configuration examples."
122 #
123 # Install a default configuration if none is available yet
124 if [[ ! -e "${ROOT}/etc/firehol/firehol.conf" ]]; then
125 einfo "Installing a sample configuration as ${ROOT}/etc/firehol/firehol.conf"
126 cp "${ROOT}/etc/firehol/examples/client-all.conf" "${ROOT}/etc/firehol/firehol.conf"
127 fi
128 }