Add Makefile for GNU/kFreeBSD

Index: xymon/build/Makefile.GNU_kFreeBSD
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ xymon/build/Makefile.GNU_kFreeBSD	2012-06-12 18:32:45.000000000 +0200
@@ -0,0 +1,27 @@
+# bbgen compile-time settings for GNU/kFreeBSD systems
+
+OSDEF =
+
+# NETLIBS: None needed on Linux
+NETLIBS =
+
+# Compile flags for normal build
+CC = gcc
+CFLAGS += -Wall -Wno-unused -D_REENTRANT $(LFSDEF) $(OSDEF)
+
+ifndef PKGBUILD
+RPATH = -Wl,--rpath,
+endif
+
+# Compile flags for debugging
+# CFLAGS = -g -DDEBUG -Wall -D_REENTRANT $(LFSDEF) $(OSDEF)
+
+# By default, Hobbit uses a static library for common code.
+# To save some diskspace and run-time memory, you can use a
+# shared library by un-commenting this.
+# HOBBITLIBRARY=libhobbit.so
+
+# Mail program: This must support "CMD -s SUBJECT ADDRESS" to send out a mail with a subject
+# Typically, this will be "mail" or "mailx"
+MAILPROGRAM="mail"
+
Index: xymon/configure.server
===================================================================
--- xymon.orig/configure.server	2012-06-12 18:32:39.000000000 +0200
+++ xymon/configure.server	2012-06-12 18:32:45.000000000 +0200
@@ -483,16 +483,17 @@
 echo "LFSDEF = $LFS"                     >>Makefile
 
 echo "" >>Makefile
-if test -r build/Makefile.`uname -s`
+if test -r build/Makefile.`uname -s | tr '/' '_'`
 then
-	echo "include build/Makefile.`uname -s`" >>Makefile
+	# use sinclude here so "clean" works even when build/Makefile.GNU_kFreeBSD is not patched yet
+	echo "sinclude build/Makefile.`uname -s | tr '/' '_'`" >>Makefile
 	echo ""
-	echo "Using `uname -s` Makefile settings"
+	echo "Using `uname -s | tr '/' '_'` Makefile settings"
 	echo ""
 else
 	echo "include build/Makefile.generic" >>Makefile
 	echo ""
-	echo "Using GENERIC Makefile settings"
+	echo "Using GENERIC Makefile settings (uname -s is `uname -s`)"
 	echo ""
 	echo "If this fails, change the compile settings in Makefile"
 	echo ""
