openbsd-ports/misc/sh-utils/patches/patch-src_Makefile_am
2001-03-15 17:15:04 +00:00

22 lines
630 B
Plaintext

$OpenBSD: patch-src_Makefile_am,v 1.1 2001/03/15 17:15:04 brad Exp $
--- src/Makefile.am.orig Thu Mar 15 11:19:32 2001
+++ src/Makefile.am Thu Mar 15 11:22:45 2001
@@ -58,7 +58,7 @@ SUFFIXES = .sh
all-local: su
-installed_su = $(bindir)/`echo su|sed '$(transform)'`
+installed_su = $(DESTDIR)$(bindir)/`echo su|sed '$(transform)'`
setuid_root_mode = a=rx,u+s
@@ -75,7 +75,7 @@ install-root: su
@$(INSTALL_SU)
install-exec-local: su
- @TMPFILE=$(bindir)/.su-$$$$; \
+ @TMPFILE=$(DESTDIR)$(bindir)/.su-$$$$; \
rm -f $$TMPFILE; \
echo > $$TMPFILE; \
## See if we can create a setuid root executable in $(bindir).