From 99916c3399f78fbfbfb0b2da2ac112b327269d51 Mon Sep 17 00:00:00 2001 From: Jonathan McDowell Date: Mon, 19 Jun 2006 22:04:22 +0000 Subject: [PATCH] Change Debian package to use dynamic backend. This hopefully does all that's required to build a Debian package with all our backends but defaulting to db4 so we don't break those upgrading. --- Makefile.in | 1 + debian/onak.install | 1 + debian/rules | 2 +- onak.conf.in | 2 ++ 4 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 6a15a7f..c3382a4 100644 --- a/Makefile.in +++ b/Makefile.in @@ -101,6 +101,7 @@ onak-mail.pl: onak-mail.pl.in onak.conf: onak.conf.in sed -e 's:@BINDIR@:@bindir@:g' \ + -e 's:@LIBDIR@:@libdir@:g' \ -e 's:@STATEDIR@:@localstatedir@:g' \ < onak.conf.in > onak.conf diff --git a/debian/onak.install b/debian/onak.install index ce81ad5..8ea4f3c 100644 --- a/debian/onak.install +++ b/debian/onak.install @@ -1,5 +1,6 @@ onak.conf etc onak splitkeys usr/bin onak-mail.pl usr/lib/onak +libkeydb_*.so usr/lib/onak/backends add lookup gpgwww usr/lib/cgi-bin/pks onak.1 splitkeys.1 usr/share/man/man1 diff --git a/debian/rules b/debian/rules index a230cea..298926f 100755 --- a/debian/rules +++ b/debian/rules @@ -3,7 +3,7 @@ include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/autotools.mk -DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=db4 +DEB_CONFIGURE_EXTRA_FLAGS += --enable-backend=dynamic DEB_MAKE_INSTALL_TARGET := diff --git a/onak.conf.in b/onak.conf.in index c194142..d9c3079 100644 --- a/onak.conf.in +++ b/onak.conf.in @@ -3,6 +3,8 @@ # pks_bin_dir @BINDIR@ +db_backend db4 +backends_dir @LIBDIR@/onak/backends db_dir @STATEDIR@/lib/onak logfile @STATEDIR@/log/onak.log # Loglevel : 0 is highest debug, default is 3, nothing is 7+ -- 2.39.2