summaryrefslogtreecommitdiffstats
path: root/README
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-05-22 09:23:03 +0000
committerRoy Marples <roy@marples.name>2008-05-22 09:23:03 +0000
commitb604c3de5b04d1a5e0e68e5f2e54aae731e91d62 (patch)
tree8fc28936af0c83263e96587b6c4d8b3d686d7e16 /README
parenta06bed27a5e40ec3ee4e5afd76cc7bb993d73249 (diff)
downloaddhcpcd-b604c3de5b04d1a5e0e68e5f2e54aae731e91d62.tar.xz
Installing to FHS dirs just for Linux is silly, especially as GNU autotools don't by default. With installing to the same dirs regardless of OS it also makes my life easier.
Diffstat (limited to 'README')
-rw-r--r--README10
1 files changed, 6 insertions, 4 deletions
diff --git a/README b/README
index a0f0579a..c3bea6d8 100644
--- a/README
+++ b/README
@@ -15,12 +15,14 @@ If you're cross compiling you may need to set the below knobs to avoid
automatic tests.
OS=BSD | Linux
-You can change the default dir where dhcpcd stores it's .lease files with
-DBDIR=/var/db
-
If you're building for a NOMMU system where fork() does not work, you should
add -DTHERE_IS_NO_FORK to your CFLAGS.
+You can change the default dir with these knobs.
+For example, to satisfy FHS compliance you would do this:-
+LIBEXECDIR=/lib/dhcpcd
+DBDIR=/var/lib/dhcpcd
+
We now default to using -std=c99. For 64-bit linux, this always works, but
for 32-bit linux it requires either gnu99 or a patch to asm/types.h.
Most distros patch linux headers so this should work fine.
@@ -40,7 +42,7 @@ make HOOKSCRIPTS=50-ntp.sh install
Compatibility
-------------
If you require compatibility with dhcpcd-3 and older style variables,
-you can install 50-dhcpcd-compat.sh into the directory /libexec/dhcpcd.hook.d
+you can install 50-dhcpcd-compat.sh into the directory $LIBEXECDIR/dhcpcd.hook.d
We don't install this by default.
You should also add -DCMDLINE_COMPAT to your CFLAGS if you need to be fully
commandline compatible with prior versions.