summaryrefslogtreecommitdiff
path: root/src/includes
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-03 10:33:42 +0000
committerRoy Marples <roy@marples.name>2008-03-03 10:33:42 +0000
commit0aedc0286040b595119b4523d38ffd35b0018d6c (patch)
tree32ab5aca002067f07bbc45fcd34a3fd769c73468 /src/includes
parent5971d14afd7e67b088307cd589f84491e99625ed (diff)
downloadopenrc-0aedc0286040b595119b4523d38ffd35b0018d6c.tar.gz
openrc-0aedc0286040b595119b4523d38ffd35b0018d6c.tar.bz2
openrc-0aedc0286040b595119b4523d38ffd35b0018d6c.tar.xz
Introduce LOCAL_PREFIX for a user maintained script location.
Diffstat (limited to 'src/includes')
-rw-r--r--src/includes/rc-misc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/includes/rc-misc.h b/src/includes/rc-misc.h
index 1294ed2..2f4b364 100644
--- a/src/includes/rc-misc.h
+++ b/src/includes/rc-misc.h
@@ -62,7 +62,14 @@
* /usr/pkg. */
#ifdef PKG_PREFIX
# define RC_PKG_INITDIR PKG_PREFIX "/etc/init.d"
-# define RC_PKG_CONFDIR PKG_PREFIX "/usr/local/etc/conf.d"
+# define RC_PKG_CONFDIR PKG_PREFIX "/etc/conf.d"
+#endif
+
+/* LOCAL_PREFIX is for user written stuff, which the base OS and package
+ * manger don't touch. */
+#ifdef LOCAL_PREFIX
+# define RC_LOCAL_INITDIR LOCAL_PREFIX "/etc/init.d"
+# define RC_LOCAL_CONFDIR LOCAL_PREFIX "/etc/conf.d"
#endif
#define RC_KSOFTLEVEL RC_SVCDIR "/ksoftlevel"