forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iptables.yaml
180 lines (162 loc) · 5.06 KB
/
iptables.yaml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
package:
name: iptables
version: 1.8.11
epoch: 0
description: Linux kernel firewall, NAT and packet mangling tools
copyright:
- license: GPL-2.0-or-later
environment:
contents:
packages:
- autoconf
- automake
- bash
- bison
- build-base
- busybox
- ca-certificates-bundle
- flex
- libcap-utils
- libmnl-dev
- libnftnl-dev
- libtool
- linux-headers
- openssf-compiler-options
- pkgconf-dev
pipeline:
- uses: git-checkout
with:
repository: https://git.netfilter.org/iptables
tag: v${{package.version}}
expected-commit: 0506bea1dcc8f12d94e7c32bf2fb04abb3fdd269
depth: "-1"
- runs: |
./autogen.sh
- runs: |
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
./configure \
--build="$CBUILD" \
--host="$CHOST" \
--prefix=/usr \
--mandir=/usr/share/man \
--sbindir=/sbin \
--sysconfdir=/etc \
--without-kernel \
--enable-devel \
--enable-libipq \
--enable-shared
# do not use rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
- uses: autoconf/make
- uses: autoconf/make-install
- runs: |
mkdir -p "${{targets.destdir}}"/usr/include/libiptc \
"${{targets.destdir}}"/usr/lib \
"${{targets.destdir}}"/var/lib/iptables \
"${{targets.destdir}}"/etc/iptables
install -m644 include/iptables.h include/ip6tables.h \
"${{targets.destdir}}"/usr/include/
install include/libiptc/*.h "${{targets.destdir}}"/usr/include/libiptc/
install -D -m644 iptables.confd "${{targets.destdir}}"/etc/conf.d/iptables
install -D -m644 ebtables.confd "${{targets.destdir}}"/etc/conf.d/ebtables
subpackages:
- name: iptables-xtables-privileged
description: iptables with cap_net_raw and cap_net_admin capabilities set for xtables
options:
no-provides: true
pipeline:
- runs: |
cp -r ${{targets.destdir}} ${{targets.contextdir}}
setcap cap_net_raw,cap_net_admin+eip ${{targets.contextdir}}/sbin/xtables-legacy-multi
setcap cap_net_raw,cap_net_admin+eip ${{targets.contextdir}}/sbin/xtables-nft-multi
- name: iptables-doc
description: iptables documentation
pipeline:
- uses: split/manpages
- name: iptables-dev
description: iptables development files
pipeline:
- uses: split/dev
test:
pipeline:
- uses: test/pkgconf
- name: ip6tables
pipeline:
- runs: |
mkdir -p ${{targets.subpkgdir}}
cd "${{targets.subpkgdir}}"
mkdir -p sbin \
var/lib/ip6tables \
usr/lib/xtables
mv "${{targets.destdir}}"/sbin/ip6* sbin/
mv "${{targets.destdir}}"/usr/lib/xtables/libip6* usr/lib/xtables/
test:
pipeline:
- runs: |
ip6tables --version
ip6tables --help
ip6tables-legacy --version
ip6tables-legacy --help
ip6tables-legacy-restore --version
ip6tables-legacy-restore --help
ip6tables-legacy-save --version
ip6tables-nft --version
ip6tables-nft --help
ip6tables-nft-restore --version
ip6tables-nft-restore --help
ip6tables-nft-save --version
ip6tables-restore --version
ip6tables-restore --help
ip6tables-restore-translate --version
ip6tables-save --version
ip6tables-translate --version
ip6tables-translate --help
update:
enabled: true
release-monitor:
identifier: 1394
test:
pipeline:
# AUTOGENERATED
- runs: |
arptables --version
arptables-nft --version
arptables-nft-restore --version
arptables-nft-save --version
arptables-restore --version
arptables-save --version
ebtables --version
ebtables-nft --version
ebtables-nft-restore version
ebtables-nft-save --version
ebtables-restore version
ebtables-save --version
ebtables-translate --version
iptables --version
iptables-legacy --version
iptables-legacy-restore --version
iptables-legacy-save --version
iptables-nft --version
iptables-nft-restore --version
iptables-nft-save --version
iptables-restore --version
iptables-restore-translate --version
iptables-save --version
iptables-translate --version
xtables-monitor --version
iptables-xml --version
arptables --help
arptables-nft --help
arptables-nft-restore --help
arptables-restore --help
ebtables-nft-restore help
ebtables-restore help
ebtables-translate --help
iptables --help
iptables-legacy --help
iptables-legacy-restore --help
iptables-nft --help
iptables-nft-restore --help
iptables-restore --help
iptables-translate --help