blob: bcd9bed23832b1f09f9251234d73997eec69248a [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001diff --git a/Makefile b/Makefile
2index c1106a4..7ea6b7a 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -157,31 +157,31 @@ tmp3:=$(shell printf $(PIPE) | sed 's/\//\\\//g')
6 scripts: ebtables-save ebtables.sysv ebtables-config
7 cat ebtables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > ebtables-save_
8 mkdir -p $(DESTDIR)$(BINDIR)
9- install -m 0755 -o root -g root ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
10+ install -m 0755 ebtables-save_ $(DESTDIR)$(BINDIR)/ebtables-save
11 cat ebtables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables.sysv_
12 if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(INITDIR); fi
13- if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables; fi
14+ if test -d $(DESTDIR)$(INITDIR); then install -m 0755 ebtables.sysv_ $(DESTDIR)$(INITDIR)/ebtables; fi
15 cat ebtables-config | sed 's/__SYSCONFIG__/$(tmp2)/g' > ebtables-config_
16 if [ "$(DESTDIR)" != "" ]; then mkdir -p $(DESTDIR)$(SYSCONFIGDIR); fi
17- if test -d $(DESTDIR)$(SYSCONFIGDIR); then install -m 0600 -o root -g root ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config; fi
18+ if test -d $(DESTDIR)$(SYSCONFIGDIR); then install -m 0600 ebtables-config_ $(DESTDIR)$(SYSCONFIGDIR)/ebtables-config; fi
19 rm -f ebtables-save_ ebtables.sysv_ ebtables-config_
20
21 tmp4:=$(shell printf $(LOCKFILE) | sed 's/\//\\\//g')
22 $(MANDIR)/man8/ebtables.8: ebtables.8
23 mkdir -p $(DESTDIR)$(@D)
24 sed -e 's/$$(VERSION)/$(PROGVERSION)/' -e 's/$$(DATE)/$(PROGDATE)/' -e 's/$$(LOCKFILE)/$(tmp4)/' ebtables.8 > ebtables.8_
25- install -m 0644 -o root -g root ebtables.8_ $(DESTDIR)$@
26+ install -m 0644 ebtables.8_ $(DESTDIR)$@
27 rm -f ebtables.8_
28
29 $(DESTDIR)$(ETHERTYPESFILE): ethertypes
30 mkdir -p $(@D)
31- install -m 0644 -o root -g root $< $@
32+ install -m 0644 $< $@
33
34 .PHONY: exec
35 exec: ebtables ebtables-restore
36 mkdir -p $(DESTDIR)$(BINDIR)
37- install -m 0755 -o root -g root $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
38- install -m 0755 -o root -g root ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
39+ install -m 0755 $(PROGNAME) $(DESTDIR)$(BINDIR)/$(PROGNAME)
40+ install -m 0755 ebtables-restore $(DESTDIR)$(BINDIR)/ebtables-restore
41
42 .PHONY: install
43 install: $(MANDIR)/man8/ebtables.8 $(DESTDIR)$(ETHERTYPESFILE) exec scripts