sed -e 's:@BINDIR@:@bindir@:g' \
-e 's:@CONFIG@:@sysconfdir@/onak.conf:g' \
-e 's:@LIBDIR@:@libdir@:g' \
+ -e 's:@RUNDIR@:@runstatedir@:g' \
-e 's:@SBINDIR@:@sbindir@:g' \
-e 's:@STATEDIR@:@localstatedir@:g' \
< $< > $@
backend="$enable_backend"
fi
+dnl Fallback for autoconf before 2.70
+if test "x$runstatedir" = x; then
+ AC_SUBST([runstatedir], ["$localstatedir/run"])
+fi
+
AC_SUBST(DBTYPE, $enable_backend)
AC_SUBST(DB4LIBS, $db4libs)
AC_SUBST(KEYD, $enable_keyd)
[Socket]
-ListenStream=/var/run/keyd.sock
+ListenStream=/run/keyd.sock
SocketUser=onak
SocketMode=0660
#!/usr/bin/make -f
-DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic --runstatedir=/run
CFLAGS += -std=gnu99
mail_intro_file /community/pgp-keyserver/share/mail_intro
help_dir /community/pgp-keyserver/share
mail_dir @STATEDIR@/spool/onak
-sock_dir @STATEDIR@/run
+sock_dir @RUNDIR@
### If you change this, make sure to put a corresponding help file in
### the help_dir named above