aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2007-05-12 07:17:10 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2007-05-12 07:17:10 +0000
commitc0b3a5cafbe33441b40fe786bf4f3033723de393 (patch)
tree5e2a46295ec6a6923de4cbace2ab11e5e371e3cb
parent9f0e5dee4a53772da7446706e789f3a96385011b (diff)
downloadmailfromd-c0b3a5cafbe33441b40fe786bf4f3033723de393.tar.gz
mailfromd-c0b3a5cafbe33441b40fe786bf4f3033723de393.tar.bz2
Update for the recent gnulib changes
git-svn-id: file:///svnroot/mailfromd/trunk@1422 7a8a7f39-df28-0410-adc6-e0d955640f24
-rw-r--r--ChangeLog10
-rw-r--r--README-alpha5
-rw-r--r--bootstrap2
-rw-r--r--doc/mailfromd.texi3
-rw-r--r--doc/mtasim.texi6
-rw-r--r--src/Makefile.am5
-rw-r--r--src/openat-die.c40
7 files changed, 63 insertions, 8 deletions
diff --git a/ChangeLog b/ChangeLog
index 00536f95..84a6691c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
12007-05-12 Sergey Poznyakoff <gray@gnu.org.ua>
2
3 * bootstrap: Avoid importing openat-die. This needs the following
4 patch:
5 http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00056.html
6 * README-alpha: Update
7 * src/openat-die.c: New source
8 * src/Makefile.am (mtasim_SOURCES): Add openat-die.c
9 * doc/mailfromd.texi, doc/mtasim.texi: Update
10
12007-05-11 Sergey Poznyakoff <gray@gnu.org.ua> 112007-05-11 Sergey Poznyakoff <gray@gnu.org.ua>
2 12
3 * configure.ac, NEWS: Raise version number to 4.0. Ready for the 13 * configure.ac, NEWS: Raise version number to 4.0. Ready for the
diff --git a/README-alpha b/README-alpha
index 4cb0c1fc..68568139 100644
--- a/README-alpha
+++ b/README-alpha
@@ -54,6 +54,11 @@ and create the configuration framework. Run:
54 54
55(make sure gnulib-tool is in your path). 55(make sure gnulib-tool is in your path).
56 56
57Note: at the time of this writing (2007-05-12) the following patch
58needs to be applied to gnulib before running bootstrap:
59
60http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00056.html
61
573. Configure and build the package as described in the documentation. See 623. Configure and build the package as described in the documentation. See
58 63
59 http://mailfromd.software.gnu.org.ua/manual/html_node/Building 64 http://mailfromd.software.gnu.org.ua/manual/html_node/Building
diff --git a/bootstrap b/bootstrap
index b6161d18..fc2a8d0d 100644
--- a/bootstrap
+++ b/bootstrap
@@ -12,6 +12,6 @@ MODLIST="argp\
12 strtok_r\ 12 strtok_r\
13 version-etc" 13 version-etc"
14 14
15gnulib-tool --import --avoid xalloc-die $MODLIST 15gnulib-tool --import --avoid xalloc-die --avoid openat-die $MODLIST
16test -f lib/daemon.c || ln src/daemon.c lib/ 16test -f lib/daemon.c || ln src/daemon.c lib/
17autoreconf -i -f -s 17autoreconf -i -f -s
diff --git a/doc/mailfromd.texi b/doc/mailfromd.texi
index d8aa4da5..c937bf80 100644
--- a/doc/mailfromd.texi
+++ b/doc/mailfromd.texi
@@ -375,8 +375,7 @@ to facilitate the configuration on @samp{Sendmail} side.
375concentrated mainly on bug-fixes, while the main development was done 375concentrated mainly on bug-fixes, while the main development was done
376on the next branch. 376on the next branch.
377 377
378@FIXME{When 4.0 is out, change the data below:} 378 The version 4.0 appeared on May 12, 2007. The full
379 The version 4.0 appeared on @value{UPDATED}. The full
380list of changes in this release is more than 500 lines long, so it is 379list of changes in this release is more than 500 lines long, so it is
381impractical to list them here. In particular, this version introduced 380impractical to list them here. In particular, this version introduced
382lots of new features in @acronym{MFL} syntax and the 381lots of new features in @acronym{MFL} syntax and the
diff --git a/doc/mtasim.texi b/doc/mtasim.texi
index 8e5f66f8..e6fa9857 100644
--- a/doc/mtasim.texi
+++ b/doc/mtasim.texi
@@ -84,7 +84,7 @@ to:
84 You can try a simple @acronym{SMTP} session now: 84 You can try a simple @acronym{SMTP} session now:
85 85
86@smallexample 86@smallexample
87220 mtasim (mailfromd 3.1.92) ready 87220 mtasim (mailfromd @value{VERSION}) ready
88(mtasim) @kbd{ehlo localhost} 88(mtasim) @kbd{ehlo localhost}
89250-pleased to meet you 89250-pleased to meet you
90250 HELP 90250 HELP
@@ -125,7 +125,7 @@ will connect to it and you will get the following initial prompt:
125 125
126@smallexample 126@smallexample
127@group 127@group
128220-mtasim (mailfromd 3.1.92) ready 128220-mtasim (mailfromd @value{VERSION}) ready
129220 Connected to milter inet:999@@localhost 129220 Connected to milter inet:999@@localhost
130(mtasim) 130(mtasim)
131@end group 131@end group
@@ -440,7 +440,7 @@ cases.
440@item --define=@var{macro}=@var{value} 440@item --define=@var{macro}=@var{value}
441@itemx -D @var{macro}=@var{value} 441@itemx -D @var{macro}=@var{value}
442 Define Sendmail macro @var{macro} to the given @var{value}. It is 442 Define Sendmail macro @var{macro} to the given @var{value}. It is
443similar to @code{\D} administrative command (@pxref{D command}) 443similar to the @code{\D} administrative command (@pxref{D command})
444 444
445@item --help 445@item --help
446@itemx -? 446@itemx -?
diff --git a/src/Makefile.am b/src/Makefile.am
index b017eb96..c83808a1 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -63,11 +63,12 @@ EXTRA_LIBRARIES=libsyslog_async.a
63noinst_LIBRARIES=libmf.a @BUILD_SYSLOG_ASYNC@ 63noinst_LIBRARIES=libmf.a @BUILD_SYSLOG_ASYNC@
64libsyslog_async_a_SOURCES=syslog_async.c syslog_async.h 64libsyslog_async_a_SOURCES=syslog_async.c syslog_async.h
65 65
66libmf_a_SOURCES=version.c 66libmf_a_SOURCES=\
67 version.c
67 68
68mailfromd_LDADD = ./libmf.a $(LDADD) $(SYSLOG_LIBS) 69mailfromd_LDADD = ./libmf.a $(LDADD) $(SYSLOG_LIBS)
69 70
70mtasim_SOURCES = mtasim.c 71mtasim_SOURCES = mtasim.c openat-die.c
71mtasim_LDADD = ./libmf.a $(LDADD) $(READLINE_LIBS) 72mtasim_LDADD = ./libmf.a $(LDADD) $(READLINE_LIBS)
72 73
73noinst_HEADERS = mailfromd.h mu_dbm.h builtin.h dns.h spf.h drivers.c debug.h 74noinst_HEADERS = mailfromd.h mu_dbm.h builtin.h dns.h spf.h drivers.c debug.h
diff --git a/src/openat-die.c b/src/openat-die.c
new file mode 100644
index 00000000..386d98be
--- /dev/null
+++ b/src/openat-die.c
@@ -0,0 +1,40 @@
1/* This file is part of mailfromd.
2 Copyright (C) 2007 Sergey Poznyakoff
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2, or (at your option)
7 any later version.
8
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13
14 You should have received a copy of the GNU General Public License
15 along with this program; if not, write to the Free Software
16 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17 MA 02110-1301 USA */
18
19#ifdef HAVE_CONFIG_H
20# include <config.h>
21#endif
22
23#include "mailfromd.h"
24
25void
26openat_save_fail(int errno)
27{
28 mu_error("unable to record current working directory: %s",
29 mu_strerror(errno));
30 exit(EX_OSERR);
31}
32
33void
34openat_restore_fail(int errno)
35{
36 mu_error("failed to return to initial working directory: %s",
37 mu_strerror(errno));
38 exit(EX_OSERR);
39}
40

Return to:

Send suggestions and report system problems to the System administrator.