mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
net-firewall/nftables: version bump to 0.6
Fixes bug #584898 and updates the nftables-0.5-pdf-doc.patch to match upstream submission. Gentoo-bug: 584898 Package-Manager: portage-2.3.0_rc1
This commit is contained in:
committed by
Göktürk Yüksek
parent
60608eb3d5
commit
4bb40c4276
@@ -1 +1,2 @@
|
||||
DIST nftables-0.5.tar.gz 216740 SHA256 b48991f4e9e73b689bc254fa06b3ff3c1f937241d333291cb2ae72c0cd2398b6 SHA512 5d804ac9bb340446e52e5b0e86b726216ecc0d1eb42738cf133ba1acc5b442f720f5644005e02b9e3e8fae4e2bdc64d32560d6c6b1b26fe15bde24d62db51679 WHIRLPOOL 348d511c7ee530e6fb04b9828babad45407e4b60c443aaa8902aa9535705ff54cb78cd5e5c8ba970b57b97406b00718e94ab8a346fceaa82803bdaad84d30285
|
||||
DIST nftables-0.6.tar.gz 252523 SHA256 85dd7fa4e741c0be02efddbc57b5d300e1147f09ec6f81d0399110f96dc958f0 SHA512 17f3b94687865e077dc082cf61b29ab2854fd1ffe18212a8d424f2876aef8db9780dd4d06dca8e6d093498151d47bab73e40e1f54062a83a23a3cbe75f27e921 WHIRLPOOL d15eaf81426d73bea28752f96727d291120120fb2aaa994d421d900974eb45062957435e077664fb916780f636ed9b61889dbec8b627d5d309512bae96f02874
|
||||
|
||||
@@ -4,22 +4,22 @@ generation.
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -27,10 +27,16 @@
|
||||
AC_CONFIG_HEADER([config.h])
|
||||
|
||||
AC_DEFINE([_GNU_SOURCE], [], [Enable various GNU extensions])
|
||||
AC_DEFINE([_STDC_FORMAT_MACROS], [], [printf-style format macros])
|
||||
|
||||
+AC_ARG_ENABLE([pdf-doc],
|
||||
+ AS_HELP_STRING([--disable-pdf-doc], [Disable PDF documentation]),
|
||||
+ AS_IF([test "x$enable_pdf_doc" = "xno"], [enable_pdf_doc=no],
|
||||
+ [enable_pdf_doc=yes]), [enable_pdf_doc=yes])
|
||||
+AM_CONDITIONAL([BUILD_PDF], [test "x$enable_pdf_doc" == "xyes" ])
|
||||
+
|
||||
AC_ARG_ENABLE([debug],
|
||||
AS_HELP_STRING([--enable-debug], [Disable debugging]),
|
||||
AS_IF([test "x$enable_debug" = "xno"], [with_debug=no], [with_debug=yes]),
|
||||
[with_debug=yes])
|
||||
AC_SUBST(with_debug)
|
||||
AM_CONDITIONAL([BUILD_DEBUG], [test "x$with_debug" != xno])
|
||||
|
||||
+AC_ARG_ENABLE([pdf-doc],
|
||||
+ AS_HELP_STRING([--enable-pdf-doc], [Enable PDF documentation]),
|
||||
+ AS_IF([test "x$enable_pdf_doc" = "xno"], [enable_pdf_doc=no],
|
||||
+ [enable_pdf_doc=yes]), [enable_pdf_doc=no])
|
||||
+AM_CONDITIONAL([BUILD_PDF], [test "x$enable_pdf_doc" == "xyes" ])
|
||||
+
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_MKDIR_P
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_SED
|
||||
@@ -61,15 +67,15 @@
|
||||
)]
|
||||
)
|
||||
|
||||
68
net-firewall/nftables/nftables-0.6.ebuild
Normal file
68
net-firewall/nftables/nftables-0.6.ebuild
Normal file
@@ -0,0 +1,68 @@
|
||||
# Copyright 1999-2016 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
EAPI=6
|
||||
|
||||
inherit autotools linux-info systemd
|
||||
|
||||
DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
|
||||
HOMEPAGE="http://netfilter.org/projects/nftables/"
|
||||
SRC_URI="http://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~arm ~x86"
|
||||
IUSE="debug doc gmp +readline"
|
||||
|
||||
RDEPEND=">=net-libs/libmnl-1.0.3
|
||||
>=net-libs/libnftnl-1.0.6
|
||||
gmp? ( dev-libs/gmp:0= )
|
||||
readline? ( sys-libs/readline:0= )"
|
||||
DEPEND="${RDEPEND}
|
||||
>=app-text/docbook2X-0.8.8-r4
|
||||
doc? ( >=app-text/dblatex-0.3.7 )
|
||||
sys-devel/bison
|
||||
sys-devel/flex
|
||||
virtual/pkgconfig"
|
||||
|
||||
S="${WORKDIR}/v${PV}"
|
||||
|
||||
PATCHES=( "${FILESDIR}/${PN}-0.5-pdf-doc.patch" )
|
||||
|
||||
pkg_setup() {
|
||||
if kernel_is ge 3 13; then
|
||||
CONFIG_CHECK="~NF_TABLES"
|
||||
linux-info_pkg_setup
|
||||
else
|
||||
eerror "This package requires kernel version 3.13 or newer to work properly."
|
||||
fi
|
||||
}
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
eautoreconf
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
econf \
|
||||
--sbindir="${EPREFIX}"/sbin \
|
||||
$(use_enable doc pdf-doc) \
|
||||
$(use_enable debug) \
|
||||
$(use_with readline cli) \
|
||||
$(use_with !gmp mini_gmp)
|
||||
}
|
||||
|
||||
src_install() {
|
||||
default
|
||||
|
||||
dodir /usr/libexec/${PN}
|
||||
insinto /usr/libexec/${PN}
|
||||
doins /usr/libexec/${PN}/${PN}.sh
|
||||
|
||||
newconfd "${FILESDIR}"/${PN}.confd ${PN}
|
||||
newinitd "${FILESDIR}"/${PN}.init-r2 ${PN}
|
||||
keepdir /var/lib/nftables
|
||||
|
||||
systemd_dounit "${FILESDIR}"/systemd/${PN}{,-{re,}store}.service
|
||||
}
|
||||
Reference in New Issue
Block a user