]> pilppa.org Git - familiar-h63xx-build.git/blob - org.handhelds.familiar/packages/ebtables/ebtables-2.0.6/installnonroot.patch
OE tree imported from monotone branch org.openembedded.oz354fam083 at revision 8b12e3...
[familiar-h63xx-build.git] / org.handhelds.familiar / packages / ebtables / ebtables-2.0.6 / installnonroot.patch
1
2 #
3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
4 #
5
6 --- ebtables-v2.0.6/Makefile~installnonroot     2003-11-02 12:22:56.000000000 -0600
7 +++ ebtables-v2.0.6/Makefile    2004-06-03 13:34:17.000000000 -0500
8 @@ -7,6 +7,7 @@
9  MANDIR?=/usr/local/man
10  CFLAGS:=-Wall -Wunused
11  CC:=gcc
12 +INSTALLOWN=$(if $(filter 0,$(shell id -u)),-o root -g root)
13  
14  ifeq ($(shell uname -m),sparc64)
15  CFLAGS+=-DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
16 @@ -46,15 +47,15 @@
17  
18  $(MANDIR)/man8/ebtables.8: ebtables.8
19         mkdir -p $(@D)
20 -       install -m 0644 -o root -g root $< $@
21 +       install -m 0644 $(INSTALLOWN) $< $@
22  
23  $(ETHERTYPESFILE): ethertypes
24         mkdir -p $(@D)
25 -       install -m 0644 -o root -g root $< $@
26 +       install -m 0644 $(INSTALLOWN) $< $@
27  
28  .PHONY: exec
29  exec: ebtables
30 -       install -m 0755 -o root -g root $< $(BINFILE)
31 +       install -m 0755 $(INSTALLOWN) $< $(BINFILE)
32  
33  .PHONY: install
34  install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
35 @@ -70,16 +71,16 @@
36  .PHONY: release
37  release:
38         mkdir -p include/linux/netfilter_bridge
39 -       install -m 0644 -o root -g root \
40 +       install -m 0644 $(INSTALLOWN) \
41                 $(KERNEL_INCLUDES)/linux/netfilter_bridge.h include/linux/
42  # To keep possible compile error complaints about undefined ETH_P_8021Q
43  # off my back
44 -       install -m 0644 -o root -g root \
45 +       install -m 0644 $(INSTALLOWN) \
46                 $(KERNEL_INCLUDES)/linux/if_ether.h include/linux/
47 -       install -m 0644 -o root -g root \
48 +       install -m 0644 $(INSTALLOWN) \
49                 $(KERNEL_INCLUDES)/linux/netfilter_bridge/*.h \
50                 include/linux/netfilter_bridge/
51 -       install -m 0644 -o root -g root \
52 +       install -m 0644 $(INSTALLOWN) \
53                 include/ebtables.h include/linux/netfilter_bridge/
54         make clean
55         touch *