$NetBSD: patch-aa,v 1.8 1999/04/30 17:05:20 tv Exp $ --- Makefile.tmpl.orig Mon Apr 26 16:03:46 1999 +++ Makefile.tmpl Mon Apr 26 16:29:40 1999 @@ -114,7 +114,7 @@ datadir = @datadir@ iconsdir = $(datadir)/icons htdocsdir = $(datadir)/htdocs -cgidir = $(datadir)/cgi-bin +cgidir = $(prefix)/libexec/cgi-bin includedir = @includedir@ localstatedir = @localstatedir@ runtimedir = @runtimedir@ @@ -453,12 +453,13 @@ find $(root)$(htdocsdir)/ -type d -exec chmod a+rx {} \; ; \ find $(root)$(htdocsdir)/ -type f -exec chmod a+r {} \; ; \ fi - -@if [ -f $(root)$(cgidir)/printenv ]; then \ + -@if false; then \ echo "[PRESERVING EXISTING DATA SUBDIR: $(root)$(cgidir)/]"; \ else \ for script in printenv test-cgi; do \ cat $(TOP)/cgi-bin/$${script} |\ sed -e 's;^#!/.*perl;#!$(PERL);' \ + -e 's;LD_LIBRARY_PATH=.*;LD_LIBRARY_PATH=/usr/lib:$(prefix)/lib:/usr/local/lib;' \ > $(TOP)/$(SRC)/.apaci.install.tmp; \ echo "$(INSTALL_DATA) $(TOP)/conf/$${script}[*] $(root)$(cgidir)/$${script}"; \ $(INSTALL_DATA) $(TOP)/$(SRC)/.apaci.install.tmp $(root)$(cgidir)/$${script}; \ @@ -475,7 +476,7 @@ # and initial config files while preserving existing ones. install-config: @echo "===> [config: Installing Apache configuration files]" - -@for conf in httpd.conf access.conf srm.conf; do \ + -@for conf in httpd.conf; do \ if [ .$$conf = .httpd.conf ]; then \ target_conf="$(TARGET).conf"; \ else \