]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blob - pkgs/ebtables/patches/ebtables-2.0.8-norootinst.patch
Remove legacy build system.
[people/ms/ipfire-3.x.git] / pkgs / ebtables / patches / ebtables-2.0.8-norootinst.patch
1 diff -up ebtables-v2.0.8-2/Makefile.orig ebtables-v2.0.8-2/Makefile
2 --- ebtables-v2.0.8-2/Makefile.orig 2007-09-21 13:27:20.000000000 -0400
3 +++ ebtables-v2.0.8-2/Makefile 2007-10-28 15:09:01.000000000 -0400
4 @@ -154,28 +154,28 @@ tmp3:=$(shell printf $(PIPE) | sed 's/\/
5 .PHONY: scripts
6 scripts: ebtables-save ebtables.sysv ebtables-config
7 cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
8 - install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
9 + install -m 0755 ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
10 cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_
11 - install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables
12 + install -m 0755 ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables
13 cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
14 - install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config
15 + install -m 0600 ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config
16 rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
17
18 $(MANDIR)/man8/ebtables.8: ebtables.8
19 mkdir -p $(DESTDIR)$(@D)
20 sed 's/$$(VERSION)/$(PROGVERSION)/' ebtables.8 | sed 's/$$(DATE)/$(PROGDATE)/' > ebtables.8_
21 - install -m 0644 -o root -g root ebtables.8_ $(DESTDIR)$@
22 + install -m 0644 ebtables.8_ $(DESTDIR)$@
23 rm -f ebtables.8_
24
25 $(ETHERTYPESFILE): ethertypes
26 mkdir -p $(DESTDIR)$(@D)
27 - install -m 0644 -o root -g root $< $(DESTDIR)$@
28 + install -m 0644 $< $(DESTDIR)$@
29
30 .PHONY: exec
31 exec: ebtables ebtables-restore
32 mkdir -p $(DESTDIR)$(BINDIR)
33 - install -m 0755 -o root -g root $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
34 - install -m 0755 -o root -g root ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
35 + install -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
36 + install -m 0755 ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
37
38 .PHONY: install
39 install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec scripts
40 @@ -199,18 +199,18 @@ release:
41 rm -f extensions/ebt_inat.c
42 rm -rf $(CVSDIRS)
43 mkdir -p include/linux/netfilter_bridge
44 - install -m 0644 -o root -g root \
45 + install -m 0644 \
46 $(KERNEL_INCLUDES)/linux/netfilter_bridge.h include/linux/
47 # To keep possible compile error complaints about undefined ETH_P_8021Q
48 # off my back
49 - install -m 0644 -o root -g root \
50 + install -m 0644 \
51 $(KERNEL_INCLUDES)/linux/if_ether.h include/linux/
52 - install -m 0644 -o root -g root \
53 + install -m 0644 \
54 $(KERNEL_INCLUDES)/linux/types.h include/linux/
55 - install -m 0644 -o root -g root \
56 + install -m 0644 \
57 $(KERNEL_INCLUDES)/linux/netfilter_bridge/*.h \
58 include/linux/netfilter_bridge/
59 - install -m 0644 -o root -g root \
60 + install -m 0644 \
61 include/ebtables.h include/linux/netfilter_bridge/
62 make clean
63 touch *