diff options
author | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-18 08:39:27 +0000 |
---|---|---|
committer | Bart De Schuymer <bdschuym@pandora.be> | 2010-03-18 08:39:27 +0000 |
commit | 204a8f53e13d71cda7424923d54de6a10c48442c (patch) | |
tree | 4cca6b1ec218bb2ea297dad2efa97d3623403ffc /Makefile | |
parent | c69d23138d2d90672ae23735336abb3eb3657631 (diff) |
Don't use -o root -g root with install which makes unprivileged installs possible (chroot) (Jan Engelhardt)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -35,22 +35,22 @@ arptables: arptables-standalone.o arptables.o libarptc/libarptc.o $(EXT_OBJS) $(DESTDIR)$(MANDIR)/man8/arptables.8: arptables.8 mkdir -p $(@D) - install -m 0644 -o root -g root $< $@ + install -m 0644 $< $@ $(DESTDIR)$(BINDIR)/arptables: arptables mkdir -p $(DESTDIR)$(BINDIR) - install -m 0755 -o root -g root $< $@ + install -m 0755 $< $@ tmp1:=$(shell printf $(BINDIR) | sed 's/\//\\\//g') tmp2:=$(shell printf $(SYSCONFIGDIR) | sed 's/\//\\\//g') .PHONY: scripts scripts: arptables-save arptables-restore arptables.sysv cat arptables-save | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-save_ - install -m 0755 -o root -g root arptables-save_ $(DESTDIR)$(BINDIR)/arptables-save + install -m 0755 arptables-save_ $(DESTDIR)$(BINDIR)/arptables-save cat arptables-restore | sed 's/__EXEC_PATH__/$(tmp1)/g' > arptables-restore_ - install -m 0755 -o root -g root arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore + install -m 0755 arptables-restore_ $(DESTDIR)$(BINDIR)/arptables-restore cat arptables.sysv | sed 's/__EXEC_PATH__/$(tmp1)/g' | sed 's/__SYSCONFIG__/$(tmp2)/g' > arptables.sysv_ - if test -d $(DESTDIR)$(INITDIR); then install -m 0755 -o root -g root arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi + if test -d $(DESTDIR)$(INITDIR); then install -m 0755 arptables.sysv_ $(DESTDIR)$(INITDIR)/arptables; fi rm -f arptables-save_ arptables-restore_ arptables.sysv_ .PHONY: install |