FreeBSD Port: downtimed-0.5

Douglas Thrift douglas at
Wed Apr 24 05:31:50 UTC 2013


I just noticed that the daemon for downtimed was trying to use /var/lib
instead of /var/db when compiled on FreeBSD 9.1 amd64. I tracked the
problem down to __FreeBSD_kernel__ being defined which was, I presume,
supposed to be used to check for Debian GNU/kFreeBSD in this case. I
have attached a patch that can be added to the files directory for the
port to fix this.

I hope this helps!
Douglas William Thrift
<douglas at>
-------------- next part --------------
--- ./downtimedb.h.orig	2013-04-23 01:45:51.612444692 -0700
+++ ./downtimedb.h	2013-04-23 01:47:11.486445742 -0700
@@ -61,7 +61,8 @@
-#if defined(__linux__) || defined(__FreeBSD_kernel__) || !defined(_PATH_VARDB)
+#if defined(__linux__) || (defined(__FreeBSD_kernel__) \
+	&& !defined(__FreeBSD__)) || !defined(_PATH_VARDB)
 #define	PATH_DOWNTIMEDBDIR	"/var/lib/downtimed/"
 #define	PATH_DOWNTIMEDBDIR	_PATH_VARDB "downtimed/"

More information about the freebsd-ports mailing list