3 # Patch managed by http://www.mn-logistik.de/unsupported/pxa250/patcher
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
10 CFLAGS:=-Wall -Wunused
12 +INSTALLOWN=$(if $(filter 0,$(shell id -u)),-o root -g root)
14 ifeq ($(shell uname -m),sparc64)
15 CFLAGS+=-DEBT_MIN_ALIGN=8 -DKERNEL_64_USERSPACE_32
18 $(MANDIR)/man8/ebtables.8: ebtables.8
20 - install -m 0644 -o root -g root $< $@
21 + install -m 0644 $(INSTALLOWN) $< $@
23 $(ETHERTYPESFILE): ethertypes
25 - install -m 0644 -o root -g root $< $@
26 + install -m 0644 $(INSTALLOWN) $< $@
30 - install -m 0755 -o root -g root $< $(BINFILE)
31 + install -m 0755 $(INSTALLOWN) $< $(BINFILE)
34 install: $(MANDIR)/man8/ebtables.8 $(ETHERTYPESFILE) exec
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
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/