aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfigure10
-rw-r--r--configure.ac10
2 files changed, 12 insertions, 8 deletions
diff --git a/configure b/configure
index ae9c7dc6..0ffa7f63 100755
--- a/configure
+++ b/configure
@@ -4546,11 +4546,13 @@ esac
if test "X$RCYNIC_DIR" = "X"
then
- RCYNIC_DIR='${DESTDIR}/var/rcynic'
+ rcynic_base_dir='/var/rcynic'
else
- RCYNIC_DIR='${DESTDIR}'"${RCYNIC_DIR}"
+ rcynic_base_dir="${RCYNIC_DIR}"
fi
+RCYNIC_DIR='${DESTDIR}'"${rcynic_base_dir}"
+
# Figure out whether to run rcynic in a chroot jail, which determines
# a bunch of other settings.
@@ -4579,8 +4581,8 @@ case $enable_rcynic_jail in
RCYNIC_TA_DIR='${DESTDIR}${sysconfdir}/rpki/trust-anchors'
RCYNIC_BIN_RCYNIC='${DESTDIR}${bindir}/rcynic'
RCYNIC_CONF_RSYNC="${RSYNC}"
- RCYNIC_CONF_DATA='${RCYNIC_DIR}/data'
- RCYNIC_CONF_TA_DIR="${RCYNIC_TA_DIR}"
+ RCYNIC_CONF_DATA="${rcynic_base_dir}/data"
+ RCYNIC_CONF_TA_DIR='${sysconfdir}/rpki/trust-anchors'
RCYNIC_CRON_USER='${RCYNIC_USER}'
RCYNIC_JAIL_DIRS=''
;;
diff --git a/configure.ac b/configure.ac
index ea6a39f6..3abf4dfe 100644
--- a/configure.ac
+++ b/configure.ac
@@ -243,11 +243,13 @@ esac
if test "X$RCYNIC_DIR" = "X"
then
- RCYNIC_DIR='${DESTDIR}/var/rcynic'
+ rcynic_base_dir='/var/rcynic'
else
- RCYNIC_DIR='${DESTDIR}'"${RCYNIC_DIR}"
+ rcynic_base_dir="${RCYNIC_DIR}"
fi
+RCYNIC_DIR='${DESTDIR}'"${rcynic_base_dir}"
+
# Figure out whether to run rcynic in a chroot jail, which determines
# a bunch of other settings.
@@ -275,8 +277,8 @@ case $enable_rcynic_jail in
RCYNIC_TA_DIR='${DESTDIR}${sysconfdir}/rpki/trust-anchors'
RCYNIC_BIN_RCYNIC='${DESTDIR}${bindir}/rcynic'
RCYNIC_CONF_RSYNC="${RSYNC}"
- RCYNIC_CONF_DATA='${RCYNIC_DIR}/data'
- RCYNIC_CONF_TA_DIR="${RCYNIC_TA_DIR}"
+ RCYNIC_CONF_DATA="${rcynic_base_dir}/data"
+ RCYNIC_CONF_TA_DIR='${sysconfdir}/rpki/trust-anchors'
RCYNIC_CRON_USER='${RCYNIC_USER}'
RCYNIC_JAIL_DIRS=''
;;