summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2007-11-14 12:53:21 +0000
committerRoy Marples <roy@marples.name>2007-11-14 12:53:21 +0000
commitd9953ffbacc726660d6a168cc0c6db32029b2635 (patch)
tree097faf0e8f29c58b5c74a6f4a5a5548ef894f2b0 /config.h
parentc8adbc61bf067b487302892556a11b18456e78b5 (diff)
downloaddhcpcd-d9953ffbacc726660d6a168cc0c6db32029b2635.tar.xz
Allow INFODIR to control where we keep our info files.
Respect MANPREFIX.
Diffstat (limited to 'config.h')
-rw-r--r--config.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/config.h b/config.h
index ac432cd2..515b24cf 100644
--- a/config.h
+++ b/config.h
@@ -57,10 +57,11 @@
#define STATEDIR "/var"
#define PIDFILE STATEDIR "/run/" PACKAGE "-%s.pid"
-#define CONFIGDIR STATEDIR "/lib/" PACKAGE
-#define INFOFILE CONFIGDIR "/" PACKAGE "-%s.info"
-
-#define DUIDFILE CONFIGDIR "/" PACKAGE ".duid"
+#ifndef INFODIR
+# define INFODIR "/var/lib/dhcpcd"
+#endif
+#define INFOFILE INFODIR "/" PACKAGE "-%s.info"
+#define DUIDFILE INFODIR "/" PACKAGE ".duid"
/* ORC is Open Run Control, forked from Gentoo's baselayout package
* BRC is BSD style Run Control