Compare commits
1 Commits
dynamic_li
...
start
Author | SHA1 | Date | |
---|---|---|---|
ba695d1ca2 |
139
pgworker/.in
Normal file
139
pgworker/.in
Normal file
@ -0,0 +1,139 @@
|
||||
/* .in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <cfg.h> header file. */
|
||||
#undef HAVE_CFG_H
|
||||
|
||||
/* Define to 1 if you have the <containers_public.h> header file. */
|
||||
#undef HAVE_CONTAINERS_PUBLIC_H
|
||||
|
||||
/* Define to 1 if you have the <count.h> header file. */
|
||||
#undef HAVE_COUNT_H
|
||||
|
||||
/* Define to 1 if you have the `findcfgl' function. */
|
||||
#undef HAVE_FINDCFGL
|
||||
|
||||
/* Define to 1 if you have the `findcfglx' function. */
|
||||
#undef HAVE_FINDCFGLX
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#undef HAVE_FORK
|
||||
|
||||
/* Define to 1 if you have the `htmalloc' function. */
|
||||
#undef HAVE_HTMALLOC
|
||||
|
||||
/* Define to 1 if you have the <htmalloc.h> header file. */
|
||||
#undef HAVE_HTMALLOC_H
|
||||
|
||||
/* Define to 1 if you have the `htrealloc' function. */
|
||||
#undef HAVE_HTREALLOC
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define to 1 if you have the `pq' library (-lpq). */
|
||||
#undef HAVE_LIBPQ
|
||||
|
||||
/* Define to 1 if you have the <libpq-fe.h> header file. */
|
||||
#undef HAVE_LIBPQ_FE_H
|
||||
|
||||
/* Define to 1 if you have the `smmapdfw' library (-lsmmapdfw). */
|
||||
#undef HAVE_LIBSMMAPDFW
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the <queue.h> header file. */
|
||||
#undef HAVE_QUEUE_H
|
||||
|
||||
/* Define to 1 if you have the <smmapd.h> header file. */
|
||||
#undef HAVE_SMMAPD_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `syslog' function. */
|
||||
#undef HAVE_SYSLOG
|
||||
|
||||
/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#undef HAVE_SYSLOG_H
|
||||
|
||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
#undef HAVE_SYS_SELECT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#undef HAVE_SYS_SOCKET_H
|
||||
|
||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H
|
||||
|
||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H
|
||||
|
||||
/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H
|
||||
|
||||
/* Define to 1 if you have the `vfork' function. */
|
||||
#undef HAVE_VFORK
|
||||
|
||||
/* Define to 1 if you have the <vfork.h> header file. */
|
||||
#undef HAVE_VFORK_H
|
||||
|
||||
/* Define to 1 if `fork' works. */
|
||||
#undef HAVE_WORKING_FORK
|
||||
|
||||
/* Define to 1 if `vfork' works. */
|
||||
#undef HAVE_WORKING_VFORK
|
||||
|
||||
/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT
|
||||
|
||||
/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME
|
||||
|
||||
/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING
|
||||
|
||||
/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME
|
||||
|
||||
/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION
|
||||
|
||||
/* Define to the type of arg 1 for `select'. */
|
||||
#undef SELECT_TYPE_ARG1
|
||||
|
||||
/* Define to the type of args 2, 3 and 4 for `select'. */
|
||||
#undef SELECT_TYPE_ARG234
|
||||
|
||||
/* Define to the type of arg 5 for `select'. */
|
||||
#undef SELECT_TYPE_ARG5
|
||||
|
||||
/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS
|
||||
|
||||
/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME
|
||||
|
||||
/* Define to empty if `const' does not conform to ANSI C. */
|
||||
#undef const
|
||||
|
||||
/* Define to `int' if <sys/types.h> does not define. */
|
||||
#undef pid_t
|
||||
|
||||
/* Define to `unsigned' if <sys/types.h> does not define. */
|
||||
#undef size_t
|
||||
|
||||
/* Define as `fork' if `vfork' does not work. */
|
||||
#undef vfork
|
1
pgworker/AUTHORS
Normal file
1
pgworker/AUTHORS
Normal file
@ -0,0 +1 @@
|
||||
Wolfgang Hottgenroth <woho@hottis.de>
|
182
pgworker/INSTALL
Normal file
182
pgworker/INSTALL
Normal file
@ -0,0 +1,182 @@
|
||||
Basic Installation
|
||||
==================
|
||||
|
||||
These are generic installation instructions.
|
||||
|
||||
The `configure' shell script attempts to guess correct values for
|
||||
various system-dependent variables used during compilation. It uses
|
||||
those values to create a `Makefile' in each directory of the package.
|
||||
It may also create one or more `.h' files containing system-dependent
|
||||
definitions. Finally, it creates a shell script `config.status' that
|
||||
you can run in the future to recreate the current configuration, a file
|
||||
`config.cache' that saves the results of its tests to speed up
|
||||
reconfiguring, and a file `config.log' containing compiler output
|
||||
(useful mainly for debugging `configure').
|
||||
|
||||
If you need to do unusual things to compile the package, please try
|
||||
to figure out how `configure' could check whether to do them, and mail
|
||||
diffs or instructions to the address given in the `README' so they can
|
||||
be considered for the next release. If at some point `config.cache'
|
||||
contains results you don't want to keep, you may remove or edit it.
|
||||
|
||||
The file `configure.in' is used to create `configure' by a program
|
||||
called `autoconf'. You only need `configure.in' if you want to change
|
||||
it or regenerate `configure' using a newer version of `autoconf'.
|
||||
|
||||
The simplest way to compile this package is:
|
||||
|
||||
1. `cd' to the directory containing the package's source code and type
|
||||
`./configure' to configure the package for your system. If you're
|
||||
using `csh' on an old version of System V, you might need to type
|
||||
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||
`configure' itself.
|
||||
|
||||
Running `configure' takes awhile. While running, it prints some
|
||||
messages telling which features it is checking for.
|
||||
|
||||
2. Type `make' to compile the package.
|
||||
|
||||
3. Optionally, type `make check' to run any self-tests that come with
|
||||
the package.
|
||||
|
||||
4. Type `make install' to install the programs and any data files and
|
||||
documentation.
|
||||
|
||||
5. You can remove the program binaries and object files from the
|
||||
source code directory by typing `make clean'. To also remove the
|
||||
files that `configure' created (so you can compile the package for
|
||||
a different kind of computer), type `make distclean'. There is
|
||||
also a `make maintainer-clean' target, but that is intended mainly
|
||||
for the package's developers. If you use it, you may have to get
|
||||
all sorts of other programs in order to regenerate files that came
|
||||
with the distribution.
|
||||
|
||||
Compilers and Options
|
||||
=====================
|
||||
|
||||
Some systems require unusual options for compilation or linking that
|
||||
the `configure' script does not know about. You can give `configure'
|
||||
initial values for variables by setting them in the environment. Using
|
||||
a Bourne-compatible shell, you can do that on the command line like
|
||||
this:
|
||||
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||
|
||||
Or on systems that have the `env' program, you can do it like this:
|
||||
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||
|
||||
Compiling For Multiple Architectures
|
||||
====================================
|
||||
|
||||
You can compile the package for more than one kind of computer at the
|
||||
same time, by placing the object files for each architecture in their
|
||||
own directory. To do this, you must use a version of `make' that
|
||||
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||
directory where you want the object files and executables to go and run
|
||||
the `configure' script. `configure' automatically checks for the
|
||||
source code in the directory that `configure' is in and in `..'.
|
||||
|
||||
If you have to use a `make' that does not supports the `VPATH'
|
||||
variable, you have to compile the package for one architecture at a time
|
||||
in the source code directory. After you have installed the package for
|
||||
one architecture, use `make distclean' before reconfiguring for another
|
||||
architecture.
|
||||
|
||||
Installation Names
|
||||
==================
|
||||
|
||||
By default, `make install' will install the package's files in
|
||||
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||
installation prefix other than `/usr/local' by giving `configure' the
|
||||
option `--prefix=PATH'.
|
||||
|
||||
You can specify separate installation prefixes for
|
||||
architecture-specific files and architecture-independent files. If you
|
||||
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||
PATH as the prefix for installing programs and libraries.
|
||||
Documentation and other data files will still use the regular prefix.
|
||||
|
||||
In addition, if you use an unusual directory layout you can give
|
||||
options like `--bindir=PATH' to specify different values for particular
|
||||
kinds of files. Run `configure --help' for a list of the directories
|
||||
you can set and what kinds of files go in them.
|
||||
|
||||
If the package supports it, you can cause programs to be installed
|
||||
with an extra prefix or suffix on their names by giving `configure' the
|
||||
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||
|
||||
Optional Features
|
||||
=================
|
||||
|
||||
Some packages pay attention to `--enable-FEATURE' options to
|
||||
`configure', where FEATURE indicates an optional part of the package.
|
||||
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||
is something like `gnu-as' or `x' (for the X Window System). The
|
||||
`README' should mention any `--enable-' and `--with-' options that the
|
||||
package recognizes.
|
||||
|
||||
For packages that use the X Window System, `configure' can usually
|
||||
find the X include and library files automatically, but if it doesn't,
|
||||
you can use the `configure' options `--x-includes=DIR' and
|
||||
`--x-libraries=DIR' to specify their locations.
|
||||
|
||||
Specifying the System Type
|
||||
==========================
|
||||
|
||||
There may be some features `configure' can not figure out
|
||||
automatically, but needs to determine by the type of host the package
|
||||
will run on. Usually `configure' can figure that out, but if it prints
|
||||
a message saying it can not guess the host type, give it the
|
||||
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||
type, such as `sun4', or a canonical name with three fields:
|
||||
CPU-COMPANY-SYSTEM
|
||||
|
||||
See the file `config.sub' for the possible values of each field. If
|
||||
`config.sub' isn't included in this package, then this package doesn't
|
||||
need to know the host type.
|
||||
|
||||
If you are building compiler tools for cross-compiling, you can also
|
||||
use the `--target=TYPE' option to select the type of system they will
|
||||
produce code for and the `--build=TYPE' option to select the type of
|
||||
system on which you are compiling the package.
|
||||
|
||||
Sharing Defaults
|
||||
================
|
||||
|
||||
If you want to set default values for `configure' scripts to share,
|
||||
you can create a site shell script called `config.site' that gives
|
||||
default values for variables like `CC', `cache_file', and `prefix'.
|
||||
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||
`CONFIG_SITE' environment variable to the location of the site script.
|
||||
A warning: not all `configure' scripts look for a site script.
|
||||
|
||||
Operation Controls
|
||||
==================
|
||||
|
||||
`configure' recognizes the following options to control how it
|
||||
operates.
|
||||
|
||||
`--cache-file=FILE'
|
||||
Use and save the results of the tests in FILE instead of
|
||||
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||
debugging `configure'.
|
||||
|
||||
`--help'
|
||||
Print a summary of the options to `configure', and exit.
|
||||
|
||||
`--quiet'
|
||||
`--silent'
|
||||
`-q'
|
||||
Do not print messages saying which checks are being made. To
|
||||
suppress all normal output, redirect it to `/dev/null' (any error
|
||||
messages will still be shown).
|
||||
|
||||
`--srcdir=DIR'
|
||||
Look for the package's source code in directory DIR. Usually
|
||||
`configure' can determine that directory automatically.
|
||||
|
||||
`--version'
|
||||
Print the version of Autoconf used to generate the `configure'
|
||||
script, and exit.
|
||||
|
||||
`configure' also accepts some other, not widely useful, options.
|
3
pgworker/Makefile.am
Normal file
3
pgworker/Makefile.am
Normal file
@ -0,0 +1,3 @@
|
||||
SUBDIRS = pgworker
|
||||
|
||||
|
@ -61,7 +61,6 @@ host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
@ -87,7 +86,7 @@ RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
SUBDIRS = libsmmapdfw smmapd verify_worker test_worker cyrus_worker
|
||||
SUBDIRS = pgworker
|
||||
ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = config.h
|
5483
pgworker/autom4te.cache/output.0
Normal file
5483
pgworker/autom4te.cache/output.0
Normal file
File diff suppressed because it is too large
Load Diff
21748
pgworker/autom4te.cache/output.1
Normal file
21748
pgworker/autom4te.cache/output.1
Normal file
File diff suppressed because it is too large
Load Diff
224
pgworker/autom4te.cache/requests
Normal file
224
pgworker/autom4te.cache/requests
Normal file
@ -0,0 +1,224 @@
|
||||
# This file was generated by Autom4te Mon Sep 13 19:52:04 PDT 2004.
|
||||
# It contains the lists of macros which have been traced.
|
||||
# It can be safely removed.
|
||||
|
||||
@request = (
|
||||
bless( [
|
||||
'0',
|
||||
1,
|
||||
[
|
||||
'/usr/share/autoconf'
|
||||
],
|
||||
[
|
||||
'/usr/share/autoconf/autoconf/autoconf.m4f',
|
||||
'configure.ac'
|
||||
],
|
||||
{
|
||||
'm4_pattern_forbid' => 1,
|
||||
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
||||
'AC_C_VOLATILE' => 1,
|
||||
'AC_TYPE_OFF_T' => 1,
|
||||
'AC_FUNC_CLOSEDIR_VOID' => 1,
|
||||
'AC_REPLACE_FNMATCH' => 1,
|
||||
'AC_PROG_LIBTOOL' => 1,
|
||||
'AC_FUNC_STAT' => 1,
|
||||
'AC_FUNC_WAIT3' => 1,
|
||||
'AC_HEADER_TIME' => 1,
|
||||
'AC_FUNC_LSTAT' => 1,
|
||||
'AC_STRUCT_TM' => 1,
|
||||
'AM_AUTOMAKE_VERSION' => 1,
|
||||
'AC_FUNC_GETMNTENT' => 1,
|
||||
'AC_TYPE_MODE_T' => 1,
|
||||
'AC_FUNC_STRTOD' => 1,
|
||||
'AC_CHECK_HEADERS' => 1,
|
||||
'AC_FUNC_STRNLEN' => 1,
|
||||
'm4_sinclude' => 1,
|
||||
'AC_PROG_CXX' => 1,
|
||||
'AC_PATH_X' => 1,
|
||||
'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
|
||||
'AC_PROG_AWK' => 1,
|
||||
'_m4_warn' => 1,
|
||||
'AC_HEADER_STDC' => 1,
|
||||
'AC_HEADER_MAJOR' => 1,
|
||||
'AC_FUNC_ERROR_AT_LINE' => 1,
|
||||
'AC_PROG_GCC_TRADITIONAL' => 1,
|
||||
'AC_LIBSOURCE' => 1,
|
||||
'AC_FUNC_MBRTOWC' => 1,
|
||||
'AC_STRUCT_ST_BLOCKS' => 1,
|
||||
'AC_TYPE_SIGNAL' => 1,
|
||||
'AC_TYPE_UID_T' => 1,
|
||||
'AC_PROG_MAKE_SET' => 1,
|
||||
'AC_CONFIG_AUX_DIR' => 1,
|
||||
'm4_pattern_allow' => 1,
|
||||
'sinclude' => 1,
|
||||
'AC_DEFINE_TRACE_LITERAL' => 1,
|
||||
'AC_FUNC_STRERROR_R' => 1,
|
||||
'AC_PROG_CC' => 1,
|
||||
'AC_DECL_SYS_SIGLIST' => 1,
|
||||
'AC_FUNC_FORK' => 1,
|
||||
'AC_FUNC_STRCOLL' => 1,
|
||||
'AC_FUNC_VPRINTF' => 1,
|
||||
'AC_PROG_YACC' => 1,
|
||||
'AC_INIT' => 1,
|
||||
'AC_STRUCT_TIMEZONE' => 1,
|
||||
'AC_FUNC_CHOWN' => 1,
|
||||
'AC_SUBST' => 1,
|
||||
'AC_FUNC_ALLOCA' => 1,
|
||||
'AC_CANONICAL_HOST' => 1,
|
||||
'AC_FUNC_GETPGRP' => 1,
|
||||
'AC_PROG_RANLIB' => 1,
|
||||
'AM_INIT_AUTOMAKE' => 1,
|
||||
'AC_FUNC_SETPGRP' => 1,
|
||||
'AC_CONFIG_SUBDIRS' => 1,
|
||||
'AC_FUNC_MMAP' => 1,
|
||||
'AC_FUNC_REALLOC' => 1,
|
||||
'AC_TYPE_SIZE_T' => 1,
|
||||
'AC_CONFIG_LINKS' => 1,
|
||||
'AC_CHECK_TYPES' => 1,
|
||||
'AC_CHECK_MEMBERS' => 1,
|
||||
'AM_MAINTAINER_MODE' => 1,
|
||||
'AC_FUNC_UTIME_NULL' => 1,
|
||||
'AC_FUNC_SELECT_ARGTYPES' => 1,
|
||||
'AC_HEADER_STAT' => 1,
|
||||
'AC_FUNC_STRFTIME' => 1,
|
||||
'AC_PROG_CPP' => 1,
|
||||
'AC_C_INLINE' => 1,
|
||||
'AC_PROG_LEX' => 1,
|
||||
'AC_C_CONST' => 1,
|
||||
'AC_TYPE_PID_T' => 1,
|
||||
'AC_CONFIG_FILES' => 1,
|
||||
'include' => 1,
|
||||
'AC_FUNC_SETVBUF_REVERSED' => 1,
|
||||
'AC_PROG_INSTALL' => 1,
|
||||
'AM_GNU_GETTEXT' => 1,
|
||||
'AC_CHECK_LIB' => 1,
|
||||
'AC_FUNC_OBSTACK' => 1,
|
||||
'AC_FUNC_MALLOC' => 1,
|
||||
'AC_FUNC_GETGROUPS' => 1,
|
||||
'AC_FUNC_GETLOADAVG' => 1,
|
||||
'AH_OUTPUT' => 1,
|
||||
'AC_FUNC_FSEEKO' => 1,
|
||||
'AM_PROG_CC_C_O' => 1,
|
||||
'AC_FUNC_MKTIME' => 1,
|
||||
'AC_CANONICAL_SYSTEM' => 1,
|
||||
'AM_CONDITIONAL' => 1,
|
||||
'AC_CONFIG_HEADERS' => 1,
|
||||
'AC_HEADER_SYS_WAIT' => 1,
|
||||
'AC_PROG_LN_S' => 1,
|
||||
'AC_FUNC_MEMCMP' => 1,
|
||||
'm4_include' => 1,
|
||||
'AC_HEADER_DIRENT' => 1,
|
||||
'AC_CHECK_FUNCS' => 1
|
||||
}
|
||||
], 'Autom4te::Request' ),
|
||||
bless( [
|
||||
'1',
|
||||
1,
|
||||
[
|
||||
'/usr/share/autoconf'
|
||||
],
|
||||
[
|
||||
'/usr/share/autoconf/autoconf/autoconf.m4f',
|
||||
'aclocal.m4',
|
||||
'configure.ac'
|
||||
],
|
||||
{
|
||||
'm4_pattern_forbid' => 1,
|
||||
'AC_CONFIG_LIBOBJ_DIR' => 1,
|
||||
'AC_C_VOLATILE' => 1,
|
||||
'AC_TYPE_OFF_T' => 1,
|
||||
'AC_FUNC_CLOSEDIR_VOID' => 1,
|
||||
'AC_REPLACE_FNMATCH' => 1,
|
||||
'AC_PROG_LIBTOOL' => 1,
|
||||
'AC_FUNC_STAT' => 1,
|
||||
'AC_FUNC_WAIT3' => 1,
|
||||
'AC_HEADER_TIME' => 1,
|
||||
'AC_FUNC_LSTAT' => 1,
|
||||
'AC_STRUCT_TM' => 1,
|
||||
'AM_AUTOMAKE_VERSION' => 1,
|
||||
'AC_FUNC_GETMNTENT' => 1,
|
||||
'AC_TYPE_MODE_T' => 1,
|
||||
'AC_FUNC_STRTOD' => 1,
|
||||
'AC_CHECK_HEADERS' => 1,
|
||||
'AC_FUNC_STRNLEN' => 1,
|
||||
'm4_sinclude' => 1,
|
||||
'AC_PROG_CXX' => 1,
|
||||
'AC_PATH_X' => 1,
|
||||
'AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK' => 1,
|
||||
'AC_PROG_AWK' => 1,
|
||||
'_m4_warn' => 1,
|
||||
'AC_HEADER_STDC' => 1,
|
||||
'AC_HEADER_MAJOR' => 1,
|
||||
'AC_FUNC_ERROR_AT_LINE' => 1,
|
||||
'AC_PROG_GCC_TRADITIONAL' => 1,
|
||||
'AC_LIBSOURCE' => 1,
|
||||
'AC_FUNC_MBRTOWC' => 1,
|
||||
'AC_STRUCT_ST_BLOCKS' => 1,
|
||||
'AC_TYPE_SIGNAL' => 1,
|
||||
'AC_TYPE_UID_T' => 1,
|
||||
'AC_PROG_MAKE_SET' => 1,
|
||||
'AC_CONFIG_AUX_DIR' => 1,
|
||||
'm4_pattern_allow' => 1,
|
||||
'sinclude' => 1,
|
||||
'AC_DEFINE_TRACE_LITERAL' => 1,
|
||||
'AC_FUNC_STRERROR_R' => 1,
|
||||
'AC_PROG_CC' => 1,
|
||||
'AC_FUNC_FORK' => 1,
|
||||
'AC_DECL_SYS_SIGLIST' => 1,
|
||||
'AC_FUNC_STRCOLL' => 1,
|
||||
'AC_FUNC_VPRINTF' => 1,
|
||||
'AC_PROG_YACC' => 1,
|
||||
'AC_INIT' => 1,
|
||||
'AC_STRUCT_TIMEZONE' => 1,
|
||||
'AC_FUNC_CHOWN' => 1,
|
||||
'AC_SUBST' => 1,
|
||||
'AC_FUNC_ALLOCA' => 1,
|
||||
'AC_CANONICAL_HOST' => 1,
|
||||
'AC_FUNC_GETPGRP' => 1,
|
||||
'AC_PROG_RANLIB' => 1,
|
||||
'AM_INIT_AUTOMAKE' => 1,
|
||||
'AC_FUNC_SETPGRP' => 1,
|
||||
'AC_CONFIG_SUBDIRS' => 1,
|
||||
'AC_FUNC_MMAP' => 1,
|
||||
'AC_FUNC_REALLOC' => 1,
|
||||
'AC_TYPE_SIZE_T' => 1,
|
||||
'AC_CONFIG_LINKS' => 1,
|
||||
'AC_CHECK_TYPES' => 1,
|
||||
'AC_CHECK_MEMBERS' => 1,
|
||||
'AM_MAINTAINER_MODE' => 1,
|
||||
'AC_FUNC_UTIME_NULL' => 1,
|
||||
'AC_FUNC_SELECT_ARGTYPES' => 1,
|
||||
'AC_HEADER_STAT' => 1,
|
||||
'AC_FUNC_STRFTIME' => 1,
|
||||
'AC_PROG_CPP' => 1,
|
||||
'AC_C_INLINE' => 1,
|
||||
'AC_PROG_LEX' => 1,
|
||||
'AC_C_CONST' => 1,
|
||||
'AC_TYPE_PID_T' => 1,
|
||||
'AC_CONFIG_FILES' => 1,
|
||||
'include' => 1,
|
||||
'AC_FUNC_SETVBUF_REVERSED' => 1,
|
||||
'AC_PROG_INSTALL' => 1,
|
||||
'AM_GNU_GETTEXT' => 1,
|
||||
'AC_FUNC_OBSTACK' => 1,
|
||||
'AC_CHECK_LIB' => 1,
|
||||
'AC_FUNC_MALLOC' => 1,
|
||||
'AC_FUNC_GETGROUPS' => 1,
|
||||
'AC_FUNC_GETLOADAVG' => 1,
|
||||
'AH_OUTPUT' => 1,
|
||||
'AC_FUNC_FSEEKO' => 1,
|
||||
'AM_PROG_CC_C_O' => 1,
|
||||
'AC_FUNC_MKTIME' => 1,
|
||||
'AC_CANONICAL_SYSTEM' => 1,
|
||||
'AM_CONDITIONAL' => 1,
|
||||
'AC_CONFIG_HEADERS' => 1,
|
||||
'AC_HEADER_SYS_WAIT' => 1,
|
||||
'AC_PROG_LN_S' => 1,
|
||||
'AC_FUNC_MEMCMP' => 1,
|
||||
'm4_include' => 1,
|
||||
'AC_HEADER_DIRENT' => 1,
|
||||
'AC_CHECK_FUNCS' => 1
|
||||
}
|
||||
], 'Autom4te::Request' )
|
||||
);
|
||||
|
220
pgworker/autom4te.cache/traces.0
Normal file
220
pgworker/autom4te.cache/traces.0
Normal file
@ -0,0 +1,220 @@
|
||||
m4trace:configure.ac:5: -1- AC_INIT([pgworker], [0.1], [woho@hottis.de])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PATH_SEPARATOR])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([exec_prefix], [NONE])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([prefix], [NONE])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([program_transform_name], [s,x,x,])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([datadir], ['${prefix}/share'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([includedir], ['${prefix}/include'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([oldincludedir], ['/usr/include'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([infodir], ['${prefix}/info'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([mandir], ['${prefix}/man'])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([build_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([host_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([target_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([DEFS])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_C])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_N])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_T])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([LIBS])
|
||||
m4trace:configure.ac:9: -1- AC_CONFIG_HEADERS([config.h])
|
||||
m4trace:configure.ac:11: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
|
||||
You should run autoupdate.], [autoconf/c.m4:71: AC_LANG_C is expanded from...
|
||||
configure.ac:11: the top level])
|
||||
m4trace:configure.ac:26: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:26: the top level])
|
||||
m4trace:configure.ac:41: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:41: the top level])
|
||||
m4trace:configure.ac:56: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:56: the top level])
|
||||
m4trace:configure.ac:71: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:71: the top level])
|
||||
m4trace:configure.ac:77: -1- AC_PROG_CC
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([LDFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
|
||||
m4trace:configure.ac:79: -1- AC_PROG_MAKE_SET
|
||||
m4trace:configure.ac:79: -1- AC_SUBST([SET_MAKE])
|
||||
m4trace:configure.ac:82: -1- AC_CHECK_LIB([m], [sin])
|
||||
m4trace:configure.ac:82: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */
|
||||
#undef HAVE_LIBM])
|
||||
m4trace:configure.ac:82: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM])
|
||||
m4trace:configure.ac:83: -1- AC_CHECK_LIB([pq], [PQstatus])
|
||||
m4trace:configure.ac:83: -1- AH_OUTPUT([HAVE_LIBPQ], [/* Define to 1 if you have the `pq\' library (-lpq). */
|
||||
#undef HAVE_LIBPQ])
|
||||
m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPQ])
|
||||
m4trace:configure.ac:84: -1- AC_CHECK_LIB([smmapdfw], [findcfgl])
|
||||
m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_LIBSMMAPDFW], [/* Define to 1 if you have the `smmapdfw\' library (-lsmmapdfw). */
|
||||
#undef HAVE_LIBSMMAPDFW])
|
||||
m4trace:configure.ac:84: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSMMAPDFW])
|
||||
m4trace:configure.ac:90: -1- AC_HEADER_STDC
|
||||
m4trace:configure.ac:90: -1- AC_PROG_CPP
|
||||
m4trace:configure.ac:90: -1- AC_SUBST([CPP])
|
||||
m4trace:configure.ac:90: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:90: -1- AC_SUBST([CPP])
|
||||
m4trace:configure.ac:90: -1- AC_SUBST([EGREP])
|
||||
m4trace:configure.ac:90: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
|
||||
m4trace:configure.ac:90: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS])
|
||||
m4trace:configure.ac:91: -1- AC_CHECK_HEADERS([stdlib.h string.h strings.h syslog.h unistd.h libpq-fe.h cfg.h containers_public.h smmapd.h htmalloc.h queue.h count.h])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SYSLOG_H], [/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#undef HAVE_SYSLOG_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_LIBPQ_FE_H], [/* Define to 1 if you have the <libpq-fe.h> header file. */
|
||||
#undef HAVE_LIBPQ_FE_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_CFG_H], [/* Define to 1 if you have the <cfg.h> header file. */
|
||||
#undef HAVE_CFG_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_CONTAINERS_PUBLIC_H], [/* Define to 1 if you have the <containers_public.h> header file. */
|
||||
#undef HAVE_CONTAINERS_PUBLIC_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SMMAPD_H], [/* Define to 1 if you have the <smmapd.h> header file. */
|
||||
#undef HAVE_SMMAPD_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_HTMALLOC_H], [/* Define to 1 if you have the <htmalloc.h> header file. */
|
||||
#undef HAVE_HTMALLOC_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_QUEUE_H], [/* Define to 1 if you have the <queue.h> header file. */
|
||||
#undef HAVE_QUEUE_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_COUNT_H], [/* Define to 1 if you have the <count.h> header file. */
|
||||
#undef HAVE_COUNT_H])
|
||||
m4trace:configure.ac:91: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
||||
inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:95: -1- AC_C_CONST
|
||||
m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([const])
|
||||
m4trace:configure.ac:95: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */
|
||||
#undef const])
|
||||
m4trace:configure.ac:96: -1- AC_TYPE_SIZE_T
|
||||
m4trace:configure.ac:96: -1- AC_DEFINE_TRACE_LITERAL([size_t])
|
||||
m4trace:configure.ac:96: -1- AH_OUTPUT([size_t], [/* Define to `unsigned\' if <sys/types.h> does not define. */
|
||||
#undef size_t])
|
||||
m4trace:configure.ac:97: -1- AC_HEADER_TIME
|
||||
m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME])
|
||||
m4trace:configure.ac:97: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME])
|
||||
m4trace:configure.ac:100: -1- AC_FUNC_FORK
|
||||
m4trace:configure.ac:100: -1- AC_TYPE_PID_T
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([pid_t])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if <sys/types.h> does not define. */
|
||||
#undef pid_t])
|
||||
m4trace:configure.ac:100: -1- AC_CHECK_HEADERS([unistd.h vfork.h])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_VFORK_H], [/* Define to 1 if you have the <vfork.h> header file. */
|
||||
#undef HAVE_VFORK_H])
|
||||
m4trace:configure.ac:100: -1- AC_CHECK_FUNCS([fork vfork])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */
|
||||
#undef HAVE_FORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_VFORK], [/* Define to 1 if you have the `vfork\' function. */
|
||||
#undef HAVE_VFORK])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_VFORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_WORKING_VFORK], [/* Define to 1 if `vfork\' works. */
|
||||
#undef HAVE_WORKING_VFORK])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([vfork])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([vfork], [/* Define as `fork\' if `vfork\' does not work. */
|
||||
#undef vfork])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_FORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_WORKING_FORK], [/* Define to 1 if `fork\' works. */
|
||||
#undef HAVE_WORKING_FORK])
|
||||
m4trace:configure.ac:103: -1- AC_FUNC_SELECT_ARGTYPES
|
||||
m4trace:configure.ac:103: -1- AC_CHECK_HEADERS([sys/select.h sys/socket.h])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
#undef HAVE_SYS_SELECT_H])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#undef HAVE_SYS_SOCKET_H])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG1])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG1], [/* Define to the type of arg 1 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG1])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG234])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG234], [/* Define to the type of args 2, 3 and 4 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG234])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG5])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG5], [/* Define to the type of arg 5 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG5])
|
||||
m4trace:configure.ac:105: -1- AC_CHECK_FUNCS([syslog findcfgl findcfglx htmalloc htrealloc], [], [AC_MSG_ERROR([*** missing function, we can't go without it])])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_SYSLOG], [/* Define to 1 if you have the `syslog\' function. */
|
||||
#undef HAVE_SYSLOG])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_FINDCFGL], [/* Define to 1 if you have the `findcfgl\' function. */
|
||||
#undef HAVE_FINDCFGL])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_FINDCFGLX], [/* Define to 1 if you have the `findcfglx\' function. */
|
||||
#undef HAVE_FINDCFGLX])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_HTMALLOC], [/* Define to 1 if you have the `htmalloc\' function. */
|
||||
#undef HAVE_HTMALLOC])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_HTREALLOC], [/* Define to 1 if you have the `htrealloc\' function. */
|
||||
#undef HAVE_HTREALLOC])
|
||||
m4trace:configure.ac:111: -1- AC_CONFIG_FILES([Makefile pgworker/Makefile])
|
||||
m4trace:configure.ac:113: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
|
||||
m4trace:configure.ac:113: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
|
545
pgworker/autom4te.cache/traces.1
Normal file
545
pgworker/autom4te.cache/traces.1
Normal file
@ -0,0 +1,545 @@
|
||||
m4trace:configure.ac:5: -1- AC_INIT([pgworker], [0.1], [woho@hottis.de])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?A[CHUM]_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([_AC_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^LIBOBJS$], [do not use LIBOBJS directly, use AC_LIBOBJ (see section `AC_LIBOBJ vs LIBOBJS'])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_allow([^AS_FLAGS$])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?m4_])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^dnl$])
|
||||
m4trace:configure.ac:5: -1- m4_pattern_forbid([^_?AS_])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([SHELL], [${CONFIG_SHELL-/bin/sh}])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PATH_SEPARATOR])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_NAME], [m4_ifdef([AC_PACKAGE_NAME], ['AC_PACKAGE_NAME'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_TARNAME], [m4_ifdef([AC_PACKAGE_TARNAME], ['AC_PACKAGE_TARNAME'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_VERSION], [m4_ifdef([AC_PACKAGE_VERSION], ['AC_PACKAGE_VERSION'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_STRING], [m4_ifdef([AC_PACKAGE_STRING], ['AC_PACKAGE_STRING'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([PACKAGE_BUGREPORT], [m4_ifdef([AC_PACKAGE_BUGREPORT], ['AC_PACKAGE_BUGREPORT'])])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([exec_prefix], [NONE])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([prefix], [NONE])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([program_transform_name], [s,x,x,])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([bindir], ['${exec_prefix}/bin'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sbindir], ['${exec_prefix}/sbin'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([libexecdir], ['${exec_prefix}/libexec'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([datadir], ['${prefix}/share'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sysconfdir], ['${prefix}/etc'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([sharedstatedir], ['${prefix}/com'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([localstatedir], ['${prefix}/var'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([libdir], ['${exec_prefix}/lib'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([includedir], ['${prefix}/include'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([oldincludedir], ['/usr/include'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([infodir], ['${prefix}/info'])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([mandir], ['${prefix}/man'])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_NAME])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_NAME], [/* Define to the full name of this package. */
|
||||
#undef PACKAGE_NAME])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_TARNAME])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_TARNAME], [/* Define to the one symbol short name of this package. */
|
||||
#undef PACKAGE_TARNAME])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_VERSION])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_VERSION], [/* Define to the version of this package. */
|
||||
#undef PACKAGE_VERSION])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_STRING])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_STRING], [/* Define to the full name and version of this package. */
|
||||
#undef PACKAGE_STRING])
|
||||
m4trace:configure.ac:5: -1- AC_DEFINE_TRACE_LITERAL([PACKAGE_BUGREPORT])
|
||||
m4trace:configure.ac:5: -1- AH_OUTPUT([PACKAGE_BUGREPORT], [/* Define to the address where bug reports for this package should be sent. */
|
||||
#undef PACKAGE_BUGREPORT])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([build_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([host_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([target_alias])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([DEFS])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_C])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_N])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([ECHO_T])
|
||||
m4trace:configure.ac:5: -1- AC_SUBST([LIBS])
|
||||
m4trace:configure.ac:6: -1- AM_INIT_AUTOMAKE([pgworker], [0.1])
|
||||
m4trace:configure.ac:6: -1- AM_AUTOMAKE_VERSION([1.4-p6])
|
||||
m4trace:configure.ac:6: -1- AC_PROG_INSTALL
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([INSTALL_PROGRAM])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([INSTALL_SCRIPT])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([INSTALL_DATA])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([PACKAGE])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([VERSION])
|
||||
m4trace:configure.ac:6: -2- AC_DEFINE_TRACE_LITERAL([PACKAGE])
|
||||
m4trace:configure.ac:6: -2- AH_OUTPUT([PACKAGE], [/* Name of package */
|
||||
#undef PACKAGE])
|
||||
m4trace:configure.ac:6: -2- AC_DEFINE_TRACE_LITERAL([VERSION])
|
||||
m4trace:configure.ac:6: -2- AH_OUTPUT([VERSION], [/* Version number of package */
|
||||
#undef VERSION])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([ACLOCAL])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([AUTOCONF])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([AUTOMAKE])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([AUTOHEADER])
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([MAKEINFO])
|
||||
m4trace:configure.ac:6: -1- AC_PROG_MAKE_SET
|
||||
m4trace:configure.ac:6: -1- AC_SUBST([SET_MAKE])
|
||||
m4trace:configure.ac:7: -1- AM_MAINTAINER_MODE
|
||||
m4trace:configure.ac:7: -1- AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
|
||||
m4trace:configure.ac:7: -1- AC_SUBST([MAINTAINER_MODE_TRUE])
|
||||
m4trace:configure.ac:7: -1- AC_SUBST([MAINTAINER_MODE_FALSE])
|
||||
m4trace:configure.ac:7: -1- AC_SUBST([MAINT])
|
||||
m4trace:configure.ac:9: -1- AC_CONFIG_HEADERS([config.h])
|
||||
m4trace:configure.ac:9: -1- _m4_warn([obsolete], [The macro `AC_OUTPUT_COMMANDS' is obsolete.
|
||||
You should run autoupdate.], [autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
|
||||
aclocal.m4:1010: AM_CONFIG_HEADER is expanded from...
|
||||
configure.ac:9: the top level])
|
||||
m4trace:configure.ac:9: -3- _m4_warn([obsolete], [The macro `_AC_OUTPUT_COMMANDS_CNT' is obsolete.
|
||||
You should run autoupdate.], [autoconf/status.m4:321: _AC_OUTPUT_COMMANDS_CNT is expanded from...
|
||||
autoconf/status.m4:318: AC_OUTPUT_COMMANDS is expanded from...
|
||||
aclocal.m4:1010: AM_CONFIG_HEADER is expanded from...
|
||||
configure.ac:9: the top level])
|
||||
m4trace:configure.ac:11: -1- _m4_warn([obsolete], [The macro `AC_LANG_C' is obsolete.
|
||||
You should run autoupdate.], [autoconf/c.m4:71: AC_LANG_C is expanded from...
|
||||
configure.ac:11: the top level])
|
||||
m4trace:configure.ac:26: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:26: the top level])
|
||||
m4trace:configure.ac:41: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:41: the top level])
|
||||
m4trace:configure.ac:56: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:56: the top level])
|
||||
m4trace:configure.ac:71: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
configure.ac:71: the top level])
|
||||
m4trace:configure.ac:77: -1- AC_PROG_CC
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([LDFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([ac_ct_CC])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([EXEEXT], [$ac_cv_exeext])
|
||||
m4trace:configure.ac:77: -1- AC_SUBST([OBJEXT], [$ac_cv_objext])
|
||||
m4trace:configure.ac:78: -1- AC_PROG_LIBTOOL
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
|
||||
aclocal.m4:2772: AC_ENABLE_SHARED is expanded from...
|
||||
configure.ac:78: AC_ENABLE_SHARED is required by...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
|
||||
aclocal.m4:2811: AC_ENABLE_STATIC is expanded from...
|
||||
configure.ac:78: AC_ENABLE_STATIC is required by...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
|
||||
aclocal.m4:2850: AC_ENABLE_FAST_INSTALL is expanded from...
|
||||
configure.ac:78: AC_ENABLE_FAST_INSTALL is required by...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_CANONICAL_HOST
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([build], [$ac_cv_build])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([build_cpu], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([build_vendor], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([build_os], [`echo $ac_cv_build | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([host], [$ac_cv_host])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([host_cpu], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\1/'`])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([host_vendor], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\2/'`])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([host_os], [`echo $ac_cv_host | sed 's/^\([[^-]]*\)-\([[^-]]*\)-\(.*\)$/\3/'`])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
aclocal.m4:3047: AC_PROG_LD is expanded from...
|
||||
configure.ac:78: AC_PROG_LD is required by...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([EGREP])
|
||||
m4trace:configure.ac:78: -1- AC_PROG_LN_S
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([LN_S], [$as_ln_s])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ECHO])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([AR])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ac_ct_AR])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([RANLIB])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ac_ct_RANLIB])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([STRIP])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ac_ct_STRIP])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1303: AC_ARG_ENABLE is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_TRY_LINK' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:2223: AC_TRY_LINK is expanded from...
|
||||
autoconf/general.m4:1799: AC_CACHE_VAL is expanded from...
|
||||
autoconf/general.m4:1808: AC_CACHE_CHECK is expanded from...
|
||||
aclocal.m4:1549: _LT_AC_LOCK is expanded from...
|
||||
configure.ac:78: _LT_AC_LOCK is required by...
|
||||
aclocal.m4:1980: AC_LIBTOOL_SYS_HARD_LINK_LOCKS is expanded from...
|
||||
aclocal.m4:3594: _LT_AC_LANG_C_CONFIG is expanded from...
|
||||
aclocal.m4:3461: AC_LIBTOOL_LANG_C_CONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_HEADERS([dlfcn.h])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_DLFCN_H], [/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H])
|
||||
m4trace:configure.ac:78: -1- AC_HEADER_STDC
|
||||
m4trace:configure.ac:78: -1- AC_PROG_CPP
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CPP])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CPP])
|
||||
m4trace:configure.ac:78: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_HEADERS([sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
|
||||
inttypes.h stdint.h unistd.h], [], [], [$ac_includes_default])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_SYS_TYPES_H], [/* Define to 1 if you have the <sys/types.h> header file. */
|
||||
#undef HAVE_SYS_TYPES_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_SYS_STAT_H], [/* Define to 1 if you have the <sys/stat.h> header file. */
|
||||
#undef HAVE_SYS_STAT_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_MEMORY_H], [/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_INTTYPES_H], [/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_STDINT_H], [/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H])
|
||||
m4trace:configure.ac:78: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
|
||||
lt_cv_dlopen="dyld"
|
||||
lt_cv_dlopen_libs=
|
||||
lt_cv_dlopen_self=yes
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
|
||||
[lt_cv_dlopen="dlopen"],
|
||||
[AC_CHECK_LIB([dl], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
||||
[AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_HELP_STRING' is obsolete.
|
||||
You should run autoupdate.], [autoconf/general.m4:219: AC_HELP_STRING is expanded from...
|
||||
autoconf/general.m4:1331: AC_ARG_WITH is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me:$LINENO: error: tag name \"$tagname\" already exists], [aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [back quotes and double quotes must not be escaped in: $as_me: error: tag name \"$tagname\" already exists], [aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_PROG_CXX
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CXX])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CXXFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([LDFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CXX])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ac_ct_CXX])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CXXCPP])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CPPFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([CXXCPP])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
|
||||
lt_cv_dlopen="dyld"
|
||||
lt_cv_dlopen_libs=
|
||||
lt_cv_dlopen_self=yes
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
|
||||
[lt_cv_dlopen="dlopen"],
|
||||
[AC_CHECK_LIB([dl], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
||||
[AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([F77])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([FFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([LDFLAGS])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([F77])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([ac_ct_F77])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
|
||||
You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
|
||||
aclocal.m4:4771: _LT_AC_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:4728: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
|
||||
and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
|
||||
aclocal.m4:4771: _LT_AC_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:4728: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [
|
||||
lt_cv_dlopen="dyld"
|
||||
lt_cv_dlopen_libs=
|
||||
lt_cv_dlopen_self=yes
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [shl_load], [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"], [AC_CHECK_FUNC([dlopen],
|
||||
[lt_cv_dlopen="dlopen"],
|
||||
[AC_CHECK_LIB([dl], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
|
||||
[AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dl], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"], [AC_CHECK_LIB([svld], [dlopen],
|
||||
[lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
|
||||
[AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([svld], [dlopen], [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"], [AC_CHECK_LIB([dld], [dld_link],
|
||||
[lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
])
|
||||
m4trace:configure.ac:78: -1- AC_CHECK_LIB([dld], [dld_link], [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
|
||||
You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
|
||||
aclocal.m4:4771: _LT_AC_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:4728: AC_LIBTOOL_LANG_GCJ_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_LANG_SAVE' is obsolete.
|
||||
You should run autoupdate.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
|
||||
aclocal.m4:4810: _LT_AC_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:4779: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [instead of using `AC_LANG', `AC_LANG_SAVE',
|
||||
and `AC_LANG_RESTORE', you should use `AC_LANG_PUSH' and `AC_LANG_POP'.], [autoconf/lang.m4:166: AC_LANG_SAVE is expanded from...
|
||||
aclocal.m4:4810: _LT_AC_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:4779: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- _m4_warn([obsolete], [The macro `AC_LANG_RESTORE' is obsolete.
|
||||
You should run autoupdate.], [autoconf/lang.m4:172: AC_LANG_RESTORE is expanded from...
|
||||
aclocal.m4:4810: _LT_AC_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:4779: AC_LIBTOOL_LANG_RC_CONFIG is expanded from...
|
||||
aclocal.m4:2726: _LT_AC_TAGCONFIG is expanded from...
|
||||
aclocal.m4:1222: AC_LIBTOOL_SETUP is expanded from...
|
||||
configure.ac:78: AC_LIBTOOL_SETUP is required by...
|
||||
aclocal.m4:1080: _AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: _AC_PROG_LIBTOOL is required by...
|
||||
aclocal.m4:1060: AC_PROG_LIBTOOL is expanded from...
|
||||
configure.ac:78: the top level])
|
||||
m4trace:configure.ac:78: -1- AC_SUBST([LIBTOOL])
|
||||
m4trace:configure.ac:79: -1- AC_PROG_MAKE_SET
|
||||
m4trace:configure.ac:79: -1- AC_SUBST([SET_MAKE])
|
||||
m4trace:configure.ac:82: -1- AC_CHECK_LIB([m], [sin])
|
||||
m4trace:configure.ac:82: -1- AH_OUTPUT([HAVE_LIBM], [/* Define to 1 if you have the `m\' library (-lm). */
|
||||
#undef HAVE_LIBM])
|
||||
m4trace:configure.ac:82: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBM])
|
||||
m4trace:configure.ac:83: -1- AC_CHECK_LIB([pq], [PQstatus])
|
||||
m4trace:configure.ac:83: -1- AH_OUTPUT([HAVE_LIBPQ], [/* Define to 1 if you have the `pq\' library (-lpq). */
|
||||
#undef HAVE_LIBPQ])
|
||||
m4trace:configure.ac:83: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBPQ])
|
||||
m4trace:configure.ac:84: -1- AC_CHECK_LIB([smmapdfw], [findcfgl])
|
||||
m4trace:configure.ac:84: -1- AH_OUTPUT([HAVE_LIBSMMAPDFW], [/* Define to 1 if you have the `smmapdfw\' library (-lsmmapdfw). */
|
||||
#undef HAVE_LIBSMMAPDFW])
|
||||
m4trace:configure.ac:84: -1- AC_DEFINE_TRACE_LITERAL([HAVE_LIBSMMAPDFW])
|
||||
m4trace:configure.ac:90: -1- AC_HEADER_STDC
|
||||
m4trace:configure.ac:90: -1- AC_DEFINE_TRACE_LITERAL([STDC_HEADERS])
|
||||
m4trace:configure.ac:90: -1- AH_OUTPUT([STDC_HEADERS], [/* Define to 1 if you have the ANSI C header files. */
|
||||
#undef STDC_HEADERS])
|
||||
m4trace:configure.ac:91: -1- AC_CHECK_HEADERS([stdlib.h string.h strings.h syslog.h unistd.h libpq-fe.h cfg.h containers_public.h smmapd.h htmalloc.h queue.h count.h])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STDLIB_H], [/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRING_H], [/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_STRINGS_H], [/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SYSLOG_H], [/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#undef HAVE_SYSLOG_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_LIBPQ_FE_H], [/* Define to 1 if you have the <libpq-fe.h> header file. */
|
||||
#undef HAVE_LIBPQ_FE_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_CFG_H], [/* Define to 1 if you have the <cfg.h> header file. */
|
||||
#undef HAVE_CFG_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_CONTAINERS_PUBLIC_H], [/* Define to 1 if you have the <containers_public.h> header file. */
|
||||
#undef HAVE_CONTAINERS_PUBLIC_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_SMMAPD_H], [/* Define to 1 if you have the <smmapd.h> header file. */
|
||||
#undef HAVE_SMMAPD_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_HTMALLOC_H], [/* Define to 1 if you have the <htmalloc.h> header file. */
|
||||
#undef HAVE_HTMALLOC_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_QUEUE_H], [/* Define to 1 if you have the <queue.h> header file. */
|
||||
#undef HAVE_QUEUE_H])
|
||||
m4trace:configure.ac:91: -1- AH_OUTPUT([HAVE_COUNT_H], [/* Define to 1 if you have the <count.h> header file. */
|
||||
#undef HAVE_COUNT_H])
|
||||
m4trace:configure.ac:95: -1- AC_C_CONST
|
||||
m4trace:configure.ac:95: -1- AC_DEFINE_TRACE_LITERAL([const])
|
||||
m4trace:configure.ac:95: -1- AH_OUTPUT([const], [/* Define to empty if `const\' does not conform to ANSI C. */
|
||||
#undef const])
|
||||
m4trace:configure.ac:96: -1- AC_TYPE_SIZE_T
|
||||
m4trace:configure.ac:96: -1- AC_DEFINE_TRACE_LITERAL([size_t])
|
||||
m4trace:configure.ac:96: -1- AH_OUTPUT([size_t], [/* Define to `unsigned\' if <sys/types.h> does not define. */
|
||||
#undef size_t])
|
||||
m4trace:configure.ac:97: -1- AC_HEADER_TIME
|
||||
m4trace:configure.ac:97: -1- AC_DEFINE_TRACE_LITERAL([TIME_WITH_SYS_TIME])
|
||||
m4trace:configure.ac:97: -1- AH_OUTPUT([TIME_WITH_SYS_TIME], [/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
|
||||
#undef TIME_WITH_SYS_TIME])
|
||||
m4trace:configure.ac:100: -1- AC_FUNC_FORK
|
||||
m4trace:configure.ac:100: -1- AC_TYPE_PID_T
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([pid_t])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([pid_t], [/* Define to `int\' if <sys/types.h> does not define. */
|
||||
#undef pid_t])
|
||||
m4trace:configure.ac:100: -1- AC_CHECK_HEADERS([unistd.h vfork.h])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_UNISTD_H], [/* Define to 1 if you have the <unistd.h> header file. */
|
||||
#undef HAVE_UNISTD_H])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_VFORK_H], [/* Define to 1 if you have the <vfork.h> header file. */
|
||||
#undef HAVE_VFORK_H])
|
||||
m4trace:configure.ac:100: -1- AC_CHECK_FUNCS([fork vfork])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_FORK], [/* Define to 1 if you have the `fork\' function. */
|
||||
#undef HAVE_FORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_VFORK], [/* Define to 1 if you have the `vfork\' function. */
|
||||
#undef HAVE_VFORK])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_VFORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_WORKING_VFORK], [/* Define to 1 if `vfork\' works. */
|
||||
#undef HAVE_WORKING_VFORK])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([vfork])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([vfork], [/* Define as `fork\' if `vfork\' does not work. */
|
||||
#undef vfork])
|
||||
m4trace:configure.ac:100: -1- AC_DEFINE_TRACE_LITERAL([HAVE_WORKING_FORK])
|
||||
m4trace:configure.ac:100: -1- AH_OUTPUT([HAVE_WORKING_FORK], [/* Define to 1 if `fork\' works. */
|
||||
#undef HAVE_WORKING_FORK])
|
||||
m4trace:configure.ac:103: -1- AC_FUNC_SELECT_ARGTYPES
|
||||
m4trace:configure.ac:103: -1- AC_CHECK_HEADERS([sys/select.h sys/socket.h])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_SYS_SELECT_H], [/* Define to 1 if you have the <sys/select.h> header file. */
|
||||
#undef HAVE_SYS_SELECT_H])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([HAVE_SYS_SOCKET_H], [/* Define to 1 if you have the <sys/socket.h> header file. */
|
||||
#undef HAVE_SYS_SOCKET_H])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG1])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG1], [/* Define to the type of arg 1 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG1])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG234])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG234], [/* Define to the type of args 2, 3 and 4 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG234])
|
||||
m4trace:configure.ac:103: -1- AC_DEFINE_TRACE_LITERAL([SELECT_TYPE_ARG5])
|
||||
m4trace:configure.ac:103: -1- AH_OUTPUT([SELECT_TYPE_ARG5], [/* Define to the type of arg 5 for `select\'. */
|
||||
#undef SELECT_TYPE_ARG5])
|
||||
m4trace:configure.ac:105: -1- AC_CHECK_FUNCS([syslog findcfgl findcfglx htmalloc htrealloc], [], [AC_MSG_ERROR([*** missing function, we can't go without it])])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_SYSLOG], [/* Define to 1 if you have the `syslog\' function. */
|
||||
#undef HAVE_SYSLOG])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_FINDCFGL], [/* Define to 1 if you have the `findcfgl\' function. */
|
||||
#undef HAVE_FINDCFGL])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_FINDCFGLX], [/* Define to 1 if you have the `findcfglx\' function. */
|
||||
#undef HAVE_FINDCFGLX])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_HTMALLOC], [/* Define to 1 if you have the `htmalloc\' function. */
|
||||
#undef HAVE_HTMALLOC])
|
||||
m4trace:configure.ac:105: -1- AH_OUTPUT([HAVE_HTREALLOC], [/* Define to 1 if you have the `htrealloc\' function. */
|
||||
#undef HAVE_HTREALLOC])
|
||||
m4trace:configure.ac:111: -1- AC_CONFIG_FILES([Makefile pgworker/Makefile])
|
||||
m4trace:configure.ac:113: -1- AC_SUBST([LIB@&t@OBJS], [$ac_libobjs])
|
||||
m4trace:configure.ac:113: -1- AC_SUBST([LTLIBOBJS], [$ac_ltlibobjs])
|
@ -1,70 +1,58 @@
|
||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* enable verify cache */
|
||||
#undef ENABLE_VERIFY_CACHE
|
||||
/* Define to 1 if you have the <cfg.h> header file. */
|
||||
#undef HAVE_CFG_H
|
||||
|
||||
/* Define to 1 if you have the <arpa/inet.h> header file. */
|
||||
#undef HAVE_ARPA_INET_H
|
||||
/* Define to 1 if you have the <containers_public.h> header file. */
|
||||
#undef HAVE_CONTAINERS_PUBLIC_H
|
||||
|
||||
/* Define to 1 if you have the <db.h> header file. */
|
||||
#undef HAVE_DB_H
|
||||
|
||||
/* Define to 1 if you have the `dlerror' function. */
|
||||
#undef HAVE_DLERROR
|
||||
/* Define to 1 if you have the <count.h> header file. */
|
||||
#undef HAVE_COUNT_H
|
||||
|
||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
||||
#undef HAVE_DLFCN_H
|
||||
|
||||
/* Define to 1 if you have the `dlopen' function. */
|
||||
#undef HAVE_DLOPEN
|
||||
/* Define to 1 if you have the `findcfgl' function. */
|
||||
#undef HAVE_FINDCFGL
|
||||
|
||||
/* Define to 1 if you have the `dlsym' function. */
|
||||
#undef HAVE_DLSYM
|
||||
|
||||
/* Define to 1 if you have the <fcntl.h> header file. */
|
||||
#undef HAVE_FCNTL_H
|
||||
/* Define to 1 if you have the `findcfglx' function. */
|
||||
#undef HAVE_FINDCFGLX
|
||||
|
||||
/* Define to 1 if you have the `fork' function. */
|
||||
#undef HAVE_FORK
|
||||
|
||||
/* Define to 1 if you have the `inet_ntoa' function. */
|
||||
#undef HAVE_INET_NTOA
|
||||
/* Define to 1 if you have the `htmalloc' function. */
|
||||
#undef HAVE_HTMALLOC
|
||||
|
||||
/* Define to 1 if you have the <htmalloc.h> header file. */
|
||||
#undef HAVE_HTMALLOC_H
|
||||
|
||||
/* Define to 1 if you have the `htrealloc' function. */
|
||||
#undef HAVE_HTREALLOC
|
||||
|
||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
||||
#undef HAVE_INTTYPES_H
|
||||
|
||||
/* Define to 1 if you have the `dl' library (-ldl). */
|
||||
#undef HAVE_LIBDL
|
||||
|
||||
/* Define to 1 if you have the `m' library (-lm). */
|
||||
#undef HAVE_LIBM
|
||||
|
||||
/* Define to 1 if you have the `nsl' library (-lnsl). */
|
||||
#undef HAVE_LIBNSL
|
||||
/* Define to 1 if you have the `pq' library (-lpq). */
|
||||
#undef HAVE_LIBPQ
|
||||
|
||||
/* Define to 1 if you have the `resolv' library (-lresolv). */
|
||||
#undef HAVE_LIBRESOLV
|
||||
/* Define to 1 if you have the <libpq-fe.h> header file. */
|
||||
#undef HAVE_LIBPQ_FE_H
|
||||
|
||||
/* Define to 1 if you have the `socket' library (-lsocket). */
|
||||
#undef HAVE_LIBSOCKET
|
||||
/* Define to 1 if you have the `smmapdfw' library (-lsmmapdfw). */
|
||||
#undef HAVE_LIBSMMAPDFW
|
||||
|
||||
/* Define to 1 if you have the <memory.h> header file. */
|
||||
#undef HAVE_MEMORY_H
|
||||
|
||||
/* Define to 1 if you have the `memset' function. */
|
||||
#undef HAVE_MEMSET
|
||||
/* Define to 1 if you have the <queue.h> header file. */
|
||||
#undef HAVE_QUEUE_H
|
||||
|
||||
/* Define to 1 if you have the <netinet/in.h> header file. */
|
||||
#undef HAVE_NETINET_IN_H
|
||||
|
||||
/* Define to 1 if you have the `select' function. */
|
||||
#undef HAVE_SELECT
|
||||
|
||||
/* Define to 1 if you have the `socket' function. */
|
||||
#undef HAVE_SOCKET
|
||||
|
||||
/* Define to 1 if the system has the type `socklen_t'. */
|
||||
#undef HAVE_SOCKLEN_T
|
||||
/* Define to 1 if you have the <smmapd.h> header file. */
|
||||
#undef HAVE_SMMAPD_H
|
||||
|
||||
/* Define to 1 if you have the <stdint.h> header file. */
|
||||
#undef HAVE_STDINT_H
|
||||
@ -72,26 +60,14 @@
|
||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
||||
#undef HAVE_STDLIB_H
|
||||
|
||||
/* Define to 1 if you have the `strchr' function. */
|
||||
#undef HAVE_STRCHR
|
||||
|
||||
/* Define to 1 if you have the `strdup' function. */
|
||||
#undef HAVE_STRDUP
|
||||
|
||||
/* Define to 1 if you have the `strerror' function. */
|
||||
#undef HAVE_STRERROR
|
||||
|
||||
/* Define to 1 if you have the <strings.h> header file. */
|
||||
#undef HAVE_STRINGS_H
|
||||
|
||||
/* Define to 1 if you have the <string.h> header file. */
|
||||
#undef HAVE_STRING_H
|
||||
|
||||
/* Define to 1 if you have the `strrchr' function. */
|
||||
#undef HAVE_STRRCHR
|
||||
|
||||
/* Define to 1 if you have the `strtol' function. */
|
||||
#undef HAVE_STRTOL
|
||||
/* Define to 1 if you have the `syslog' function. */
|
||||
#undef HAVE_SYSLOG
|
||||
|
||||
/* Define to 1 if you have the <syslog.h> header file. */
|
||||
#undef HAVE_SYSLOG_H
|
1028
smmapdfw/configure → pgworker/configure
vendored
1028
smmapdfw/configure → pgworker/configure
vendored
File diff suppressed because it is too large
Load Diff
113
pgworker/configure.ac
Normal file
113
pgworker/configure.ac
Normal file
@ -0,0 +1,113 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
|
||||
AC_INIT(pgworker, 0.1, woho@hottis.de)
|
||||
AM_INIT_AUTOMAKE(pgworker, 0.1)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_LANG_C
|
||||
|
||||
AC_ARG_WITH(smmapdfw-lib-dir,
|
||||
[AC_HELP_STRING(--with-smmapdfw-lib-dir, [
|
||||
Directory for smmapdfw library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
AC_MSG_ERROR(Need smmapdfw-lib-dir)
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(smmapdfw-inc-dir,
|
||||
[AC_HELP_STRING(--with-smmapdfw-inc-dir, [
|
||||
Directory for smmapdfw include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
AC_MSG_ERROR(Need smmapdfw-inc-dir)
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(pgsql-lib-dir,
|
||||
[AC_HELP_STRING(--with-pgsql-lib-dir, [
|
||||
Directory for postgres library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
AC_MSG_ERROR(Need pgsql-lib-dir)
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(pgsql-inc-dir,
|
||||
[AC_HELP_STRING(--with-pgsql-inc-dir, [
|
||||
Directory for postgres include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
AC_MSG_ERROR(Need pgsql-inc-dir)
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([m], [sin])
|
||||
AC_CHECK_LIB([pq], [PQstatus])
|
||||
AC_CHECK_LIB([smmapdfw], [findcfgl])
|
||||
|
||||
|
||||
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([stdlib.h string.h strings.h syslog.h unistd.h libpq-fe.h cfg.h containers_public.h smmapd.h htmalloc.h queue.h count.h])
|
||||
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_FORK
|
||||
dnl AC_FUNC_MALLOC
|
||||
dnl AC_FUNC_REALLOC
|
||||
AC_FUNC_SELECT_ARGTYPES
|
||||
AC_CHECK_FUNCS([syslog findcfgl findcfglx htmalloc htrealloc], [],
|
||||
[AC_MSG_ERROR([*** missing function, we can't go without it])])
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
AC_CONFIG_FILES([Makefile pgworker/Makefile])
|
||||
|
||||
AC_OUTPUT
|
4
pgworker/pgworker/Makefile.am
Normal file
4
pgworker/pgworker/Makefile.am
Normal file
@ -0,0 +1,4 @@
|
||||
lib_LTLIBRARIES = libpg_worker.la
|
||||
libpg_worker_la_SOURCES = pg_worker.c
|
||||
|
||||
|
@ -61,7 +61,6 @@ host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
@ -87,11 +86,8 @@ RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
lib_LTLIBRARIES = libtest_workers.la
|
||||
libtest_workers_la_SOURCES = test_workers.c
|
||||
libtest_workers_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
lib_LTLIBRARIES = libpg_worker.la
|
||||
libpg_worker_la_SOURCES = pg_worker.c
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
@ -102,9 +98,9 @@ DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
libtest_workers_la_LDFLAGS =
|
||||
libtest_workers_la_DEPENDENCIES = ../libsmmapdfw/libsmmapdfw.la
|
||||
libtest_workers_la_OBJECTS = test_workers.lo
|
||||
libpg_worker_la_LDFLAGS =
|
||||
libpg_worker_la_LIBADD =
|
||||
libpg_worker_la_OBJECTS = pg_worker.lo
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
@ -117,15 +113,15 @@ DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
DEP_FILES = .deps/test_workers.P
|
||||
SOURCES = $(libtest_workers_la_SOURCES)
|
||||
OBJECTS = $(libtest_workers_la_OBJECTS)
|
||||
DEP_FILES = .deps/pg_worker.P
|
||||
SOURCES = $(libpg_worker_la_SOURCES)
|
||||
OBJECTS = $(libpg_worker_la_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .lo .o .obj .s
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu test_worker/Makefile
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu pgworker/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
@ -195,8 +191,8 @@ distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
libtest_workers.la: $(libtest_workers_la_OBJECTS) $(libtest_workers_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(libdir) $(libtest_workers_la_LDFLAGS) $(libtest_workers_la_OBJECTS) $(libtest_workers_la_LIBADD) $(LIBS)
|
||||
libpg_worker.la: $(libpg_worker_la_OBJECTS) $(libpg_worker_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(libdir) $(libpg_worker_la_LDFLAGS) $(libpg_worker_la_OBJECTS) $(libpg_worker_la_LIBADD) $(LIBS)
|
||||
|
||||
tags: TAGS
|
||||
|
||||
@ -229,14 +225,14 @@ maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = test_worker
|
||||
subdir = pgworker
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu test_worker/Makefile
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu pgworker/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
84
pgworker/pgworker/pg_worker.c
Normal file
84
pgworker/pgworker/pg_worker.c
Normal file
@ -0,0 +1,84 @@
|
||||
/*
|
||||
Copyright (C) 2004, Wolfgang Hottgenroth
|
||||
|
||||
This file is part of smmapdfw.
|
||||
|
||||
smmapdfw is free software; you can redistribute it and/or modify it
|
||||
under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation; either version 2 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
smmapdfw is distributed in the hope that it will be useful, but WITHOUT
|
||||
ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
|
||||
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
|
||||
License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with smmapdfw. If not, write to the Free Software Foundation, 59
|
||||
Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
|
||||
#include <libpq-fe.h>
|
||||
|
||||
#include <containers_public.h>
|
||||
|
||||
#include "htmalloc.h"
|
||||
|
||||
|
||||
int pg_worker_init(cfgl_t *cfg, void **handle);
|
||||
int pg_worker_setup(void *handle, void **work_handle);
|
||||
int pg_worker_destroy(void *handle, void *work_handle);
|
||||
int pg_worker_work(void *handle, void *work_handle, char *input, char *output);
|
||||
|
||||
class_descriptor_t pgworker = {
|
||||
"pgworker",
|
||||
&pg_worker_init,
|
||||
NULL,
|
||||
&pg_worker_setup,
|
||||
&pg_worker_work,
|
||||
&pg_worker_destroy
|
||||
};
|
||||
|
||||
|
||||
typedef struct pg_container_handle_s {
|
||||
int counter;
|
||||
} pg_container_handle_t;
|
||||
|
||||
typedef struct pg_worker_handle_s {
|
||||
int counter;
|
||||
} pg_worker_handle_t;
|
||||
|
||||
|
||||
|
||||
int pg_worker_init(cfgl_t *cfg, void **handle) {
|
||||
pg_container_handle_t *pch = (pg_container_handle_t*)htmalloc(sizeof(pg_container_handle_t));
|
||||
pch->counter = 0;
|
||||
*handle = pch;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pg_worker_setup(void *handle, void **work_handle) {
|
||||
pg_worker_handle_t *pwh = (pg_worker_handle_t*)htmalloc(sizeof(pg_worker_handle_t));
|
||||
pwh->counter = 0;
|
||||
*work_handle = pwh;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int pg_worker_destroy(void *handle, void *work_handle) {
|
||||
syslog(LOG_DEBUG, "pg_worker_destroy: freeing the worker handle");
|
||||
free(work_handle);
|
||||
}
|
||||
|
||||
int pg_worker_work(void *handle, void *work_handle, char *input, char *output) {
|
||||
pg_container_handle_t *pch = (pg_container_handle_t*) handle;
|
||||
pg_worker_handle_t *pwh = (pg_worker_handle_t*) work_handle;
|
||||
sprintf(output, "pg-worker receives %s (pch %p, pwh %p) (called %d)\n",
|
||||
input, pch, pwh, pwh->counter++);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
0
pgworker/stamp-h.in
Normal file
0
pgworker/stamp-h.in
Normal file
37
smmapd_prototype/Cache.py
Normal file
37
smmapd_prototype/Cache.py
Normal file
@ -0,0 +1,37 @@
|
||||
import threading
|
||||
import time
|
||||
|
||||
from Logging import *
|
||||
|
||||
|
||||
|
||||
class Cache(object):
|
||||
def __init__(self, expiration):
|
||||
self.lock = threading.Lock()
|
||||
self.expiration = expiration
|
||||
self.cache = {}
|
||||
|
||||
def put(self, key, value):
|
||||
self.lock.acquire()
|
||||
self.cache[key] = (time.time(), value)
|
||||
debug("cache.put(%s, %s)" % (str(key), str(value)))
|
||||
self.lock.release()
|
||||
|
||||
def get(self, key):
|
||||
try:
|
||||
self.lock.acquire()
|
||||
debug("cache.get(%s)" % str(key))
|
||||
try:
|
||||
timestamp, value = self.cache[key]
|
||||
debug("cache.get found: %s" % value)
|
||||
if (timestamp + self.expiration) < time.time():
|
||||
debug("cache.get: expired")
|
||||
del self.cache[key]
|
||||
raise KeyError
|
||||
return value
|
||||
except KeyError:
|
||||
debug("cache.get: found nothing")
|
||||
return None
|
||||
finally:
|
||||
self.lock.release()
|
||||
|
27
smmapd_prototype/CyrusChecker.py
Normal file
27
smmapd_prototype/CyrusChecker.py
Normal file
@ -0,0 +1,27 @@
|
||||
from Logging import *
|
||||
|
||||
from SendmailSocketMapHandler import smmapBaseHandlerWorker
|
||||
from SendmailSocketMapHandler import smmapBaseHandlerContainer
|
||||
from SendmailSocketMapHandler import MyPermanentVerifierException
|
||||
from SendmailSocketMapHandler import MyTemporaryVerifierException
|
||||
|
||||
from VerifierHandler import MySMTP
|
||||
|
||||
class MyLMTP(MySMTP):
|
||||
def lhlo(self, param):
|
||||
return self.docmd("lhlo " + param)
|
||||
|
||||
class CyrusCheckerWorker(smmapBaseHandlerWorker):
|
||||
OK = "OK"
|
||||
NOK = "NOK"
|
||||
TEMPNOK = "TEMPNOK"
|
||||
|
||||
def execute(self, data):
|
||||
debug("data " + data)
|
||||
|
||||
host, address = data.split('|')
|
||||
|
||||
debug("host: (%s), address: (%s)" % (host, address))
|
||||
|
||||
return "<OK>"
|
||||
|
14
smmapd_prototype/Logging.py
Normal file
14
smmapd_prototype/Logging.py
Normal file
@ -0,0 +1,14 @@
|
||||
import syslog
|
||||
|
||||
|
||||
config = None
|
||||
|
||||
def log(data):
|
||||
syslog.syslog(syslog.LOG_INFO, data)
|
||||
|
||||
def debug(data):
|
||||
syslog.syslog(syslog.LOG_DEBUG, data)
|
||||
|
||||
def openlog(c):
|
||||
config = c
|
||||
syslog.openlog(config.get('Logging', 'ApplID'), syslog.LOG_PID, syslog.LOG_MAIL)
|
8
smmapd_prototype/MANIFEST
Normal file
8
smmapd_prototype/MANIFEST
Normal file
@ -0,0 +1,8 @@
|
||||
Cache.py
|
||||
Logging.py
|
||||
SendmailSocketMapHandler.py
|
||||
VerifierHandler.py
|
||||
setup.py
|
||||
smmapd
|
||||
smmapd.ini
|
||||
verifysender.m4
|
190
smmapd_prototype/SendmailSocketMapHandler.py
Normal file
190
smmapd_prototype/SendmailSocketMapHandler.py
Normal file
@ -0,0 +1,190 @@
|
||||
import SocketServer
|
||||
import time
|
||||
|
||||
from Logging import *
|
||||
|
||||
|
||||
class NetStringError(ValueError): pass
|
||||
|
||||
def NetStringDecode(s):
|
||||
try:
|
||||
length, data = s.split(':')
|
||||
except ValueError:
|
||||
raise NetStringError, "Separator not found"
|
||||
try:
|
||||
length = int(length)
|
||||
except ValueError:
|
||||
raise NetStringError, "Can not read length"
|
||||
if len(data) != length+1:
|
||||
raise NetStringError, "Data has unexpected length"
|
||||
if data[-1] != ',':
|
||||
raise NetStringError, "End-delimiter not found"
|
||||
return data[:-1]
|
||||
|
||||
def NetStringEncode(s):
|
||||
return str(len(s)) + ":" + s + ","
|
||||
|
||||
|
||||
class MyPermanentVerifierException(ValueError): pass
|
||||
|
||||
class MyTemporaryVerifierException(ValueError): pass
|
||||
|
||||
class MyBaseRequestHandler(SocketServer.BaseRequestHandler):
|
||||
def handle(self):
|
||||
debug("Connected from " + str(self.client_address))
|
||||
self.localSetup()
|
||||
while 1:
|
||||
receivedData = self.request.recv(8192)
|
||||
if (receivedData == None) or (len(receivedData) == 0): break
|
||||
debug("Data: (%s)" % receivedData)
|
||||
self.request.sendall(self.process(receivedData))
|
||||
self.request.close();
|
||||
self.localFinish()
|
||||
debug("Disconnected")
|
||||
|
||||
def process(self, data):
|
||||
debug("MyBaseRequestHandler.process")
|
||||
return data
|
||||
|
||||
def localSetup(self): pass
|
||||
|
||||
def localfinish(self): pass
|
||||
|
||||
|
||||
class SendmailAdaptor:
|
||||
PERM = "PERM "
|
||||
OK = "OK "
|
||||
NOTFOUND = "NOTFOUND "
|
||||
TEMP = "TEMP "
|
||||
|
||||
def preProcess(self, data):
|
||||
try:
|
||||
data = NetStringDecode(data)
|
||||
klass, data = data.split(' ')
|
||||
return klass, data
|
||||
except NetStringError, arg:
|
||||
raise MyPermanentVerifierException, arg
|
||||
except ValueError:
|
||||
raise MyPermanentVerifierException, "<class> <data> expected, only one found"
|
||||
|
||||
def postProcess(self, data):
|
||||
return NetStringEncode(data)
|
||||
|
||||
def process(self, data):
|
||||
startTime = time.time()
|
||||
try:
|
||||
klass, data2 = self.preProcess(data)
|
||||
arg = self.execute(klass, data2)
|
||||
code = SendmailAdaptor.OK
|
||||
except MyPermanentVerifierException, arg:
|
||||
code, arg = SendmailAdaptor.PERM, str(arg)
|
||||
except MyTemporaryVerifierException, arg:
|
||||
code, arg = SendmailAdaptor.TEMP, str(arg)
|
||||
endTime = time.time()
|
||||
log("Class: %s, Data: %s, Code: %s, Arg: %s, Delay: %f" % (klass, data2, code, arg, endTime-startTime))
|
||||
return self.postProcess(code + arg)
|
||||
|
||||
def execute(self, data):
|
||||
return data
|
||||
|
||||
class NullAdaptor(SendmailAdaptor):
|
||||
def preProcess(self, data):
|
||||
return re.compile(r'^(.*?)[\r\n]{1,2}$').match(data).group(1)
|
||||
|
||||
def postProcess(self, data):
|
||||
return data + "\n"
|
||||
|
||||
|
||||
class SendmailDispatcher(SendmailAdaptor, MyBaseRequestHandler):
|
||||
pluginContainerObjects = {}
|
||||
|
||||
|
||||
def registerAll(config):
|
||||
for section in config.get('Daemon', 'Plugins').split(','):
|
||||
SendmailDispatcher.register(section, config)
|
||||
|
||||
registerAll = staticmethod(registerAll)
|
||||
|
||||
|
||||
def register(section, config):
|
||||
cfg = Config(section, config)
|
||||
className = cfg.get('ContainerClass')
|
||||
moduleName = cfg.get('ContainerModule')
|
||||
if className == None:
|
||||
className = 'smmapBaseHandlerContainer'
|
||||
else:
|
||||
if moduleName == None:
|
||||
moduleName == className
|
||||
m = __import__(moduleName)
|
||||
log("Registering %s, %s" % (section, className))
|
||||
klass = eval("m.%s" % className)
|
||||
containerObject = klass(cfg)
|
||||
containerObject.setup()
|
||||
SendmailDispatcher.pluginContainerObjects[section] = containerObject
|
||||
|
||||
register = staticmethod(register)
|
||||
|
||||
|
||||
def localSetup(self):
|
||||
self.pluginWorkerObjects = {}
|
||||
|
||||
def localFinish(self):
|
||||
for o in self.pluginWorkerObjects.values():
|
||||
o.finish()
|
||||
|
||||
def execute(self, klass, data):
|
||||
if not self.pluginContainerObjects.has_key(klass):
|
||||
raise MyPermanentVerifierException, "Class %s not implemented" % klass
|
||||
elif not self.pluginWorkerObjects.has_key(klass):
|
||||
debug("Instantiate worker %s" % klass)
|
||||
self.pluginWorkerObjects[klass] = self.pluginContainerObjects[klass].getWorker()
|
||||
|
||||
return self.pluginWorkerObjects[klass].execute(data)
|
||||
|
||||
|
||||
class Config(object):
|
||||
def __init__(self, section, config):
|
||||
self.section = section
|
||||
self.config = config
|
||||
|
||||
def getSection(self):
|
||||
return self.section
|
||||
|
||||
def get(self, item):
|
||||
return self.config.get(self.section, item)
|
||||
|
||||
|
||||
class smmapBaseHandlerWorker(object):
|
||||
def __init__(self, container):
|
||||
self.container = container
|
||||
|
||||
def setup(self): pass
|
||||
|
||||
def finish(self): pass
|
||||
|
||||
def execute(self, data):
|
||||
raise NotImplementedError
|
||||
|
||||
class smmapBaseHandlerContainer(object):
|
||||
def __init__(self, cfg):
|
||||
self.config = cfg
|
||||
workerClassName = cfg.get('WorkerClass')
|
||||
workerModuleName = cfg.get('WorkerModule')
|
||||
if workerModuleName == None:
|
||||
workerModuleName = workerClassName
|
||||
m = __import__(workerModuleName)
|
||||
self.workerClass = eval("m.%s" % workerClassName)
|
||||
|
||||
def setup(self): pass
|
||||
|
||||
def finish(self): pass
|
||||
|
||||
def getWorker(self):
|
||||
worker = self.workerClass(self)
|
||||
worker.setup()
|
||||
return worker
|
||||
|
||||
|
||||
|
||||
|
||||
|
240
smmapd_prototype/VerifierHandler.py
Normal file
240
smmapd_prototype/VerifierHandler.py
Normal file
@ -0,0 +1,240 @@
|
||||
import threading
|
||||
import socket
|
||||
import Queue
|
||||
import re
|
||||
import time
|
||||
|
||||
#import timeoutsocket
|
||||
import DNS
|
||||
|
||||
from Logging import *
|
||||
|
||||
from Cache import Cache
|
||||
|
||||
from SendmailSocketMapHandler import smmapBaseHandlerWorker
|
||||
from SendmailSocketMapHandler import smmapBaseHandlerContainer
|
||||
from SendmailSocketMapHandler import MyPermanentVerifierException
|
||||
from SendmailSocketMapHandler import MyTemporaryVerifierException
|
||||
|
||||
|
||||
|
||||
class VerifierHandlerContainer(smmapBaseHandlerContainer):
|
||||
def setup(self):
|
||||
DNS.ParseResolvConf()
|
||||
if self.config.get('EnableCaching').lower() in ('true', 'yes', '1'):
|
||||
debug("enabling cache")
|
||||
self.cache = Cache(int(self.config.get('CacheExpiration')))
|
||||
else:
|
||||
debug("disabling cache")
|
||||
self.cache = None
|
||||
|
||||
|
||||
class VerifierHandlerWorker(smmapBaseHandlerWorker):
|
||||
OK = "OK"
|
||||
NOK = "NOK"
|
||||
TEMPNOK = "TEMPNOK"
|
||||
|
||||
def setup(self):
|
||||
self.zombies = []
|
||||
|
||||
class checker(threading.Thread):
|
||||
def __init__(self, ready, config, host, address):
|
||||
threading.Thread.__init__(self)
|
||||
self.ready = ready
|
||||
self.config = config
|
||||
self.host = host
|
||||
self.address = address
|
||||
|
||||
def checkAddressAvailability(self):
|
||||
try:
|
||||
debug("Trying " + self.host)
|
||||
s = MySMTP(self.host, float(self.config.get('SMTPTimeOut')))
|
||||
s.helo(self.config.get('SMTPHeloParam'))
|
||||
s.mail(self.config.get('SMTPCheckSender'))
|
||||
s.rcpt(self.address.getAddress())
|
||||
s.quit()
|
||||
result = VerifierHandlerWorker.OK
|
||||
except MySMTPTemporaryException:
|
||||
result = VerifierHandlerWorker.TEMPNOK
|
||||
except MySMTPPermanentException:
|
||||
result = VerifierHandlerWorker.NOK
|
||||
except socket.timeout:
|
||||
result = VerifierHandlerWorker.TEMPNOK
|
||||
except socket.error:
|
||||
result = VerifierHandlerWorker.TEMPNOK
|
||||
return result
|
||||
|
||||
def run(self):
|
||||
self.result = self.checkAddressAvailability()
|
||||
self.ready.put(self.getName())
|
||||
debug("NOTIFIED Host %s, Result %s" % (self.host, self.result))
|
||||
|
||||
def getResult(self):
|
||||
return self.result
|
||||
|
||||
def getHost(self):
|
||||
return self.host
|
||||
|
||||
def getAddress(self):
|
||||
return self.address
|
||||
|
||||
def checkAvailability(self, mxes, address):
|
||||
ready = Queue.Queue()
|
||||
checkerThreads = {}
|
||||
for m in mxes:
|
||||
checkerThread = VerifierHandlerWorker.checker(ready, self.container.config, m, address)
|
||||
checkerThread.start()
|
||||
checkerThreads[checkerThread.getName()] = checkerThread
|
||||
|
||||
result = VerifierHandlerWorker.TEMPNOK
|
||||
while 1:
|
||||
debug("%i threads left" % len(checkerThreads))
|
||||
if len(checkerThreads) == 0:
|
||||
debug("no threads left ...")
|
||||
break
|
||||
if result != VerifierHandlerWorker.TEMPNOK:
|
||||
debug("got a permanent result ...")
|
||||
break
|
||||
debug("Waiting for results ...")
|
||||
name = ready.get()
|
||||
checkerThread = checkerThreads[name]
|
||||
checkerThread.join()
|
||||
tempResult = checkerThread.getResult()
|
||||
debug("success, result is " + str(tempResult))
|
||||
if [VerifierHandlerWorker.OK, VerifierHandlerWorker.NOK].count(tempResult) != 0:
|
||||
result = tempResult
|
||||
del checkerThreads[name]
|
||||
self.zombies.extend(checkerThreads.values())
|
||||
return result
|
||||
|
||||
def finish(self):
|
||||
while 1:
|
||||
debug("finish: %i zombies left" % len(self.zombies))
|
||||
for z in self.zombies:
|
||||
if not z.isAlive():
|
||||
debug("finish: thread %s for %s, %s terminated" % (z.getName(), z.getHost(), z.getAddress().getAddress()))
|
||||
self.zombies.remove(z)
|
||||
for z in self.zombies:
|
||||
debug("finish: left over %s for %s, %s" % (z.getName(), z.getHost(), z.getAddress().getAddress()))
|
||||
if len(self.zombies) == 0:
|
||||
debug("finish: no zombie left ...")
|
||||
break
|
||||
debug("finish: WAITING")
|
||||
time.sleep(5)
|
||||
debug("finish: CONTINUE")
|
||||
debug("finish: all threads terminated")
|
||||
|
||||
|
||||
def execute(self, address):
|
||||
debug("address " + address)
|
||||
|
||||
address = EMailAddress(address)
|
||||
|
||||
bestmxes = address.getBestMX()
|
||||
if not bestmxes:
|
||||
return "<NOK> <no bestmx found>"
|
||||
|
||||
if self.container.cache == None:
|
||||
debug("no caching")
|
||||
result = self.checkAvailability(bestmxes, address)
|
||||
else:
|
||||
result = self.container.cache.get(address.getAddress())
|
||||
if result == None:
|
||||
debug("not found in cache")
|
||||
result = self.checkAvailability(bestmxes, address)
|
||||
if result != VerifierHandlerWorker.TEMPNOK:
|
||||
self.container.cache.put(address.getAddress(), result)
|
||||
else:
|
||||
debug("found in cache")
|
||||
|
||||
if result == VerifierHandlerWorker.OK:
|
||||
return "<OK>"
|
||||
elif result == VerifierHandlerWorker.NOK:
|
||||
return "<NOK> <home server sent a permanent negative answer>"
|
||||
else:
|
||||
raise MyTemporaryVerifierException, "no mx reachable"
|
||||
|
||||
|
||||
class MySMTPPermanentException(ValueError): pass
|
||||
|
||||
class MySMTPTemporaryException(ValueError): pass
|
||||
|
||||
class MySMTP(object):
|
||||
def __init__(self, host, timeout, port=25):
|
||||
self.host = host
|
||||
self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.socket.settimeout(timeout)
|
||||
self.socket.connect((host, port))
|
||||
self.socket.recv(8192)
|
||||
self.resPattern = re.compile(r'[\w\W]*?^(\d{3,3}) (.*?)[\r\n]{1,2}$', re.MULTILINE)
|
||||
|
||||
def checkResult(self, r):
|
||||
code, text = r
|
||||
code = code / 100
|
||||
|
||||
if code == 2:
|
||||
return;
|
||||
elif code == 4:
|
||||
raise MySMTPTemporaryException, text
|
||||
elif code == 5:
|
||||
raise MySMTPPermanentException, text
|
||||
else:
|
||||
raise MySMTPPermanentException, "unknown code: " + str(code) + ", text: " + str(text)
|
||||
|
||||
def docmd(self, cmd):
|
||||
debug("docmd: %s, cmd: %s " % (self.host, cmd))
|
||||
self.socket.sendall(cmd + "\r\n")
|
||||
res = self.socket.recv(8192)
|
||||
debug("docmd: result: (%s)" % res)
|
||||
m = self.resPattern.match(res)
|
||||
return self.checkResult((int(m.group(1)), m.group(2)))
|
||||
|
||||
def helo(self, param):
|
||||
return self.docmd("helo " + param)
|
||||
|
||||
def mail(self, sender):
|
||||
if sender[0] != '<' and sender[-1] != '>': sender = '<' + sender + '>'
|
||||
return self.docmd("mail from:" + sender)
|
||||
|
||||
def rcpt(self, recipient):
|
||||
return self.docmd("rcpt to:<%s>" % recipient)
|
||||
|
||||
def quit(self):
|
||||
self.docmd("quit")
|
||||
self.socket.close()
|
||||
|
||||
|
||||
class EMailAddress(object):
|
||||
def __init__(self, address):
|
||||
self.address = address
|
||||
if self.address[0] == '<' and self.address[-1] == '>': self.address = self.address[1:-1]
|
||||
try:
|
||||
self.userpart, self.domain = self.address.split('@')
|
||||
except ValueError:
|
||||
raise MyPermanentVerifierException, "excepted email address, found not at-sign"
|
||||
|
||||
def getUserPart(self):
|
||||
return self.userpart
|
||||
|
||||
def getDomain(self):
|
||||
return self.domain
|
||||
|
||||
def getAddress(self):
|
||||
return self.address
|
||||
|
||||
def getBestMX(self):
|
||||
if self.domain[0] == '[' and self.domain[-1] == ']':
|
||||
bestmx2 = [self.domain[1:-1]]
|
||||
else:
|
||||
bestmx = DNS.mxlookup(self.domain)
|
||||
pref = None
|
||||
bestmx2 = []
|
||||
for mx in bestmx:
|
||||
if pref == None: pref = mx[0]
|
||||
if pref == mx[0]:
|
||||
bestmx2.append(mx[1])
|
||||
else:
|
||||
break
|
||||
debug("bestmx " + str(bestmx2))
|
||||
return bestmx2
|
||||
|
327
smmapd_prototype/index.html
Normal file
327
smmapd_prototype/index.html
Normal file
@ -0,0 +1,327 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">
|
||||
<html>
|
||||
<head>
|
||||
<title>Sender Address Verifier for Sendmail</title>
|
||||
<meta name="generator" content="emacs-wiki.el">
|
||||
<meta http-equiv="Content-Type"
|
||||
content="text/html; charset=iso-8859-1">
|
||||
<link rev="made" href="mailto:woho@hottis.de">
|
||||
<link rel="stylesheet" type="text/css" href="/web/default.css" />
|
||||
</head>
|
||||
<body>
|
||||
<h1>Sender Address Verifier for Sendmail</h1>
|
||||
<!-- Page published by Emacs Wiki begins here -->
|
||||
<p>
|
||||
Author: Wolfgang Hottgenroth <<a href="mailto:woho@hottis.de">woho@hottis.de</a>>, 2004-05-17
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is the prototype of a sender address verifier for sendmail-8.13.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
It consists of a m4 file containing a FEATURE to be included in your
|
||||
<code>sendmail.mc</code> and a verifier daemon in a bit of python code.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
By including the FEATURE in your sendmail.mc file and running the
|
||||
verifier daemon, sendmail file verify either
|
||||
|
||||
</p>
|
||||
|
||||
<ul>
|
||||
<li>all sender addresses (with certain exceptions) or
|
||||
</li>
|
||||
<li>only certain sender addresses
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<p>
|
||||
This will be done by connecting to the best MX servers of the
|
||||
particular domain, trying to send a mail to the particular address and
|
||||
collect the replies.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Actually only the <code>HELO</code>, <code>MAIL</code> and <code>RCPT</code> commands are issued.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If a positive reply was found, the mail is considered as valid.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If a permanent negative reply was found, the mail is considered as
|
||||
invalid.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If no MX entry was found, the mail is considered as invalid.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If a temporary negative reply was found, the mail is considered as
|
||||
temporary invalid.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If there is more than one best MX server all of these servers are
|
||||
connected in parallel and the first permanent reply (either positive
|
||||
or negative) is returned.
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Download</h3>
|
||||
|
||||
<p>
|
||||
The complete sources: <a href="./download/">download</a>
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Have a look into the sources: <a href="http://www.hottis.de/cgi-bin/cvsweb.cgi/sender_verifier/">sources</a>
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Requirements</h3>
|
||||
|
||||
<h4>sendmail</h4>
|
||||
|
||||
<p>
|
||||
sendmail-8.13 is required, since this thing uses the fresh introduced
|
||||
socket map.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Find it <a href="http://www.sendmail.org">here</a> on the sendmail homepage.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Your need to build sendmail with support for the socket map. Include
|
||||
|
||||
</p>
|
||||
|
||||
<pre class="example">
|
||||
APPENDDEF(`confMAPDEF',`-DSOCKETMAP')
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
in your <code>site.config.m4</code>.
|
||||
|
||||
</p>
|
||||
|
||||
<h4>Python</h4>
|
||||
|
||||
<p>
|
||||
Python 2.2 or 2.3 is required. If you have Python 2.3 you must delete
|
||||
the <code>import timeoutsocket</code> line from <code>verifier.py</code>.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Additionally the python package <code>python-dns</code> is required. Find it
|
||||
<a href="http://pydns.sourceforge.net/">http://pydns.sourceforge.net</a>.
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Configuration of sendmail</h3>
|
||||
|
||||
<p>
|
||||
Include the FEATURE in your <code>sendmail.mc</code> file. You need to give two
|
||||
parameters:
|
||||
|
||||
</p>
|
||||
|
||||
<pre class="example">
|
||||
FEATURE(`verifysender', `mode', `return')
|
||||
</pre>
|
||||
|
||||
<p>
|
||||
For <code>mode</code> you must give either <code>white</code> or <code>black</code>.
|
||||
|
||||
</p>
|
||||
|
||||
<dl>
|
||||
<dt><code>white</code></dt>
|
||||
<dd>
|
||||
All sender addresses but those mentioned in the whitelist
|
||||
file are verified. Complete addresses or just domains can be listed in
|
||||
the file. The default location of the whitelist is
|
||||
<code>/etc/mail/verify-white-list</code>. If you need a different location,
|
||||
define it to <code>confVERIFIER_WHITELIST</code>.
|
||||
</dd>
|
||||
<dt><code>black</code></dt>
|
||||
<dd>
|
||||
only addresses or addresses within domains listed in the
|
||||
blacklist file are verified. It is obviously only useful to mention
|
||||
domains in the blacklist. The default location of the blacklist is
|
||||
<code>/etc/mail/verify-black-list</code>. If you need a different location,
|
||||
define it to <code>confVERIFIER_BLACKLIST</code>.
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<p>
|
||||
Both the blacklist and the whitelist file are maps, they must be
|
||||
created with <code>makemap</code>. Therefore the entries need a LHS (the address
|
||||
or domain) and a RHS. The actual content of the RHS has NO meaning at
|
||||
all.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
The FEATURE defines a socket map. The default target of the map is
|
||||
<code>inet:8884@127.0.0.1</code>, according to the default setting in
|
||||
<code>Config.py</code>. If you need something different, define it to
|
||||
<code>confVERIFIER_MAP</code>, but don't forget to also adjust <code>Config.py</code>.
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Configuration of the verification daemon</h3>
|
||||
|
||||
<p>
|
||||
The configuration of the daemon is done in the file <code>Config.py</code>.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
This is the default of this file:
|
||||
|
||||
</p>
|
||||
|
||||
<pre class="example">
|
||||
[Daemon]
|
||||
Address: 127.0.0.1
|
||||
Port: 8884
|
||||
PidFile: smmapd.pid
|
||||
Plugins: Verifier,Verifier2
|
||||
|
||||
[Logging]
|
||||
ApplId: smmapd
|
||||
|
||||
[Verifier]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: 1
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: local
|
||||
SMTPCheckSender: <>
|
||||
|
||||
[Verifier2]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: 1
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: hottis.de
|
||||
SMTPCheckSender: <postmaster@hottis.de></pre>
|
||||
|
||||
<p>
|
||||
<code>Port</code> and <code>Address</code> are specifying the socket the daemon should
|
||||
listen to for communication with sendmail. These settings must be
|
||||
reflected in the <code>confVERIFIER_MAP</code> if you change it.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<code>SMTPTimeOut</code> is the timeout for the communication with the MX servers
|
||||
when verifying addresses.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<code>SMTPHeloParam</code> is the parameter the verifier will use with the <code>HELO</code>
|
||||
command when verifying.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<code>SMTPCheckSender</code> is the sender address used during
|
||||
verifications. You should not change it unless you know what you do to
|
||||
avoid verification loops.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Since the verification is a time and resource consuming process,
|
||||
results can be cached, which is enabled by default. Set
|
||||
<code>EnableCaching</code> to 0 to disable it.
|
||||
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<code>CacheExpiration</code> is the time in seconds an entry in the cache is
|
||||
considered as valid. It should be much higher.
|
||||
|
||||
</p>
|
||||
|
||||
<h3>Operation</h3>
|
||||
|
||||
<p>
|
||||
Configure sendmail and the daemon according to your needs. Start the
|
||||
daemon:
|
||||
|
||||
</p>
|
||||
|
||||
<pre class="example">
|
||||
./verifier.py
|
||||
</pre>
|
||||
|
||||
<h3>Changes</h3>
|
||||
|
||||
<ul>
|
||||
<li>According to a comment in comp.mail.sendmail I've introduced a class
|
||||
<code>verifier_fix_white</code> in the FEATURE file, currently containing only
|
||||
the string <code>postmaster</code>. Addresses with userpart in this class will
|
||||
never ever be verified to avoid infinite verifying loops.
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<h4>2004-05-17</h4>
|
||||
|
||||
<ul>
|
||||
<li>support plugins
|
||||
</li>
|
||||
<li>separate container and worker object, thereby enable multiple
|
||||
instances of the same plugins
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
|
||||
<!-- Page published by Emacs Wiki ends here -->
|
||||
<div class="navfoot">
|
||||
<hr>
|
||||
<table width="100%" border="0" summary="Footer navigation">
|
||||
<tr>
|
||||
<td width="33%" align="left">
|
||||
<span class="footdate">UPDATED: 2004-05-17</span>
|
||||
</td>
|
||||
<td width="34%" align="center">
|
||||
<span class="foothome">
|
||||
|
||||
</span>
|
||||
</td>
|
||||
<td width="33%" align="right">
|
||||
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
195
smmapd_prototype/index.wiki
Normal file
195
smmapd_prototype/index.wiki
Normal file
@ -0,0 +1,195 @@
|
||||
#title Sender Address Verifier for Sendmail
|
||||
#style /web/default.css
|
||||
|
||||
|
||||
Author: Wolfgang Hottgenroth <woho@hottis.de>, 2004-05-17
|
||||
|
||||
|
||||
|
||||
|
||||
This is the prototype of a sender address verifier for sendmail-8.13.
|
||||
|
||||
It consists of a m4 file containing a FEATURE to be included in your
|
||||
=sendmail.mc= and a verifier daemon in a bit of python code.
|
||||
|
||||
|
||||
By including the FEATURE in your sendmail.mc file and running the
|
||||
verifier daemon, sendmail file verify either
|
||||
|
||||
- all sender addresses (with certain exceptions) or
|
||||
- only certain sender addresses
|
||||
|
||||
This will be done by connecting to the best MX servers of the
|
||||
particular domain, trying to send a mail to the particular address and
|
||||
collect the replies.
|
||||
|
||||
Actually only the =HELO=, =MAIL= and =RCPT= commands are issued.
|
||||
|
||||
If a positive reply was found, the mail is considered as valid.
|
||||
|
||||
If a permanent negative reply was found, the mail is considered as
|
||||
invalid.
|
||||
|
||||
If no MX entry was found, the mail is considered as invalid.
|
||||
|
||||
If a temporary negative reply was found, the mail is considered as
|
||||
temporary invalid.
|
||||
|
||||
If there is more than one best MX server all of these servers are
|
||||
connected in parallel and the first permanent reply (either positive
|
||||
or negative) is returned.
|
||||
|
||||
|
||||
** Download
|
||||
|
||||
The complete sources: [[./download/][download]]
|
||||
|
||||
Have a look into the sources: [[http://www.hottis.de/cgi-bin/cvsweb.cgi/sender_verifier/][sources]]
|
||||
|
||||
|
||||
|
||||
|
||||
** Requirements
|
||||
|
||||
*** sendmail
|
||||
|
||||
sendmail-8.13 is required, since this thing uses the fresh introduced
|
||||
socket map.
|
||||
|
||||
Find it [[http://www.sendmail.org][here]] on the sendmail homepage.
|
||||
|
||||
Your need to build sendmail with support for the socket map. Include
|
||||
|
||||
<example>
|
||||
APPENDDEF(`confMAPDEF',`-DSOCKETMAP')
|
||||
</example>
|
||||
|
||||
in your =site.config.m4=.
|
||||
|
||||
|
||||
*** Python
|
||||
|
||||
Python 2.2 or 2.3 is required. If you have Python 2.3 you must delete
|
||||
the =import timeoutsocket= line from =verifier.py=.
|
||||
|
||||
Additionally the python package =python-dns= is required. Find it
|
||||
[[http://pydns.sourceforge.net/][http://pydns.sourceforge.net]].
|
||||
|
||||
|
||||
|
||||
** Configuration of sendmail
|
||||
|
||||
Include the FEATURE in your =sendmail.mc= file. You need to give two
|
||||
parameters:
|
||||
|
||||
<example>
|
||||
FEATURE(`verifysender', `mode', `return')
|
||||
</example>
|
||||
|
||||
For =mode= you must give either =white= or =black=.
|
||||
|
||||
=white= :: All sender addresses but those mentioned in the whitelist
|
||||
file are verified. Complete addresses or just domains can be listed in
|
||||
the file. The default location of the whitelist is
|
||||
=/etc/mail/verify-white-list=. If you need a different location,
|
||||
define it to =confVERIFIER_WHITELIST=.
|
||||
|
||||
=black= :: only addresses or addresses within domains listed in the
|
||||
blacklist file are verified. It is obviously only useful to mention
|
||||
domains in the blacklist. The default location of the blacklist is
|
||||
=/etc/mail/verify-black-list=. If you need a different location,
|
||||
define it to =confVERIFIER_BLACKLIST=.
|
||||
|
||||
Both the blacklist and the whitelist file are maps, they must be
|
||||
created with =makemap=. Therefore the entries need a LHS (the address
|
||||
or domain) and a RHS. The actual content of the RHS has NO meaning at
|
||||
all.
|
||||
|
||||
The FEATURE defines a socket map. The default target of the map is
|
||||
=inet:8884@127.0.0.1=, according to the default setting in
|
||||
=Config.py=. If you need something different, define it to
|
||||
=confVERIFIER_MAP=, but don't forget to also adjust =Config.py=.
|
||||
|
||||
|
||||
** Configuration of the verification daemon
|
||||
|
||||
The configuration of the daemon is done in the file =Config.py=.
|
||||
|
||||
This is the default of this file:
|
||||
|
||||
<example>
|
||||
[Daemon]
|
||||
Address: 127.0.0.1
|
||||
Port: 8884
|
||||
PidFile: smmapd.pid
|
||||
Plugins: Verifier,Verifier2
|
||||
|
||||
[Logging]
|
||||
ApplId: smmapd
|
||||
|
||||
[Verifier]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: 1
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: local
|
||||
SMTPCheckSender: <>
|
||||
|
||||
[Verifier2]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: 1
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: hottis.de
|
||||
SMTPCheckSender: <postmaster@hottis.de></example>
|
||||
|
||||
=Port= and =Address= are specifying the socket the daemon should
|
||||
listen to for communication with sendmail. These settings must be
|
||||
reflected in the =confVERIFIER_MAP= if you change it.
|
||||
|
||||
=SMTPTimeOut= is the timeout for the communication with the MX servers
|
||||
when verifying addresses.
|
||||
|
||||
=SMTPHeloParam= is the parameter the verifier will use with the =HELO=
|
||||
command when verifying.
|
||||
|
||||
=SMTPCheckSender= is the sender address used during
|
||||
verifications. You should not change it unless you know what you do to
|
||||
avoid verification loops.
|
||||
|
||||
Since the verification is a time and resource consuming process,
|
||||
results can be cached, which is enabled by default. Set
|
||||
=EnableCaching= to 0 to disable it.
|
||||
|
||||
=CacheExpiration= is the time in seconds an entry in the cache is
|
||||
considered as valid. It should be much higher.
|
||||
|
||||
|
||||
** Operation
|
||||
|
||||
Configure sendmail and the daemon according to your needs. Start the
|
||||
daemon:
|
||||
|
||||
<example>
|
||||
./verifier.py
|
||||
</example>
|
||||
|
||||
|
||||
** Changes
|
||||
|
||||
- According to a comment in comp.mail.sendmail I've introduced a class
|
||||
=verifier_fix_white= in the FEATURE file, currently containing only
|
||||
the string =postmaster=. Addresses with userpart in this class will
|
||||
never ever be verified to avoid infinite verifying loops.
|
||||
|
||||
*** 2004-05-17
|
||||
- support plugins
|
||||
- separate container and worker object, thereby enable multiple
|
||||
instances of the same plugins
|
||||
|
19
smmapd_prototype/setup.py
Normal file
19
smmapd_prototype/setup.py
Normal file
@ -0,0 +1,19 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
from distutils.core import setup
|
||||
|
||||
setup(name="smmapd",
|
||||
version="0.1",
|
||||
description="Framework for sendmail SocketMap handlers",
|
||||
long_description = """
|
||||
A framework to build handlers for the sendmail 8.13 SocketMap,
|
||||
together with an implementation of a sender-address verifier,
|
||||
together we a sendmail m4 feature file""",
|
||||
author="Wolfgang Hottgenroth",
|
||||
author_email="woho@hottis.de",
|
||||
url="http://www.hottis.de/web/verifier/index.html",
|
||||
py_modules = [ 'SendmailSocketMapHandler', 'Cache', 'Logging', 'VerifierHandler' ],
|
||||
scripts = [ 'smmapd' ],
|
||||
data_files = [('config', ['smmapd.ini']),
|
||||
('cf/feature', ['verifysender.m4'])]
|
||||
)
|
65
smmapd_prototype/smmapd
Executable file
65
smmapd_prototype/smmapd
Executable file
@ -0,0 +1,65 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import SocketServer
|
||||
import socket
|
||||
import os
|
||||
import ConfigParser
|
||||
import getopt
|
||||
import sys
|
||||
|
||||
from Logging import *
|
||||
from SendmailSocketMapHandler import SendmailDispatcher
|
||||
|
||||
|
||||
def usage():
|
||||
print "Usage"
|
||||
|
||||
|
||||
try:
|
||||
opts, args = getopt.getopt(sys.argv[1:], "hC:F", ["help", "ConfigFile=", "ForeGround"])
|
||||
except getopt.GetoptError:
|
||||
usage()
|
||||
sys.exit(2)
|
||||
|
||||
configFile = '/etc/smmapd.ini'
|
||||
foreGround = None
|
||||
for o, a in opts:
|
||||
if o in ("-h", "--help"):
|
||||
usage()
|
||||
sys.exit()
|
||||
if o in ("-C", "--ConfigFile"):
|
||||
configFile = a
|
||||
if o in ("-F", "--ForeGround"):
|
||||
foreGround = 1
|
||||
|
||||
|
||||
|
||||
config = ConfigParser.ConfigParser()
|
||||
config.read(configFile)
|
||||
|
||||
openlog(config)
|
||||
|
||||
if foreGround:
|
||||
pid = 0
|
||||
else:
|
||||
pid = os.fork()
|
||||
|
||||
if pid:
|
||||
pidFile = file(config.get('Daemon', 'PidFile'), mode='w')
|
||||
pidFile.write("%i\n" % pid)
|
||||
pidFile.close()
|
||||
print "daemon started with pid ", pid
|
||||
else:
|
||||
log("daemon started")
|
||||
|
||||
SendmailDispatcher.registerAll(config)
|
||||
|
||||
try:
|
||||
address = config.get('Daemon', 'Address')
|
||||
port = int(config.get('Daemon', 'Port'))
|
||||
srv = SocketServer.ThreadingTCPServer((address, port), SendmailDispatcher)
|
||||
srv.serve_forever()
|
||||
except socket.error, arg:
|
||||
log("got a socket error: %s" % str(arg))
|
||||
log("daemon died")
|
||||
|
37
smmapd_prototype/smmapd.ini
Normal file
37
smmapd_prototype/smmapd.ini
Normal file
@ -0,0 +1,37 @@
|
||||
[Daemon]
|
||||
Address: 127.0.0.1
|
||||
Port: 8884
|
||||
PidFile: smmapd.pid
|
||||
Plugins: verifier,verifier2,cyrusChecker
|
||||
|
||||
[Logging]
|
||||
ApplId: smmapd
|
||||
|
||||
[verifier]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: yes
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: local
|
||||
SMTPCheckSender: <>
|
||||
|
||||
[verifier2]
|
||||
ContainerModule: VerifierHandler
|
||||
ContainerClass: VerifierHandlerContainer
|
||||
WorkerModule: VerifierHandler
|
||||
WorkerClass: VerifierHandlerWorker
|
||||
EnableCaching: yes
|
||||
CacheExpiration: 20
|
||||
SMTPTimeOut: 20
|
||||
SMTPHeloParam: hottis.de
|
||||
SMTPCheckSender: <postmaster@hottis.de>
|
||||
|
||||
[cyrusChecker]
|
||||
ContainerModule: SendmailSocketMapHandler
|
||||
ContainerClass: smmapBaseHandlerContainer
|
||||
WorkerModule: CyrusChecker
|
||||
WorkerClass: CyrusCheckerWorker
|
||||
|
424
smmapd_prototype/timeoutsocket.py
Normal file
424
smmapd_prototype/timeoutsocket.py
Normal file
@ -0,0 +1,424 @@
|
||||
|
||||
####
|
||||
# Copyright 2000,2001 by Timothy O'Malley <timo@alum.mit.edu>
|
||||
#
|
||||
# All Rights Reserved
|
||||
#
|
||||
# Permission to use, copy, modify, and distribute this software
|
||||
# and its documentation for any purpose and without fee is hereby
|
||||
# granted, provided that the above copyright notice appear in all
|
||||
# copies and that both that copyright notice and this permission
|
||||
# notice appear in supporting documentation, and that the name of
|
||||
# Timothy O'Malley not be used in advertising or publicity
|
||||
# pertaining to distribution of the software without specific, written
|
||||
# prior permission.
|
||||
#
|
||||
# Timothy O'Malley DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS
|
||||
# SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
||||
# AND FITNESS, IN NO EVENT SHALL Timothy O'Malley BE LIABLE FOR
|
||||
# ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
# WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
|
||||
# WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
||||
# PERFORMANCE OF THIS SOFTWARE.
|
||||
#
|
||||
####
|
||||
|
||||
"""Timeout Socket
|
||||
|
||||
This module enables a timeout mechanism on all TCP connections. It
|
||||
does this by inserting a shim into the socket module. After this module
|
||||
has been imported, all socket creation goes through this shim. As a
|
||||
result, every TCP connection will support a timeout.
|
||||
|
||||
The beauty of this method is that it immediately and transparently
|
||||
enables the entire python library to support timeouts on TCP sockets.
|
||||
As an example, if you wanted to SMTP connections to have a 20 second
|
||||
timeout:
|
||||
|
||||
import timeoutsocket
|
||||
import smtplib
|
||||
timeoutsocket.setDefaultSocketTimeout(20)
|
||||
|
||||
|
||||
The timeout applies to the socket functions that normally block on
|
||||
execution: read, write, connect, and accept. If any of these
|
||||
operations exceeds the specified timeout, the exception Timeout
|
||||
will be raised.
|
||||
|
||||
The default timeout value is set to None. As a result, importing
|
||||
this module does not change the default behavior of a socket. The
|
||||
timeout mechanism only activates when the timeout has been set to
|
||||
a numeric value. (This behavior mimics the behavior of the
|
||||
select.select() function.)
|
||||
|
||||
This module implements two classes: TimeoutSocket and TimeoutFile.
|
||||
|
||||
The TimeoutSocket class defines a socket-like object that attempts to
|
||||
avoid the condition where a socket may block indefinitely. The
|
||||
TimeoutSocket class raises a Timeout exception whenever the
|
||||
current operation delays too long.
|
||||
|
||||
The TimeoutFile class defines a file-like object that uses the TimeoutSocket
|
||||
class. When the makefile() method of TimeoutSocket is called, it returns
|
||||
an instance of a TimeoutFile.
|
||||
|
||||
Each of these objects adds two methods to manage the timeout value:
|
||||
|
||||
get_timeout() --> returns the timeout of the socket or file
|
||||
set_timeout() --> sets the timeout of the socket or file
|
||||
|
||||
|
||||
As an example, one might use the timeout feature to create httplib
|
||||
connections that will timeout after 30 seconds:
|
||||
|
||||
import timeoutsocket
|
||||
import httplib
|
||||
H = httplib.HTTP("www.python.org")
|
||||
H.sock.set_timeout(30)
|
||||
|
||||
Note: When used in this manner, the connect() routine may still
|
||||
block because it happens before the timeout is set. To avoid
|
||||
this, use the 'timeoutsocket.setDefaultSocketTimeout()' function.
|
||||
|
||||
Good Luck!
|
||||
|
||||
"""
|
||||
|
||||
__version__ = "$Revision$"
|
||||
__author__ = "Timothy O'Malley <timo@alum.mit.edu>"
|
||||
|
||||
#
|
||||
# Imports
|
||||
#
|
||||
import select, string
|
||||
import socket
|
||||
if not hasattr(socket, "_no_timeoutsocket"):
|
||||
_socket = socket.socket
|
||||
else:
|
||||
_socket = socket._no_timeoutsocket
|
||||
|
||||
|
||||
#
|
||||
# Set up constants to test for Connected and Blocking operations.
|
||||
# We delete 'os' and 'errno' to keep our namespace clean(er).
|
||||
# Thanks to Alex Martelli and G. Li for the Windows error codes.
|
||||
#
|
||||
import os
|
||||
if os.name == "nt":
|
||||
_IsConnected = ( 10022, 10056 )
|
||||
_ConnectBusy = ( 10035, )
|
||||
_AcceptBusy = ( 10035, )
|
||||
else:
|
||||
import errno
|
||||
_IsConnected = ( errno.EISCONN, )
|
||||
_ConnectBusy = ( errno.EINPROGRESS, errno.EALREADY, errno.EWOULDBLOCK )
|
||||
_AcceptBusy = ( errno.EAGAIN, errno.EWOULDBLOCK )
|
||||
del errno
|
||||
del os
|
||||
|
||||
|
||||
#
|
||||
# Default timeout value for ALL TimeoutSockets
|
||||
#
|
||||
_DefaultTimeout = None
|
||||
def setDefaultSocketTimeout(timeout):
|
||||
global _DefaultTimeout
|
||||
_DefaultTimeout = timeout
|
||||
def getDefaultSocketTimeout():
|
||||
return _DefaultTimeout
|
||||
|
||||
#
|
||||
# Exceptions for socket errors and timeouts
|
||||
#
|
||||
Error = socket.error
|
||||
class Timeout(Exception):
|
||||
pass
|
||||
|
||||
|
||||
#
|
||||
# Factory function
|
||||
#
|
||||
from socket import AF_INET, SOCK_STREAM
|
||||
def timeoutsocket(family=AF_INET, type=SOCK_STREAM, proto=None):
|
||||
if family != AF_INET or type != SOCK_STREAM:
|
||||
if proto:
|
||||
return _socket(family, type, proto)
|
||||
else:
|
||||
return _socket(family, type)
|
||||
return TimeoutSocket( _socket(family, type), _DefaultTimeout )
|
||||
# end timeoutsocket
|
||||
|
||||
#
|
||||
# The TimeoutSocket class definition
|
||||
#
|
||||
class TimeoutSocket:
|
||||
"""TimeoutSocket object
|
||||
Implements a socket-like object that raises Timeout whenever
|
||||
an operation takes too long.
|
||||
The definition of 'too long' can be changed using the
|
||||
set_timeout() method.
|
||||
"""
|
||||
|
||||
_copies = 0
|
||||
_blocking = 1
|
||||
|
||||
def __init__(self, sock, timeout):
|
||||
self._sock = sock
|
||||
self._timeout = timeout
|
||||
# end __init__
|
||||
|
||||
def __getattr__(self, key):
|
||||
return getattr(self._sock, key)
|
||||
# end __getattr__
|
||||
|
||||
def get_timeout(self):
|
||||
return self._timeout
|
||||
# end set_timeout
|
||||
|
||||
def set_timeout(self, timeout=None):
|
||||
self._timeout = timeout
|
||||
# end set_timeout
|
||||
|
||||
def setblocking(self, blocking):
|
||||
self._blocking = blocking
|
||||
return self._sock.setblocking(blocking)
|
||||
# end set_timeout
|
||||
|
||||
def connect_ex(self, addr):
|
||||
errcode = 0
|
||||
try:
|
||||
self.connect(addr)
|
||||
except Error, why:
|
||||
errcode = why[0]
|
||||
return errcode
|
||||
# end connect_ex
|
||||
|
||||
def connect(self, addr, port=None, dumbhack=None):
|
||||
# In case we were called as connect(host, port)
|
||||
if port != None: addr = (addr, port)
|
||||
|
||||
# Shortcuts
|
||||
sock = self._sock
|
||||
timeout = self._timeout
|
||||
blocking = self._blocking
|
||||
|
||||
# First, make a non-blocking call to connect
|
||||
try:
|
||||
sock.setblocking(0)
|
||||
sock.connect(addr)
|
||||
sock.setblocking(blocking)
|
||||
return
|
||||
except Error, why:
|
||||
# Set the socket's blocking mode back
|
||||
sock.setblocking(blocking)
|
||||
|
||||
# If we are not blocking, re-raise
|
||||
if not blocking:
|
||||
raise
|
||||
|
||||
# If we are already connected, then return success.
|
||||
# If we got a genuine error, re-raise it.
|
||||
errcode = why[0]
|
||||
if dumbhack and errcode in _IsConnected:
|
||||
return
|
||||
elif errcode not in _ConnectBusy:
|
||||
raise
|
||||
|
||||
# Now, wait for the connect to happen
|
||||
# ONLY if dumbhack indicates this is pass number one.
|
||||
# If select raises an error, we pass it on.
|
||||
# Is this the right behavior?
|
||||
if not dumbhack:
|
||||
r,w,e = select.select([], [sock], [], timeout)
|
||||
if w:
|
||||
return self.connect(addr, dumbhack=1)
|
||||
|
||||
# If we get here, then we should raise Timeout
|
||||
raise Timeout("Attempted connect to %s timed out." % str(addr) )
|
||||
# end connect
|
||||
|
||||
def accept(self, dumbhack=None):
|
||||
# Shortcuts
|
||||
sock = self._sock
|
||||
timeout = self._timeout
|
||||
blocking = self._blocking
|
||||
|
||||
# First, make a non-blocking call to accept
|
||||
# If we get a valid result, then convert the
|
||||
# accept'ed socket into a TimeoutSocket.
|
||||
# Be carefult about the blocking mode of ourselves.
|
||||
try:
|
||||
sock.setblocking(0)
|
||||
newsock, addr = sock.accept()
|
||||
sock.setblocking(blocking)
|
||||
timeoutnewsock = self.__class__(newsock, timeout)
|
||||
timeoutnewsock.setblocking(blocking)
|
||||
return (timeoutnewsock, addr)
|
||||
except Error, why:
|
||||
# Set the socket's blocking mode back
|
||||
sock.setblocking(blocking)
|
||||
|
||||
# If we are not supposed to block, then re-raise
|
||||
if not blocking:
|
||||
raise
|
||||
|
||||
# If we got a genuine error, re-raise it.
|
||||
errcode = why[0]
|
||||
if errcode not in _AcceptBusy:
|
||||
raise
|
||||
|
||||
# Now, wait for the accept to happen
|
||||
# ONLY if dumbhack indicates this is pass number one.
|
||||
# If select raises an error, we pass it on.
|
||||
# Is this the right behavior?
|
||||
if not dumbhack:
|
||||
r,w,e = select.select([sock], [], [], timeout)
|
||||
if r:
|
||||
return self.accept(dumbhack=1)
|
||||
|
||||
# If we get here, then we should raise Timeout
|
||||
raise Timeout("Attempted accept timed out.")
|
||||
# end accept
|
||||
|
||||
def send(self, data, flags=0):
|
||||
sock = self._sock
|
||||
if self._blocking:
|
||||
r,w,e = select.select([],[sock],[], self._timeout)
|
||||
if not w:
|
||||
raise Timeout("Send timed out")
|
||||
return sock.send(data, flags)
|
||||
# end send
|
||||
|
||||
def recv(self, bufsize, flags=0):
|
||||
sock = self._sock
|
||||
if self._blocking:
|
||||
r,w,e = select.select([sock], [], [], self._timeout)
|
||||
if not r:
|
||||
raise Timeout("Recv timed out")
|
||||
return sock.recv(bufsize, flags)
|
||||
# end recv
|
||||
|
||||
def makefile(self, flags="r", bufsize=-1):
|
||||
self._copies = self._copies +1
|
||||
return TimeoutFile(self, flags, bufsize)
|
||||
# end makefile
|
||||
|
||||
def close(self):
|
||||
if self._copies <= 0:
|
||||
self._sock.close()
|
||||
else:
|
||||
self._copies = self._copies -1
|
||||
# end close
|
||||
|
||||
# end TimeoutSocket
|
||||
|
||||
|
||||
class TimeoutFile:
|
||||
"""TimeoutFile object
|
||||
Implements a file-like object on top of TimeoutSocket.
|
||||
"""
|
||||
|
||||
def __init__(self, sock, mode="r", bufsize=4096):
|
||||
self._sock = sock
|
||||
self._bufsize = 4096
|
||||
if bufsize > 0: self._bufsize = bufsize
|
||||
if not hasattr(sock, "_inqueue"): self._sock._inqueue = ""
|
||||
|
||||
# end __init__
|
||||
|
||||
def __getattr__(self, key):
|
||||
return getattr(self._sock, key)
|
||||
# end __getattr__
|
||||
|
||||
def close(self):
|
||||
self._sock.close()
|
||||
self._sock = None
|
||||
# end close
|
||||
|
||||
def write(self, data):
|
||||
self.send(data)
|
||||
# end write
|
||||
|
||||
def read(self, size=-1):
|
||||
_sock = self._sock
|
||||
_bufsize = self._bufsize
|
||||
while 1:
|
||||
datalen = len(_sock._inqueue)
|
||||
if datalen >= size >= 0:
|
||||
break
|
||||
bufsize = _bufsize
|
||||
if size > 0:
|
||||
bufsize = min(bufsize, size - datalen )
|
||||
buf = self.recv(bufsize)
|
||||
if not buf:
|
||||
break
|
||||
_sock._inqueue = _sock._inqueue + buf
|
||||
data = _sock._inqueue
|
||||
_sock._inqueue = ""
|
||||
if size > 0 and datalen > size:
|
||||
_sock._inqueue = data[size:]
|
||||
data = data[:size]
|
||||
return data
|
||||
# end read
|
||||
|
||||
def readline(self, size=-1):
|
||||
_sock = self._sock
|
||||
_bufsize = self._bufsize
|
||||
while 1:
|
||||
idx = string.find(_sock._inqueue, "\n")
|
||||
if idx >= 0:
|
||||
break
|
||||
datalen = len(_sock._inqueue)
|
||||
if datalen >= size >= 0:
|
||||
break
|
||||
bufsize = _bufsize
|
||||
if size > 0:
|
||||
bufsize = min(bufsize, size - datalen )
|
||||
buf = self.recv(bufsize)
|
||||
if not buf:
|
||||
break
|
||||
_sock._inqueue = _sock._inqueue + buf
|
||||
|
||||
data = _sock._inqueue
|
||||
_sock._inqueue = ""
|
||||
if idx >= 0:
|
||||
idx = idx + 1
|
||||
_sock._inqueue = data[idx:]
|
||||
data = data[:idx]
|
||||
elif size > 0 and datalen > size:
|
||||
_sock._inqueue = data[size:]
|
||||
data = data[:size]
|
||||
return data
|
||||
# end readline
|
||||
|
||||
def readlines(self, sizehint=-1):
|
||||
result = []
|
||||
data = self.read()
|
||||
while data:
|
||||
idx = string.find(data, "\n")
|
||||
if idx >= 0:
|
||||
idx = idx + 1
|
||||
result.append( data[:idx] )
|
||||
data = data[idx:]
|
||||
else:
|
||||
result.append( data )
|
||||
data = ""
|
||||
return result
|
||||
# end readlines
|
||||
|
||||
def flush(self): pass
|
||||
|
||||
# end TimeoutFile
|
||||
|
||||
|
||||
#
|
||||
# Silently replace the socket() builtin function with
|
||||
# our timeoutsocket() definition.
|
||||
#
|
||||
if not hasattr(socket, "_no_timeoutsocket"):
|
||||
socket._no_timeoutsocket = socket.socket
|
||||
socket.socket = timeoutsocket
|
||||
del socket
|
||||
socket = timeoutsocket
|
||||
# Finis
|
110
smmapd_prototype/verifysender.m4
Normal file
110
smmapd_prototype/verifysender.m4
Normal file
@ -0,0 +1,110 @@
|
||||
VERSIONID(`$Id$')
|
||||
|
||||
|
||||
|
||||
divert(-1)
|
||||
|
||||
define(`_USAGE_', `dnl
|
||||
errprint(`*** ERROR: missing argument for FEATURE(verifysender):
|
||||
Usage: FEATURE(`verifysender', `_mode_', `_return_')
|
||||
_mode_: black or white
|
||||
_return_: temp or perm
|
||||
found: $1
|
||||
')')
|
||||
|
||||
ifelse(_ARG_, `black', `', `
|
||||
ifelse(_ARG_, `white', `', `
|
||||
_USAGE_(`_mode_: ('_ARG_`)
|
||||
')
|
||||
')')
|
||||
|
||||
ifelse(_ARG2_, `temp', `', `
|
||||
ifelse(_ARG2_, `perm', `', `
|
||||
_USAGE_(`_return_: ('_ARG2_`)
|
||||
')
|
||||
')')
|
||||
|
||||
define(`_mode_', _ARG_)
|
||||
define(`_return_', _ARG2_)
|
||||
|
||||
errprint(`*** _mode_: '_mode_`
|
||||
')
|
||||
errprint(`*** _return_: '_return_`
|
||||
')
|
||||
|
||||
|
||||
define(`_T_DSN_', `4.1.0')
|
||||
define(`_T_REPLY', `451')
|
||||
ifelse(_return_, `temp', `
|
||||
define(`_DSN_', _T_DSN_)
|
||||
define(`_REPLY_', _T_REPLY)', `dnl
|
||||
define(`_DSN_', `5.1.0')
|
||||
define(`_REPLY_', `550')')
|
||||
|
||||
ifelse(defn(`confVERIFIER_MAP'), `', `
|
||||
define(`_VERIFIER_MAP_', `inet:8884@127.0.0.1')', `
|
||||
define(`_VERIFIER_MAP_', confVERIFIER_MAP)')
|
||||
|
||||
ifelse(defn(`confVERIFIER_BLACKLIST'), `', `
|
||||
define(`_VERIFIER_BLACKLIST_', `/etc/mail/verifier-black-list')', `
|
||||
define(`_VERIFIER_BLACKLIST_', confVERIFIER_BLACKLIST)')
|
||||
|
||||
ifelse(defn(`confVERIFIER_WHITELIST'), `', `
|
||||
define(`_VERIFIER_WHITELIST_', `/etc/mail/verifier-white-list')', `
|
||||
define(`_VERIFIER_WHITELIST_', confVERIFIER_WHITELIST)')
|
||||
|
||||
divert(0)
|
||||
|
||||
LOCAL_CONFIG
|
||||
# Adjust the port
|
||||
Kverifier socket -T<temp> _VERIFIER_MAP_
|
||||
ifelse(_mode_, `white', `dnl
|
||||
Kverifier_helper hash -o _VERIFIER_WHITELIST_', `dnl
|
||||
Kverifier_helper hash _VERIFIER_BLACKLIST_')
|
||||
C{verifier_fix_white} postmaster
|
||||
|
||||
LOCAL_RULESETS
|
||||
# This ruleset can be used to test the verifier in -bt mode
|
||||
Svt
|
||||
R$+ $: < $(verifier $1 $:none $) >
|
||||
|
||||
Sverifier0
|
||||
R< $={verifier_fix_white} @ $+ > $@ < ok >
|
||||
R< $+ @ $+ > $: < $2 > < $(verifier_helper $1 @ $2 $: $) >
|
||||
R< $+ > < > $: < $(verifier_helper $1 $: $) >
|
||||
ifelse(_mode_, `white', `dnl
|
||||
dnl if we found nothing in the whitelist, we continue with checking
|
||||
R< > $@ < cont >
|
||||
dnl if we found something in the whitelist, we skip further verifications
|
||||
R< $+ > $@ < ok >', `dnl
|
||||
dnl if we found nothing in the blacklist, we skip further verifications
|
||||
R< > $@ < ok >
|
||||
dnl if we found something in the blacklist, we continue with checking
|
||||
R< $+ > $@ < cont >')
|
||||
|
||||
Sverifier1
|
||||
R< $+ > $: < $(verifier $1 $:none $) >
|
||||
R< $* < temp > > $#error $@ _T_DSN_ $: "_T_REPLY_ Sender Address could currently not be verified (1)"
|
||||
R< none > $#error $@ _T_DSN_ $: "_T_REPLY_ Sender Address could currently not be verified (2)"
|
||||
R< <OK> $* > $@ < ok >
|
||||
R< <NOK> < $* > > $#error $@ _DSN_ $: "_REPLY_ Sender Address was verified as bad: " $1
|
||||
R< <TNOK> < $* > > $#error $@ _T_DSN_ $: "_T_REPLY_ Sender Address could currently not be verified (3): " $1
|
||||
dnl if we get here, some is wrong with our code
|
||||
R$* $#error $@ 4.7.1 $: "451 Local configuration error <sv1>"
|
||||
|
||||
|
||||
SLocal_check_mail
|
||||
dnl MAILER-DAEMON address must not be verified
|
||||
R<> $@ <>
|
||||
dnl try to focus
|
||||
R$+ $: <> $>3 $1
|
||||
R<> $+ < @ $+ . > $: < $1 @ $2 >
|
||||
R<> $+ < @ $+ > $: < $1 @ $2 >
|
||||
dnl if unable to focus, rest of check_mail should take care (may be we should reject)
|
||||
R<> $* $@ OK
|
||||
R< $+ @ $+ > $: < $1 @ $2 > $>verifier0 < $1 @ $2 >
|
||||
R< $+ @ $+ > < cont > $: < $1 @ $2 > $>verifier1 < $1 @ $2 >
|
||||
R< $+ @ $+ > $# $* $# $3
|
||||
R< $+ @ $+ > < ok > $@ OK
|
||||
dnl if we get here, some is wrong with our code
|
||||
R$* $#error $@ 4.7.1 $: "451 Local configuration error <sv2>"
|
@ -1 +0,0 @@
|
||||
#AUTHOR# <#EMAIL#>
|
69
smmapdfw/Makefile
Normal file
69
smmapdfw/Makefile
Normal file
@ -0,0 +1,69 @@
|
||||
MAIN_OBJ = smmapd.o containers.o queue.o count.o config.o safe_write.o
|
||||
MOD_OBJS = test_workers.so
|
||||
ALLDEPEND = Makefile
|
||||
COMMON_CFLAGS = -g
|
||||
COMMON_LDFLAGS = -g
|
||||
OS = $(shell uname)
|
||||
RELEASE_ID = $(shell ./extract_release_id)
|
||||
|
||||
ifeq ($(OS), FreeBSD)
|
||||
BDB_INC ?= /usr/local/include/db41
|
||||
BDB_LIB ?=
|
||||
CFLAGS = $(COMMON_CFLAGS) -DFREEBSD -D_THREAD_SAFE -I$(BDB_INC)
|
||||
LDFLAGS = $(COMMON_LDFLAGS) -pthread
|
||||
SHARED = -shared
|
||||
endif
|
||||
|
||||
ifeq ($(OS), Linux)
|
||||
BDB_INC ?= /usr/include
|
||||
BDB_LIB ?= /usr/lib/libdb.a
|
||||
CFLAGS = $(COMMON_CFLAGS) -DLINUX -I$(BDB_INC)
|
||||
LDFLAGS = $(COMMON_LDFLAGS) -lresolv -pthread -ldl
|
||||
SHARED = -shared
|
||||
endif
|
||||
|
||||
ifeq ($(OS), SunOS)
|
||||
BDB_INC ?= /prod/BrklyDB4/current/include
|
||||
BDB_LIB ?= /prod/BrklyDB4/current/lib/libdb.a
|
||||
CFLAGS = $(COMMON_CFLAGS) -DSUNOS -D_REENTRANT -I$(BDB_INC)
|
||||
LDFLAGS = $(COMMON_LDFLAGS) -lresolv -lpthread -ldl -lsocket -lnsl
|
||||
SHARED = -G
|
||||
endif
|
||||
|
||||
|
||||
|
||||
LIBS =
|
||||
MOD_LIBS =
|
||||
CC = gcc
|
||||
|
||||
all: smmapd test_workers.so verify_worker.so cyrus_worker.so
|
||||
|
||||
smmapd: $(MAIN_OBJ)
|
||||
$(CC) $(LDFLAGS) -o $@ $^ $(LIBS)
|
||||
|
||||
test_workers.so: test_workers.o config_public.o
|
||||
$(CC) $(LDFLAGS) $(SHARED) -o $@ $^
|
||||
|
||||
verify_worker.so: verify_worker.o config_public.o dns.o queue.o smtp.o $(BDB_LIB)
|
||||
$(CC) $(LDFLAGS) $(SHARED) -o $@ $^
|
||||
|
||||
cyrus_worker.so: cyrus_worker.o config_public.o smtp.o dns.o
|
||||
$(CC) $(LDFLAGS) $(SHARED) -o $@ $^
|
||||
|
||||
clean:
|
||||
-rm -f *o *so smmapd
|
||||
|
||||
distclean: clean
|
||||
-rm -r smmapd-$(RELEASE_ID)
|
||||
-rm smmapd-$(RELEASE_ID).tar.gz
|
||||
|
||||
%.o: %.c
|
||||
$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
||||
tar:
|
||||
mkdir smmapd-$(RELEASE_ID) && \
|
||||
cp *.c *.h *.m4 smmapd.ini Makefile README smmapd-$(RELEASE_ID) && \
|
||||
chmod u+w smmapd-$(RELEASE_ID)/* && \
|
||||
tar -czf smmapd-$(RELEASE_ID).tar.gz smmapd-$(RELEASE_ID)
|
||||
|
||||
|
@ -1,2 +0,0 @@
|
||||
SUBDIRS = libsmmapdfw smmapd verify_worker test_worker cyrus_worker
|
||||
|
158
smmapdfw/README
158
smmapdfw/README
@ -0,0 +1,158 @@
|
||||
$Id$
|
||||
|
||||
|
||||
smmapd - A framework for workers for the sendmail socket map
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
With release 8.13 sendmail introduces the socket map type. This is an
|
||||
easy-to-use interface to other processes, performing tasks using data
|
||||
provided by sendmail through the map and returning data to sendmail,
|
||||
influencing the routing process.
|
||||
|
||||
smmapd is completely written in C, after a prototype written in Python
|
||||
was used to prove the concept. (The prototype can be found here:
|
||||
http://www.hottis.de/web/verifier/index.html)
|
||||
|
||||
An interface to plugin workers is provided. These workers perform the
|
||||
"interesting" work.
|
||||
|
||||
The framework itself does actually nothing than communicating with
|
||||
sendmail. It receives requests from sendmail, dispatches the requests
|
||||
to the workers and sends back the data returned from the selected
|
||||
worker to sendmail.
|
||||
|
||||
Thereby, the workers can completely concentrate on their particular
|
||||
task and completely ignore the communication with sendmail, including
|
||||
server-stuff, communication protocol and so on.
|
||||
|
||||
Currently two plugins are included in the tarball: an address verifier
|
||||
(comparable to exim's or postfix's callback functionality) and a Cyrus
|
||||
IMAP mailbox verifier. For both plugins m4 files to be used in the
|
||||
sendmail configuration are included too.
|
||||
|
||||
|
||||
|
||||
Building smmapd
|
||||
---------------
|
||||
|
||||
Currently only a Makefile is available, no autoconf and so on.
|
||||
On Debian and FreeBSD it should build out-of-the-box, on Solaris it
|
||||
builds also. Have a look into the Makefile and adapt it to your
|
||||
environment.
|
||||
|
||||
The installation is currently not supported by the Makefile. Copy the
|
||||
smmapd binary, the *.so files (plugins) and the smmapd.ini
|
||||
configuration file into the desired directories.
|
||||
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
# every configuration not related to a particular
|
||||
# plugin is in the global section
|
||||
[global]
|
||||
|
||||
# shall we run in background
|
||||
do_fork = 1
|
||||
|
||||
# where to place the pidfile
|
||||
pid_file = smmapd.pid
|
||||
|
||||
# on which address shall we listen (currently
|
||||
# IN_ANYADDR can not be configured)
|
||||
address = 127.0.0.1
|
||||
|
||||
# on which port shall we listen
|
||||
port = 8887
|
||||
|
||||
# from shall we load plugins (currently only one
|
||||
# location)
|
||||
plugin_dir = /home/who/Sources/private/smmapd
|
||||
|
||||
# which plugins should be loaded
|
||||
plugins = test_worker1 test_worker2 verifier cyruscheck
|
||||
|
||||
# the section identifier of a plugin must match to the map
|
||||
# name in the sendmail.cf
|
||||
[verifier]
|
||||
|
||||
# the shared object file containing the plugin
|
||||
obj = verify_worker.so
|
||||
|
||||
# verifier specific configuration begins here
|
||||
|
||||
# how long should we wait for an result before
|
||||
# answering to sendmail (time in seconds)
|
||||
timeout_result = 5
|
||||
|
||||
# timeout for the smtp dialog when verifying an
|
||||
# address
|
||||
timeout_dialog = 20
|
||||
|
||||
# should results be cached
|
||||
cache_enabled = 1
|
||||
|
||||
# how long should an result be kept in the cache
|
||||
# (time in seconds)
|
||||
cache_expiry = 86400
|
||||
|
||||
# sender address for the smtp dialog (angle brackets
|
||||
# are required
|
||||
sender_address = <>
|
||||
|
||||
# argument for the ehlo in the smtp dialog
|
||||
ehlo_arg = local
|
||||
|
||||
# what is the smtp port?
|
||||
smtp_port = 25
|
||||
|
||||
# for each best MX of a domain one checker thread
|
||||
# will be started when verifying an address, how
|
||||
# many should be started at maximum
|
||||
max_checker_threads = 100
|
||||
|
||||
[cyruscheck]
|
||||
obj = cyrus_worker.so
|
||||
|
||||
# how long should we wait for an answer of the depot
|
||||
timeout = 10
|
||||
|
||||
# sender address for the lmtp dialog (angle brackets
|
||||
# are required)
|
||||
sender_address = <testsender>
|
||||
|
||||
# argument for the lhlo command
|
||||
lhlo_arg = local
|
||||
|
||||
# what is your lmtp port?
|
||||
lmtp_port = 24
|
||||
|
||||
|
||||
|
||||
Running smmapd
|
||||
--------------
|
||||
|
||||
The following commandline options are supported:
|
||||
|
||||
-F run in foreground, overwrites do_fork from configuration
|
||||
file
|
||||
-p location of the pidfile, overwrites pidfile option from
|
||||
the configuration file
|
||||
-f location of the configuration file
|
||||
-v print version and release information
|
||||
-h print help screen
|
||||
|
||||
|
||||
|
||||
Programming interface
|
||||
---------------------
|
||||
|
||||
will be documented later
|
||||
|
||||
|
||||
|
||||
|
||||
Wolfgang Hottgenroth <woho@hottis.de>
|
||||
|
||||
|
@ -1,22 +1,12 @@
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#if STDC_HEADERS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYSLOG_H
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
|
||||
#include "cfg.h"
|
||||
#include "config.h"
|
||||
|
||||
#ifdef SUNOS
|
||||
#include "sunos_comp.h"
|
||||
#endif
|
||||
|
||||
#define LF 10
|
||||
|
||||
@ -46,7 +36,7 @@ config_section_t *readcfg(char *cfgfile) {
|
||||
|
||||
f = fopen(cfgfile, "r");
|
||||
if (NULL == f) {
|
||||
syslog(LOG_ERR, "readcfg: unable to open config file %s", cfgfile);
|
||||
syslog(LOG_ERR, "readcfg: unable to open config file");
|
||||
return NULL;
|
||||
}
|
||||
|
@ -1,13 +1,5 @@
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
#if HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#include "cfg.h"
|
||||
#include "config.h"
|
||||
|
||||
char *findcfgl(config_item_t *cfg, char *name) {
|
||||
config_item_t *ci;
|
@ -1,168 +0,0 @@
|
||||
# -*- Autoconf -*-
|
||||
# Process this file with autoconf to produce a configure script.
|
||||
|
||||
|
||||
AC_INIT(smmapdfw, 0.9, woho@hottis.de)
|
||||
AM_INIT_AUTOMAKE(smmapdfw, 0.9)
|
||||
AM_MAINTAINER_MODE
|
||||
|
||||
AM_CONFIG_HEADER(config.h)
|
||||
|
||||
AC_LANG_C
|
||||
|
||||
AC_ARG_WITH(bdb-lib-dir,
|
||||
[AC_HELP_STRING(--with-bdb-lib-dir, [
|
||||
Directory for Berkeley DB library files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-lib-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
LDFLAGS="$LDFLAGS -L$withval -R$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
AC_ARG_WITH(bdb-inc-dir,
|
||||
[AC_HELP_STRING(--with-bdb-inc-dir, [
|
||||
Directory for Berkeley include files])],
|
||||
[ case "$withval" in
|
||||
no)
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_MSG_ERROR(Need bdb-inc-dir)
|
||||
fi
|
||||
;;
|
||||
yes)
|
||||
;;
|
||||
*)
|
||||
CPPFLAGS="$CPPFLAGS -I$withval"
|
||||
;;
|
||||
esac ]
|
||||
)
|
||||
|
||||
|
||||
ENABLE_VERIFY_CACHE=1
|
||||
dnl AC_ARG_ENABLE(verify-cache,
|
||||
dnl [AC_HELP_STRING(--enable-verify-cache, [
|
||||
dnl Enables the cache in the verify worker.
|
||||
dnl Required a dbm implemenation.
|
||||
dnl (default=yes)])],
|
||||
dnl if test "x$enableval" = xyes; then ENABLE_VERIFY_CACHE=1; fi
|
||||
dnl if test "x$enableval" = xno; then ENABLE_VERIFY_CACHE=0; fi
|
||||
dnl )
|
||||
|
||||
dnl verify_BUILD=
|
||||
dnl AC_ARG_ENABLE(verify-worker,
|
||||
dnl [AC_HELP_STRING(--enable-verify-worker, [
|
||||
dnl Enables the sender address verification worker.
|
||||
dnl (default=no)])],
|
||||
dnl verify_BUILD=libverify_worker.la
|
||||
dnl )
|
||||
|
||||
dnl test_BUILD=
|
||||
dnl AC_ARG_ENABLE(test-worker,
|
||||
dnl [AC_HELP_STRING(--enable-test-worker, [
|
||||
dnl Enables the test worker (just an example).
|
||||
dnl (default=no)])],
|
||||
dnl test_BUILD=libtest_workers.la
|
||||
dnl )
|
||||
|
||||
dnl cyrus_BUILD=
|
||||
dnl AC_ARG_ENABLE(cyrus-worker,
|
||||
dnl [AC_HELP_STRING(--enable-cyrus-worker, [
|
||||
dnl Enables the cyrus mailbox checker.
|
||||
dnl (default=no)])],
|
||||
dnl cyrus_BUILD=libcyrus_worker.la
|
||||
dnl )
|
||||
|
||||
|
||||
|
||||
# Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_PROG_LIBTOOL
|
||||
AC_PROG_MAKE_SET
|
||||
|
||||
# Checks for libraries.
|
||||
AC_CHECK_LIB([dl], [dlopen])
|
||||
AC_CHECK_LIB([m], [sin])
|
||||
AC_CHECK_LIB([nsl], [gethostbyname])
|
||||
AC_CHECK_LIB(pthread, pthread_create,
|
||||
[ CFLAGS="$CFLAGS -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS"
|
||||
LIBS="$LIBS -lpthread"],
|
||||
AC_CHECK_LIB(c_r, pthread_create,
|
||||
[ CFLAGS="$CFLAGS -pthread -D_THREAD_SAFE"
|
||||
LIBS="$LIBS -lc_r"],
|
||||
[AC_MSG_ERROR([*** we can't go without threads])]
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
AC_CHECK_LIB([resolv], [inet_aton])
|
||||
AC_CHECK_LIB([socket], [connect])
|
||||
|
||||
|
||||
# Checks for header files.
|
||||
AC_HEADER_STDC
|
||||
AC_CHECK_HEADERS([arpa/inet.h fcntl.h netinet/in.h stdlib.h string.h strings.h sys/socket.h syslog.h unistd.h dlfcn.h])
|
||||
|
||||
AC_CHECK_HEADERS([db.h],
|
||||
[],
|
||||
[AC_MSG_ERROR([*** we can't go without Berkeley DB])])
|
||||
|
||||
# Checks for typedefs, structures, and compiler characteristics.
|
||||
AC_C_CONST
|
||||
AC_TYPE_SIZE_T
|
||||
AC_HEADER_TIME
|
||||
AC_CHECK_TYPES(socklen_t)
|
||||
|
||||
# Checks for library functions.
|
||||
AC_FUNC_FORK
|
||||
dnl AC_FUNC_MALLOC
|
||||
dnl AC_FUNC_REALLOC
|
||||
AC_FUNC_SELECT_ARGTYPES
|
||||
AC_CHECK_FUNCS([inet_ntoa memset select socket strchr strdup strerror strrchr strtol dlopen dlsym dlerror], [],
|
||||
[AC_MSG_ERROR([*** missing function, we can't go without it])])
|
||||
|
||||
|
||||
|
||||
|
||||
if test "x$ENABLE_VERIFY_CACHE" = "x1"; then
|
||||
AC_CHECK_LIB([db], [__db_ndbm_open],
|
||||
[ BDB_LIBS="-ldb" ],
|
||||
AC_CHECK_LIB([db], [__db_ndbm_open_4002],
|
||||
[ BDB_LIBS="-ldb" ],
|
||||
AC_CHECK_LIB([db41], [__db_ndbm_open],
|
||||
[ BDB_LIBS="-ldb41" ],
|
||||
AC_CHECK_LIB([db42], [__db_ndbm_open_4002],
|
||||
[ BDB_LIBS="-ldb42" ],
|
||||
BDB_NOT_FOUND=1
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
fi
|
||||
|
||||
AC_SUBST(BDB_LIBS)
|
||||
|
||||
if test "x$BDB_NOT_FOUND" = "x1"; then
|
||||
echo "*** no db/dbm found, disabling verify cache"
|
||||
ENABLE_VERIFY_CACHE=0
|
||||
fi
|
||||
|
||||
AC_DEFINE_UNQUOTED(ENABLE_VERIFY_CACHE, ${ENABLE_VERIFY_CACHE}, [enable verify cache])
|
||||
|
||||
|
||||
|
||||
|
||||
dnl AC_SUBST(verify_BUILD)
|
||||
dnl AC_SUBST(test_BUILD)
|
||||
dnl AC_SUBST(cyrus_BUILD)
|
||||
|
||||
|
||||
AC_CONFIG_FILES([Makefile libsmmapdfw/Makefile smmapd/Makefile test_worker/Makefile verify_worker/Makefile cyrus_worker/Makefile])
|
||||
|
||||
AC_OUTPUT
|
@ -1,25 +1,10 @@
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#if HAVE_SYSLOG_H
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_STRING_H
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#if STDC_HEADERS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_DLFCN_H
|
||||
#include <dlfcn.h>
|
||||
#endif
|
||||
|
||||
#include "containers.h"
|
||||
#include "cfg.h"
|
||||
#include "config.h"
|
||||
#include "smmapd.h"
|
||||
|
||||
|
||||
@ -215,6 +200,10 @@ int register_all() {
|
||||
int id = 0;
|
||||
|
||||
cfg_plugin_dir = findcfg(cfg, CFG_SECTION_GLOBAL, CFG_NAME_PLUGIN_DIR);
|
||||
if (NULL == cfg_plugin_dir) {
|
||||
syslog(LOG_ERR, "register_all: no plugin dir configured");
|
||||
return -1;
|
||||
}
|
||||
|
||||
cfg_plugins = findcfg(cfg, CFG_SECTION_GLOBAL, CFG_NAME_PLUGINS);
|
||||
if (NULL == cfg_plugins) {
|
||||
@ -232,12 +221,10 @@ int register_all() {
|
||||
return -3;
|
||||
}
|
||||
|
||||
obj_name = (char*) malloc(((cfg_plugin_dir == NULL) ? 0 : strlen(cfg_plugin_dir)) + strlen(cfg_obj) + 5);
|
||||
obj_name = (char*) malloc(strlen(cfg_plugin_dir) + strlen(cfg_obj) + 5);
|
||||
obj_name[0] = '\0';
|
||||
if (cfg_plugin_dir != NULL) {
|
||||
strcat(obj_name, cfg_plugin_dir);
|
||||
strcat(obj_name, "/");
|
||||
}
|
||||
strcat(obj_name, cfg_plugin_dir);
|
||||
strcat(obj_name, "/");
|
||||
strcat(obj_name, cfg_obj);
|
||||
|
||||
dl_handle = dlopen(obj_name, RTLD_NOW);
|
@ -1,7 +1,7 @@
|
||||
#ifndef _CONTAINERS_PUBLIC_H_
|
||||
#define _CONTAINERS_PUBLIC_H_
|
||||
|
||||
#include "cfg.h"
|
||||
#include "config.h"
|
||||
|
||||
struct class_descriptor_s {
|
||||
char *name;
|
@ -1,5 +0,0 @@
|
||||
lib_LTLIBRARIES = libcyrus_worker.la
|
||||
libcyrus_worker_la_SOURCES = cyrus_worker.c
|
||||
libcyrus_worker_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
@ -1,362 +0,0 @@
|
||||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
GCJ = @GCJ@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
HAVE_LIB = @HAVE_LIB@
|
||||
LIB = @LIB@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIB = @LTLIB@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
lib_LTLIBRARIES = libcyrus_worker.la
|
||||
libcyrus_worker_la_SOURCES = cyrus_worker.c
|
||||
libcyrus_worker_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
libcyrus_worker_la_LDFLAGS =
|
||||
libcyrus_worker_la_DEPENDENCIES = ../libsmmapdfw/libsmmapdfw.la
|
||||
libcyrus_worker_la_OBJECTS = cyrus_worker.lo
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
DEP_FILES = .deps/cyrus_worker.P
|
||||
SOURCES = $(libcyrus_worker_la_SOURCES)
|
||||
OBJECTS = $(libcyrus_worker_la_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .lo .o .obj .s
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu cyrus_worker/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-libLTLIBRARIES:
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
|
||||
distclean-libLTLIBRARIES:
|
||||
|
||||
maintainer-clean-libLTLIBRARIES:
|
||||
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
|
||||
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
|
||||
done
|
||||
|
||||
# FIXME: We should only use cygpath when building on Windows,
|
||||
# and only if it is available.
|
||||
.c.obj:
|
||||
$(COMPILE) -c `cygpath -w $<`
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
.s.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.S.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
libcyrus_worker.la: $(libcyrus_worker_la_OBJECTS) $(libcyrus_worker_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(libdir) $(libcyrus_worker_la_LDFLAGS) $(libcyrus_worker_la_OBJECTS) $(libcyrus_worker_la_LIBADD) $(LIBS)
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = cyrus_worker
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu cyrus_worker/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||
|
||||
-include $(DEP_FILES)
|
||||
|
||||
mostlyclean-depend:
|
||||
|
||||
clean-depend:
|
||||
|
||||
distclean-depend:
|
||||
-rm -rf .deps
|
||||
|
||||
maintainer-clean-depend:
|
||||
|
||||
%.o: %.c
|
||||
@echo '$(COMPILE) -c $<'; \
|
||||
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
||||
|
||||
%.lo: %.c
|
||||
@echo '$(LTCOMPILE) -c $<'; \
|
||||
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm -f .deps/$(*F).pp
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-libLTLIBRARIES
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
|
||||
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
|
||||
mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
|
||||
clean-depend clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-libLTLIBRARIES distclean-compile \
|
||||
distclean-libtool distclean-tags distclean-depend \
|
||||
distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
|
||||
maintainer-clean-compile maintainer-clean-libtool \
|
||||
maintainer-clean-tags maintainer-clean-depend \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
|
||||
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
|
||||
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
|
||||
distclean-compile clean-compile maintainer-clean-compile \
|
||||
mostlyclean-libtool distclean-libtool clean-libtool \
|
||||
maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
|
||||
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
|
||||
distclean-depend clean-depend maintainer-clean-depend info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all installdirs \
|
||||
mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
@ -1,158 +0,0 @@
|
||||
$Id$
|
||||
|
||||
|
||||
smmapd - A framework for workers for the sendmail socket map
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
With release 8.13 sendmail introduces the socket map type. This is an
|
||||
easy-to-use interface to other processes, performing tasks using data
|
||||
provided by sendmail through the map and returning data to sendmail,
|
||||
influencing the routing process.
|
||||
|
||||
smmapd is completely written in C, after a prototype written in Python
|
||||
was used to prove the concept. (The prototype can be found here:
|
||||
http://www.hottis.de/web/verifier/index.html)
|
||||
|
||||
An interface to plugin workers is provided. These workers perform the
|
||||
"interesting" work.
|
||||
|
||||
The framework itself does actually nothing than communicating with
|
||||
sendmail. It receives requests from sendmail, dispatches the requests
|
||||
to the workers and sends back the data returned from the selected
|
||||
worker to sendmail.
|
||||
|
||||
Thereby, the workers can completely concentrate on their particular
|
||||
task and completely ignore the communication with sendmail, including
|
||||
server-stuff, communication protocol and so on.
|
||||
|
||||
Currently two plugins are included in the tarball: an address verifier
|
||||
(comparable to exim's or postfix's callback functionality) and a Cyrus
|
||||
IMAP mailbox verifier. For both plugins m4 files to be used in the
|
||||
sendmail configuration are included too.
|
||||
|
||||
|
||||
|
||||
Building smmapd
|
||||
---------------
|
||||
|
||||
Currently only a Makefile is available, no autoconf and so on.
|
||||
On Debian and FreeBSD it should build out-of-the-box, on Solaris it
|
||||
builds also. Have a look into the Makefile and adapt it to your
|
||||
environment.
|
||||
|
||||
The installation is currently not supported by the Makefile. Copy the
|
||||
smmapd binary, the *.so files (plugins) and the smmapd.ini
|
||||
configuration file into the desired directories.
|
||||
|
||||
|
||||
|
||||
Configuration
|
||||
-------------
|
||||
|
||||
# every configuration not related to a particular
|
||||
# plugin is in the global section
|
||||
[global]
|
||||
|
||||
# shall we run in background
|
||||
do_fork = 1
|
||||
|
||||
# where to place the pidfile
|
||||
pid_file = smmapd.pid
|
||||
|
||||
# on which address shall we listen (currently
|
||||
# IN_ANYADDR can not be configured)
|
||||
address = 127.0.0.1
|
||||
|
||||
# on which port shall we listen
|
||||
port = 8887
|
||||
|
||||
# from shall we load plugins (currently only one
|
||||
# location)
|
||||
plugin_dir = /home/who/Sources/private/smmapd
|
||||
|
||||
# which plugins should be loaded
|
||||
plugins = test_worker1 test_worker2 verifier cyruscheck
|
||||
|
||||
# the section identifier of a plugin must match to the map
|
||||
# name in the sendmail.cf
|
||||
[verifier]
|
||||
|
||||
# the shared object file containing the plugin
|
||||
obj = verify_worker.so
|
||||
|
||||
# verifier specific configuration begins here
|
||||
|
||||
# how long should we wait for an result before
|
||||
# answering to sendmail (time in seconds)
|
||||
timeout_result = 5
|
||||
|
||||
# timeout for the smtp dialog when verifying an
|
||||
# address
|
||||
timeout_dialog = 20
|
||||
|
||||
# should results be cached
|
||||
cache_enabled = 1
|
||||
|
||||
# how long should an result be kept in the cache
|
||||
# (time in seconds)
|
||||
cache_expiry = 86400
|
||||
|
||||
# sender address for the smtp dialog (angle brackets
|
||||
# are required
|
||||
sender_address = <>
|
||||
|
||||
# argument for the ehlo in the smtp dialog
|
||||
ehlo_arg = local
|
||||
|
||||
# what is the smtp port?
|
||||
smtp_port = 25
|
||||
|
||||
# for each best MX of a domain one checker thread
|
||||
# will be started when verifying an address, how
|
||||
# many should be started at maximum
|
||||
max_checker_threads = 100
|
||||
|
||||
[cyruscheck]
|
||||
obj = cyrus_worker.so
|
||||
|
||||
# how long should we wait for an answer of the depot
|
||||
timeout = 10
|
||||
|
||||
# sender address for the lmtp dialog (angle brackets
|
||||
# are required)
|
||||
sender_address = <testsender>
|
||||
|
||||
# argument for the lhlo command
|
||||
lhlo_arg = local
|
||||
|
||||
# what is your lmtp port?
|
||||
lmtp_port = 24
|
||||
|
||||
|
||||
|
||||
Running smmapd
|
||||
--------------
|
||||
|
||||
The following commandline options are supported:
|
||||
|
||||
-F run in foreground, overwrites do_fork from configuration
|
||||
file
|
||||
-p location of the pidfile, overwrites pidfile option from
|
||||
the configuration file
|
||||
-f location of the configuration file
|
||||
-v print version and release information
|
||||
-h print help screen
|
||||
|
||||
|
||||
|
||||
Programming interface
|
||||
---------------------
|
||||
|
||||
will be documented later
|
||||
|
||||
|
||||
|
||||
|
||||
Wolfgang Hottgenroth <woho@hottis.de>
|
||||
|
@ -1,86 +0,0 @@
|
||||
\input texinfo @c -*-texinfo-*-
|
||||
@c %**start of header
|
||||
@setfilename smmapdfw.info
|
||||
@settitle smmapdfw manual
|
||||
@c %**end of header
|
||||
|
||||
@copying
|
||||
This manual is for smmapdfw, version 0.9
|
||||
|
||||
Copyright @copyright{} 2004 Wolfgang Hottgenroth
|
||||
@end copying
|
||||
|
||||
@titlepage
|
||||
@title smmapdfw
|
||||
@subtitle A framework for workers for the sendmail socketmap
|
||||
@author Wolfgang Hottgenroth
|
||||
|
||||
@page
|
||||
@vskip 0pt plus 1filll
|
||||
@insertcopying
|
||||
|
||||
@end titlepage
|
||||
|
||||
@contents
|
||||
|
||||
@ifnottex
|
||||
@node Top, Motivation, (dir), (dir)
|
||||
@top smmapdfw manual
|
||||
@insertcopying
|
||||
@end ifnottex
|
||||
|
||||
@menu
|
||||
* Motivation::
|
||||
* Overview::
|
||||
* Using from sendmail::
|
||||
* Configuration::
|
||||
* API::
|
||||
|
||||
@detailmenu
|
||||
--- The Detailed Node Listing ---
|
||||
|
||||
Configuration
|
||||
|
||||
* Global::
|
||||
* Plugin::
|
||||
|
||||
@end detailmenu
|
||||
@end menu
|
||||
|
||||
@node Motivation, Overview, Top, Top
|
||||
@chapter Motivation
|
||||
Why smmapdfw
|
||||
|
||||
@node Overview, Using from sendmail, Motivation, Top
|
||||
@chapter Overview
|
||||
Overview over smmapdfw
|
||||
|
||||
@node Using from sendmail, Configuration, Overview, Top
|
||||
@chapter Using from sendmail
|
||||
How to use smmapdfw from sendmail
|
||||
|
||||
@node Configuration, API, Using from sendmail, Top
|
||||
@chapter Configuration
|
||||
How to configure smmapdfw
|
||||
|
||||
@menu
|
||||
* Global::
|
||||
* Plugin::
|
||||
@end menu
|
||||
|
||||
@node Global, Plugin, Configuration, Configuration
|
||||
@section Global
|
||||
Global configuration items
|
||||
|
||||
@node Plugin, , Global, Configuration
|
||||
@section Plugin
|
||||
General plugin configuration items
|
||||
|
||||
|
||||
|
||||
@node API, , Configuration, Top
|
||||
@chapter API
|
||||
API documentation for plugin programmers
|
||||
|
||||
|
||||
@bye
|
2
smmapdfw/extract_release_id
Executable file
2
smmapdfw/extract_release_id
Executable file
@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
cat smmapd.c | grep '^#define RELEASE_ID' | awk '{print $3}' | sed 's/\"//g'
|
@ -1,5 +0,0 @@
|
||||
include_HEADERS=containers_public.h queue.h smtp.h cfg.h count.h safe_write.h sunos_comp.h dns.h smmapd.h
|
||||
lib_LTLIBRARIES = libsmmapdfw.la
|
||||
libsmmapdfw_la_SOURCES = cfg.c queue.c count.c safe_write.c config_public.c dns.c smtp.c
|
||||
|
||||
|
@ -1,380 +0,0 @@
|
||||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
GCJ = @GCJ@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
HAVE_LIB = @HAVE_LIB@
|
||||
LIB = @LIB@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIB = @LTLIB@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
include_HEADERS = containers_public.h queue.h smtp.h cfg.h count.h safe_write.h sunos_comp.h dns.h smmapd.h
|
||||
lib_LTLIBRARIES = libsmmapdfw.la
|
||||
libsmmapdfw_la_SOURCES = cfg.c queue.c count.c safe_write.c config_public.c dns.c smtp.c
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
libsmmapdfw_la_LDFLAGS =
|
||||
libsmmapdfw_la_LIBADD =
|
||||
libsmmapdfw_la_OBJECTS = cfg.lo queue.lo count.lo safe_write.lo \
|
||||
config_public.lo dns.lo smtp.lo
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
HEADERS = $(include_HEADERS)
|
||||
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
DEP_FILES = .deps/cfg.P .deps/config_public.P .deps/count.P .deps/dns.P \
|
||||
.deps/queue.P .deps/safe_write.P .deps/smtp.P
|
||||
SOURCES = $(libsmmapdfw_la_SOURCES)
|
||||
OBJECTS = $(libsmmapdfw_la_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .lo .o .obj .s
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu libsmmapdfw/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-libLTLIBRARIES:
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
|
||||
distclean-libLTLIBRARIES:
|
||||
|
||||
maintainer-clean-libLTLIBRARIES:
|
||||
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
|
||||
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
|
||||
done
|
||||
|
||||
# FIXME: We should only use cygpath when building on Windows,
|
||||
# and only if it is available.
|
||||
.c.obj:
|
||||
$(COMPILE) -c `cygpath -w $<`
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
.s.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.S.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
libsmmapdfw.la: $(libsmmapdfw_la_OBJECTS) $(libsmmapdfw_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(libdir) $(libsmmapdfw_la_LDFLAGS) $(libsmmapdfw_la_OBJECTS) $(libsmmapdfw_la_LIBADD) $(LIBS)
|
||||
|
||||
install-includeHEADERS: $(include_HEADERS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(includedir)
|
||||
@list='$(include_HEADERS)'; for p in $$list; do \
|
||||
if test -f "$$p"; then d= ; else d="$(srcdir)/"; fi; \
|
||||
echo " $(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p"; \
|
||||
$(INSTALL_DATA) $$d$$p $(DESTDIR)$(includedir)/$$p; \
|
||||
done
|
||||
|
||||
uninstall-includeHEADERS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(include_HEADERS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(includedir)/$$p; \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = libsmmapdfw
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu libsmmapdfw/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||
|
||||
-include $(DEP_FILES)
|
||||
|
||||
mostlyclean-depend:
|
||||
|
||||
clean-depend:
|
||||
|
||||
distclean-depend:
|
||||
-rm -rf .deps
|
||||
|
||||
maintainer-clean-depend:
|
||||
|
||||
%.o: %.c
|
||||
@echo '$(COMPILE) -c $<'; \
|
||||
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
||||
|
||||
%.lo: %.c
|
||||
@echo '$(LTCOMPILE) -c $<'; \
|
||||
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm -f .deps/$(*F).pp
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am: install-includeHEADERS
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-libLTLIBRARIES uninstall-includeHEADERS
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(LTLIBRARIES) $(HEADERS)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir) $(DESTDIR)$(includedir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
|
||||
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
|
||||
mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
|
||||
clean-depend clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-libLTLIBRARIES distclean-compile \
|
||||
distclean-libtool distclean-tags distclean-depend \
|
||||
distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
|
||||
maintainer-clean-compile maintainer-clean-libtool \
|
||||
maintainer-clean-tags maintainer-clean-depend \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
|
||||
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
|
||||
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
|
||||
distclean-compile clean-compile maintainer-clean-compile \
|
||||
mostlyclean-libtool distclean-libtool clean-libtool \
|
||||
maintainer-clean-libtool uninstall-includeHEADERS \
|
||||
install-includeHEADERS tags mostlyclean-tags distclean-tags clean-tags \
|
||||
maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
|
||||
clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
|
||||
check-am installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
@ -1,191 +0,0 @@
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
#include <string.h>
|
||||
#include <lua.h>
|
||||
#include <lualib.h>
|
||||
#include <lauxlib.h>
|
||||
|
||||
#include "containers_public.h"
|
||||
#include "smmapd.h"
|
||||
|
||||
|
||||
#define CFG_LUALIB_NAMES "load"
|
||||
#define CFG_LUALIB_DELIMITER " "
|
||||
#define CFG_LUA_ENTRYPOINT "entrypoint"
|
||||
#define CFG_LUA_FILENAME "file"
|
||||
|
||||
int lua_init(cfgl_t *cfg, void **handle);
|
||||
int lua_destroy(void *handle);
|
||||
int lua_work_setup(void *handle, void **work_handle);
|
||||
int lua_work_destroy(void *handle, void *work_handle);
|
||||
int lua_work(void *handle, void *work_handle, char *input, char *output);
|
||||
|
||||
|
||||
static const luaL_reg lualibs[] = {
|
||||
{ "base", luaopen_base },
|
||||
{ "table", luaopen_table },
|
||||
{ "io", luaopen_io },
|
||||
{ "string", luaopen_string },
|
||||
{ "math", luaopen_math },
|
||||
{ "debug", luaopen_debug },
|
||||
{ "loadlib", luaopen_loadlib },
|
||||
{ NULL, NULL }
|
||||
};
|
||||
|
||||
|
||||
|
||||
class_descriptor_t lua_worker = {
|
||||
"lua_worker",
|
||||
&lua_init,
|
||||
&lua_destroy,
|
||||
&lua_work_setup,
|
||||
&lua_work,
|
||||
&lua_work_destroy
|
||||
};
|
||||
|
||||
struct lua_container_handle_s {
|
||||
cfgl_t *cfg;
|
||||
lua_State *l;
|
||||
char *lua_entrypoint;
|
||||
};
|
||||
|
||||
typedef struct lua_container_handle_s lua_container_handle_t;
|
||||
|
||||
struct lua_worker_handle_s {
|
||||
lua_container_handle_t *lch;
|
||||
lua_State *l;
|
||||
};
|
||||
|
||||
typedef struct lua_worker_handle_s lua_worker_handle_t;
|
||||
|
||||
|
||||
int lua_init(cfgl_t *cfg, void **handle) {
|
||||
lua_container_handle_t *lch;
|
||||
char *lualibname, *lualibnames;
|
||||
int res, cnt;
|
||||
char *lua_filename;
|
||||
const luaL_reg *lualib;
|
||||
cfgl_t *cfgl_iter;
|
||||
|
||||
lch = (lua_container_handle_t*) malloc(sizeof(lua_container_handle_t));
|
||||
lch->cfg = cfg;
|
||||
|
||||
lua_filename = findcfgl(lch->cfg, CFG_LUA_FILENAME);
|
||||
if (NULL == lua_filename) {
|
||||
syslog(LOG_ERR, "lua_init: no lua_filename given in config");
|
||||
return -1;
|
||||
}
|
||||
|
||||
lch->lua_entrypoint = findcfglx(lch->cfg, CFG_LUA_ENTRYPOINT, "main");
|
||||
|
||||
lch->l = lua_open();
|
||||
|
||||
|
||||
lualibnames = findcfglx(lch->cfg, CFG_LUALIB_NAMES, "");
|
||||
while (NULL != (lualibname = strtok(lualibnames, CFG_LUALIB_DELIMITER))) {
|
||||
lualibnames = NULL; /* this is for subsequence calls of strtok */
|
||||
syslog(LOG_DEBUG, "lua_init: loading lib %s", lualibname);
|
||||
|
||||
for (lualib = lualibs; lualib->func != NULL; lualib++) {
|
||||
if (0 == strcmp(lualib->name, lualibname)) {
|
||||
res = lualib->func(lch->l);
|
||||
/* syslog(LOG_DEBUG, "lua_init %s loaded, result %d", lualibname, res); */
|
||||
lua_settop(lch->l, 0);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
res = luaL_loadfile(lch->l, lua_filename);
|
||||
if (0 != res) {
|
||||
syslog(LOG_ERR, "lua_init: unable to load lua file %s", lua_filename);
|
||||
lua_close(lch->l);
|
||||
free(lch);
|
||||
return -1;
|
||||
}
|
||||
syslog(LOG_DEBUG, "lua_init: lua file %s loaded and compiled", lua_filename);
|
||||
|
||||
lua_newtable(lch->l);
|
||||
cnt = 0;
|
||||
for (cfgl_iter = lch->cfg; cfgl_iter != NULL; cfgl_iter = cfgl_iter->next) {
|
||||
lua_pushstring(lch->l, cfgl_iter->name);
|
||||
lua_pushstring(lch->l, cfgl_iter->value);
|
||||
lua_rawset(lch->l, -3);
|
||||
cnt++;
|
||||
}
|
||||
|
||||
lua_pushliteral(lch->l, "n"); /* Pushes the literal */
|
||||
lua_pushnumber(lch->l, cnt); /* Pushes the total number of cells */
|
||||
lua_rawset(lch->l, -3); /* Stores the pair in the table */
|
||||
|
||||
lua_setglobal(lch->l, "config");
|
||||
|
||||
res = lua_pcall(lch->l, 0, 0, 0);
|
||||
if (0 != res) {
|
||||
syslog(LOG_ERR, "lua_init: unable to execute lua file %s", lua_filename);
|
||||
lua_close(lch->l);
|
||||
free(lch);
|
||||
return -1;
|
||||
}
|
||||
syslog(LOG_DEBUG, "lua_init: lua file %s executed", lua_filename);
|
||||
|
||||
|
||||
|
||||
*handle = lch;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lua_destroy(void *handle) {
|
||||
lua_container_handle_t *lch = (lua_container_handle_t*) handle;
|
||||
|
||||
lua_close(lch->l);
|
||||
free(lch);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lua_work_setup(void *handle, void **work_handle) {
|
||||
lua_worker_handle_t *lwh = (lua_worker_handle_t*)malloc(sizeof(lua_worker_handle_t));
|
||||
lwh->lch = (lua_container_handle_t*) handle;
|
||||
|
||||
lwh->l = lua_newthread(lwh->lch->l);
|
||||
|
||||
*work_handle = lwh;
|
||||
return 0;
|
||||
}
|
||||
|
||||
int lua_work_destroy(void *handle, void *work_handle) {
|
||||
lua_worker_handle_t *lwh = (lua_worker_handle_t*) work_handle;
|
||||
|
||||
free(lwh);
|
||||
}
|
||||
|
||||
int lua_work(void *handle, void *work_handle, char *input, char *output) {
|
||||
static const char *SCRIPT_ERROR = "error in lua script";
|
||||
|
||||
lua_worker_handle_t *lwh = (lua_worker_handle_t*) work_handle;
|
||||
int result, res;
|
||||
char *lua_output;
|
||||
|
||||
lua_getglobal(lwh->l, lwh->lch->lua_entrypoint);
|
||||
lua_pushstring(lwh->l, input);
|
||||
|
||||
res = lua_pcall(lwh->l, 1, 2, 0);
|
||||
|
||||
/* peek the result from the stack */
|
||||
lua_output = (char*) lua_tostring(lwh->l, lua_gettop(lwh->l));
|
||||
result = lua_tonumber(lwh->l, lua_gettop(lwh->l));
|
||||
|
||||
if (0 != res) {
|
||||
syslog(LOG_ERR, "lua_work: error when calling entrypoint function: %d", res);
|
||||
result = SMM_TEMP_NOK;
|
||||
snprintf(output, ANSWER_BUFSIZE, "%s: %s", SCRIPT_ERROR, lua_output);
|
||||
} else {
|
||||
snprintf(output, ANSWER_BUFSIZE, lua_output);
|
||||
}
|
||||
|
||||
/* remove the result from the stack */
|
||||
lua_pop(lwh->l, 2);
|
||||
|
||||
return result;
|
||||
}
|
@ -1,6 +0,0 @@
|
||||
function f (i)
|
||||
io.write("[lua] output from lua\n")
|
||||
io.write("[lua] ", i, "\n")
|
||||
io.write("[lua] entrypoint: ", config["entrypoint"], "\n")
|
||||
return 1, string.upper(i)
|
||||
end
|
@ -1,58 +1,35 @@
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#if HAVE_STRING_H
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
#endif
|
||||
|
||||
#if STDC_HEADERS
|
||||
#include <stdlib.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYSLOG_H
|
||||
#include <syslog.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_SOCKET_H
|
||||
#include <sys/socket.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_UNISTD_H
|
||||
#include <unistd.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_ARPA_INET_H
|
||||
#include <arpa/inet.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <netinet/in.h>
|
||||
#include <errno.h>
|
||||
#include <pthread.h>
|
||||
#include <unistd.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <assert.h>
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
#include "queue.h"
|
||||
#include "count.h"
|
||||
#include "containers.h"
|
||||
#include "cfg.h"
|
||||
#include "config.h"
|
||||
#include "safe_write.h"
|
||||
|
||||
#define _SMMAPD_C_
|
||||
#include "smmapd.h"
|
||||
|
||||
|
||||
#ifdef SUNOS
|
||||
#include "sunos_comp.h"
|
||||
#endif
|
||||
|
||||
|
||||
#define CFG_SECTION_GLOBAL "global"
|
||||
#define CFG_NAME_ADDRESS "address"
|
||||
#define CFG_NAME_PORT "port"
|
||||
|
||||
|
||||
#define DEFAULT_PORT "8888"
|
||||
|
||||
#define CVS_ID "$Id$"
|
||||
@ -291,6 +268,8 @@ void usage() {
|
||||
}
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
#define DEFAULT_SMMAPD_INI "smmapd.ini"
|
||||
|
||||
int err, pid, do_fork, foreground=0, c;
|
||||
char *pid_file=NULL, *cfg_file=NULL;
|
||||
|
32
smmapdfw/smmapd.ini
Normal file
32
smmapdfw/smmapd.ini
Normal file
@ -0,0 +1,32 @@
|
||||
[global]
|
||||
do_fork = 1
|
||||
pid_file = smmapd.pid
|
||||
address = 127.0.0.1
|
||||
port = 8887
|
||||
plugin_dir = /home/who/Sources/private/smmapd
|
||||
plugins = test_worker1 test_worker2 verifier cyruscheck
|
||||
|
||||
[test_worker1]
|
||||
obj = test_workers.so
|
||||
text = test worker1 handle text
|
||||
|
||||
[test_worker2]
|
||||
obj = test_workers.so
|
||||
|
||||
[verifier]
|
||||
obj = verify_worker.so
|
||||
timeout_result = 5
|
||||
timeout_dialog = 20
|
||||
cache_enabled = 1
|
||||
cache_expiry = 86400
|
||||
sender_address = <>
|
||||
ehlo_arg = local
|
||||
smtp_port = 25
|
||||
max_checker_threads = 100
|
||||
|
||||
[cyruscheck]
|
||||
obj = cyrus_worker.so
|
||||
timeout = 10
|
||||
sender_address = <testsender>
|
||||
lhlo_arg = local
|
||||
lmtp_port = 24
|
@ -1,9 +0,0 @@
|
||||
noinst_HEADERS = containers.h
|
||||
sysconf_DATA = smmapd.ini
|
||||
bin_PROGRAMS = smmapd
|
||||
smmapd_SOURCES = smmapd.c containers.c
|
||||
smmapd_LDADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
CPPFLAGS = -DDEFAULT_SMMAPD_INI=\"$(sysconfdir)/smmapd.ini\" @CPPFLAGS@
|
||||
|
@ -1,389 +0,0 @@
|
||||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
GCJ = @GCJ@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
HAVE_LIB = @HAVE_LIB@
|
||||
LIB = @LIB@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIB = @LTLIB@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
noinst_HEADERS = containers.h
|
||||
sysconf_DATA = smmapd.ini
|
||||
bin_PROGRAMS = smmapd
|
||||
smmapd_SOURCES = smmapd.c containers.c
|
||||
smmapd_LDADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
CPPFLAGS = -DDEFAULT_SMMAPD_INI=\"$(sysconfdir)/smmapd.ini\" @CPPFLAGS@
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
bin_PROGRAMS = smmapd$(EXEEXT)
|
||||
PROGRAMS = $(bin_PROGRAMS)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
smmapd_OBJECTS = smmapd.$(OBJEXT) containers.$(OBJEXT)
|
||||
smmapd_DEPENDENCIES = ../libsmmapdfw/libsmmapdfw.la
|
||||
smmapd_LDFLAGS =
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DATA = $(sysconf_DATA)
|
||||
|
||||
HEADERS = $(noinst_HEADERS)
|
||||
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
DEP_FILES = .deps/containers.P .deps/smmapd.P
|
||||
SOURCES = $(smmapd_SOURCES)
|
||||
OBJECTS = $(smmapd_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .lo .o .obj .s
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu smmapd/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-binPROGRAMS:
|
||||
|
||||
clean-binPROGRAMS:
|
||||
-test -z "$(bin_PROGRAMS)" || rm -f $(bin_PROGRAMS)
|
||||
|
||||
distclean-binPROGRAMS:
|
||||
|
||||
maintainer-clean-binPROGRAMS:
|
||||
|
||||
install-binPROGRAMS: $(bin_PROGRAMS)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir)
|
||||
@list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo " $(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`"; \
|
||||
$(LIBTOOL) --mode=install $(INSTALL_PROGRAM) $$p $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-binPROGRAMS:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(bin_PROGRAMS)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(bindir)/`echo $$p|sed 's/$(EXEEXT)$$//'|sed '$(transform)'|sed 's/$$/$(EXEEXT)/'`; \
|
||||
done
|
||||
|
||||
# FIXME: We should only use cygpath when building on Windows,
|
||||
# and only if it is available.
|
||||
.c.obj:
|
||||
$(COMPILE) -c `cygpath -w $<`
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
.s.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.S.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
smmapd$(EXEEXT): $(smmapd_OBJECTS) $(smmapd_DEPENDENCIES)
|
||||
@rm -f smmapd$(EXEEXT)
|
||||
$(LINK) $(smmapd_LDFLAGS) $(smmapd_OBJECTS) $(smmapd_LDADD) $(LIBS)
|
||||
|
||||
install-sysconfDATA: $(sysconf_DATA)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(sysconfdir)
|
||||
@list='$(sysconf_DATA)'; for p in $$list; do \
|
||||
if test -f $(srcdir)/$$p; then \
|
||||
echo " $(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p"; \
|
||||
$(INSTALL_DATA) $(srcdir)/$$p $(DESTDIR)$(sysconfdir)/$$p; \
|
||||
else if test -f $$p; then \
|
||||
echo " $(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p"; \
|
||||
$(INSTALL_DATA) $$p $(DESTDIR)$(sysconfdir)/$$p; \
|
||||
fi; fi; \
|
||||
done
|
||||
|
||||
uninstall-sysconfDATA:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(sysconf_DATA)'; for p in $$list; do \
|
||||
rm -f $(DESTDIR)$(sysconfdir)/$$p; \
|
||||
done
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = smmapd
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu smmapd/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||
|
||||
-include $(DEP_FILES)
|
||||
|
||||
mostlyclean-depend:
|
||||
|
||||
clean-depend:
|
||||
|
||||
distclean-depend:
|
||||
-rm -rf .deps
|
||||
|
||||
maintainer-clean-depend:
|
||||
|
||||
%.o: %.c
|
||||
@echo '$(COMPILE) -c $<'; \
|
||||
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
||||
|
||||
%.lo: %.c
|
||||
@echo '$(LTCOMPILE) -c $<'; \
|
||||
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm -f .deps/$(*F).pp
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-binPROGRAMS install-sysconfDATA
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-binPROGRAMS uninstall-sysconfDATA
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(PROGRAMS) $(DATA) $(HEADERS)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(bindir) $(DESTDIR)$(sysconfdir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-binPROGRAMS mostlyclean-compile \
|
||||
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
|
||||
mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-binPROGRAMS clean-compile clean-libtool clean-tags \
|
||||
clean-depend clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-binPROGRAMS distclean-compile distclean-libtool \
|
||||
distclean-tags distclean-depend distclean-generic \
|
||||
clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-binPROGRAMS \
|
||||
maintainer-clean-compile maintainer-clean-libtool \
|
||||
maintainer-clean-tags maintainer-clean-depend \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: mostlyclean-binPROGRAMS distclean-binPROGRAMS clean-binPROGRAMS \
|
||||
maintainer-clean-binPROGRAMS uninstall-binPROGRAMS install-binPROGRAMS \
|
||||
mostlyclean-compile distclean-compile clean-compile \
|
||||
maintainer-clean-compile mostlyclean-libtool distclean-libtool \
|
||||
clean-libtool maintainer-clean-libtool uninstall-sysconfDATA \
|
||||
install-sysconfDATA tags mostlyclean-tags distclean-tags clean-tags \
|
||||
maintainer-clean-tags distdir mostlyclean-depend distclean-depend \
|
||||
clean-depend maintainer-clean-depend info-am info dvi-am dvi check \
|
||||
check-am installcheck-am installcheck install-exec-am install-exec \
|
||||
install-data-am install-data install-am install uninstall-am uninstall \
|
||||
all-redirect all-am all installdirs mostlyclean-generic \
|
||||
distclean-generic clean-generic maintainer-clean-generic clean \
|
||||
mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
@ -1,41 +0,0 @@
|
||||
[global]
|
||||
do_fork = 0
|
||||
pid_file = smmapd.pid
|
||||
address = 127.0.0.1
|
||||
port = 8887
|
||||
; plugin_dir = /home/who/Sources/sf/smmapdfw
|
||||
; plugins = test_worker1 test_worker2 verifier cyruscheck lua_worker
|
||||
plugins = verifier
|
||||
|
||||
[test_worker1]
|
||||
obj = libtest_workers.so
|
||||
text = test worker1 handle text
|
||||
|
||||
[test_worker2]
|
||||
obj = libtest_workers.so
|
||||
|
||||
[verifier]
|
||||
obj = libverify_worker.so
|
||||
timeout_result = 5
|
||||
timeout_dialog = 20
|
||||
cache_enabled = 1
|
||||
cache_expiry = 86400
|
||||
sender_address = <>
|
||||
ehlo_arg = local
|
||||
smtp_port = 25
|
||||
max_checker_threads = 100
|
||||
|
||||
[cyruscheck]
|
||||
obj = libcyrus_worker.so
|
||||
timeout = 10
|
||||
sender_address = <testsender>
|
||||
lhlo_arg = local
|
||||
lmtp_port = 24
|
||||
|
||||
[lua_worker]
|
||||
obj = liblua_worker.so
|
||||
; load = base string table math loadlib io
|
||||
load = base string io
|
||||
lua_path = .
|
||||
file = worker.l
|
||||
entrypoint = f
|
@ -1,19 +1,9 @@
|
||||
#ifndef _SUNOS_COMP_H_
|
||||
#define _SUNOS_COMP_H_
|
||||
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifndef HAVE_SOCKLEN_T
|
||||
#define socklen_t size_t
|
||||
#endif
|
||||
|
||||
#ifndef isblank
|
||||
#define isblank(A) ((A==' ') || (A=='\t'))
|
||||
#endif
|
||||
|
||||
|
||||
#endif /* _SUNOS_COMP_H_ */
|
||||
|
@ -1,5 +0,0 @@
|
||||
lib_LTLIBRARIES = libtest_workers.la
|
||||
libtest_workers_la_SOURCES = test_workers.c
|
||||
libtest_workers_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
@ -1,9 +1,3 @@
|
||||
#if HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <syslog.h>
|
||||
#include <pthread.h>
|
||||
@ -14,11 +8,8 @@
|
||||
#include <sys/types.h>
|
||||
#include <fcntl.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#if ENABLE_VERIFY_CACHE == 1
|
||||
#define DB_DBM_HSEARCH 1
|
||||
#include <db.h>
|
||||
#endif
|
||||
|
||||
#include "containers_public.h"
|
||||
#include "smmapd.h"
|
||||
@ -261,7 +252,6 @@ int verify_work_destroy(void *handle, void *work_handle) {
|
||||
|
||||
|
||||
void cache_insert(verify_container_handle_t *vch, const char *address, int result, const char *output) {
|
||||
#if ENABLE_VERIFY_CACHE == 1
|
||||
DBM *cache;
|
||||
datum data, key;
|
||||
int ret;
|
||||
@ -292,13 +282,9 @@ void cache_insert(verify_container_handle_t *vch, const char *address, int resul
|
||||
|
||||
free(mydata);
|
||||
}
|
||||
#else
|
||||
syslog(LOG_DEBUG, "cache_insert: cache disabled");
|
||||
#endif /* ENABLE_VERIFY_CACHE */
|
||||
}
|
||||
|
||||
int cache_lookup(verify_container_handle_t *vch, const char* address, int *result, char **output) {
|
||||
#if ENABLE_VERIFY_CACHE == 1
|
||||
DBM *cache;
|
||||
datum data, key;
|
||||
mydata_t *mydata;
|
||||
@ -349,9 +335,6 @@ int cache_lookup(verify_container_handle_t *vch, const char* address, int *resul
|
||||
}
|
||||
|
||||
return res;
|
||||
#else
|
||||
return -1;
|
||||
#endif /* ENABLE_VERIFY_CACHE */
|
||||
}
|
||||
|
||||
|
@ -1,6 +0,0 @@
|
||||
lib_LTLIBRARIES = libverify_worker.la
|
||||
libverify_worker_la_SOURCES = verify_worker.c
|
||||
libverify_worker_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la @BDB_LIBS@
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
|
@ -1,362 +0,0 @@
|
||||
# Makefile.in generated automatically by automake 1.4-p6 from Makefile.am
|
||||
|
||||
# Copyright (C) 1994, 1995-8, 1999, 2001 Free Software Foundation, Inc.
|
||||
# This Makefile.in is free software; the Free Software Foundation
|
||||
# gives unlimited permission to copy and/or distribute it,
|
||||
# with or without modifications, as long as this notice is preserved.
|
||||
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY, to the extent permitted by law; without
|
||||
# even the implied warranty of MERCHANTABILITY or FITNESS FOR A
|
||||
# PARTICULAR PURPOSE.
|
||||
|
||||
|
||||
SHELL = @SHELL@
|
||||
|
||||
srcdir = @srcdir@
|
||||
top_srcdir = @top_srcdir@
|
||||
VPATH = @srcdir@
|
||||
prefix = @prefix@
|
||||
exec_prefix = @exec_prefix@
|
||||
|
||||
bindir = @bindir@
|
||||
sbindir = @sbindir@
|
||||
libexecdir = @libexecdir@
|
||||
datadir = @datadir@
|
||||
sysconfdir = @sysconfdir@
|
||||
sharedstatedir = @sharedstatedir@
|
||||
localstatedir = @localstatedir@
|
||||
libdir = @libdir@
|
||||
infodir = @infodir@
|
||||
mandir = @mandir@
|
||||
includedir = @includedir@
|
||||
oldincludedir = /usr/include
|
||||
|
||||
DESTDIR =
|
||||
|
||||
pkgdatadir = $(datadir)/@PACKAGE@
|
||||
pkglibdir = $(libdir)/@PACKAGE@
|
||||
pkgincludedir = $(includedir)/@PACKAGE@
|
||||
|
||||
top_builddir = ..
|
||||
|
||||
ACLOCAL = @ACLOCAL@
|
||||
AUTOCONF = @AUTOCONF@
|
||||
AUTOMAKE = @AUTOMAKE@
|
||||
AUTOHEADER = @AUTOHEADER@
|
||||
|
||||
INSTALL = @INSTALL@
|
||||
INSTALL_PROGRAM = @INSTALL_PROGRAM@ $(AM_INSTALL_PROGRAM_FLAGS)
|
||||
INSTALL_DATA = @INSTALL_DATA@
|
||||
INSTALL_SCRIPT = @INSTALL_SCRIPT@
|
||||
transform = @program_transform_name@
|
||||
|
||||
NORMAL_INSTALL = :
|
||||
PRE_INSTALL = :
|
||||
POST_INSTALL = :
|
||||
NORMAL_UNINSTALL = :
|
||||
PRE_UNINSTALL = :
|
||||
POST_UNINSTALL = :
|
||||
host_alias = @host_alias@
|
||||
host_triplet = @host@
|
||||
AR = @AR@
|
||||
AS = @AS@
|
||||
BDB_LIBS = @BDB_LIBS@
|
||||
CC = @CC@
|
||||
CXX = @CXX@
|
||||
CXXCPP = @CXXCPP@
|
||||
DLLTOOL = @DLLTOOL@
|
||||
ECHO = @ECHO@
|
||||
EGREP = @EGREP@
|
||||
EXEEXT = @EXEEXT@
|
||||
F77 = @F77@
|
||||
GCJ = @GCJ@
|
||||
GCJFLAGS = @GCJFLAGS@
|
||||
HAVE_LIB = @HAVE_LIB@
|
||||
LIB = @LIB@
|
||||
LIBTOOL = @LIBTOOL@
|
||||
LN_S = @LN_S@
|
||||
LTLIB = @LTLIB@
|
||||
MAINT = @MAINT@
|
||||
MAKEINFO = @MAKEINFO@
|
||||
OBJDUMP = @OBJDUMP@
|
||||
OBJEXT = @OBJEXT@
|
||||
PACKAGE = @PACKAGE@
|
||||
RANLIB = @RANLIB@
|
||||
RC = @RC@
|
||||
STRIP = @STRIP@
|
||||
VERSION = @VERSION@
|
||||
|
||||
lib_LTLIBRARIES = libverify_worker.la
|
||||
libverify_worker_la_SOURCES = verify_worker.c
|
||||
libverify_worker_la_LIBADD = ../libsmmapdfw/libsmmapdfw.la @BDB_LIBS@
|
||||
|
||||
INCLUDES = -I../libsmmapdfw
|
||||
mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
|
||||
CONFIG_HEADER = ../config.h
|
||||
CONFIG_CLEAN_FILES =
|
||||
LTLIBRARIES = $(lib_LTLIBRARIES)
|
||||
|
||||
|
||||
DEFS = @DEFS@ -I. -I$(srcdir) -I..
|
||||
CPPFLAGS = @CPPFLAGS@
|
||||
LDFLAGS = @LDFLAGS@
|
||||
LIBS = @LIBS@
|
||||
libverify_worker_la_LDFLAGS =
|
||||
libverify_worker_la_DEPENDENCIES = ../libsmmapdfw/libsmmapdfw.la
|
||||
libverify_worker_la_OBJECTS = verify_worker.lo
|
||||
CFLAGS = @CFLAGS@
|
||||
COMPILE = $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
LTCOMPILE = $(LIBTOOL) --mode=compile $(CC) $(DEFS) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
|
||||
CCLD = $(CC)
|
||||
LINK = $(LIBTOOL) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(LDFLAGS) -o $@
|
||||
DIST_COMMON = Makefile.am Makefile.in
|
||||
|
||||
|
||||
DISTFILES = $(DIST_COMMON) $(SOURCES) $(HEADERS) $(TEXINFOS) $(EXTRA_DIST)
|
||||
|
||||
TAR = tar
|
||||
GZIP_ENV = --best
|
||||
DEP_FILES = .deps/verify_worker.P
|
||||
SOURCES = $(libverify_worker_la_SOURCES)
|
||||
OBJECTS = $(libverify_worker_la_OBJECTS)
|
||||
|
||||
all: all-redirect
|
||||
.SUFFIXES:
|
||||
.SUFFIXES: .S .c .lo .o .obj .s
|
||||
$(srcdir)/Makefile.in: @MAINTAINER_MODE_TRUE@ Makefile.am $(top_srcdir)/configure.ac $(ACLOCAL_M4)
|
||||
cd $(top_srcdir) && $(AUTOMAKE) --gnu verify_worker/Makefile
|
||||
|
||||
Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
|
||||
cd $(top_builddir) \
|
||||
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
|
||||
|
||||
|
||||
mostlyclean-libLTLIBRARIES:
|
||||
|
||||
clean-libLTLIBRARIES:
|
||||
-test -z "$(lib_LTLIBRARIES)" || rm -f $(lib_LTLIBRARIES)
|
||||
|
||||
distclean-libLTLIBRARIES:
|
||||
|
||||
maintainer-clean-libLTLIBRARIES:
|
||||
|
||||
install-libLTLIBRARIES: $(lib_LTLIBRARIES)
|
||||
@$(NORMAL_INSTALL)
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
@list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
if test -f $$p; then \
|
||||
echo "$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p"; \
|
||||
$(LIBTOOL) --mode=install $(INSTALL) $$p $(DESTDIR)$(libdir)/$$p; \
|
||||
else :; fi; \
|
||||
done
|
||||
|
||||
uninstall-libLTLIBRARIES:
|
||||
@$(NORMAL_UNINSTALL)
|
||||
list='$(lib_LTLIBRARIES)'; for p in $$list; do \
|
||||
$(LIBTOOL) --mode=uninstall rm -f $(DESTDIR)$(libdir)/$$p; \
|
||||
done
|
||||
|
||||
# FIXME: We should only use cygpath when building on Windows,
|
||||
# and only if it is available.
|
||||
.c.obj:
|
||||
$(COMPILE) -c `cygpath -w $<`
|
||||
|
||||
.s.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
.S.o:
|
||||
$(COMPILE) -c $<
|
||||
|
||||
mostlyclean-compile:
|
||||
-rm -f *.o core *.core
|
||||
-rm -f *.$(OBJEXT)
|
||||
|
||||
clean-compile:
|
||||
|
||||
distclean-compile:
|
||||
-rm -f *.tab.c
|
||||
|
||||
maintainer-clean-compile:
|
||||
|
||||
.s.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
.S.lo:
|
||||
$(LIBTOOL) --mode=compile $(COMPILE) -c $<
|
||||
|
||||
mostlyclean-libtool:
|
||||
-rm -f *.lo
|
||||
|
||||
clean-libtool:
|
||||
-rm -rf .libs _libs
|
||||
|
||||
distclean-libtool:
|
||||
|
||||
maintainer-clean-libtool:
|
||||
|
||||
libverify_worker.la: $(libverify_worker_la_OBJECTS) $(libverify_worker_la_DEPENDENCIES)
|
||||
$(LINK) -rpath $(libdir) $(libverify_worker_la_LDFLAGS) $(libverify_worker_la_OBJECTS) $(libverify_worker_la_LIBADD) $(LIBS)
|
||||
|
||||
tags: TAGS
|
||||
|
||||
ID: $(HEADERS) $(SOURCES) $(LISP)
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
here=`pwd` && cd $(srcdir) \
|
||||
&& mkid -f$$here/ID $$unique $(LISP)
|
||||
|
||||
TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) $(LISP)
|
||||
tags=; \
|
||||
here=`pwd`; \
|
||||
list='$(SOURCES) $(HEADERS)'; \
|
||||
unique=`for i in $$list; do echo $$i; done | \
|
||||
awk ' { files[$$0] = 1; } \
|
||||
END { for (i in files) print i; }'`; \
|
||||
test -z "$(ETAGS_ARGS)$$unique$(LISP)$$tags" \
|
||||
|| (cd $(srcdir) && etags -o $$here/TAGS $(ETAGS_ARGS) $$tags $$unique $(LISP))
|
||||
|
||||
mostlyclean-tags:
|
||||
|
||||
clean-tags:
|
||||
|
||||
distclean-tags:
|
||||
-rm -f TAGS ID
|
||||
|
||||
maintainer-clean-tags:
|
||||
|
||||
distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
|
||||
|
||||
subdir = verify_worker
|
||||
|
||||
distdir: $(DISTFILES)
|
||||
here=`cd $(top_builddir) && pwd`; \
|
||||
top_distdir=`cd $(top_distdir) && pwd`; \
|
||||
distdir=`cd $(distdir) && pwd`; \
|
||||
cd $(top_srcdir) \
|
||||
&& $(AUTOMAKE) --include-deps --build-dir=$$here --srcdir-name=$(top_srcdir) --output-dir=$$top_distdir --gnu verify_worker/Makefile
|
||||
@for file in $(DISTFILES); do \
|
||||
d=$(srcdir); \
|
||||
if test -d $$d/$$file; then \
|
||||
cp -pr $$d/$$file $(distdir)/$$file; \
|
||||
else \
|
||||
test -f $(distdir)/$$file \
|
||||
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|
||||
|| cp -p $$d/$$file $(distdir)/$$file || :; \
|
||||
fi; \
|
||||
done
|
||||
|
||||
DEPS_MAGIC := $(shell mkdir .deps > /dev/null 2>&1 || :)
|
||||
|
||||
-include $(DEP_FILES)
|
||||
|
||||
mostlyclean-depend:
|
||||
|
||||
clean-depend:
|
||||
|
||||
distclean-depend:
|
||||
-rm -rf .deps
|
||||
|
||||
maintainer-clean-depend:
|
||||
|
||||
%.o: %.c
|
||||
@echo '$(COMPILE) -c $<'; \
|
||||
$(COMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-cp .deps/$(*F).pp .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm .deps/$(*F).pp
|
||||
|
||||
%.lo: %.c
|
||||
@echo '$(LTCOMPILE) -c $<'; \
|
||||
$(LTCOMPILE) -Wp,-MD,.deps/$(*F).pp -c $<
|
||||
@-sed -e 's/^\([^:]*\)\.o[ ]*:/\1.lo \1.o :/' \
|
||||
< .deps/$(*F).pp > .deps/$(*F).P; \
|
||||
tr ' ' '\012' < .deps/$(*F).pp \
|
||||
| sed -e 's/^\\$$//' -e '/^$$/ d' -e '/:$$/ d' -e 's/$$/ :/' \
|
||||
>> .deps/$(*F).P; \
|
||||
rm -f .deps/$(*F).pp
|
||||
info-am:
|
||||
info: info-am
|
||||
dvi-am:
|
||||
dvi: dvi-am
|
||||
check-am: all-am
|
||||
check: check-am
|
||||
installcheck-am:
|
||||
installcheck: installcheck-am
|
||||
install-exec-am: install-libLTLIBRARIES
|
||||
install-exec: install-exec-am
|
||||
|
||||
install-data-am:
|
||||
install-data: install-data-am
|
||||
|
||||
install-am: all-am
|
||||
@$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am
|
||||
install: install-am
|
||||
uninstall-am: uninstall-libLTLIBRARIES
|
||||
uninstall: uninstall-am
|
||||
all-am: Makefile $(LTLIBRARIES)
|
||||
all-redirect: all-am
|
||||
install-strip:
|
||||
$(MAKE) $(AM_MAKEFLAGS) AM_INSTALL_PROGRAM_FLAGS=-s install
|
||||
installdirs:
|
||||
$(mkinstalldirs) $(DESTDIR)$(libdir)
|
||||
|
||||
|
||||
mostlyclean-generic:
|
||||
|
||||
clean-generic:
|
||||
|
||||
distclean-generic:
|
||||
-rm -f Makefile $(CONFIG_CLEAN_FILES)
|
||||
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
|
||||
|
||||
maintainer-clean-generic:
|
||||
mostlyclean-am: mostlyclean-libLTLIBRARIES mostlyclean-compile \
|
||||
mostlyclean-libtool mostlyclean-tags mostlyclean-depend \
|
||||
mostlyclean-generic
|
||||
|
||||
mostlyclean: mostlyclean-am
|
||||
|
||||
clean-am: clean-libLTLIBRARIES clean-compile clean-libtool clean-tags \
|
||||
clean-depend clean-generic mostlyclean-am
|
||||
|
||||
clean: clean-am
|
||||
|
||||
distclean-am: distclean-libLTLIBRARIES distclean-compile \
|
||||
distclean-libtool distclean-tags distclean-depend \
|
||||
distclean-generic clean-am
|
||||
-rm -f libtool
|
||||
|
||||
distclean: distclean-am
|
||||
|
||||
maintainer-clean-am: maintainer-clean-libLTLIBRARIES \
|
||||
maintainer-clean-compile maintainer-clean-libtool \
|
||||
maintainer-clean-tags maintainer-clean-depend \
|
||||
maintainer-clean-generic distclean-am
|
||||
@echo "This command is intended for maintainers to use;"
|
||||
@echo "it deletes files that may require special tools to rebuild."
|
||||
|
||||
maintainer-clean: maintainer-clean-am
|
||||
|
||||
.PHONY: mostlyclean-libLTLIBRARIES distclean-libLTLIBRARIES \
|
||||
clean-libLTLIBRARIES maintainer-clean-libLTLIBRARIES \
|
||||
uninstall-libLTLIBRARIES install-libLTLIBRARIES mostlyclean-compile \
|
||||
distclean-compile clean-compile maintainer-clean-compile \
|
||||
mostlyclean-libtool distclean-libtool clean-libtool \
|
||||
maintainer-clean-libtool tags mostlyclean-tags distclean-tags \
|
||||
clean-tags maintainer-clean-tags distdir mostlyclean-depend \
|
||||
distclean-depend clean-depend maintainer-clean-depend info-am info \
|
||||
dvi-am dvi check check-am installcheck-am installcheck install-exec-am \
|
||||
install-exec install-data-am install-data install-am install \
|
||||
uninstall-am uninstall all-redirect all-am all installdirs \
|
||||
mostlyclean-generic distclean-generic clean-generic \
|
||||
maintainer-clean-generic clean mostlyclean distclean maintainer-clean
|
||||
|
||||
|
||||
# Tell versions [3.59,3.63) of GNU make to not export all variables.
|
||||
# Otherwise a system limit (for SysV at least) may be exceeded.
|
||||
.NOEXPORT:
|
Reference in New Issue
Block a user