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