1 |
scarabeus 12/02/28 11:42:23 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: ufw-0.30.1-r4.ebuild |
5 |
Removed: ufw-0.30.1-r2.ebuild ufw-0.30.1-r3.ebuild |
6 |
Log: |
7 |
Update per proxy-maintainer request. Remove overshadowed versions. |
8 |
|
9 |
(Portage version: 2.2.0_alpha89/cvs/Linux x86_64) |
10 |
|
11 |
Revision Changes Path |
12 |
1.5 net-firewall/ufw/ChangeLog |
13 |
|
14 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/ChangeLog?rev=1.5&view=markup |
15 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/ChangeLog?rev=1.5&content-type=text/plain |
16 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/ChangeLog?r1=1.4&r2=1.5 |
17 |
|
18 |
Index: ChangeLog |
19 |
=================================================================== |
20 |
RCS file: /var/cvsroot/gentoo-x86/net-firewall/ufw/ChangeLog,v |
21 |
retrieving revision 1.4 |
22 |
retrieving revision 1.5 |
23 |
diff -u -r1.4 -r1.5 |
24 |
--- ChangeLog 13 Sep 2011 06:35:49 -0000 1.4 |
25 |
+++ ChangeLog 28 Feb 2012 11:42:22 -0000 1.5 |
26 |
@@ -1,6 +1,13 @@ |
27 |
# ChangeLog for net-firewall/ufw |
28 |
-# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 |
29 |
-# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ChangeLog,v 1.4 2011/09/13 06:35:49 pva Exp $ |
30 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
31 |
+# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ChangeLog,v 1.5 2012/02/28 11:42:22 scarabeus Exp $ |
32 |
+ |
33 |
+*ufw-0.30.1-r4 (28 Feb 2012) |
34 |
+ |
35 |
+ 28 Feb 2012; Tomáš Chvátal <scarabeus@g.o> |
36 |
+ +files/ufw-0.30.1-encoding.patch, +files/ufw-0.30.1-python-abis.patch, |
37 |
+ +ufw-0.30.1-r4.ebuild, -ufw-0.30.1-r2.ebuild, -ufw-0.30.1-r3.ebuild: |
38 |
+ Update per proxy-maintainer request. Remove overshadowed versions. |
39 |
|
40 |
13 Sep 2011; Peter Volkov <pva@g.o> ufw-0.30.1-r2.ebuild, |
41 |
ufw-0.30.1-r3.ebuild: |
42 |
|
43 |
|
44 |
|
45 |
1.1 net-firewall/ufw/ufw-0.30.1-r4.ebuild |
46 |
|
47 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/ufw-0.30.1-r4.ebuild?rev=1.1&view=markup |
48 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-firewall/ufw/ufw-0.30.1-r4.ebuild?rev=1.1&content-type=text/plain |
49 |
|
50 |
Index: ufw-0.30.1-r4.ebuild |
51 |
=================================================================== |
52 |
# Copyright 1999-2012 Gentoo Foundation |
53 |
# Distributed under the terms of the GNU General Public License v2 |
54 |
# $Header: /var/cvsroot/gentoo-x86/net-firewall/ufw/ufw-0.30.1-r4.ebuild,v 1.1 2012/02/28 11:42:22 scarabeus Exp $ |
55 |
|
56 |
EAPI=4 |
57 |
PYTHON_DEPEND="2:2.5" |
58 |
SUPPORT_PYTHON_ABIS="1" |
59 |
RESTRICT_PYTHON_ABIS="3.*" |
60 |
|
61 |
inherit versionator bash-completion-r1 eutils linux-info distutils |
62 |
|
63 |
MY_PV_12=$(get_version_component_range 1-2) |
64 |
DESCRIPTION="A program used to manage a netfilter firewall" |
65 |
HOMEPAGE="http://launchpad.net/ufw" |
66 |
SRC_URI="http://launchpad.net/ufw/${MY_PV_12}/${PV}/+download/${P}.tar.gz" |
67 |
|
68 |
LICENSE="GPL-3" |
69 |
SLOT="0" |
70 |
KEYWORDS="~amd64 ~x86" |
71 |
IUSE="examples" |
72 |
|
73 |
DEPEND="sys-devel/gettext" |
74 |
RDEPEND=">=net-firewall/iptables-1.4" |
75 |
|
76 |
# tests fail; upstream bug: https://bugs.launchpad.net/ufw/+bug/815982 |
77 |
RESTRICT="test" |
78 |
|
79 |
pkg_pretend() { |
80 |
local CONFIG_CHECK="~PROC_FS ~NETFILTER_XT_MATCH_COMMENT ~IP6_NF_MATCH_HL \ |
81 |
~NETFILTER_XT_MATCH_LIMIT ~NETFILTER_XT_MATCH_MULTIPORT \ |
82 |
~NETFILTER_XT_MATCH_RECENT ~NETFILTER_XT_MATCH_STATE" |
83 |
|
84 |
if kernel_is -ge 2 6 39; then |
85 |
CONFIG_CHECK+=" ~NETFILTER_XT_MATCH_ADDRTYPE" |
86 |
else |
87 |
CONFIG_CHECK+=" ~IP_NF_MATCH_ADDRTYPE" |
88 |
fi |
89 |
|
90 |
check_extra_config |
91 |
} |
92 |
|
93 |
pkg_setup() { |
94 |
python_pkg_setup |
95 |
} |
96 |
|
97 |
src_prepare() { |
98 |
# Allow to remove unnecessary build time dependency |
99 |
# on net-firewall/iptables. |
100 |
epatch "${FILESDIR}"/${PN}-dont-check-iptables.patch |
101 |
# Move files away from /lib/ufw. |
102 |
epatch "${FILESDIR}"/${PN}-move-path.patch |
103 |
# Allows correct build with SUPPORT_PYTHON_ABIS="1" (see comment in the file). |
104 |
epatch "${FILESDIR}"/${P}-python-abis.patch |
105 |
# Fixes usage with ufw-frontends (bug ref. inside the patch). |
106 |
epatch "${FILESDIR}"/${P}-encoding.patch |
107 |
# Set as enabled by default. User can enable or disable |
108 |
# the service by adding or removing it to/from a runlevel. |
109 |
sed -i 's/^ENABLED=no/ENABLED=yes/' conf/ufw.conf \ |
110 |
|| die "sed failed (ufw.conf)" |
111 |
} |
112 |
|
113 |
src_install() { |
114 |
newconfd "${FILESDIR}"/ufw.confd ufw |
115 |
newinitd "${FILESDIR}"/ufw-2.initd ufw |
116 |
|
117 |
# users normally would want it |
118 |
insinto /usr/share/doc/${PF}/logging |
119 |
doins -r "${FILESDIR}"/syslog-ng |
120 |
|
121 |
insinto /usr/share/doc/${PF}/logging/rsyslog |
122 |
doins "${FILESDIR}"/rsyslog/* |
123 |
doins doc/rsyslog.example |
124 |
|
125 |
if use examples; then |
126 |
insinto /usr/share/doc/${PF}/examples |
127 |
doins examples/* |
128 |
fi |
129 |
distutils_src_install |
130 |
domo locales/mo/*.mo |
131 |
rm -r "${ED}"usr/share/${PN}/messages || die |
132 |
newbashcomp shell-completion/bash ${PN} |
133 |
} |
134 |
|
135 |
pkg_postinst() { |
136 |
distutils_pkg_postinst |
137 |
if path_exists -o "${EROOT}"lib/ufw/user{,6}.rules; then |
138 |
ewarn "Attention!" |
139 |
ewarn "User configuration from /lib/ufw is now placed in /etc/ufw/user." |
140 |
ewarn "Please stop ufw, copy .rules files from ${EROOT}lib/ufw" |
141 |
ewarn "to ${EROOT}etc/ufw/user/ and start ufw again." |
142 |
fi |
143 |
echo |
144 |
elog "Remember to enable ufw add it to your boot sequence:" |
145 |
elog "-- # ufw enable" |
146 |
elog "-- # rc-update add ufw boot" |
147 |
echo |
148 |
elog "If you want to keep ufw logs in a separate file, take a look at" |
149 |
elog "/usr/share/doc/${PF}/logging." |
150 |
} |