diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-03 08:18:20 +0000 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-03 08:18:20 +0000 |
commit | ce299152b5eda62b7b81f997a7cc7023b2b552a9 (patch) | |
tree | 4b5e0f511cd444af68f46d29464012e62e026e18 | |
parent | ebafa0371adcc981eff35089ff30b04fb334e67b (diff) | |
download | anubis-ce299152b5eda62b7b81f997a7cc7023b2b552a9.tar.gz anubis-ce299152b5eda62b7b81f997a7cc7023b2b552a9.tar.bz2 |
Fix loop-detection code, add some minor improvements.
* README-hacking: Update.
* bootstrap.conf: Add sysexits.
* build/bootstrap: Synch with gnulib repository.
* build/gnulib.modules: Remove.
* lib/.cvsignore, m4/.cvsignore, po/.cvsignore: Update.
* lib/Makefile.am: Remove unnecessary initializations.
* src/authmode.c (anubis_authenticate_mode): Remove a block of
code duplicated in transmode.c and replace it with a call to
session_prologue.
* src/transmode.c (anubis_transparent_mode): Likewise.
(string_to_ipaddr, session_prologue): New functions.
* src/env.opt: Fix Emacs mode marker.
* src/headers.h: Include sysexits.h unconditionally.
(session_prologue): New prototype.
* src/tls.c (cipher_info): Add missing newline.
-rw-r--r-- | ChangeLog | 20 | ||||
-rw-r--r-- | README-hacking | 12 | ||||
-rw-r--r-- | bootstrap.conf | 1 | ||||
-rwxr-xr-x | build/bootstrap | 246 | ||||
-rw-r--r-- | build/gnulib.modules | 8 | ||||
-rw-r--r-- | lib/.cvsignore | 41 | ||||
-rw-r--r-- | lib/Makefile.am | 5 | ||||
-rw-r--r-- | m4/.cvsignore | 16 | ||||
-rw-r--r-- | po/.cvsignore | 1 | ||||
-rw-r--r-- | src/authmode.c | 75 | ||||
-rw-r--r-- | src/env.opt | 4 | ||||
-rw-r--r-- | src/headers.h | 40 | ||||
-rw-r--r-- | src/tls.c | 1 | ||||
-rw-r--r-- | src/transmode.c | 138 |
14 files changed, 304 insertions, 304 deletions
@@ -1,3 +1,23 @@ | |||
1 | 2008-07-03 Sergey Poznyakoff <gray@gnu.org.ua> | ||
2 | |||
3 | Fix loop-detection code, add some minor improvements. | ||
4 | |||
5 | * README-hacking: Update. | ||
6 | * bootstrap.conf: Add sysexits. | ||
7 | * build/bootstrap: Synch with gnulib repository. | ||
8 | * build/gnulib.modules: Remove. | ||
9 | * lib/.cvsignore, m4/.cvsignore, po/.cvsignore: Update. | ||
10 | * lib/Makefile.am: Remove unnecessary initializations. | ||
11 | * src/authmode.c (anubis_authenticate_mode): Remove a block of | ||
12 | code duplicated in transmode.c and replace it with a call to | ||
13 | session_prologue. | ||
14 | * src/transmode.c (anubis_transparent_mode): Likewise. | ||
15 | (string_to_ipaddr, session_prologue): New functions. | ||
16 | * src/env.opt: Fix Emacs mode marker. | ||
17 | * src/headers.h: Include sysexits.h unconditionally. | ||
18 | (session_prologue): New prototype. | ||
19 | * src/tls.c (cipher_info): Add missing newline. | ||
20 | |||
1 | 2007-11-04 Wojciech Polak <polak@gnu.org> | 21 | 2007-11-04 Wojciech Polak <polak@gnu.org> |
2 | 22 | ||
3 | ====================== | 23 | ====================== |
diff --git a/README-hacking b/README-hacking index 5b86625..7f4710e 100644 --- a/README-hacking +++ b/README-hacking | |||
@@ -29,9 +29,7 @@ which are extracted from other source packages: | |||
29 | 29 | ||
30 | 2. Run | 30 | 2. Run |
31 | 31 | ||
32 | ./build/bootstrap GNULIB-DIR | 32 | ./build/bootstrap |
33 | |||
34 | where GNULIB-DIR is the directory where Gnulib sources reside. | ||
35 | 33 | ||
36 | Once done, proceed as described in the file README (section | 34 | Once done, proceed as described in the file README (section |
37 | INSTALLATION). | 35 | INSTALLATION). |
@@ -43,17 +41,19 @@ avoiding downloading the same files again. If so, create in GNU anubis | |||
43 | root directory the file named `.bootstrap' with the following | 41 | root directory the file named `.bootstrap' with the following |
44 | contents: | 42 | contents: |
45 | 43 | ||
46 | $HOME/gnulib --skip-po | 44 | --gnulib-srcdir=$HOME/gnulib |
47 | 45 | ||
48 | Replace `$HOME/gnulib' with the actual directory where the Gnulib | 46 | Replace `$HOME/gnulib' with the actual directory where the Gnulib |
49 | sources reside. | 47 | sources reside. Another option that might be useful in `.bootstrap' |
48 | is `--skip-po', which tells bootstrap not to download localization | ||
49 | files. | ||
50 | 50 | ||
51 | For more information about `bootstrap', run `bootstrap --help'. | 51 | For more information about `bootstrap', run `bootstrap --help'. |
52 | 52 | ||
53 | 53 | ||
54 | * Copyright information | 54 | * Copyright information |
55 | 55 | ||
56 | Copyright (C) 2007 The Anubis Team. | 56 | Copyright (C) 2007, 2008 The Anubis Team. |
57 | 57 | ||
58 | Permission is granted to anyone to make or distribute verbatim copies | 58 | Permission is granted to anyone to make or distribute verbatim copies |
59 | of this document as received, in any medium, provided that the | 59 | of this document as received, in any medium, provided that the |
diff --git a/bootstrap.conf b/bootstrap.conf index 25bb922..b113971 100644 --- a/bootstrap.conf +++ b/bootstrap.conf | |||
@@ -11,6 +11,7 @@ gnulib_modules="\ | |||
11 | getopt\ | 11 | getopt\ |
12 | getpass\ | 12 | getpass\ |
13 | setenv\ | 13 | setenv\ |
14 | sysexits\ | ||
14 | xalloc" | 15 | xalloc" |
15 | 16 | ||
16 | build_aux=build | 17 | build_aux=build |
diff --git a/build/bootstrap b/build/bootstrap index 223e820..9a85762 100755 --- a/build/bootstrap +++ b/build/bootstrap | |||
@@ -2,12 +2,12 @@ | |||
2 | 2 | ||
3 | # Bootstrap this package from checked-out sources. | 3 | # Bootstrap this package from checked-out sources. |
4 | 4 | ||
5 | # Copyright (C) 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 5 | # Copyright (C) 2003-2008 Free Software Foundation, Inc. |
6 | 6 | ||
7 | # This program is free software; you can redistribute it and/or modify | 7 | # This program is free software: you can redistribute it and/or modify |
8 | # it under the terms of the GNU General Public License as published by | 8 | # it under the terms of the GNU General Public License as published by |
9 | # the Free Software Foundation; either version 2, or (at your option) | 9 | # the Free Software Foundation, either version 3 of the License, or |
10 | # any later version. | 10 | # (at your option) any later version. |
11 | 11 | ||
12 | # This program is distributed in the hope that it will be useful, | 12 | # This program is distributed in the hope that it will be useful, |
13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
@@ -15,9 +15,7 @@ | |||
15 | # GNU General Public License for more details. | 15 | # GNU General Public License for more details. |
16 | 16 | ||
17 | # You should have received a copy of the GNU General Public License | 17 | # You should have received a copy of the GNU General Public License |
18 | # along with this program; if not, write to the Free Software | 18 | # along with this program. If not, see <http://www.gnu.org/licenses/>. |
19 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
20 | # 02110-1301, USA. | ||
21 | 19 | ||
22 | # Written by Paul Eggert. | 20 | # Written by Paul Eggert. |
23 | 21 | ||
@@ -25,10 +23,11 @@ nl=' | |||
25 | ' | 23 | ' |
26 | 24 | ||
27 | # Ensure file names are sorted consistently across platforms. | 25 | # Ensure file names are sorted consistently across platforms. |
28 | # Also, ensure diagnostics are in English, e.g., "wget --help" below. | ||
29 | LC_ALL=C | 26 | LC_ALL=C |
30 | export LC_ALL | 27 | export LC_ALL |
31 | 28 | ||
29 | local_gl_dir=gl | ||
30 | |||
32 | # Temporary directory names. | 31 | # Temporary directory names. |
33 | bt='._bootmp' | 32 | bt='._bootmp' |
34 | bt_regex=`echo "$bt"| sed 's/\./[.]/g'` | 33 | bt_regex=`echo "$bt"| sed 's/\./[.]/g'` |
@@ -49,8 +48,6 @@ Options: | |||
49 | --force Attempt to bootstrap even if the sources seem | 48 | --force Attempt to bootstrap even if the sources seem |
50 | not to have been checked out. | 49 | not to have been checked out. |
51 | --skip-po Do not download po files. | 50 | --skip-po Do not download po files. |
52 | --cvs-user=USERNAME Set the username to use when checking out | ||
53 | sources from the gnulib repository. | ||
54 | 51 | ||
55 | If the file bootstrap.conf exists in the current working directory, its | 52 | If the file bootstrap.conf exists in the current working directory, its |
56 | contents are read as shell variables to configure the bootstrap. | 53 | contents are read as shell variables to configure the bootstrap. |
@@ -70,15 +67,20 @@ gnulib_modules= | |||
70 | # Any gnulib files needed that are not in modules. | 67 | # Any gnulib files needed that are not in modules. |
71 | gnulib_files= | 68 | gnulib_files= |
72 | 69 | ||
73 | # Translation Project URL, for the registry of all projects | 70 | # The command to download all .po files for a specified domain into |
74 | # and for the translation-team master directory. | 71 | # a specified directory. Fill in the first %s is the domain name, and |
75 | TP_URL="http://translationproject.org/latest/" | 72 | # the second with the destination directory. Use rsync's -L and -r |
73 | # options because the latest/%s directory and the .po files within are | ||
74 | # all symlinks. | ||
75 | po_download_command_format=\ | ||
76 | "rsync -Lrtvz 'translationproject.org::tp/latest/%s/' '%s'" | ||
76 | 77 | ||
77 | extract_package_name=' | 78 | extract_package_name=' |
78 | /^AC_INIT(/{ | 79 | /^AC_INIT(/{ |
79 | /.*,.*,.*,/{ | 80 | /.*,.*,.*, */{ |
80 | s/// | 81 | s/// |
81 | s/[][]//g | 82 | s/[][]//g |
83 | s/)$// | ||
82 | p | 84 | p |
83 | q | 85 | q |
84 | } | 86 | } |
@@ -94,6 +96,11 @@ package=`sed -n "$extract_package_name" configure.ac` || exit | |||
94 | gnulib_name=lib$package | 96 | gnulib_name=lib$package |
95 | 97 | ||
96 | build_aux=build-aux | 98 | build_aux=build-aux |
99 | source_base=lib | ||
100 | m4_base=m4 | ||
101 | doc_base=doc | ||
102 | tests_base=tests | ||
103 | |||
97 | # Extra files from gnulib, which override files from other sources. | 104 | # Extra files from gnulib, which override files from other sources. |
98 | gnulib_extra_files=" | 105 | gnulib_extra_files=" |
99 | $build_aux/install-sh | 106 | $build_aux/install-sh |
@@ -119,6 +126,9 @@ XGETTEXT_OPTIONS='\\\ | |||
119 | --flag=error:3:c-format --flag=error_at_line:5:c-format\\\ | 126 | --flag=error:3:c-format --flag=error_at_line:5:c-format\\\ |
120 | ' | 127 | ' |
121 | 128 | ||
129 | # Package bug report address for gettext files | ||
130 | MSGID_BUGS_ADDRESS=bug-$package@gnu.org | ||
131 | |||
122 | # Files we don't want to import. | 132 | # Files we don't want to import. |
123 | excluded_files= | 133 | excluded_files= |
124 | 134 | ||
@@ -129,9 +139,21 @@ checkout_only_file=README-hacking | |||
129 | # Whether to use copies instead of symlinks. | 139 | # Whether to use copies instead of symlinks. |
130 | copy=false | 140 | copy=false |
131 | 141 | ||
142 | # Set this to '.cvsignore .gitignore' in bootstrap.conf if you want | ||
143 | # those files to be generated in directories like lib/, m4/, and po/. | ||
144 | # Or set it to 'auto' to make this script select which to use based | ||
145 | # on which version control system (if any) is used in the source directory. | ||
146 | vc_ignore=auto | ||
147 | |||
132 | # Override the default configuration, if necessary. | 148 | # Override the default configuration, if necessary. |
133 | test -r bootstrap.conf && . ./bootstrap.conf | 149 | test -r bootstrap.conf && . ./bootstrap.conf |
134 | 150 | ||
151 | if test "$vc_ignore" = auto; then | ||
152 | vc_ignore= | ||
153 | test -d .git && vc_ignore=.gitigno |