apps/pfixtools.git
16 years agoBegin work on the greylist module.
Pierre Habouzit [Fri, 30 Nov 2007 11:00:29 +0000 (12:00 +0100)]
Begin work on the greylist module.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoHave a generic pidfile API.
Pierre Habouzit [Fri, 30 Nov 2007 08:51:41 +0000 (09:51 +0100)]
Have a generic pidfile API.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoImplement usage
Pierre Habouzit [Fri, 30 Nov 2007 08:36:27 +0000 (09:36 +0100)]
Implement usage

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agomove license in mk/
Pierre Habouzit [Thu, 29 Nov 2007 15:59:24 +0000 (16:59 +0100)]
move license in mk/

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoAdd a threading framework
Pierre Habouzit [Thu, 29 Nov 2007 11:14:26 +0000 (12:14 +0100)]
Add a threading framework

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agosimplifications
Pierre Habouzit [Thu, 29 Nov 2007 10:19:31 +0000 (11:19 +0100)]
simplifications

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoUse even more magic.
Pierre Habouzit [Thu, 29 Nov 2007 10:17:45 +0000 (11:17 +0100)]
Use even more magic.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoHave an epoll module.
Pierre Habouzit [Thu, 29 Nov 2007 10:13:30 +0000 (11:13 +0100)]
Have an epoll module.

16 years agocommon module updates.
Pierre Habouzit [Thu, 29 Nov 2007 10:13:13 +0000 (11:13 +0100)]
common module updates.

16 years agoremove stupid inlines
Pierre Habouzit [Thu, 29 Nov 2007 10:12:55 +0000 (11:12 +0100)]
remove stupid inlines

16 years agoRefactoring.
Pierre Habouzit [Sat, 1 Sep 2007 10:59:53 +0000 (12:59 +0200)]
Refactoring.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agorenames
Pierre Habouzit [Sat, 1 Sep 2007 10:54:04 +0000 (12:54 +0200)]
renames

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoMerge daemon.c into common.c
Pierre Habouzit [Sat, 1 Sep 2007 10:45:09 +0000 (12:45 +0200)]
Merge daemon.c into common.c

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoMerge daemon.h in common.h
Pierre Habouzit [Sat, 1 Sep 2007 10:42:52 +0000 (12:42 +0200)]
Merge daemon.h in common.h

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoUseless function
Pierre Habouzit [Thu, 30 Aug 2007 22:41:52 +0000 (00:41 +0200)]
Useless function

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoBetter handling of forking and exiting and signals.
Pierre Habouzit [Thu, 30 Aug 2007 22:19:27 +0000 (00:19 +0200)]
Better handling of forking and exiting and signals.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoUse pidfile in initscript.
Pierre Habouzit [Thu, 30 Aug 2007 22:04:18 +0000 (00:04 +0200)]
Use pidfile in initscript.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoFix typo, and use the privileges drop.
Pierre Habouzit [Thu, 30 Aug 2007 22:00:31 +0000 (00:00 +0200)]
Fix typo, and use the privileges drop.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoAdd a function to drop privileges.
Pierre Habouzit [Thu, 30 Aug 2007 21:59:57 +0000 (23:59 +0200)]
Add a function to drop privileges.

16 years agoDebian packaging.
Pierre Habouzit [Wed, 29 Aug 2007 22:55:48 +0000 (00:55 +0200)]
Debian packaging.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoSpurious copyright header, and add an install target in makefile.
Pierre Habouzit [Wed, 29 Aug 2007 22:35:04 +0000 (00:35 +0200)]
Spurious copyright header, and add an install target in makefile.

