* New adnslogres, ~100x faster replacement for Apache logresolve;
Thanks to Tony Finch for the program and the performance figure.
* Do not give -u 0 -g 0 options to install.
adns (0.5) unstable; urgency=medium
adns (0.5) unstable; urgency=medium
+ New features:
+ * New adnslogres, ~100x faster replacement for Apache logresolve;
+ Thanks to Tony Finch for the program and the performance figure.
+
Incompatible changes:
* RRs with mailboxes never rejected due to strange chars if _raw.
* Lack of a mailbox produces `.' not `<>'.
Incompatible changes:
* RRs with mailboxes never rejected due to strange chars if _raw.
* Lack of a mailbox produces `.' not `<>'.
* Give install the '-c' flag (otherwise some delete the original !).
* Reject TXT RRs with no strings.
* Don't complain so much about poll(2) tests if not available.
* Give install the '-c' flag (otherwise some delete the original !).
* Reject TXT RRs with no strings.
* Don't complain so much about poll(2) tests if not available.
+ * Do not give -u 0 -g 0 options to install.
Makefile
adnstest
adnstest_s
Makefile
adnstest
adnstest_s
+adnslogres
+adnslogres_s
srcdir= @srcdir@
VPATH= @srcdir@
srcdir= @srcdir@
VPATH= @srcdir@
-TARG_LOCAL= adnstest_s
-TARG_INSTALL= adnstest
+PROGRAMS= adnstest adnslogres
+TARG_INSTALL= $(PROGRAMS)
+TARG_LOCAL= $(addsuffix _s, $(PROGRAMS))
TARGETS= $(TARG_LOCAL) $(TARG_INSTALL)
include $(srcdir)/../settings.make
TARGETS= $(TARG_LOCAL) $(TARG_INSTALL)
include $(srcdir)/../settings.make
uninstall:
for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
uninstall:
for f in $(TARGETS); do rm -f $(bin_dir)/$$f; done
-adnstest: adnstest.o $(srcdir)/../dynamic/$(SHLIBFILE)
+%: %.o $(srcdir)/../dynamic/$(SHLIBFILE)
+ $(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)
-adnstest_s: adnstest.o $(srcdir)/../src/libadns.a
+%_s: %.o $(srcdir)/../src/libadns.a
$(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)
$(CC) $(LDFLAGS) $^ -o $@ $(LDLIBS)
* - a replacement for the Apache logresolve program using adns
*/
/*
* - a replacement for the Apache logresolve program using adns
*/
/*
- * This file is Copyright (C) 1999 Tony Finch <fanf@demon.net> <dot@dotat.at>
+ * This file is
+ * Copyright (C) 1999 Tony Finch <fanf@demon.net> <dot@dotat.at>
+ * Copyright (C) 1999 Ian Jackson <ian@davenant.greenend.org.uk>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software Foundation,
- * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * This version was originally supplied by Tony Finch, but has been
+ * modified by Ian Jackson as it was incorporated into adns.
*/
static const char * const cvsid =
*/
static const char * const cvsid =
printf("%.*s%s%s", addr - start, start, domain, rest);
else
fputs(start, stdout);
printf("%.*s%s%s", addr - start, start, domain, rest);
else
fputs(start, stdout);
- /* XXX: error checking */
+ if (ferror(stdout)) aargh("write output");
}
typedef struct logline {
}
typedef struct logline {
-int main(int argc, char *argv[])
-{
+int main(int argc, char *argv[]) {
progname= *argv;
proclog();
progname= *argv;
proclog();
+ if (fclose(stdout)) aargh("finish writing output");
lib_dir= $(exec_prefix)/lib
include_dir= $(prefix)/include
lib_dir= $(exec_prefix)/lib
include_dir= $(prefix)/include
-INSTALL= install -c -o 0 -g 0
INSTALL_PROGRAM= $(INSTALL) -m 755 $(INSTALL_PROGRAM_FLAGS)
INSTALL_DATA= $(INSTALL) -m 644
INSTALL_PROGRAM= $(INSTALL) -m 755 $(INSTALL_PROGRAM_FLAGS)
INSTALL_DATA= $(INSTALL) -m 644