]> git.ipfire.org Git - thirdparty/nftables.git/commitdiff
nftables: drop hard coded install using root user owner and group
authorKevin Fenzi <kevin@scrye.com>
Mon, 13 Jan 2014 06:36:45 +0000 (06:36 +0000)
committerPatrick McHardy <kaber@trash.net>
Mon, 13 Jan 2014 06:36:45 +0000 (06:36 +0000)
Packaging systems build as a non priv user, so can't install as root. Users
installing from source can 'sudo make install' or run 'make install' as root

Signed-off-by: Kevin Fenzi <kevin@scrye.com>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Makefile.rules.in
doc/Makefile.in
files/Makefile.in

index a93a26bdf6178eea4e1080aeaa2eef4c67d39146..25988dd730a8485de6ce09aa24476068d37d04a4 100644 (file)
@@ -61,7 +61,7 @@ clean_targets         += $(1)-clean
 $(1)-install:
                        @echo -e "  INSTALL\t$1"
                        $(MKDIR_P) $$(DESTDIR)/$$($(1)-destdir)
-                       $(INSTALL) -m 755 -o root -g root \
+                       $(INSTALL) -m 755 -p \
                                $(SUBDIR)$(1) \
                                $$(DESTDIR)/$$($(1)-destdir)/$(1)
 install_targets                += $(1)-install
index 2c42d7e5a832de19b2f79fe1a20ee9be61eda08f..e0732adb76f69270d07136fe35302e6d045d7537 100644 (file)
@@ -10,11 +10,11 @@ install:    $(mandocs-y) $(pdfdocs-y)
                @echo -e "  INSTALL\tdoc"
                if test -n "$(mandocs-y)"; then \
                        $(MKDIR_P) $(DESTDIR)/${mandir}/man8 ;\
-                       $(INSTALL) -m 755 -o root -g root $(mandocs-y) \
+                       $(INSTALL) -m 755 -p $(mandocs-y) \
                                        $(DESTDIR)/${mandir}/man8/ ;\
                fi
                if test -n "$(pdfdocs-y)"; then \
                        $(MKDIR_P) $(DESTDIR)/${pdfdir} ;\
-                       $(INSTALL) -m 755 -o root -g root $(pdfdocs-y) \
+                       $(INSTALL) -m 755 -p $(pdfdocs-y) \
                                        $(DESTDIR)/${pdfdir}/ ;\
                fi
index cd67c37dd404819ada9eea01bfef34ad8b7966a9..c3643df2a0b91c7d788e11c2a5ba30c31f158a45 100644 (file)
@@ -1,4 +1,4 @@
 install:
        @echo -e "  INSTALL\tfiles"
        $(MKDIR_P) $(DESTDIR)/$(confdir)
-       $(INSTALL) -m 755 -o root -g root $(SUBDIR)nftables/* $(DESTDIR)/$(confdir)/
+       $(INSTALL) -m 755 -p $(SUBDIR)nftables/* $(DESTDIR)/$(confdir)/