1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# -*-makefile-*-
#
# Copyright (C) 2016 by Andreas Geisenhainer <andreas.geisenhainer@atsonline.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_NFTABLES) += nftables
#
# Paths and names
#
NFTABLES_VERSION := 1.0.4
NFTABLES_MD5 := dcc3c263e00903037cf86d74477a9519
NFTABLES := nftables-$(NFTABLES_VERSION)
NFTABLES_SUFFIX := tar.bz2
NFTABLES_URL := http://ftp.netfilter.org/pub/nftables/$(NFTABLES).$(NFTABLES_SUFFIX)
NFTABLES_SOURCE := $(SRCDIR)/$(NFTABLES).$(NFTABLES_SUFFIX)
NFTABLES_DIR := $(BUILDDIR)/$(NFTABLES)
NFTABLES_LICENSE := GPL-2.0-only
NFTABLES_LICENSE_FILES := file://COPYING;md5=d1a78fdd879a263a5e0b42d1fc565e79
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
#
# autoconf
#
NFTABLES_CONF_TOOL := autoconf
NFTABLES_CONF_OPT := \
$(CROSS_AUTOCONF_USR) \
--$(call ptx/endis, PTXCONF_NFTABLES_DEBUG)-debug \
--disable-man-doc \
--disable-python \
--$(call ptx/wwo, PTXCONF_NFTABLES_MGMP)-mini-gmp \
--without-cli \
--without-xtables \
--without-json
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/nftables.targetinstall:
@$(call targetinfo)
@$(call install_init, nftables)
@$(call install_fixup, nftables,PRIORITY,optional)
@$(call install_fixup, nftables,SECTION,base)
@$(call install_fixup, nftables,AUTHOR,"Andreas Geisenhainer <andreas.geisenhainer@atsonline.de")
@$(call install_fixup, nftables,DESCRIPTION,missing)
@$(call install_copy, nftables, 0, 0, 0755, -, /usr/sbin/nft)
@$(call install_alternative, nftables, 0, 0, 0755, /etc/nftables.conf)
@$(call install_lib, nftables, 0, 0, 0644, libnftables)
ifdef PTXCONF_NFTABLES_STARTSCRIPT
@$(call install_alternative, nftables, 0, 0, 0755, /etc/init.d/nftables)
ifneq ($(call remove_quotes,$(PTXCONF_NFTABLES_BBINIT_LINK)),)
@$(call install_link, nftables, ../init.d/nftables, \
/etc/rc.d/$(PTXCONF_NFTABLES_BBINIT_LINK))
endif
endif
ifdef PTXCONF_NFTABLES_SYSTEMD_UNIT
@$(call install_alternative, nftables, 0, 0, 0644, /usr/lib/systemd/system/nftables.service)
@$(call install_link, nftables, ../nftables.service, \
/usr/lib/systemd/system/multi-user.target.wants/nftables.service)
endif
@$(call install_finish, nftables)
@$(call touch)
# vim: syntax=make
|