mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-24 00:29:58 -05:00
- patch from Brad Smith that fixes DESTDIR in unbound-control-setup
for installs where config is not in the prefix location. git-svn-id: file:///svn/unbound/trunk@3297 be551aaa-1e26-0410-a405-d3ace91eadb9
This commit is contained in:
parent
42cf616fae
commit
724a4f3ae0
4 changed files with 30 additions and 2 deletions
25
configure
vendored
25
configure
vendored
|
|
@ -733,6 +733,7 @@ UNBOUND_PIDFILE
|
||||||
UNBOUND_SHARE_DIR
|
UNBOUND_SHARE_DIR
|
||||||
UNBOUND_CHROOT_DIR
|
UNBOUND_CHROOT_DIR
|
||||||
UNBOUND_RUN_DIR
|
UNBOUND_RUN_DIR
|
||||||
|
ub_conf_dir
|
||||||
ub_conf_file
|
ub_conf_file
|
||||||
EGREP
|
EGREP
|
||||||
GREP
|
GREP
|
||||||
|
|
@ -4048,6 +4049,30 @@ cat >>confdefs.h <<_ACEOF
|
||||||
#define CONFIGFILE "$hdr_config"
|
#define CONFIGFILE "$hdr_config"
|
||||||
_ACEOF
|
_ACEOF
|
||||||
|
|
||||||
|
ub_conf_dir=`$as_dirname -- "$ub_conf_file" ||
|
||||||
|
$as_expr X"$ub_conf_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
|
||||||
|
X"$ub_conf_file" : 'X\(//\)[^/]' \| \
|
||||||
|
X"$ub_conf_file" : 'X\(//\)$' \| \
|
||||||
|
X"$ub_conf_file" : 'X\(/\)' \| . 2>/dev/null ||
|
||||||
|
$as_echo X"$ub_conf_file" |
|
||||||
|
sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)[^/].*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\/\)$/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
/^X\(\/\).*/{
|
||||||
|
s//\1/
|
||||||
|
q
|
||||||
|
}
|
||||||
|
s/.*/./; q'`
|
||||||
|
|
||||||
|
|
||||||
# Determine run, chroot directory and pidfile locations
|
# Determine run, chroot directory and pidfile locations
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -119,6 +119,8 @@ AC_ARG_WITH([conf_file],
|
||||||
AC_SUBST(ub_conf_file)
|
AC_SUBST(ub_conf_file)
|
||||||
ACX_ESCAPE_BACKSLASH($ub_conf_file, hdr_config)
|
ACX_ESCAPE_BACKSLASH($ub_conf_file, hdr_config)
|
||||||
AC_DEFINE_UNQUOTED(CONFIGFILE, ["$hdr_config"], [Pathname to the Unbound configuration file])
|
AC_DEFINE_UNQUOTED(CONFIGFILE, ["$hdr_config"], [Pathname to the Unbound configuration file])
|
||||||
|
ub_conf_dir=`AS_DIRNAME(["$ub_conf_file"])`
|
||||||
|
AC_SUBST(ub_conf_dir)
|
||||||
|
|
||||||
# Determine run, chroot directory and pidfile locations
|
# Determine run, chroot directory and pidfile locations
|
||||||
AC_ARG_WITH(run-dir,
|
AC_ARG_WITH(run-dir,
|
||||||
|
|
|
||||||
|
|
@ -4,6 +4,8 @@
|
||||||
- patch from Stephane Lapie that adds to the python API, that
|
- patch from Stephane Lapie that adds to the python API, that
|
||||||
exposes struct delegpt, and adds the find_delegation function.
|
exposes struct delegpt, and adds the find_delegation function.
|
||||||
- print query name when max target count is exceeded.
|
- print query name when max target count is exceeded.
|
||||||
|
- patch from Brad Smith that fixes DESTDIR in unbound-control-setup
|
||||||
|
for installs where config is not in the prefix location.
|
||||||
|
|
||||||
9 December 2014: Wouter
|
9 December 2014: Wouter
|
||||||
- svn trunk has 1.5.2 in development.
|
- svn trunk has 1.5.2 in development.
|
||||||
|
|
|
||||||
|
|
@ -36,8 +36,7 @@
|
||||||
# settings:
|
# settings:
|
||||||
|
|
||||||
# directory for files
|
# directory for files
|
||||||
prefix=@prefix@
|
DESTDIR=@ub_conf_dir@
|
||||||
DESTDIR=@sysconfdir@/unbound
|
|
||||||
|
|
||||||
# issuer and subject name for certificates
|
# issuer and subject name for certificates
|
||||||
SERVERNAME=unbound
|
SERVERNAME=unbound
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue