1 |
commit: b66986ac38d4de9254e0c2d06de1e2c61780ed32 |
2 |
Author: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit <DOT> com> |
3 |
AuthorDate: Tue Aug 13 14:44:21 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Aug 13 16:52:52 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b66986ac |
7 |
|
8 |
net-firewall/ufw: drop old 0.34. |
9 |
|
10 |
Package-Manager: Portage-2.3.69, Repoman-2.3.16 |
11 |
Signed-off-by: Hasan ÇALIŞIR <hasan.calisir <AT> psauxit.com> |
12 |
Closes: https://github.com/gentoo/gentoo/pull/12694 |
13 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
14 |
|
15 |
net-firewall/ufw/Manifest | 1 - |
16 |
net-firewall/ufw/ufw-0.34_pre805-r2.ebuild | 185 ----------------------------- |
17 |
2 files changed, 186 deletions(-) |
18 |
|
19 |
diff --git a/net-firewall/ufw/Manifest b/net-firewall/ufw/Manifest |
20 |
index ad31ad0661a..4a7bb64fd25 100644 |
21 |
--- a/net-firewall/ufw/Manifest |
22 |
+++ b/net-firewall/ufw/Manifest |
23 |
@@ -1,3 +1,2 @@ |
24 |
-DIST ufw-0.34_pre805.tar.gz 335875 BLAKE2B a2b654fe35a299ffd9978ef14a8d5667f799b654b6285bc81756c8081d9f4417b2fa9c05a234351d42709c2c57ff624b4fe7bca8ffe4d13cd12436feead6e4da SHA512 b8bba3bb8c423070d6434d1df7274423edf3a356415f54c6448fa0ff2d13a4b2ac21c4bb627cba01d6955b04f793eeaf2fc535c6221e7de48f11bef745035263 |
25 |
DIST ufw-0.35.tar.gz 375310 BLAKE2B 3babf22e860ead6970c1386b0ab9fc3de364ba3f5c8bc0237be4a9446358fe058d216e7928d16eed8a148fbee5b82fc1d9e3b358f357c2fac236ae6f6b942a01 SHA512 b36c82559910634505648f717d19eb5a0cb1ce739a804359087e74c966869d0375c4ed5811954b32d2b5b51866f6ae1bec62a4a464f226b2eecc56b096f303fc |
26 |
DIST ufw-0.36.tar.gz 580338 BLAKE2B a7e07ac11539061a69bb83d45c0affc54793503b31c9e9f9f8b34fa890a3fe97682f9133102e74e5f6e1eb372a929cfc8619baa2cc9efc1dc289d9f4a1766efd SHA512 b32d7f79f43c203149c48b090ee0d063df78fcf654344ee11066a7363e799a62b046758ffe02b8bd15121545ac2a6b61df21fe56f8b810319fe4dd562cbdadb3 |
27 |
|
28 |
diff --git a/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild b/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild |
29 |
deleted file mode 100644 |
30 |
index 73f230e669d..00000000000 |
31 |
--- a/net-firewall/ufw/ufw-0.34_pre805-r2.ebuild |
32 |
+++ /dev/null |
33 |
@@ -1,185 +0,0 @@ |
34 |
-# Copyright 1999-2019 Gentoo Authors |
35 |
-# Distributed under the terms of the GNU General Public License v2 |
36 |
- |
37 |
-EAPI=5 |
38 |
-PYTHON_COMPAT=( python2_7 ) |
39 |
-DISTUTILS_IN_SOURCE_BUILD=1 |
40 |
- |
41 |
-inherit bash-completion-r1 eutils linux-info distutils-r1 systemd |
42 |
- |
43 |
-DESCRIPTION="A program used to manage a netfilter firewall" |
44 |
-HOMEPAGE="https://launchpad.net/ufw" |
45 |
-SRC_URI="mirror://sabayon/${CATEGORY}/${P}.tar.gz" |
46 |
- |
47 |
-LICENSE="GPL-3" |
48 |
-SLOT="0" |
49 |
-KEYWORDS="amd64 ia64 ppc ppc64 sparc ~x86" |
50 |
-IUSE="examples ipv6" |
51 |
- |
52 |
-DEPEND="sys-devel/gettext" |
53 |
-RDEPEND=">=net-firewall/iptables-1.4[ipv6?] |
54 |
- !<kde-misc/kcm-ufw-0.4.2 |
55 |
- !<net-firewall/ufw-frontends-0.3.2 |
56 |
-" |
57 |
- |
58 |
-# tests fail; upstream bug: https://bugs.launchpad.net/ufw/+bug/815982 |
59 |
-RESTRICT="test" |
60 |
- |
61 |
-PATCHES=( |
62 |
- # Remove unnecessary build time dependency on net-firewall/iptables. |
63 |
- "${FILESDIR}"/${PN}-0.33-dont-check-iptables.patch |
64 |
- # Move files away from /lib/ufw. |
65 |
- "${FILESDIR}"/${PN}-0.31.1-move-path.patch |
66 |
- # Remove shebang modification. |
67 |
- "${FILESDIR}"/${P}-shebang.patch |
68 |
- # Fix bash completions, bug #526300 |
69 |
- "${FILESDIR}"/${P}-bash-completion.patch |
70 |
-) |
71 |
- |
72 |
-pkg_pretend() { |
73 |
- local CONFIG_CHECK="~PROC_FS |
74 |
- ~NETFILTER_XT_MATCH_COMMENT ~NETFILTER_XT_MATCH_HL |
75 |
- ~NETFILTER_XT_MATCH_LIMIT ~NETFILTER_XT_MATCH_MULTIPORT |
76 |
- ~NETFILTER_XT_MATCH_RECENT ~NETFILTER_XT_MATCH_STATE" |
77 |
- |
78 |
- if kernel_is -ge 2 6 39; then |
79 |
- CONFIG_CHECK+=" ~NETFILTER_XT_MATCH_ADDRTYPE" |
80 |
- else |
81 |
- CONFIG_CHECK+=" ~IP_NF_MATCH_ADDRTYPE" |
82 |
- fi |
83 |
- |
84 |
- # https://bugs.launchpad.net/ufw/+bug/1076050 |
85 |
- if kernel_is -ge 3 4; then |
86 |
- CONFIG_CHECK+=" ~NETFILTER_XT_TARGET_LOG" |
87 |
- else |
88 |
- CONFIG_CHECK+=" ~IP_NF_TARGET_LOG" |
89 |
- use ipv6 && CONFIG_CHECK+=" ~IP6_NF_TARGET_LOG" |
90 |
- fi |
91 |
- |
92 |
- CONFIG_CHECK+=" ~IP_NF_TARGET_REJECT" |
93 |
- use ipv6 && CONFIG_CHECK+=" ~IP6_NF_TARGET_REJECT" |
94 |
- |
95 |
- check_extra_config |
96 |
- |
97 |
- # Check for default, useful optional features. |
98 |
- if ! linux_config_exists; then |
99 |
- ewarn "Cannot determine configuration of your kernel." |
100 |
- return |
101 |
- fi |
102 |
- |
103 |
- local nf_nat_ftp_ok="yes" |
104 |
- local nf_conntrack_ftp_ok="yes" |
105 |
- local nf_conntrack_netbios_ns_ok="yes" |
106 |
- |
107 |
- linux_chkconfig_present \ |
108 |
- NF_NAT_FTP || nf_nat_ftp_ok="no" |
109 |
- linux_chkconfig_present \ |
110 |
- NF_CONNTRACK_FTP || nf_conntrack_ftp_ok="no" |
111 |
- linux_chkconfig_present \ |
112 |
- NF_CONNTRACK_NETBIOS_NS || nf_conntrack_netbios_ns_ok="no" |
113 |
- |
114 |
- # This is better than an essay for each unset option... |
115 |
- if [[ ${nf_nat_ftp_ok} = no ]] || [[ ${nf_conntrack_ftp_ok} = no ]] \ |
116 |
- || [[ ${nf_conntrack_netbios_ns_ok} = no ]] |
117 |
- then |
118 |
- echo |
119 |
- local mod_msg="Kernel options listed below are not set. They are not" |
120 |
- mod_msg+=" mandatory, but they are often useful." |
121 |
- mod_msg+=" If you don't need some of them, please remove relevant" |
122 |
- mod_msg+=" module name(s) from IPT_MODULES in" |
123 |
- mod_msg+=" '${EROOT}etc/default/ufw' before (re)starting ufw." |
124 |
- mod_msg+=" Otherwise ufw may fail to start!" |
125 |
- ewarn "${mod_msg}" |
126 |
- if [[ ${nf_nat_ftp_ok} = no ]]; then |
127 |
- ewarn "NF_NAT_FTP: for better support for active mode FTP." |
128 |
- fi |
129 |
- if [[ ${nf_conntrack_ftp_ok} = no ]]; then |
130 |
- ewarn "NF_CONNTRACK_FTP: for better support for active mode FTP." |
131 |
- fi |
132 |
- if [[ ${nf_conntrack_netbios_ns_ok} = no ]]; then |
133 |
- ewarn "NF_CONNTRACK_NETBIOS_NS: for better Samba support." |
134 |
- fi |
135 |
- fi |
136 |
-} |
137 |
- |
138 |
-python_prepare_all() { |
139 |
- # Set as enabled by default. User can enable or disable |
140 |
- # the service by adding or removing it to/from a runlevel. |
141 |
- sed -i 's/^ENABLED=no/ENABLED=yes/' conf/ufw.conf \ |
142 |
- || die "sed failed (ufw.conf)" |
143 |
- |
144 |
- sed -i "s/^IPV6=yes/IPV6=$(usex ipv6)/" conf/ufw.defaults || die |
145 |
- |
146 |
- # If LINGUAS is set install selected translations only. |
147 |
- if [[ -n ${LINGUAS+set} ]]; then |
148 |
- _EMPTY_LOCALE_LIST="yes" |
149 |
- pushd locales/po > /dev/null || die |
150 |
- |
151 |
- local lang |
152 |
- for lang in *.po; do |
153 |
- if ! has "${lang%.po}" ${LINGUAS}; then |
154 |
- rm "${lang}" || die |
155 |
- else |
156 |
- _EMPTY_LOCALE_LIST="no" |
157 |
- fi |
158 |
- done |
159 |
- |
160 |
- popd > /dev/null || die |
161 |
- else |
162 |
- _EMPTY_LOCALE_LIST="no" |
163 |
- fi |
164 |
- |
165 |
- distutils-r1_python_prepare_all |
166 |
-} |
167 |
- |
168 |
-python_install_all() { |
169 |
- newconfd "${FILESDIR}"/ufw.confd ufw |
170 |
- newinitd "${FILESDIR}"/ufw-2.initd ufw |
171 |
- systemd_dounit "${FILESDIR}/ufw.service" |
172 |
- |
173 |
- exeinto /usr/share/${PN} |
174 |
- doexe tests/check-requirements |
175 |
- |
176 |
- # users normally would want it |
177 |
- insinto /usr/share/doc/${PF}/logging/syslog-ng |
178 |
- doins "${FILESDIR}"/syslog-ng/* |
179 |
- |
180 |
- insinto /usr/share/doc/${PF}/logging/rsyslog |
181 |
- doins "${FILESDIR}"/rsyslog/* |
182 |
- doins doc/rsyslog.example |
183 |
- |
184 |
- if use examples; then |
185 |
- insinto /usr/share/doc/${PF}/examples |
186 |
- doins examples/* |
187 |
- fi |
188 |
- newbashcomp shell-completion/bash ${PN} |
189 |
- |
190 |
- [[ $_EMPTY_LOCALE_LIST != yes ]] && domo locales/mo/*.mo |
191 |
- |
192 |
- distutils-r1_python_install_all |
193 |
- python_replicate_script "${D}usr/sbin/ufw" |
194 |
-} |
195 |
- |
196 |
-pkg_postinst() { |
197 |
- if [[ -z ${REPLACING_VERSIONS} ]]; then |
198 |
- echo |
199 |
- elog "To enable ufw, add it to boot sequence and activate it:" |
200 |
- elog "-- # rc-update add ufw boot" |
201 |
- elog "-- # /etc/init.d/ufw start" |
202 |
- echo |
203 |
- elog "If you want to keep ufw logs in a separate file, take a look at" |
204 |
- elog "/usr/share/doc/${PF}/logging." |
205 |
- fi |
206 |
- if [[ -z ${REPLACING_VERSIONS} ]] \ |
207 |
- || [[ ${REPLACING_VERSIONS} < 0.34 ]]; |
208 |
- then |
209 |
- echo |
210 |
- elog "/usr/share/ufw/check-requirements script is installed." |
211 |
- elog "It is useful for debugging problems with ufw. However one" |
212 |
- elog "should keep in mind that the script assumes IPv6 is enabled" |
213 |
- elog "on kernel and net-firewall/iptables, and fails when it's not." |
214 |
- fi |
215 |
- echo |
216 |
- ewarn "Note: once enabled, ufw blocks also incoming SSH connections by" |
217 |
- ewarn "default. See README, Remote Management section for more information." |
218 |
-} |