tags
.depend
autom4te.cache
+version.h
$(RM) $(PROGS) $(OBJS) Makefile.bak testparse maxpath *.core core \
gpgwww.o add.o lookup.o main.o maxpath.o onak.o sixdegrees \
sixdegrees.o splitkeys.o stripkey.o onak.conf keyd.o \
+ version.h \
$(foreach be,@BACKENDS@,keydb_$(be).o) *.so
ifeq (x@KEYD@, xyes)
$(RM) keyd.o keydb_$(DBTYPE).o
$(RM) -f Makefile .depend config.log config.status config.h
$(RM) -r autom4te.cache
-.depend: $(SRCS)
+version.h:
+ @echo '#include "config.h"' > version.h
+ @if [ -e .bzr ]; then \
+ echo "#define ONAK_VERSION PACKAGE_VERSION \"+bzr`bzr revno`\"" \
+ >> version.h; \
+ else \
+ echo "#define ONAK_VERSION PACKAGE_VERSION" >> version.h; \
+ fi
+
+.depend: $(SRCS) version.h
rm -f .depend
$(MAKEDEPEND) $(CFLAGS) $(SRCS) > .depend
#include <stdlib.h>
#include "armor.h"
-#include "config.h"
#include "keystructs.h"
#include "log.h"
#include "onak-conf.h"
#include "parsekey.h"
+#include "version.h"
#define ARMOR_WIDTH 64
*/
putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n");
- putchar_func(ctx, sizeof("Version: onak " PACKAGE_VERSION "\n\n") - 1,
- (unsigned char *) "Version: onak " PACKAGE_VERSION "\n\n");
+ putchar_func(ctx, sizeof("Version: onak " ONAK_VERSION "\n\n") - 1,
+ (unsigned char *) "Version: onak " ONAK_VERSION "\n\n");
armor_init(&armor_ctx);
armor_ctx.putchar_func = putchar_func;
#include "armor.h"
#include "charfuncs.h"
#include "cleanup.h"
-#include "config.h"
#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "stats.h"
+#include "version.h"
#define OP_UNKNOWN 0
#define OP_GET 1
if (op != OP_GET) {
puts("<HR>");
- puts("Produced by gpgwww " PACKAGE_VERSION ", part of onak. "
+ puts("Produced by gpgwww " ONAK_VERSION ", part of onak. "
"<A HREF=\"mailto:noodles-onak@earth.li\">"
"Jonathan McDowell</A>");
end_html();
#include <sys/un.h>
#include <unistd.h>
-#include "config.h"
#include "charfuncs.h"
#include "cleanup.h"
#include "keyd.h"
#include "mem.h"
#include "onak-conf.h"
#include "parsekey.h"
+#include "version.h"
void daemonize(void)
{
static void usage(void)
{
- puts("keyd " PACKAGE_VERSION " - backend key serving daemon for the "
+ puts("keyd " ONAK_VERSION " - backend key serving daemon for the "
"onak PGP keyserver.\n");
puts("Usage:\n");
puts("\tkeyd [options]\n");
#include <sys/socket.h>
#include <sys/un.h>
-#include "config.h"
#include "keyd.h"
#include "onak-conf.h"
+#include "version.h"
/* HACK: We need to stop onak-conf.o requiring this. */
void *DBFUNCS = NULL;
static void usage(void)
{
- puts("keydctl " PACKAGE_VERSION " - control an onak keyd instance.\n");
+ puts("keydctl " ONAK_VERSION " - control an onak keyd instance.\n");
puts("Usage:\n");
puts("\tonak [options] <command> <parameters>\n");
puts("\tCommands:\n");
#include "charfuncs.h"
#include "cleankey.h"
#include "cleanup.h"
-#include "config.h"
#include "getcgi.h"
#include "keydb.h"
#include "keyindex.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "photoid.h"
+#include "version.h"
#define OP_UNKNOWN 0
#define OP_GET 1
}
if (!mrhkp) {
puts("<hr>");
- puts("Produced by onak " PACKAGE_VERSION
+ puts("Produced by onak " ONAK_VERSION
" by Jonathan McDowell");
end_html();
}