1 |
commit: 91ef50928a5ec25d8fcf4ea17b105ee8e6ae938e |
2 |
Author: Hank Leininger <hlein <AT> korelogic <DOT> com> |
3 |
AuthorDate: Sat Oct 26 22:46:45 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Nov 4 05:42:51 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=91ef5092 |
7 |
|
8 |
net-firewall/fwknop: Version bump to 2.6.10. |
9 |
|
10 |
Also changed SRC_URI to the main upstream site because github |
11 |
mangles the .tar.gz to break upstream's PGP signature. |
12 |
|
13 |
Signed-off-by: Hank Leininger <hlein <AT> korelogic.com> |
14 |
Bug: https://bugs.gentoo.org/698604 |
15 |
Package-Manager: Portage-2.3.78, Repoman-2.3.17 |
16 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
17 |
|
18 |
net-firewall/fwknop/Manifest | 1 + |
19 |
net-firewall/fwknop/fwknop-2.6.10.ebuild | 130 +++++++++++++++++++++++++++++++ |
20 |
2 files changed, 131 insertions(+) |
21 |
|
22 |
diff --git a/net-firewall/fwknop/Manifest b/net-firewall/fwknop/Manifest |
23 |
index 27210436a6a..d49b6b5fc1a 100644 |
24 |
--- a/net-firewall/fwknop/Manifest |
25 |
+++ b/net-firewall/fwknop/Manifest |
26 |
@@ -1 +1,2 @@ |
27 |
+DIST fwknop-2.6.10.tar.gz 1988197 BLAKE2B d4c2010c64ab160f0edc02e2b1530749ee47ff6ed16d6b556d366daef7ce5e22ef38fbbbf6e8cfaa14e0d9706ba2b65937b03c70b54b3429ff1732ae33c1852c SHA512 3b3e35eda574abd1759431c88677eea7078c54cb3252c0ee0e1019b5b8224ed8844d30760da70a952e1cd92b04715a547f6effabda54678f791fff9afa32cd80 |
28 |
DIST fwknop-2.6.9.tar.gz 3043542 BLAKE2B 11440fa0fe5e990a269587fa9ee1da0242f3dc939d6dc185d6adff9e9c995a8ffe902a6351a057c619cb6ff056519caea38f7b865978fe5ac810a39281bb3fc3 SHA512 4706560d44c911c8604059d88dded9c1b8c333399d90ec7dc366c0fba96c79680bdbf1b8b5e76cc34aaf3a1e58fff80db8f5f20c96d57481bdb476a9b99f4d1b |
29 |
|
30 |
diff --git a/net-firewall/fwknop/fwknop-2.6.10.ebuild b/net-firewall/fwknop/fwknop-2.6.10.ebuild |
31 |
new file mode 100644 |
32 |
index 00000000000..41a07f7c1a8 |
33 |
--- /dev/null |
34 |
+++ b/net-firewall/fwknop/fwknop-2.6.10.ebuild |
35 |
@@ -0,0 +1,130 @@ |
36 |
+# Copyright 1999-2019 Gentoo Authors |
37 |
+# Distributed under the terms of the GNU General Public License v2 |
38 |
+ |
39 |
+EAPI=7 |
40 |
+ |
41 |
+# Python extension supports only Python 2. |
42 |
+# See https://github.com/mrash/fwknop/issues/167 |
43 |
+PYTHON_COMPAT=( python2_7 ) |
44 |
+DISTUTILS_OPTIONAL=1 |
45 |
+ |
46 |
+inherit autotools distutils-r1 eutils linux-info readme.gentoo-r1 systemd |
47 |
+ |
48 |
+DESCRIPTION="Single Packet Authorization and Port Knocking application" |
49 |
+HOMEPAGE="https://www.cipherdyne.org/fwknop/" |
50 |
+SRC_URI="https://www.cipherdyne.org/fwknop/download/${P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="GPL-2+" |
53 |
+SLOT="0" |
54 |
+KEYWORDS="~amd64 ~x86" |
55 |
+IUSE="+client extras firewalld gdbm gpg +iptables nfqueue python +server udp-server" |
56 |
+ |
57 |
+DEPEND=" |
58 |
+ client? ( net-misc/wget[ssl] ) |
59 |
+ firewalld? ( net-firewall/firewalld[${PYTHON_USEDEP}] ) |
60 |
+ gdbm? ( sys-libs/gdbm ) |
61 |
+ gpg? ( |
62 |
+ app-crypt/gpgme |
63 |
+ dev-libs/libassuan |
64 |
+ dev-libs/libgpg-error |
65 |
+ ) |
66 |
+ iptables? ( net-firewall/iptables ) |
67 |
+ nfqueue? ( net-libs/libnetfilter_queue ) |
68 |
+ python? ( ${PYTHON_DEPS} ) |
69 |
+ server? ( !nfqueue? ( !udp-server? ( net-libs/libpcap ) ) ) |
70 |
+" |
71 |
+RDEPEND="${DEPEND}" |
72 |
+ |
73 |
+REQUIRED_USE=" |
74 |
+ nfqueue? ( server ) |
75 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
76 |
+ server? ( ^^ ( firewalld iptables ) ) |
77 |
+ udp-server? ( server ) |
78 |
+" |
79 |
+ |
80 |
+DOCS=( AUTHORS ChangeLog README ) |
81 |
+ |
82 |
+DISABLE_AUTOFORMATTING=1 |
83 |
+DOC_CONTENTS=" |
84 |
+Example configuration files were installed to '${EPREFIX}/etc/fwknopd/'. |
85 |
+Please edit them to suit your needs and then remove the .example suffix. |
86 |
+ |
87 |
+fwknopd supports several backends: firewalld, iptables, ipfw, pf, ipf. |
88 |
+You can set the desired backend via FIREWALL_EXE option in fwknopd.conf |
89 |
+instead of the default one chosen at compile time. |
90 |
+" |
91 |
+ |
92 |
+src_prepare() { |
93 |
+ default_src_prepare |
94 |
+ |
95 |
+ # Install example configs with .example suffix. |
96 |
+ if use server; then |
97 |
+ sed -i -e 's|conf;|conf.example;|g' Makefile.am || die |
98 |
+ fi |
99 |
+ |
100 |
+ eautoreconf |
101 |
+} |
102 |
+ |
103 |
+src_configure() { |
104 |
+ local myeconfargs=( |
105 |
+ --localstatedir="${EPREFIX}/run" |
106 |
+ $(use_enable client) |
107 |
+ $(use_enable !gdbm file-cache) |
108 |
+ $(use_enable nfqueue nfq-capture) |
109 |
+ $(use_enable server) |
110 |
+ $(use_enable udp-server) |
111 |
+ $(use_with gpg gpgme) |
112 |
+ ) |
113 |
+ use firewalld && myeconfargs+=(--with-firewalld="${EPREFIX}/usr/sbin/firewalld") |
114 |
+ use iptables && myeconfargs+=(--with-iptables="${EPREFIX}/sbin/iptables") |
115 |
+ |
116 |
+ econf "${myeconfargs[@]}" |
117 |
+} |
118 |
+ |
119 |
+src_install() { |
120 |
+ default_src_install |
121 |
+ |
122 |
+ if use extras; then |
123 |
+ dodoc extras/apparmor/usr.sbin.fwknopd |
124 |
+ dodoc extras/console-qr/console-qr.sh |
125 |
+ dodoc extras/fwknop-launcher/* |
126 |
+ fi |
127 |
+ |
128 |
+ if use server; then |
129 |
+ newinitd "${FILESDIR}/fwknopd.init" fwknopd |
130 |
+ newconfd "${FILESDIR}/fwknopd.confd" fwknopd |
131 |
+ systemd_dounit "${FILESDIR}/fwknopd.service" |
132 |
+ systemd_newtmpfilesd "${FILESDIR}/fwknopd.tmpfiles.conf" fwknopd.conf |
133 |
+ readme.gentoo_create_doc |
134 |
+ fi |
135 |
+ |
136 |
+ if use python; then |
137 |
+ # Redefine DOCS, otherwise distutils-r1 eclass interferes. |
138 |
+ local DOCS=() |
139 |
+ cd python || die |
140 |
+ distutils-r1_src_install |
141 |
+ fi |
142 |
+ |
143 |
+ find "${ED}" -type f -name "*.la" -delete || die |
144 |
+} |
145 |
+ |
146 |
+pkg_postinst() { |
147 |
+ if use server; then |
148 |
+ readme.gentoo_print_elog |
149 |
+ |
150 |
+ if ! linux_config_exists || ! linux_chkconfig_present NETFILTER_XT_MATCH_COMMENT; then |
151 |
+ echo |
152 |
+ ewarn "fwknopd daemon relies on the 'comment' match in order to expire" |
153 |
+ ewarn "created firewall rules, which is an important security feature." |
154 |
+ ewarn "Please enable NETFILTER_XT_MATCH_COMMENT support in your kernel." |
155 |
+ echo |
156 |
+ fi |
157 |
+ if use nfqueue && \ |
158 |
+ ! linux_config_exists || ! linux_chkconfig_present NETFILTER_XT_TARGET_NFQUEUE; then |
159 |
+ echo |
160 |
+ ewarn "fwknopd daemon relies on the 'NFQUEUE' target for NFQUEUE mode." |
161 |
+ ewarn "Please enable NETFILTER_XT_TARGET_NFQUEUE support in your kernel." |
162 |
+ echo |
163 |
+ fi |
164 |
+ fi |
165 |
+} |