Diff nftables-0.9.4-r2 with a nftables-0.9.6

/usr/portage/net-firewall/nftables/nftables-0.9.6.ebuild 2020-06-28 00:09:00.000000000 +0300
3 3

  
4 4
EAPI=7
5 5

  
6
PYTHON_COMPAT=( python3_{6,7,8} )
6
PYTHON_COMPAT=( python3_{6,7,8,9} )
7 7

  
8 8
inherit autotools linux-info python-r1 systemd
9 9

  
10 10
DESCRIPTION="Linux kernel (3.13+) firewall, NAT and packet mangling tools"
11 11
HOMEPAGE="https://netfilter.org/projects/nftables/"
12
#SRC_URI="https://git.netfilter.org/nftables/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
13
SRC_URI="https://netfilter.org/projects/nftables/files/${P}.tar.bz2
14
	!doc? ( https://dev.gentoo.org/~chutzpah/dist/nftables/${P}-manpages.tar.xz )"
12
SRC_URI="https://netfilter.org/projects/nftables/files/${P}.tar.bz2"
15 13

  
16 14
LICENSE="GPL-2"
17 15
SLOT="0"
......
19 17
IUSE="debug doc +gmp json +modern-kernel python +readline static-libs xtables"
20 18

  
21 19
RDEPEND="
22
	>=net-libs/libmnl-1.0.3:0=
20
	>=net-libs/libmnl-1.0.4:0=
23 21
	gmp? ( dev-libs/gmp:0= )
24 22
	json? ( dev-libs/jansson )
25 23
	python? ( ${PYTHON_DEPS} )
26 24
	readline? ( sys-libs/readline:0= )
27
	>=net-libs/libnftnl-1.1.6:0=
25
	>=net-libs/libnftnl-1.1.7:0=
28 26
	xtables? ( >=net-firewall/iptables-1.6.1 )
29 27
"
30 28

  
......
38 36
	virtual/pkgconfig
39 37
"
40 38

  
41
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
42

  
43
#S="${WORKDIR}/v${PV}"
44

  
45
PATCHES=(
46
	# this has been sent upstream, see
47
	# https://marc.info/?l=netfilter-devel&m=158629102300853
48
	"${FILESDIR}/nftables-0.9.4-Allow-building-from-tarballs-without-yacc-lex.patch"
49
)
39
REQUIRED_USE="
40
	python? ( ${PYTHON_REQUIRED_USE} )
41
"
50 42

  
51 43
python_make() {
52 44
	emake \
......
54 46
		abs_builddir="${S}" \
55 47
		DESTDIR="${D}" \
56 48
		PYTHON_BIN="${PYTHON}" \
57
		${@}
49
		"${@}"
58 50
}
59 51

  
60 52
pkg_setup() {
......
100 92
src_compile() {
101 93
	default
102 94

  
103
	if use python ; then
95
	if use python; then
104 96
		python_foreach_impl python_make
105 97
	fi
106 98
}
......
109 101
	default
110 102

  
111 103
	if ! use doc; then
112
		pushd "${WORKDIR}/${P}-manpages" >/dev/null || die
104
		pushd doc >/dev/null || die
113 105
		doman *.?
114 106
		popd >/dev/null || die
115 107
	fi
......
148 140
		ewarn "    'chmod 600 \"${save_file}\"'"
149 141
	fi
150 142

  
151
	elog "If you wish to enable the firewall rules on boot (on systemd) you"
152
	elog "will need to enable the nftables-restore service."
153
	elog "    'systemctl enable ${PN}-restore.service'"
154
	elog
155
	elog "If you are creating firewall rules before the next system restart "
156
	elog "the nftables-restore service must be manually started in order to "
157
	elog "save those rules on shutdown."
143
	if has_version 'sys-apps/systemd'; then
144
		elog "If you wish to enable the firewall rules on boot (on systemd) you"
145
		elog "will need to enable the nftables-restore service."
146
		elog "    'systemctl enable ${PN}-restore.service'"
147
		elog
148
		elog "If you are creating firewall rules before the next system restart"
149
		elog "the nftables-restore service must be manually started in order to"
150
		elog "save those rules on shutdown."
151
	fi
152
	if has_version 'sys-apps/openrc'; then
153
		elog "If you wish to enable the firewall rules on boot (on openrc) you"
154
		elog "will need to enable the nftables service."
155
		elog "    'rc-update add ${PN} default'"
156
		elog
157
		elog "If you are creating or updating the firewall rules and wish to save"
158
		elog "them to be loaded on the next restart, use the \"save\" functionality"
159
		elog "in the init script."
160
		elog "    'rc-service ${PN} save'"
161
	fi
158 162
}
Thank you!