summaryrefslogtreecommitdiffstats
path: root/Makefile.rules.in
diff options
context:
space:
mode:
authorKevin Fenzi <kevin@scrye.com>2014-01-13 06:36:45 +0000
committerPatrick McHardy <kaber@trash.net>2014-01-13 06:36:45 +0000
commitb566123b9b60aff8ef21dfa7b21f817261236b1d (patch)
treed54b9568302cdce2eaf676a6bd6368175395129f /Makefile.rules.in
parent676b0499528a64061075034065c346ad9498cafd (diff)
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 Signed-off-by: Kevin Fenzi <kevin@scrye.com> Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'Makefile.rules.in')
-rw-r--r--Makefile.rules.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.rules.in b/Makefile.rules.in
index a93a26bd..25988dd7 100644
--- a/Makefile.rules.in
+++ b/Makefile.rules.in
@@ -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