16 years agoSupport a pidfile.
Pierre Habouzit [Wed, 29 Aug 2007 21:39:05 +0000 (23:39 +0200)]
Support a pidfile.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoStrip whitespace for secrets
Pierre Habouzit [Wed, 29 Aug 2007 21:10:23 +0000 (23:10 +0200)]
Strip whitespace for secrets

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoRename srsd into pfix-srsd.
Pierre Habouzit [Wed, 29 Aug 2007 20:03:59 +0000 (22:03 +0200)]
Rename srsd into pfix-srsd.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoAdd daemon_detach, and use it.
Pierre Habouzit [Wed, 29 Aug 2007 19:48:18 +0000 (21:48 +0200)]
Add daemon_detach, and use it.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoMore homogeneous name: tcp_listen -> tcp_listen_nonblock.
Pierre Habouzit [Wed, 29 Aug 2007 18:14:08 +0000 (20:14 +0200)]
More homogeneous name: tcp_listen -> tcp_listen_nonblock.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoRename project -> pfixtools.
Pierre Habouzit [Wed, 29 Aug 2007 18:08:57 +0000 (20:08 +0200)]
Rename project -> pfixtools.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoAhem, use non blocking IO. silly me.
Pierre Habouzit [Wed, 29 Aug 2007 17:33:44 +0000 (19:33 +0200)]
Ahem, use non blocking IO. silly me.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoFor the sake of completeness:
Pierre Habouzit [Wed, 29 Aug 2007 17:18:46 +0000 (19:18 +0200)]
For the sake of completeness:

  * urldecode the "key" argument, as tcp_table(5) ask us to (be quite
    liberal with what we receive though).
  * kill connections that do not send us a \n in less than BUFSIZ octets.
  * answer to empty requests as well.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoSmall fix: tcp_table(5) should not end with \r\n but \n.
Pierre Habouzit [Wed, 29 Aug 2007 17:05:58 +0000 (19:05 +0200)]
Small fix: tcp_table(5) should not end with \r\n but \n.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoDon't hardcode srsd as the daemon name, use a define.
Pierre Habouzit [Wed, 29 Aug 2007 16:58:26 +0000 (18:58 +0200)]
Don't hardcode srsd as the daemon name, use a define.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoSrs tcp_table(5) daemon.
Pierre Habouzit [Wed, 29 Aug 2007 16:51:58 +0000 (18:51 +0200)]
Srs tcp_table(5) daemon.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoSpecial buffer initializer
Pierre Habouzit [Wed, 29 Aug 2007 16:51:02 +0000 (18:51 +0200)]
Special buffer initializer

16 years agoMore simplifications, prepare the path to be a real daemon.
Pierre Habouzit [Mon, 27 Aug 2007 23:20:08 +0000 (01:20 +0200)]
More simplifications, prepare the path to be a real daemon.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoSimplifications, style.
Pierre Habouzit [Mon, 27 Aug 2007 23:01:46 +0000 (01:01 +0200)]
Simplifications, style.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agothat style of mine 2 years ago hurt my eyes
Pierre Habouzit [Mon, 27 Aug 2007 21:35:25 +0000 (23:35 +0200)]
that style of mine 2 years ago hurt my eyes

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoClean tests on clean.
Pierre Habouzit [Mon, 27 Aug 2007 21:33:40 +0000 (23:33 +0200)]
Clean tests on clean.

16 years agofix makefile
Pierre Habouzit [Mon, 27 Aug 2007 21:30:44 +0000 (23:30 +0200)]
fix makefile

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoLot of work on postlicyd, also make the repository a general postfix-addons repo.
Pierre Habouzit [Mon, 27 Aug 2007 21:30:04 +0000 (23:30 +0200)]
Lot of work on postlicyd, also make the repository a general postfix-addons repo.

  Import srs-c as srsd, as I intend to enhance it a lot.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agorefactor
Pierre Habouzit [Thu, 23 Aug 2007 22:17:06 +0000 (00:17 +0200)]
refactor

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoMore administrivia.
Pierre Habouzit [Thu, 23 Aug 2007 22:14:22 +0000 (00:14 +0200)]
More administrivia.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoRewind work, and start in another direction.
Pierre Habouzit [Thu, 23 Aug 2007 21:57:39 +0000 (23:57 +0200)]
Rewind work, and start in another direction.

  Prepare some administrivia.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoFix build system, drop gai things, we will go with threads as policy processes are...
