summaryrefslogtreecommitdiffstats
path: root/build
blob: d7adfbc82a1e5001e250be7a047d4644e62fb921 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build: source
	oh-autoconfigure
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	rm -f "dest/usr/lib/$(OPK_HOST_ARCH)/libip4tc.la"
	rm -f "dest/usr/lib/$(OPK_HOST_ARCH)/libip6tc.la"
	rm -f "dest/usr/lib/$(OPK_HOST_ARCH)/libiptc.la"
	rm -f "dest/usr/lib/$(OPK_HOST_ARCH)/libxtables.la"
	install -d -m 0755 dest/etc/init.d
	install -p -m 0755 ../iptables.pkg/iptables.init \
		dest/etc/init.d/iptables
	oh-fixperms
	oh-strip
	oh-installfiles