summaryrefslogtreecommitdiff
path: root/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
diff options
context:
space:
mode:
authorMathieu Arnold <mat@FreeBSD.org>2020-02-24 21:46:42 +0000
committerMathieu Arnold <mat@FreeBSD.org>2020-02-24 21:46:42 +0000
commita435f4d4a66036266d2263cc58636f65e4a9c269 (patch)
treed55ed5a10eda4e67b08d4d4f59241565e29804e2 /net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
parentResurrect LimeSurvey and update to 3.22.7 (diff)
Children, don't patch an drive.
Pointy hat: mat
Notes
Notes: svn path=/head/; revision=527052
Diffstat (limited to 'net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in')
-rw-r--r--net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in12
1 files changed, 8 insertions, 4 deletions
diff --git a/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in b/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
index 8a7c624f9444..684a281d2869 100644
--- a/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
+++ b/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
@@ -11,11 +11,15 @@ Make sure we don't `chown root`, it will fail.
echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
done
-@@ -1815,7 +1813,6 @@ install-exec-local: $(noinst_PROGRAMS)
+@@ -1814,10 +1812,7 @@ install-exec-local: $(noinst_PROGRAMS)
+ @TMPFILE=$(DESTDIR)$(libexecdir)/.setuid-$$$$; \
rm -f $$TMPFILE; \
echo > $$TMPFILE; \
- can_create_suid_root_executable=no; \
+- can_create_suid_root_executable=no; \
- chown root $$TMPFILE > /dev/null 2>&1 \
- && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
- && can_create_suid_root_executable=yes; \
+- && chmod $(setuid_root_mode) $$TMPFILE > /dev/null 2>&1 \
+- && can_create_suid_root_executable=yes; \
++ can_create_suid_root_executable=yes; \
rm -f $$TMPFILE; \
+ if test $$can_create_suid_root_executable = yes; then \
+ $(INSTALL_SUID); \