File unbound-1.0.0-configure.patch of Package unbound

--- unbound-1.0.0/configure.ac.orig	2008-05-19 22:43:44.000000000 +0200
+++ unbound-1.0.0/configure.ac	2008-05-28 16:21:56.000000000 +0200
@@ -56,10 +56,19 @@ AC_DEFINE_UNQUOTED(CONFIGFILE, ["`eval e
 
 # Determine run, chroot directory and pidfile locations
 ub_cfg=`eval echo $ub_conf_file`
-ub_dir=`dirname $ub_cfg`
-AC_DEFINE_UNQUOTED(RUN_DIR, ["$ub_dir"], [Directory to chdir to])
-AC_DEFINE_UNQUOTED(CHROOT_DIR, ["$ub_dir"], [Directory to chroot to])
-AC_DEFINE_UNQUOTED(PIDFILE, ["$ub_dir/unbound.pid"], [Pathname to unbound process id file])
+UNBOUND_RUN_DIR=`dirname $ub_cfg`
+AC_SUBST(UNBOUND_RUN_DIR)
+AC_DEFINE_UNQUOTED(RUN_DIR, ["$UNBOUND_RUN_DIR"], [Directory to chdir to])
+UNBOUND_CHROOT_DIR=$UNBOUND_RUN_DIR
+AC_SUBST(UNBOUND_CHROOT_DIR)
+AC_DEFINE_UNQUOTED(CHROOT_DIR, ["$UNBOUND_CHROOT_DIR"], [Directory to chroot to])
+
+dnl default for unbound pidfile...
+AC_ARG_WITH(pidfile, [  --with-pidfile=filename set default pathname to unbound pidfile ],
+	UNBOUND_PIDFILE="$withval",
+	UNBOUND_PIDFILE="$UNBOUND_RUN_DIR/unbound.pid")
+AC_SUBST(UNBOUND_PIDFILE)
+AC_DEFINE_UNQUOTED(PIDFILE, ["$UNBOUND_PIDFILE"], [default pidfile location])
 
 dnl routine to help check for compiler flags.
 AC_DEFUN([CHECK_COMPILER_FLAG],
@@ -857,6 +866,6 @@ void *unbound_stat_realloc_log(void *ptr
 #define UNBOUND_DNS_PORT 53
 ])
 
-AC_CONFIG_FILES([Makefile])
+AC_CONFIG_FILES([Makefile doc/example.conf])
 AC_CONFIG_HEADER([config.h])
 AC_OUTPUT
openSUSE Build Service is sponsored by