Pierre Habouzit [Sat, 18 Aug 2007 10:27:30 +0000 (12:27 +0200)]
Fix build system, drop gai things, we will go with threads as policy processes are long lived.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agoWe won't use D
Pierre Habouzit [Sat, 18 Aug 2007 10:15:42 +0000 (12:15 +0200)]
We won't use D

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
16 years agosupport for D in the build system.
Pierre Habouzit [Wed, 30 May 2007 17:03:33 +0000 (19:03 +0200)]
support for D in the build system.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agobe sure we have our generated sources with us.
Pierre Habouzit [Thu, 10 May 2007 20:17:12 +0000 (22:17 +0200)]
be sure we have our generated sources with us.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agostyle, mostly. Also fix return case now that we parse everything :)
Pierre Habouzit [Wed, 2 May 2007 22:46:16 +0000 (00:46 +0200)]
style, mostly. Also fix return case now that we parse everything :)

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoactually do the parsing.
Pierre Habouzit [Wed, 2 May 2007 16:13:50 +0000 (18:13 +0200)]
actually do the parsing.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agofurther work on data parsing.
Pierre Habouzit [Wed, 2 May 2007 10:24:57 +0000 (12:24 +0200)]
further work on data parsing.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoRefactor, prepare gperf things needed for the parse.
Pierre Habouzit [Tue, 1 May 2007 21:39:48 +0000 (23:39 +0200)]
Refactor, prepare gperf things needed for the parse.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoImplement lightweight getaddrinfo_a wrappers.
Pierre Habouzit [Fri, 27 Apr 2007 01:57:16 +0000 (03:57 +0200)]
Implement lightweight getaddrinfo_a wrappers.

  Add the module gai.[hc].
  Various improvements for jobs.
  Cosmetics in postlicyd.c
  Yes we are doing _GNU_SOURCE code now (Makefile).

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoVarious code simplifications.
Pierre Habouzit [Thu, 26 Apr 2007 15:18:33 +0000 (17:18 +0200)]
Various code simplifications.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agocflags.mk updates
Pierre Habouzit [Thu, 26 Apr 2007 15:18:12 +0000 (17:18 +0200)]
cflags.mk updates

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agofix makefile, also drop libudns, we will likely use libanl
Pierre Habouzit [Thu, 26 Apr 2007 15:16:25 +0000 (17:16 +0200)]
fix makefile, also drop libudns, we will likely use libanl

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoimplement the event loop, add a stopper.
Pierre Habouzit [Mon, 5 Feb 2007 00:40:28 +0000 (01:40 +0100)]
implement the event loop, add a stopper.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agosplit files.
Pierre Habouzit [Sun, 4 Feb 2007 23:55:47 +0000 (00:55 +0100)]
split files.
simplify some things.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agowe do not need tasks. that's an overkill.
Pierre Habouzit [Sun, 4 Feb 2007 22:14:21 +0000 (23:14 +0100)]
we do not need tasks. that's an overkill.
fix the build system

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agocontinue to rework our jobs
Pierre Habouzit [Sun, 4 Feb 2007 21:54:05 +0000 (22:54 +0100)]
continue to rework our jobs

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agorework sources: add notion of jobs and tasks
Pierre Habouzit [Sat, 3 Feb 2007 00:37:58 +0000 (01:37 +0100)]
rework sources: add notion of jobs and tasks

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoadd buffer_read.
Pierre Habouzit [Sat, 3 Feb 2007 00:30:17 +0000 (01:30 +0100)]
add buffer_read.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoupdate cflags
Pierre Habouzit [Sat, 3 Feb 2007 00:29:54 +0000 (01:29 +0100)]
update cflags

17 years agoforget about tags
Pierre Habouzit [Fri, 2 Feb 2007 23:00:12 +0000 (00:00 +0100)]
forget about tags

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoMore clever build system
Pierre Habouzit [Fri, 2 Feb 2007 22:59:51 +0000 (23:59 +0100)]
More clever build system

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agochange guards.
Pierre Habouzit [Mon, 8 Jan 2007 07:24:58 +0000 (08:24 +0100)]
change guards.
minor updates.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoprepare useful things for policy request parsing.
Pierre Habouzit [Mon, 8 Jan 2007 00:10:43 +0000 (01:10 +0100)]
prepare useful things for policy request parsing.
use our usual functions.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoadd tags target
Pierre Habouzit [Mon, 8 Jan 2007 00:10:19 +0000 (01:10 +0100)]
add tags target

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoImport my beloved mutt api's
Pierre Habouzit [Sun, 7 Jan 2007 23:53:36 +0000 (00:53 +0100)]
Import my beloved mutt api's

Signed-off-by: Pierre Habouzit <madcoder@debian.org>
17 years agoinitial import.
Pierre Habouzit [Sun, 7 Jan 2007 23:34:43 +0000 (00:34 +0100)]
initial import.

Signed-off-by: Pierre Habouzit <madcoder@debian.org>