aboutsummaryrefslogtreecommitdiff
path: root/src/rc
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-05 12:27:11 +0000
committerRoy Marples <roy@marples.name>2008-03-05 12:27:11 +0000
commita689b66023ad7b3da179b02c9e473cbc49f295e6 (patch)
treec1e6baad98bdfde3c36f1105b8fe6f15534b30c4 /src/rc
parent7aa231de2e784b00267cb618b728cf0f754c9573 (diff)
Add tunable SYSCONFDIR
Diffstat (limited to 'src/rc')
-rw-r--r--src/rc/Makefile1
-rw-r--r--src/rc/rc-misc.c8
2 files changed, 5 insertions, 4 deletions
diff --git a/src/rc/Makefile b/src/rc/Makefile
index 26ee1312..6e0ca8d3 100644
--- a/src/rc/Makefile
+++ b/src/rc/Makefile
@@ -40,6 +40,7 @@ include ${MK}/prog.mk
CFLAGS+= -I../includes -I../librc -I../libeinfo
CFLAGS+= -DLIB=\"${LIBNAME}\"
+CFLAGS+= -DSYSCONFDIR=\"${SYSCONFDIR}\"
include ${MK}/${MKTERMCAP}.mk
LDADD+= ${LIBDL} ${LIBKVM}
diff --git a/src/rc/rc-misc.c b/src/rc/rc-misc.c
index 78c1ddca..343a1534 100644
--- a/src/rc/rc-misc.c
+++ b/src/rc/rc-misc.c
@@ -49,11 +49,11 @@
#include "rc-misc.h"
#include "strlist.h"
-#define PROFILE_ENV "/etc/profile.env"
+#define PROFILE_ENV SYSCONFDIR "/profile.env"
#define SYS_WHITELIST RC_LIBDIR "/conf.d/env_whitelist"
-#define USR_WHITELIST "/etc/conf.d/env_whitelist"
-#define RC_CONF "/etc/rc.conf"
-#define RC_CONF_OLD "/etc/conf.d/rc"
+#define USR_WHITELIST SYSCONFDIR "/conf.d/env_whitelist"
+#define RC_CONF SYSCONFDIR "/rc.conf"
+#define RC_CONF_OLD SYSCONFDIR "/conf.d/rc"
#define PATH_PREFIX RC_LIBDIR "/bin:/bin:/sbin:/usr/bin:/usr/sbin"