freebsd-ports/net-mgmt/nagios-plugins/files/patch-plugins-root_Makefile.in
Mathieu Arnold a435f4d4a6 Children, don't patch an drive.
Pointy hat:	mat
2020-02-24 21:46:42 +00:00

25 lines
1,023 B
Text

Make sure we don't `chown root`, it will fail.
--- plugins-root/Makefile.in.orig 2020-02-20 19:15:04 UTC
+++ plugins-root/Makefile.in
@@ -1372,8 +1372,6 @@ INSTALL_SUID = \
p=$$f; \
echo " $(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p"; \
$(INSTALL_PROGRAM) $$p $(DESTDIR)$(libexecdir)/$$p; \
- echo " chown root $(DESTDIR)$(libexecdir)/$$p"; \
- chown root $(DESTDIR)$(libexecdir)/$$p; \
echo " chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p"; \
chmod $(setuid_root_mode) $(DESTDIR)$(libexecdir)/$$p; \
done
@@ -1814,10 +1812,7 @@ install-exec-local: $(noinst_PROGRAMS)
@TMPFILE=$(DESTDIR)$(libexecdir)/.setuid-$$$$; \
rm -f $$TMPFILE; \
echo > $$TMPFILE; \
- 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; \
+ can_create_suid_root_executable=yes; \
rm -f $$TMPFILE; \
if test $$can_create_suid_root_executable = yes; then \
$(INSTALL_SUID); \