1 |
commit: 803eb8f62a018139ed263dd54132a732b2a9abef |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Oct 11 15:13:59 2019 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Oct 11 15:16:38 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=803eb8f6 |
7 |
|
8 |
sys-freebsd/freebsd-pf: Remove last-rited pkg |
9 |
|
10 |
Closes: https://bugs.gentoo.org/683284 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
profiles/package.mask | 1 - |
14 |
sys-freebsd/freebsd-pf/Manifest | 1 - |
15 |
.../files/freebsd-pf-11.1-libevent.patch | 13 ---- |
16 |
.../freebsd-pf/files/freebsd-pf-11.1-pflogd.patch | 14 ----- |
17 |
.../freebsd-pf/files/freebsd-pf-9.0-bpf.patch | 10 ---- |
18 |
.../files/freebsd-pf-9.0-pcap_pollution.patch | 17 ------ |
19 |
sys-freebsd/freebsd-pf/files/pf.confd | 9 --- |
20 |
sys-freebsd/freebsd-pf/files/pf.initd | 49 --------------- |
21 |
sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild | 70 ---------------------- |
22 |
sys-freebsd/freebsd-pf/metadata.xml | 8 --- |
23 |
10 files changed, 192 deletions(-) |
24 |
|
25 |
diff --git a/profiles/package.mask b/profiles/package.mask |
26 |
index d6d415bd668..a0601770af5 100644 |
27 |
--- a/profiles/package.mask |
28 |
+++ b/profiles/package.mask |
29 |
@@ -754,7 +754,6 @@ sys-freebsd/freebsd-lib |
30 |
sys-freebsd/freebsd-libexec |
31 |
sys-freebsd/freebsd-mk-defs |
32 |
sys-freebsd/freebsd-pam-modules |
33 |
-sys-freebsd/freebsd-pf |
34 |
|
35 |
# Lars Wendler <polynomial-c@g.o> (2019-09-04) |
36 |
# Unofficial build. Superseded by official 2.49.5 release. |
37 |
|
38 |
diff --git a/sys-freebsd/freebsd-pf/Manifest b/sys-freebsd/freebsd-pf/Manifest |
39 |
deleted file mode 100644 |
40 |
index f3dcd89d595..00000000000 |
41 |
--- a/sys-freebsd/freebsd-pf/Manifest |
42 |
+++ /dev/null |
43 |
@@ -1 +0,0 @@ |
44 |
-DIST freebsd-src-11.1.tar.xz 147661560 BLAKE2B a9e6ba9d0e12c8b56ac58575d5f02931edbb6a3545d9dccae78810d2d0470a29b29dd7f724b03b8afafbca23717a71346e4cfbd3530e0f40118a23609c3f414e SHA512 b97707ec7a601ca6bcb682c45f6d94a38484301ac24630d7285eff6f88b027ce6900c93fc62f8ce36e0cf32c91f73a9d1c999db397b7f8782fd74a8551a03aca |
45 |
|
46 |
diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-libevent.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-libevent.patch |
47 |
deleted file mode 100644 |
48 |
index 057088f3298..00000000000 |
49 |
--- a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-libevent.patch |
50 |
+++ /dev/null |
51 |
@@ -1,13 +0,0 @@ |
52 |
-diff --git a/usr.sbin/ftp-proxy/Makefile b/usr.sbin/ftp-proxy/Makefile |
53 |
-index 3708edc..efdfcc6 100644 |
54 |
---- a/usr.sbin/ftp-proxy/Makefile |
55 |
-+++ b/usr.sbin/ftp-proxy/Makefile |
56 |
-@@ -7,8 +7,6 @@ MAN= ftp-proxy.8 |
57 |
- |
58 |
- SRCS= ftp-proxy.c filter.c |
59 |
- |
60 |
--CFLAGS+=-I${SRCTOP}/contrib/pf/libevent |
61 |
-- |
62 |
- LIBADD= event |
63 |
- |
64 |
- WARNS?= 3 |
65 |
|
66 |
diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-pflogd.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-pflogd.patch |
67 |
deleted file mode 100644 |
68 |
index a10e21dd19c..00000000000 |
69 |
--- a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-pflogd.patch |
70 |
+++ /dev/null |
71 |
@@ -1,14 +0,0 @@ |
72 |
-diff --git a/sbin/pflogd/Makefile b/sbin/pflogd/Makefile |
73 |
-index f9d47da..bb00d39 100644 |
74 |
---- a/sbin/pflogd/Makefile |
75 |
-+++ b/sbin/pflogd/Makefile |
76 |
-@@ -7,9 +7,6 @@ PROG= pflogd |
77 |
- SRCS= pflogd.c pidfile.c privsep.c privsep_fdpass.c |
78 |
- MAN= pflogd.8 |
79 |
- |
80 |
--CFLAGS+=-include ${SRCTOP}/lib/libpcap/config.h |
81 |
--CFLAGS+=-I${.CURDIR}/../../contrib/libpcap |
82 |
-- |
83 |
- LIBADD= pcap |
84 |
- |
85 |
- WARNS?= 2 |
86 |
|
87 |
diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-bpf.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-bpf.patch |
88 |
deleted file mode 100644 |
89 |
index fb3c7012ecc..00000000000 |
90 |
--- a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-bpf.patch |
91 |
+++ /dev/null |
92 |
@@ -1,10 +0,0 @@ |
93 |
---- contrib/pf/pflogd/pflogd.c.old 2011-11-02 21:12:57.000000000 +0000 |
94 |
-+++ contrib/pf/pflogd/pflogd.c 2011-11-02 21:13:11.000000000 +0000 |
95 |
-@@ -39,6 +39,7 @@ |
96 |
- #include <sys/stat.h> |
97 |
- #include <sys/socket.h> |
98 |
- #include <net/if.h> |
99 |
-+#include <net/bpf.h> |
100 |
- #include <stdio.h> |
101 |
- #include <stdlib.h> |
102 |
- #include <string.h> |
103 |
|
104 |
diff --git a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-pcap_pollution.patch b/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-pcap_pollution.patch |
105 |
deleted file mode 100644 |
106 |
index 184ab6f31bc..00000000000 |
107 |
--- a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-pcap_pollution.patch |
108 |
+++ /dev/null |
109 |
@@ -1,17 +0,0 @@ |
110 |
---- contrib/pf/pflogd/privsep.c.old 2011-11-02 21:04:01.000000000 +0000 |
111 |
-+++ contrib/pf/pflogd/privsep.c 2011-11-02 21:04:27.000000000 +0000 |
112 |
-@@ -32,11 +32,13 @@ |
113 |
- #include <errno.h> |
114 |
- #include <fcntl.h> |
115 |
- #include <limits.h> |
116 |
-+#include <stdio.h> |
117 |
-+#define HAVE_SNPRINTF |
118 |
-+#define HAVE_STRLCPY |
119 |
- #include <pcap.h> |
120 |
- #include <pcap-int.h> |
121 |
- #include <pwd.h> |
122 |
- #include <signal.h> |
123 |
--#include <stdio.h> |
124 |
- #include <stdlib.h> |
125 |
- #include <string.h> |
126 |
- #include <syslog.h> |
127 |
|
128 |
diff --git a/sys-freebsd/freebsd-pf/files/pf.confd b/sys-freebsd/freebsd-pf/files/pf.confd |
129 |
deleted file mode 100644 |
130 |
index 87c21b281e2..00000000000 |
131 |
--- a/sys-freebsd/freebsd-pf/files/pf.confd |
132 |
+++ /dev/null |
133 |
@@ -1,9 +0,0 @@ |
134 |
-# Copyright 2006 Gentoo Foundation |
135 |
-# Distributed under the terms of the GNU General Public License v2 |
136 |
- |
137 |
-# Defines where the rules file is found, by default /etc/pf.conf |
138 |
-# pf_conf=/etc/pf.conf |
139 |
- |
140 |
-# Extra options to pass to pfctl when loading the rules |
141 |
-# See pfctl(8) |
142 |
-# pf_args= |
143 |
|
144 |
diff --git a/sys-freebsd/freebsd-pf/files/pf.initd b/sys-freebsd/freebsd-pf/files/pf.initd |
145 |
deleted file mode 100644 |
146 |
index c1b3e9eb574..00000000000 |
147 |
--- a/sys-freebsd/freebsd-pf/files/pf.initd |
148 |
+++ /dev/null |
149 |
@@ -1,49 +0,0 @@ |
150 |
-#!/sbin/openrc-run |
151 |
-# Copyright 2006 Gentoo Foundation |
152 |
-# Distributed under the terms of the GNU General Public License v2 |
153 |
- |
154 |
-depend() { |
155 |
- need net |
156 |
-} |
157 |
- |
158 |
-checkconfig() { |
159 |
- if ! [ -c /dev/pf ]; then |
160 |
- ewarn "Pseudo-device /dev/pf not found." |
161 |
- |
162 |
- ebegin "Loading pf module" |
163 |
- if ! kldload pf; then |
164 |
- eerror "Unable to load pf module." |
165 |
- eend 1 |
166 |
- return 1 |
167 |
- fi |
168 |
- eend $? |
169 |
- |
170 |
- if ! [ -c /dev/pf ]; then |
171 |
- eerror "Pseudo-device /dev/pf still not found." |
172 |
- return 1 |
173 |
- fi |
174 |
- fi |
175 |
- |
176 |
- return 0 |
177 |
-} |
178 |
- |
179 |
-start() { |
180 |
- checkconfig || return 1 |
181 |
- |
182 |
- einfo "Starting firewall" |
183 |
- |
184 |
- if [ -r "${PF_RULES_FILE}" ]; then |
185 |
- einfo "Loading firewall rules" |
186 |
- /sbin/pfctl -qe -f ${PF_RULES_FILE:-/etc/pf.conf} ${PF_OPTS} |
187 |
- else |
188 |
- /sbin/pfctl -qe ${PF_OPTS} |
189 |
- fi |
190 |
- |
191 |
- eend $? |
192 |
-} |
193 |
- |
194 |
-stop() { |
195 |
- einfo "Stopping firewall" |
196 |
- /sbin/pfctl -qd || retval=1 |
197 |
- eend $? |
198 |
-} |
199 |
|
200 |
diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild |
201 |
deleted file mode 100644 |
202 |
index a210e789bf4..00000000000 |
203 |
--- a/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild |
204 |
+++ /dev/null |
205 |
@@ -1,70 +0,0 @@ |
206 |
-# Copyright 1999-2017 Gentoo Foundation |
207 |
-# Distributed under the terms of the GNU General Public License v2 |
208 |
- |
209 |
-EAPI=5 |
210 |
- |
211 |
-inherit bsdmk freebsd user |
212 |
- |
213 |
-DESCRIPTION="FreeBSD's base system libraries" |
214 |
-SLOT="0" |
215 |
- |
216 |
-IUSE="" |
217 |
- |
218 |
-# Crypto is needed to have an internal OpenSSL header |
219 |
-if [[ ${PV} != *9999* ]]; then |
220 |
- KEYWORDS="~amd64-fbsd ~x86-fbsd" |
221 |
-fi |
222 |
- |
223 |
-EXTRACTONLY=" |
224 |
- usr.sbin/ |
225 |
- sbin/ |
226 |
- contrib/pf/ |
227 |
- etc/ |
228 |
-" |
229 |
- |
230 |
-RDEPEND="net-libs/libpcap" |
231 |
-DEPEND="${RDEPEND} |
232 |
- dev-libs/libevent |
233 |
- =sys-freebsd/freebsd-mk-defs-${RV}* |
234 |
- =sys-freebsd/freebsd-sources-${RV}*" |
235 |
- |
236 |
-S="${WORKDIR}" |
237 |
- |
238 |
-SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy" |
239 |
- |
240 |
-pkg_setup() { |
241 |
- enewgroup authpf 63 |
242 |
-} |
243 |
- |
244 |
-src_prepare() { |
245 |
- # pcap-int.h redefines snprintf as pcap_snprintf |
246 |
- epatch "${FILESDIR}/${PN}-9.0-pcap_pollution.patch" |
247 |
- # Use system's libevent |
248 |
- epatch "${FILESDIR}/${PN}-11.1-libevent.patch" |
249 |
- epatch "${FILESDIR}/${PN}-11.1-pflogd.patch" |
250 |
- epatch "${FILESDIR}/${PN}-9.0-bpf.patch" |
251 |
- # Link in kernel sources |
252 |
- [[ ! -e "${WORKDIR}/sys" ]] && ln -s "/usr/src/sys" "${WORKDIR}/sys" |
253 |
-} |
254 |
- |
255 |
-src_compile() { |
256 |
- for dir in ${SUBDIRS}; do |
257 |
- einfo "Starting make in ${dir}" |
258 |
- cd "${S}/${dir}" || die |
259 |
- freebsd_src_compile || die "Make ${dir} failed" |
260 |
- done |
261 |
-} |
262 |
- |
263 |
-src_install() { |
264 |
- for dir in ${SUBDIRS}; do |
265 |
- einfo "Starting install in ${dir}" |
266 |
- cd "${S}/${dir}" || die |
267 |
- freebsd_src_install || die "Install ${dir} failed" |
268 |
- done |
269 |
- |
270 |
- cd "${WORKDIR}"/etc |
271 |
- insinto /etc |
272 |
- doins pf.os |
273 |
- # pf.initd provided by openrc, but no pf.confd |
274 |
- newconfd "${FILESDIR}/pf.confd" pf |
275 |
-} |
276 |
|
277 |
diff --git a/sys-freebsd/freebsd-pf/metadata.xml b/sys-freebsd/freebsd-pf/metadata.xml |
278 |
deleted file mode 100644 |
279 |
index a00f3aeb1f8..00000000000 |
280 |
--- a/sys-freebsd/freebsd-pf/metadata.xml |
281 |
+++ /dev/null |
282 |
@@ -1,8 +0,0 @@ |
283 |
-<?xml version="1.0" encoding="UTF-8"?> |
284 |
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
285 |
-<pkgmetadata> |
286 |
-<maintainer type="project"> |
287 |
- <email>bsd@g.o</email> |
288 |
- <name>BSD Project</name> |
289 |
-</maintainer> |
290 |
-</pkgmetadata> |