Blame SOURCES/ebtables-2.0.10-norootinst.patch

8c7451
diff -up ebtables-v2.0.10-1/Makefile.orig ebtables-v2.0.10-1/Makefile
8c7451
--- ebtables-v2.0.10-1/Makefile.orig	2011-07-10 05:28:52.000000000 -0400
8c7451
+++ ebtables-v2.0.10-1/Makefile	2011-07-11 10:45:00.323426448 -0400
8c7451
@@ -157,31 +157,31 @@ tmp3:=$(shell printf $(PIPE) | sed 's/\/
8c7451
 scripts: ebtables-save ebtables.sysv ebtables-config
8c7451
 	cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
8c7451
 	mkdir -p $(DESTDIR)$(BINDIR)
8c7451
-	install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
8c7451
+	install -m 0755 ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
8c7451
 	cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_
8c7451
 	if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(INITDIR); fi
8c7451
-	if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables; fi
8c7451
+	if test -d $(DESTDIR)$(INITDIR); then install -m 0755 ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables; fi
8c7451
 	cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
8c7451
 	if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(SYSCONFIGDIR); fi
8c7451
-	if test -d $(DESTDIR)$(SYSCONFIGDIR); then install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config; fi
8c7451
+	if test -d $(DESTDIR)$(SYSCONFIGDIR); then install -m 0600 ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config; fi
8c7451
 	rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
8c7451
 
8c7451
 tmp4:=$(shell printf $(LOCKFILE) | sed 's/\//\\\//g')
8c7451
 $(MANDIR)/man8/ebtables.8: ebtables.8
8c7451
 	mkdir -p $(DESTDIR)$(@D)
8c7451
 	sed -e 's/$$(VERSION)/$(PROGVERSION)/' -e 's/$$(DATE)/$(PROGDATE)/' -e 's/$$(LOCKFILE)/$(tmp4)/' ebtables.8 > ebtables.8_
8c7451
-	install -m 0644 -o root -g root ebtables.8_ $(DESTDIR)$@
8c7451
+	install -m 0644 ebtables.8_ $(DESTDIR)$@
8c7451
 	rm -f ebtables.8_
8c7451
 
8c7451
 $(DESTDIR)$(ETHERTYPESFILE): ethertypes
8c7451
 	mkdir -p $(@D)
8c7451
-	install -m 0644 -o root -g root $< $@
8c7451
+	install -m 0644 $< $@
8c7451
 
8c7451
 .PHONY: exec
8c7451
 exec: ebtables ebtables-restore
8c7451
 	mkdir -p $(DESTDIR)$(BINDIR)
8c7451
-	install -m 0755 -o root -g root $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
8c7451
-	install -m 0755 -o root -g root ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
8c7451
+	install -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
8c7451
+	install -m 0755 ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
8c7451
 
8c7451
 .PHONY: install
8c7451
 install: $(MANDIR)/man8/ebtables.8 $(DESTDIR)$(ETHERTYPESFILE) exec scripts
8c7451
@@ -205,18 +205,18 @@ release:
8c7451
 	rm -f extensions/ebt_inat.c
8c7451
 	rm -rf $(CVSDIRS)
8c7451
 	mkdir -p include/linux/netfilter_bridge
8c7451
-	install -m 0644 -o root -g root \
8c7451
+	install -m 0644 \
8c7451
 		$(KERNEL_INCLUDES)/linux/netfilter_bridge.h include/linux/
8c7451
 # To keep possible compile error complaints about undefined ETH_P_8021Q
8c7451
 # off my back
8c7451
-	install -m 0644 -o root -g root \
8c7451
+	install -m 0644 \
8c7451
 		$(KERNEL_INCLUDES)/linux/if_ether.h include/linux/
8c7451
-	install -m 0644 -o root -g root \
8c7451
+	install -m 0644 \
8c7451
 		$(KERNEL_INCLUDES)/linux/types.h include/linux/
8c7451
-	install -m 0644 -o root -g root \
8c7451
+	install -m 0644 \
8c7451
 		$(KERNEL_INCLUDES)/linux/netfilter_bridge/*.h \
8c7451
 		include/linux/netfilter_bridge/
8c7451
-	install -m 0644 -o root -g root \
8c7451
+	install -m 0644 \
8c7451
 		include/ebtables.h include/linux/netfilter_bridge/
8c7451
 	make clean
8c7451
 	touch *