From a689b66023ad7b3da179b02c9e473cbc49f295e6 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Wed, 5 Mar 2008 12:27:11 +0000 Subject: Add tunable SYSCONFDIR --- sh/gendepends.sh.in | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sh/gendepends.sh.in') diff --git a/sh/gendepends.sh.in b/sh/gendepends.sh.in index 2beba641..b09ea16b 100644 --- a/sh/gendepends.sh.in +++ b/sh/gendepends.sh.in @@ -4,7 +4,7 @@ # Copyright 2007-2008 Roy Marples # All rights reserved. Released under the 2-clause BSD license. -. @PREFIX@/etc/init.d/functions.sh +. @PREFIX@/@SYSCONFDIR@/init.d/functions.sh config() { [ -n "$*" ] && echo "${SVCNAME} config $*" >&3 @@ -33,9 +33,9 @@ depend() { _done_dirs= for _dir in \ -@PREFIX@/etc/init.d \ -@PKG_PREFIX@/etc/init.d \ -@LOCAL_PREFIX@/etc/init.d +@PREFIX@/@SYSCONFDIR@/init.d \ +@PKG_PREFIX@/@SYSCONFDIR@/init.d \ +@LOCAL_PREFIX@/@SYSCONFDIR@/init.d do [ -d "${_dir}" ] || continue @@ -72,7 +72,7 @@ do . "${_dir}/../conf.d/${SVCNAME}" fi - [ -e @PREFIX@/etc/rc.conf ] && . @PREFIX@/etc/rc.conf + [ -e @PREFIX@/@SYSCONFDIR@/rc.conf ] && . @PREFIX@/@SYSCONFDIR@/rc.conf if . "${_dir}/${SVCNAME}"; then echo "${SVCNAME}" >&3 -- cgit v1.2.3