]> git.ipfire.org Git - thirdparty/lldpd.git/commitdiff
configure: make default PID location configurable
authorVincent Bernat <vincent@bernat.im>
Wed, 7 May 2014 11:21:50 +0000 (13:21 +0200)
committerVincent Bernat <vincent@bernat.im>
Wed, 7 May 2014 11:33:13 +0000 (13:33 +0200)
Also, document those changes in NEWS as using `localstatedir` may move
stuff from `/var` to `/usr/local/var`.

Closes #64.

NEWS
configure.ac
src/daemon/lldpd.h

diff --git a/NEWS b/NEWS
index ece3f6ae10cce72530efa5e0b716046910fd50aa..2697fcc60f4f29f3f4e62a59d27a63a6bd7e2075 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,12 @@
+lldpd (0.7.9)
+  * Changes:
+    + Default location for chroot, socket and PID are now configurable
+      in `./configure`. The default location is based on the value of
+      `runstatedir` which in turn may be based on the value of
+      `localstatedir` which defaults to `/usr/local/var`. Therefore,
+      to get the previous locations, lldpd should be configured with
+      `./configure --localstatedir=/var`.
+
 lldpd (0.7.8)
   * Fixes:
     + Don't hard-code default values for system name, system
index 8823f54aa436d5a157cf5230524ce3071d67339d..0878ca06481c8406d9a70e3d2b9c2443b2540ad0 100644 (file)
@@ -234,6 +234,7 @@ if test "x$runstatedir" = x; then
 fi
 lldp_ARG_WITH([privsep-chroot], [Which directory to use to chroot lldpd], [${runstatedir}/lldpd])
 lldp_ARG_WITH([lldpd-ctl-socket], [Path to socket for communication with lldpd], [${runstatedir}/lldpd.socket])
+lldp_ARG_WITH([lldpd-pid-file], [Path to lldpd PID file], [${runstatedir}/lldpd.pid])
 
 # CDP/FDP/EDP/SONMP
 lldp_ARG_ENABLE([cdp], [Cisco Discovery Protocol], [yes])
index f2b5f1f473b11074fff071e7325abb74bd6d7adb..b9c451d128f63df60ace7e71b60910ab99ea78cb 100644 (file)
@@ -73,7 +73,6 @@ struct event_base;
 #define LLDPD_TTL              LLDPD_TX_INTERVAL * LLDPD_TX_HOLD
 #define LLDPD_TX_MSGDELAY      1
 #define LLDPD_MAX_NEIGHBORS    4
-#define LLDPD_PID_FILE         "/var/run/lldpd.pid"
 #define LLDPD_FAST_TX_INTERVAL 1
 #define LLDPD_FAST_INIT        4