Rather than putting our socket in $localstatedir/run use $runstatedir
which is support by the Debian package autoconf 2.69-9 and will be in
autoconf 2.70. Fall back to $localstatedir/run when an older version
of autoconf is used.
sed -e 's:@BINDIR@:@bindir@:g' \
-e 's:@CONFIG@:@sysconfdir@/onak.conf:g' \
-e 's:@LIBDIR@:@libdir@:g' \
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' \
< $< > $@
-e 's:@SBINDIR@:@sbindir@:g' \
-e 's:@STATEDIR@:@localstatedir@:g' \
< $< > $@
backend="$enable_backend"
fi
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)
AC_SUBST(DBTYPE, $enable_backend)
AC_SUBST(DB4LIBS, $db4libs)
AC_SUBST(KEYD, $enable_keyd)
-ListenStream=/var/run/keyd.sock
+ListenStream=/run/keyd.sock
SocketUser=onak
SocketMode=0660
SocketUser=onak
SocketMode=0660
-DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic
+DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic --runstatedir=/run
mail_intro_file /community/pgp-keyserver/share/mail_intro
help_dir /community/pgp-keyserver/share
mail_dir @STATEDIR@/spool/onak
mail_intro_file /community/pgp-keyserver/share/mail_intro
help_dir /community/pgp-keyserver/share
mail_dir @STATEDIR@/spool/onak
### If you change this, make sure to put a corresponding help file in
### the help_dir named above
### If you change this, make sure to put a corresponding help file in
### the help_dir named above