Index: WHOSON/Makefile.PL.in
--- WHOSON/Makefile.PL.in.orig	2000-03-28 22:44:00 +0200
+++ WHOSON/Makefile.PL.in	2008-01-17 19:29:26 +0100
@@ -6,7 +6,7 @@
 WriteMakefile(
     'NAME'	=> 'WHOSON',
     'VERSION_FROM' => 'WHOSON.pm',
-    'LIBS'	=> ['-L@libdir@ -lwhoson'],
+    'LIBS'	=> ['-L../.libs -lwhoson'],
     'DEFINE'	=> '',
-    'INC'	=> '-I@includedir@',
+    'INC'	=> '-I..',
 );
Index: whoson.conf
--- whoson.conf.orig	2006-11-25 23:55:27 +0100
+++ whoson.conf	2008-01-17 19:42:05 +0100
@@ -17,13 +17,13 @@
 # This is the recommended method for localhost-only servers.
 
 client	unix
-	port=/var/run/whoson/whoson.s
+	port=@l_prefix@/var/whoson/run/whoson.s
 
 # Connect to the server running on the same machine via a unix domain
 # datagram socket.  "port" is the name of the socket.
 
 #client	unixd
-#	port=/var/run/whoson/whoson.d
+#	port=@l_prefix@/var/whoson/run/whoson.d
 #	maxtries=5
 #	inittimeout=100000
 
@@ -82,9 +82,9 @@
 #	allow=123.45.67.0/24		# Allow the the whole network
 #	deny=123.45.67.89/32		# except these ..
 #	deny=123.45.67.90/32		#		.. two machines
-server	unix port=/var/run/whoson/whoson.s keepalive=150
+server	unix port=@l_prefix@/var/whoson/run/whoson.s keepalive=150
 	listenq=5
-server	unixd port=/var/run/whoson/whoson.d
+server	unixd port=@l_prefix@/var/whoson/run/whoson.d
 server	udp port=9876
 	allow=127.0.0.1/32
 #	allow=0.0.0.0/0			# open to the world.  Don't do that!
@@ -94,9 +94,9 @@
 # entries will live in the database if not deleted explicitely.
 
 server	global ttl=600			# 10 minutes
-	chroot=/var/run/whoson		# chdir and chroot here
-	group=nobody			# change group id and
-	user=nobody			# user id after bind()ing
+	chroot=@l_prefix@/var/whoson/empty/	# chdir and chroot here
+	group=@l_rgrp@    			# change group id and
+	user=@l_rusr@			    # user id after bind()ing
 	cachesize=100000		# max. number of entries to keep
 
 # end of config
Index: whosond.c
--- whosond.c.orig	2003-08-21 17:50:00 +0200
+++ whosond.c	2008-01-17 19:29:26 +0100
@@ -158,6 +158,8 @@
 	if (daemon) {
 		int child;
 		if ((child=fork()) > 0) {
+            printf("%d\n",child);
+            fflush(stdout);
 			sleep(1);
 			return 0;
 		} else if (child < 0) {
