1 |
commit: 6202dcf8e261f73a44bb94ba103555c3407bcbec |
2 |
Author: Ilya Tumaykin <itumaykin <AT> gmail <DOT> com> |
3 |
AuthorDate: Thu Dec 24 06:16:40 2015 +0000 |
4 |
Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Dec 24 08:31:23 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6202dcf8 |
7 |
|
8 |
net-firewall/fwknop: version bump to 2.6.8 |
9 |
|
10 |
Package-Manager: portage-2.2.24 |
11 |
|
12 |
net-firewall/fwknop/Manifest | 1 + |
13 |
net-firewall/fwknop/fwknop-2.6.8.ebuild | 131 ++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 132 insertions(+) |
15 |
|
16 |
diff --git a/net-firewall/fwknop/Manifest b/net-firewall/fwknop/Manifest |
17 |
index 69bd5b5..d770956 100644 |
18 |
--- a/net-firewall/fwknop/Manifest |
19 |
+++ b/net-firewall/fwknop/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST fwknop-2.6.7.tar.gz 2849006 SHA256 e96c13f725a4c3829c842743b14aedf591d30570df5c06556862a900b64def86 SHA512 8a8c5e76740c495342fd914309de564576ce5c7fda90dc0f0322782ace5f28ccbb4bcef4c0a3353a564b13ef7298a5cd75dcd4d26986b2fb5ec000b641fbf848 WHIRLPOOL 6de45c31cc39b7b44d0531dc19bd2727bc721cf156a04d830c295573fe40d95296c1591e3bd5ae2b597bea9a6015744061351655f1cf04a5d6a5cae6678d1126 |
22 |
+DIST fwknop-2.6.8.tar.gz 2860231 SHA256 96e6ba8b7e29aaf65bd06eaa823896ab66169b2aaced8123375378ff4b76a2d6 SHA512 aed4081652a95f3276468d58476d093a6dd76abbe5b4047930fc32a0d46f3dc341a3b0d9b7c81dc6c466f468f06c94607f2dadc89867127d0b4878175e32b6d6 WHIRLPOOL d394b43c5eb96a4172ec005dc8ec13985e8b70bd342eabfdd95d0fd7a6425ddc294d24900f6b85b4ce7c595cf45622b28ee08583fb222c7d5d9f74f87a10c1cc |
23 |
|
24 |
diff --git a/net-firewall/fwknop/fwknop-2.6.8.ebuild b/net-firewall/fwknop/fwknop-2.6.8.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..582a81b |
27 |
--- /dev/null |
28 |
+++ b/net-firewall/fwknop/fwknop-2.6.8.ebuild |
29 |
@@ -0,0 +1,131 @@ |
30 |
+# Copyright 1999-2015 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+ |
36 |
+AUTOTOOLS_AUTORECONF=1 |
37 |
+AUTOTOOLS_IN_SOURCE_BUILD=1 |
38 |
+DISABLE_AUTOFORMATTING=1 |
39 |
+ |
40 |
+DISTUTILS_OPTIONAL=1 |
41 |
+# Python extension supports only Python2 |
42 |
+# See https://github.com/mrash/fwknop/issues/167 |
43 |
+PYTHON_COMPAT=( python2_7 ) |
44 |
+ |
45 |
+inherit autotools-utils distutils-r1 linux-info readme.gentoo systemd |
46 |
+ |
47 |
+DESCRIPTION="Single Packet Authorization and Port Knocking application" |
48 |
+HOMEPAGE="http://www.cipherdyne.org/fwknop/ https://github.com/mrash/fwknop" |
49 |
+SRC_URI="https://github.com/mrash/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
50 |
+ |
51 |
+LICENSE="GPL-2" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+IUSE="client extras firewalld gdbm gpg iptables python server udp-server" |
55 |
+ |
56 |
+DEPEND=" |
57 |
+ client? ( net-misc/wget[ssl] ) |
58 |
+ firewalld? ( net-firewall/firewalld[${PYTHON_USEDEP}] ) |
59 |
+ gdbm? ( sys-libs/gdbm ) |
60 |
+ gpg? ( |
61 |
+ app-crypt/gpgme |
62 |
+ dev-libs/libassuan |
63 |
+ dev-libs/libgpg-error |
64 |
+ ) |
65 |
+ iptables? ( net-firewall/iptables ) |
66 |
+ python? ( ${PYTHON_DEPS} ) |
67 |
+ server? ( !udp-server? ( net-libs/libpcap ) ) |
68 |
+" |
69 |
+RDEPEND="${DEPEND}" |
70 |
+ |
71 |
+REQUIRED_USE=" |
72 |
+ python? ( ${PYTHON_REQUIRED_USE} ) |
73 |
+ firewalld? ( server ) |
74 |
+ iptables? ( server ) |
75 |
+ server? ( ^^ ( firewalld iptables ) ) |
76 |
+ udp-server? ( server ) |
77 |
+" |
78 |
+ |
79 |
+DOCS=( ChangeLog README.md ) |
80 |
+ |
81 |
+DOC_CONTENTS=" |
82 |
+Example configuration files were installed in /etc/fwknopd directory. |
83 |
+Please edit them to fit your needs and then remove the .example suffix. |
84 |
+ |
85 |
+fwknopd supports several backends: firewalld, iptables, ipfw, pf, ipf. |
86 |
+You can set the desired backend via FIREWALL_EXE option in fwknopd.conf |
87 |
+instead of the default one chosen at compile time. |
88 |
+" |
89 |
+ |
90 |
+pkg_pretend() { |
91 |
+ if use server; then |
92 |
+ if ! linux_config_exists || ! linux_chkconfig_present NETFILTER_XT_MATCH_COMMENT; then |
93 |
+ ewarn "fwknopd uses the iptables 'comment' match to expire SPA rules," |
94 |
+ ewarn "which is a major security feature and is enabled by default." |
95 |
+ ewarn "Please either enable NETFILTER_XT_MATCH_COMMENT support in your" |
96 |
+ ewarn "kernel, or set the appropriate ENABLE_{FIREWD,IPT}_COMMENT_CHECK" |
97 |
+ ewarn "to 'N' in your fwknopd.conf file." |
98 |
+ fi |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+src_prepare() { |
103 |
+ # Install example configs with .example suffix |
104 |
+ if use server; then |
105 |
+ sed -i -e 's/conf;/conf.example;/g' "${S}"/Makefile.am || die |
106 |
+ fi |
107 |
+ |
108 |
+ autotools-utils_src_prepare |
109 |
+} |
110 |
+ |
111 |
+src_configure() { |
112 |
+ local myeconfargs=( |
113 |
+ --localstatedir=/run |
114 |
+ --enable-digest-cache |
115 |
+ $(use_enable client) |
116 |
+ $(use_enable !gdbm file-cache) |
117 |
+ $(use_enable server) |
118 |
+ $(use_enable udp-server) |
119 |
+ $(use_with gpg gpgme) |
120 |
+ ) |
121 |
+ use firewalld && myeconfargs+=(--with-firewalld=/usr/sbin/firewalld) |
122 |
+ use iptables && myeconfargs+=(--with-iptables=/sbin/iptables) |
123 |
+ |
124 |
+ autotools-utils_src_configure |
125 |
+} |
126 |
+ |
127 |
+src_compile() { |
128 |
+ autotools-utils_src_compile |
129 |
+ |
130 |
+ if use python; then |
131 |
+ cd "${S}"/python || die |
132 |
+ distutils-r1_src_compile |
133 |
+ fi |
134 |
+} |
135 |
+ |
136 |
+src_install() { |
137 |
+ autotools-utils_src_install |
138 |
+ prune_libtool_files --modules |
139 |
+ |
140 |
+ if use server; then |
141 |
+ newinitd "${FILESDIR}/fwknopd.init" fwknopd |
142 |
+ newconfd "${FILESDIR}/fwknopd.confd" fwknopd |
143 |
+ systemd_dounit extras/systemd/fwknopd.service |
144 |
+ systemd_newtmpfilesd extras/systemd/fwknopd.tmpfiles.conf fwknopd.conf |
145 |
+ readme.gentoo_create_doc |
146 |
+ fi |
147 |
+ |
148 |
+ use extras && dodoc "${S}/extras/apparmor/usr.sbin.fwknopd" |
149 |
+ |
150 |
+ if use python; then |
151 |
+ # Unset DOCS since distutils-r1.eclass interferes |
152 |
+ local DOCS=() |
153 |
+ cd "${S}"/python || die |
154 |
+ distutils-r1_src_install |
155 |
+ fi |
156 |
+} |
157 |
+ |
158 |
+pkg_postinst() { |
159 |
+ use server && readme.gentoo_print_elog |
160 |
+} |