summaryrefslogtreecommitdiffstats
path: root/config.h
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-04-14 13:09:44 +0000
committerRoy Marples <roy@marples.name>2008-04-14 13:09:44 +0000
commitc46c624e7f2cfba9b12043c2f7d779f46ec3539b (patch)
tree3252cdb8fef44d74840eda1ce7755d6f34c5e6f7 /config.h
parent009d046214f607a0989a74c2ee055d72e4989f00 (diff)
downloaddhcpcd-c46c624e7f2cfba9b12043c2f7d779f46ec3539b.tar.xz
Change a few build/install knobs.
Diffstat (limited to 'config.h')
-rw-r--r--config.h26
1 files changed, 15 insertions, 11 deletions
diff --git a/config.h b/config.h
index f97bfd81..20354106 100644
--- a/config.h
+++ b/config.h
@@ -47,20 +47,24 @@
/* Packname name and pathname definitions. */
-#define PACKAGE "dhcpcd"
+#define PACKAGE "dhcpcd"
-#define ETCDIR "/etc"
-#define RESOLVFILE ETCDIR "/resolv.conf"
-#define DEFAULT_SCRIPT ETCDIR "/" PACKAGE ".sh"
+#define RESOLVFILE "/etc/resolv.conf"
+#ifndef SYSCONFDIR
+# define SYSCONFDIR "/etc"
+#endif
+#define DEFAULTSCRIPT SYSCONFDIR "/" PACKAGE ".sh"
-#define STATEDIR "/var"
-#define PIDFILE STATEDIR "/run/" PACKAGE "-%s.pid"
+#ifndef RUNDIR
+# define RUNDIR "/var/run"
+#endif
+#define PIDFILE RUNDIR "/" PACKAGE "-%s.pid"
-#ifndef INFODIR
-# define INFODIR "/var/db"
+#ifndef DBDIR
+# define DBDIR "/var/db"
#endif
-#define LEASEFILE INFODIR "/" PACKAGE "-%s.lease"
-#define INFOFILE INFODIR "/" PACKAGE "-%s.info"
-#define DUIDFILE INFODIR "/" PACKAGE ".duid"
+#define LEASEFILE DBDIR "/" PACKAGE "-%s.lease"
+#define INFOFILE DBDIR "/" PACKAGE "-%s.info"
+#define DUIDFILE DBDIR "/" PACKAGE ".duid"
#endif