summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3e3f47e)
If we're building from a bzr checkout then include the revision
number in the version string we report.
tags
.depend
autom4te.cache
tags
.depend
autom4te.cache
$(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 \
$(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 \
$(foreach be,@BACKENDS@,keydb_$(be).o) *.so
ifeq (x@KEYD@, xyes)
$(RM) keyd.o keydb_$(DBTYPE).o
$(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
$(RM) -f Makefile .depend config.log config.status config.h
$(RM) -r autom4te.cache
+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
rm -f .depend
$(MAKEDEPEND) $(CFLAGS) $(SRCS) > .depend
#include <stdlib.h>
#include "armor.h"
#include <stdlib.h>
#include "armor.h"
#include "keystructs.h"
#include "log.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "keystructs.h"
#include "log.h"
#include "onak-conf.h"
#include "parsekey.h"
*/
putchar_func(ctx, sizeof("-----BEGIN PGP PUBLIC KEY BLOCK-----\n") - 1,
(unsigned char *) "-----BEGIN PGP PUBLIC KEY BLOCK-----\n");
*/
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;
armor_init(&armor_ctx);
armor_ctx.putchar_func = putchar_func;
#include "armor.h"
#include "charfuncs.h"
#include "cleanup.h"
#include "armor.h"
#include "charfuncs.h"
#include "cleanup.h"
#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
#include "getcgi.h"
#include "hash.h"
#include "keydb.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "stats.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "stats.h"
#define OP_UNKNOWN 0
#define OP_GET 1
#define OP_UNKNOWN 0
#define OP_GET 1
if (op != OP_GET) {
puts("<HR>");
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();
"<A HREF=\"mailto:noodles-onak@earth.li\">"
"Jonathan McDowell</A>");
end_html();
#include <sys/un.h>
#include <unistd.h>
#include <sys/un.h>
#include <unistd.h>
#include "charfuncs.h"
#include "cleanup.h"
#include "keyd.h"
#include "charfuncs.h"
#include "cleanup.h"
#include "keyd.h"
#include "mem.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "mem.h"
#include "onak-conf.h"
#include "parsekey.h"
static void usage(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");
"onak PGP keyserver.\n");
puts("Usage:\n");
puts("\tkeyd [options]\n");
#include <sys/socket.h>
#include <sys/un.h>
#include <sys/socket.h>
#include <sys/un.h>
#include "keyd.h"
#include "onak-conf.h"
#include "keyd.h"
#include "onak-conf.h"
/* HACK: We need to stop onak-conf.o requiring this. */
void *DBFUNCS = NULL;
/* HACK: We need to stop onak-conf.o requiring this. */
void *DBFUNCS = NULL;
static void usage(void)
{
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");
puts("Usage:\n");
puts("\tonak [options] <command> <parameters>\n");
puts("\tCommands:\n");
#include "charfuncs.h"
#include "cleankey.h"
#include "cleanup.h"
#include "charfuncs.h"
#include "cleankey.h"
#include "cleanup.h"
#include "getcgi.h"
#include "keydb.h"
#include "keyindex.h"
#include "getcgi.h"
#include "keydb.h"
#include "keyindex.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "photoid.h"
#include "onak-conf.h"
#include "parsekey.h"
#include "photoid.h"
#define OP_UNKNOWN 0
#define OP_GET 1
#define OP_UNKNOWN 0
#define OP_GET 1
}
if (!mrhkp) {
puts("<hr>");
}
if (!mrhkp) {
puts("<hr>");
- puts("Produced by onak " PACKAGE_VERSION
+ puts("Produced by onak " ONAK_VERSION
" by Jonathan McDowell");
end_html();
}
" by Jonathan McDowell");
end_html();
}