From ff3f64dadeb81a9224acaf62ce564d940f582d7c Mon Sep 17 00:00:00 2001 From: Bin Qian Date: Fri, 29 Apr 2022 10:54:08 -0400 Subject: [PATCH] install ldapscripts files to /etc Deploy ldapscripts config files to /etc/ldapscripts as it was done originally. We no longer need to use sed to modify the path. Signed-off-by: Bin Qian --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6e5b193..7585602 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,7 @@ VERSION = 2.0.8 # Default installation paths SBINDIR = $(PREFIX)/sbin MANDIR = $(PREFIX)/man -ETCDIR = $(PREFIX)/etc/$(NAME) +ETCDIR = /etc/$(NAME) LIBDIR = $(PREFIX)/lib/$(NAME) # Files to install @@ -85,7 +85,7 @@ help: configure: @echo -n 'Configuring scripts... ' @sed 's|^BINDPWDFILE=.*|BINDPWDFILE="$(ETCDIR)/$(PWDFILE)"|g' 'etc/$(ETCFILE)' > 'etc/$(ETCFILE).patched' - @sed '/^_CONFIGFILE=/s|^\(.*"\).*\(".*\)|\1$(ETCDIR)/$(ETCFILE)\2|g' 'lib/$(RUNFILE)' > 'lib/$(RUNFILE).patched' + @cp 'lib/$(RUNFILE)' 'lib/$(RUNFILE).patched' @for i in $(SBINFILES) ; do \ sed 's|^_RUNTIMEFILE=.*|_RUNTIMEFILE="$(LIBDIR)/$(RUNFILE)"|g' "sbin/$$i" > "sbin/$$i.patched" ; \ done -- 2.29.2