diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2019-10-13 22:19:36 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2019-10-14 23:22:23 +0100 |
commit | 4b19be30aa626b327c885dae62c559ec0e9fb935 (patch) | |
tree | 76e74807bc479502e13866b581b6bf86734ec634 /sys-freebsd/freebsd-pf | |
parent | 30d6f67c98d149508509d5e86f176d558793acc0 (diff) |
gentoo resync : 13.10.2019
Diffstat (limited to 'sys-freebsd/freebsd-pf')
-rw-r--r-- | sys-freebsd/freebsd-pf/Manifest | 9 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-libevent.patch | 13 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-pflogd.patch | 14 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-bpf.patch | 10 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-pcap_pollution.patch | 17 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/pf.confd | 9 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/files/pf.initd | 49 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild | 70 | ||||
-rw-r--r-- | sys-freebsd/freebsd-pf/metadata.xml | 8 |
9 files changed, 0 insertions, 199 deletions
diff --git a/sys-freebsd/freebsd-pf/Manifest b/sys-freebsd/freebsd-pf/Manifest deleted file mode 100644 index b3be110be706..000000000000 --- a/sys-freebsd/freebsd-pf/Manifest +++ /dev/null @@ -1,9 +0,0 @@ -AUX freebsd-pf-11.1-libevent.patch 305 BLAKE2B cce2abce33431885196c5bc44c7e38582b2c7db273ddd3b7d4c8b58dbd9902cbc6e2a5031f5cddd28db9361eafd75c98fc0ca8d14e822305ead12aa035990c5f SHA512 a75ff98e8d87ec5182bb1a7226b34d6223500c0a5659727392d97d69d1a66af6d439d4c23a6817740c25306654468e82e52ddfa591d4509001e407e099c83b44 -AUX freebsd-pf-11.1-pflogd.patch 363 BLAKE2B fac873813332149adc13e5b1a77cd8532c12bae7ee1c93644af31e517e7697cdd8e7c59412e7dbb616c97baabb6308049bd7c995b5e803627f6cc3049056380e SHA512 bceaf0f234948acf30aab4391d73c7545bd860dc5b2bba8eb8da1a9791de905654450592674c75419a8dc0646215ba5bcdd885d61cac336d34c017a7c57039fd -AUX freebsd-pf-9.0-bpf.patch 309 BLAKE2B 38d4382e437301da49388333b18541699299f033df83e88decd9ba41a62a2b349facd00af806f2c414cfc5e2d356ff6025dadce40abe5767257391b741d1e62f SHA512 e3364e372b5c2d2c4a1960ee1f6d5fa411810ba3597356ec17b275afd8bb6813cce62d781fc683663037b008d81804d28a2617f308c942a741657cf8dcf0e039 -AUX freebsd-pf-9.0-pcap_pollution.patch 450 BLAKE2B daf9a836b6c8243e8b452c0e68bc740b4d5266460dc12615f2cc8361dbb000fe7c844f42bfb7b6c496f6856f8f1557261b2847ba92c9f57ef9e8885c93ffcf5c SHA512 262d23f74449f75d628dcda09a7c7e0d501b61899c0a2a1ca71179989803f5c5f70fd4f8908f06ce998aca994d54b43efe03578892ff121c0a27e7fa36e4f1dd -AUX pf.confd 274 BLAKE2B ed3466c836e7c4958d371d7858cf15e532140c1d3afe7e3b2155275f24ec245628d2936d8ac26eba13bbb88b9d86ad13e5f662f0f37ae813a98e92428e160fae SHA512 bf476bf7dc796307f2bf916e73780a6c70a2defd75f4dcbce664a99fdbb5aa69ce7004483073036a0c52fadcf9e7e7c8bcc902e9eacb7ac1963714740bdfc5e5 -AUX pf.initd 803 BLAKE2B 8f3d10adae448a429b2e08954b5a3d3025d9cdde90073fed0b50f900de47c8e4611fd406409047fe8ad1f25c69465fe7954e8b3c937ad507b45fdd8096a9a4de SHA512 b447683fb3abd11a6c5158b452ac9a72858c0a57bb424a1ec3a4cc8dce09336228d6e43ce0c58a63d63ee3917211227a6c5f1d4ac4bde42ce7fc5aa6d188f28d -DIST freebsd-src-11.1.tar.xz 147661560 BLAKE2B a9e6ba9d0e12c8b56ac58575d5f02931edbb6a3545d9dccae78810d2d0470a29b29dd7f724b03b8afafbca23717a71346e4cfbd3530e0f40118a23609c3f414e SHA512 b97707ec7a601ca6bcb682c45f6d94a38484301ac24630d7285eff6f88b027ce6900c93fc62f8ce36e0cf32c91f73a9d1c999db397b7f8782fd74a8551a03aca -EBUILD freebsd-pf-11.1.ebuild 1491 BLAKE2B 01e49509dc7f3528e0f14a01eebb2a8b5f0c9fa927844b98f8a9f4c89bbc1b103f01b972efa4a370b9765dd1cb6620d51de0c012a1b58b108434d7e247562f57 SHA512 2ace1ad0f89365b9b707a2b9b29f04dff926ad3a3340abd156862aa0c50396ce078d4f997d1298b498df1c52745b5216f2c112424254ae12abbb554783c276a8 -MISC metadata.xml 238 BLAKE2B 5d18b211ca67cdae4e0f4d6e1598b20b39a471aa07326791c53bb4e1013607b85bac28a64c1939e53b01228d0c9b7814314b95c0f76928de265d95ef7ee6cd45 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d 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 deleted file mode 100644 index 057088f3298c..000000000000 --- a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-libevent.patch +++ /dev/null @@ -1,13 +0,0 @@ -diff --git a/usr.sbin/ftp-proxy/Makefile b/usr.sbin/ftp-proxy/Makefile -index 3708edc..efdfcc6 100644 ---- a/usr.sbin/ftp-proxy/Makefile -+++ b/usr.sbin/ftp-proxy/Makefile -@@ -7,8 +7,6 @@ MAN= ftp-proxy.8 - - SRCS= ftp-proxy.c filter.c - --CFLAGS+=-I${SRCTOP}/contrib/pf/libevent -- - LIBADD= event - - WARNS?= 3 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 deleted file mode 100644 index a10e21dd19c0..000000000000 --- a/sys-freebsd/freebsd-pf/files/freebsd-pf-11.1-pflogd.patch +++ /dev/null @@ -1,14 +0,0 @@ -diff --git a/sbin/pflogd/Makefile b/sbin/pflogd/Makefile -index f9d47da..bb00d39 100644 ---- a/sbin/pflogd/Makefile -+++ b/sbin/pflogd/Makefile -@@ -7,9 +7,6 @@ PROG= pflogd - SRCS= pflogd.c pidfile.c privsep.c privsep_fdpass.c - MAN= pflogd.8 - --CFLAGS+=-include ${SRCTOP}/lib/libpcap/config.h --CFLAGS+=-I${.CURDIR}/../../contrib/libpcap -- - LIBADD= pcap - - WARNS?= 2 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 deleted file mode 100644 index fb3c7012eccf..000000000000 --- a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-bpf.patch +++ /dev/null @@ -1,10 +0,0 @@ ---- contrib/pf/pflogd/pflogd.c.old 2011-11-02 21:12:57.000000000 +0000 -+++ contrib/pf/pflogd/pflogd.c 2011-11-02 21:13:11.000000000 +0000 -@@ -39,6 +39,7 @@ - #include <sys/stat.h> - #include <sys/socket.h> - #include <net/if.h> -+#include <net/bpf.h> - #include <stdio.h> - #include <stdlib.h> - #include <string.h> 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 deleted file mode 100644 index 184ab6f31bc4..000000000000 --- a/sys-freebsd/freebsd-pf/files/freebsd-pf-9.0-pcap_pollution.patch +++ /dev/null @@ -1,17 +0,0 @@ ---- contrib/pf/pflogd/privsep.c.old 2011-11-02 21:04:01.000000000 +0000 -+++ contrib/pf/pflogd/privsep.c 2011-11-02 21:04:27.000000000 +0000 -@@ -32,11 +32,13 @@ - #include <errno.h> - #include <fcntl.h> - #include <limits.h> -+#include <stdio.h> -+#define HAVE_SNPRINTF -+#define HAVE_STRLCPY - #include <pcap.h> - #include <pcap-int.h> - #include <pwd.h> - #include <signal.h> --#include <stdio.h> - #include <stdlib.h> - #include <string.h> - #include <syslog.h> diff --git a/sys-freebsd/freebsd-pf/files/pf.confd b/sys-freebsd/freebsd-pf/files/pf.confd deleted file mode 100644 index 87c21b281e2b..000000000000 --- a/sys-freebsd/freebsd-pf/files/pf.confd +++ /dev/null @@ -1,9 +0,0 @@ -# Copyright 2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -# Defines where the rules file is found, by default /etc/pf.conf -# pf_conf=/etc/pf.conf - -# Extra options to pass to pfctl when loading the rules -# See pfctl(8) -# pf_args= diff --git a/sys-freebsd/freebsd-pf/files/pf.initd b/sys-freebsd/freebsd-pf/files/pf.initd deleted file mode 100644 index c1b3e9eb5747..000000000000 --- a/sys-freebsd/freebsd-pf/files/pf.initd +++ /dev/null @@ -1,49 +0,0 @@ -#!/sbin/openrc-run -# Copyright 2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - need net -} - -checkconfig() { - if ! [ -c /dev/pf ]; then - ewarn "Pseudo-device /dev/pf not found." - - ebegin "Loading pf module" - if ! kldload pf; then - eerror "Unable to load pf module." - eend 1 - return 1 - fi - eend $? - - if ! [ -c /dev/pf ]; then - eerror "Pseudo-device /dev/pf still not found." - return 1 - fi - fi - - return 0 -} - -start() { - checkconfig || return 1 - - einfo "Starting firewall" - - if [ -r "${PF_RULES_FILE}" ]; then - einfo "Loading firewall rules" - /sbin/pfctl -qe -f ${PF_RULES_FILE:-/etc/pf.conf} ${PF_OPTS} - else - /sbin/pfctl -qe ${PF_OPTS} - fi - - eend $? -} - -stop() { - einfo "Stopping firewall" - /sbin/pfctl -qd || retval=1 - eend $? -} diff --git a/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild b/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild deleted file mode 100644 index a210e789bf43..000000000000 --- a/sys-freebsd/freebsd-pf/freebsd-pf-11.1.ebuild +++ /dev/null @@ -1,70 +0,0 @@ -# Copyright 1999-2017 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -inherit bsdmk freebsd user - -DESCRIPTION="FreeBSD's base system libraries" -SLOT="0" - -IUSE="" - -# Crypto is needed to have an internal OpenSSL header -if [[ ${PV} != *9999* ]]; then - KEYWORDS="~amd64-fbsd ~x86-fbsd" -fi - -EXTRACTONLY=" - usr.sbin/ - sbin/ - contrib/pf/ - etc/ -" - -RDEPEND="net-libs/libpcap" -DEPEND="${RDEPEND} - dev-libs/libevent - =sys-freebsd/freebsd-mk-defs-${RV}* - =sys-freebsd/freebsd-sources-${RV}*" - -S="${WORKDIR}" - -SUBDIRS="usr.sbin/authpf sbin/pfctl sbin/pflogd usr.sbin/ftp-proxy" - -pkg_setup() { - enewgroup authpf 63 -} - -src_prepare() { - # pcap-int.h redefines snprintf as pcap_snprintf - epatch "${FILESDIR}/${PN}-9.0-pcap_pollution.patch" - # Use system's libevent - epatch "${FILESDIR}/${PN}-11.1-libevent.patch" - epatch "${FILESDIR}/${PN}-11.1-pflogd.patch" - epatch "${FILESDIR}/${PN}-9.0-bpf.patch" - # Link in kernel sources - [[ ! -e "${WORKDIR}/sys" ]] && ln -s "/usr/src/sys" "${WORKDIR}/sys" -} - -src_compile() { - for dir in ${SUBDIRS}; do - einfo "Starting make in ${dir}" - cd "${S}/${dir}" || die - freebsd_src_compile || die "Make ${dir} failed" - done -} - -src_install() { - for dir in ${SUBDIRS}; do - einfo "Starting install in ${dir}" - cd "${S}/${dir}" || die - freebsd_src_install || die "Install ${dir} failed" - done - - cd "${WORKDIR}"/etc - insinto /etc - doins pf.os - # pf.initd provided by openrc, but no pf.confd - newconfd "${FILESDIR}/pf.confd" pf -} diff --git a/sys-freebsd/freebsd-pf/metadata.xml b/sys-freebsd/freebsd-pf/metadata.xml deleted file mode 100644 index a00f3aeb1f81..000000000000 --- a/sys-freebsd/freebsd-pf/metadata.xml +++ /dev/null @@ -1,8 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> -<maintainer type="project"> - <email>bsd@gentoo.org</email> - <name>BSD Project</name> -</maintainer> -</pkgmetadata> |