Skip to contentSkip to conversation

nftables: Drop hard coded install using root user owner and group.

PATCH Applied Kevin Fenzi 2 participants 2 messages Jan 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 nftables: Drop hard coded install using root user owner and group.

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

---
 Makefile.rules.in | 2 +-
 doc/Makefile.in   | 4 ++--
 files/Makefile.in | 2 +-
 3 files changed, 4 insertions(+), 4 deletions(-)
Makefile.rules.in +1 -1
index a93a26b..4a5d413 100644
@@ -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 \
                                $(SUBDIR)$(1) \
                                $$(DESTDIR)/$$($(1)-destdir)/$(1)
 install_targets                += $(1)-install
doc/Makefile.in +2 -2
index 2c42d7e..c8c5743 100644
@@ -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 $(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 $(pdfdocs-y) \
                                        $(DESTDIR)/${pdfdir}/ ;\
                fi
files/Makefile.in +1 -1
index cd67c37..0d3390e 100644
@@ -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 $(SUBDIR)nftables/* $(DESTDIR)/$(confdir)/
Signature · 1 line
1.8.5.2
#1 lore raw
Quoted 2 lines · Kevin Fenzi

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

Applied, thanks.