aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-07-03 08:18:20 +0000
committerSergey Poznyakoff <gray@gnu.org.ua>2008-07-03 08:18:20 +0000
commitce299152b5eda62b7b81f997a7cc7023b2b552a9 (patch)
tree4b5e0f511cd444af68f46d29464012e62e026e18
parentebafa0371adcc981eff35089ff30b04fb334e67b (diff)
downloadanubis-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--ChangeLog20
-rw-r--r--README-hacking12
-rw-r--r--bootstrap.conf1
-rwxr-xr-xbuild/bootstrap246
-rw-r--r--build/gnulib.modules8
-rw-r--r--lib/.cvsignore41
-rw-r--r--lib/Makefile.am5
-rw-r--r--m4/.cvsignore16
-rw-r--r--po/.cvsignore1
-rw-r--r--src/authmode.c75
-rw-r--r--src/env.opt4
-rw-r--r--src/headers.h40
-rw-r--r--src/tls.c1
-rw-r--r--src/transmode.c138
14 files changed, 304 insertions, 304 deletions
diff --git a/ChangeLog b/ChangeLog
index d2a27ac..f1031b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,23 @@
12008-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
12007-11-04 Wojciech Polak <polak@gnu.org> 212007-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
302. Run 302. Run
31 31
32 ./build/bootstrap GNULIB-DIR 32 ./build/bootstrap
33
34where GNULIB-DIR is the directory where Gnulib sources reside.
35 33
36Once done, proceed as described in the file README (section 34Once done, proceed as described in the file README (section
37INSTALLATION). 35INSTALLATION).
@@ -43,17 +41,19 @@ avoiding downloading the same files again. If so, create in GNU anubis
43root directory the file named `.bootstrap' with the following 41root directory the file named `.bootstrap' with the following
44contents: 42contents:
45 43
46 $HOME/gnulib --skip-po 44 --gnulib-srcdir=$HOME/gnulib
47 45
48Replace `$HOME/gnulib' with the actual directory where the Gnulib 46Replace `$HOME/gnulib' with the actual directory where the Gnulib
49sources reside. 47sources reside. Another option that might be useful in `.bootstrap'
48is `--skip-po', which tells bootstrap not to download localization
49files.
50 50
51For more information about `bootstrap', run `bootstrap --help'. 51For 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
16build_aux=build 17build_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.
29LC_ALL=C 26LC_ALL=C
30export LC_ALL 27export LC_ALL
31 28
29local_gl_dir=gl
30
32# Temporary directory names. 31# Temporary directory names.
33bt='._bootmp' 32bt='._bootmp'
34bt_regex=`echo "$bt"| sed 's/\./[.]/g'` 33bt_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
55If the file bootstrap.conf exists in the current working directory, its 52If the file bootstrap.conf exists in the current working directory, its
56contents are read as shell variables to configure the bootstrap. 53contents 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.
71gnulib_files= 68gnulib_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
75TP_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.
75po_download_command_format=\
76"rsync -Lrtvz 'translationproject.org::tp/latest/%s/' '%s'"
76 77
77extract_package_name=' 78extract_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
94gnulib_name=lib$package 96gnulib_name=lib$package
95 97
96build_aux=build-aux 98build_aux=build-aux
99source_base=lib
100m4_base=m4
101doc_base=doc
102tests_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.
98gnulib_extra_files=" 105gnulib_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
130MSGID_BUGS_ADDRESS=bug-$package@gnu.org
131
122# Files we don't want to import. 132# Files we don't want to import.
123excluded_files= 133excluded_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.
130copy=false 140copy=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.
146vc_ignore=auto
147
132# Override the default configuration, if necessary. 148# Override the default configuration, if necessary.
133test -r bootstrap.conf && . ./bootstrap.conf 149test -r bootstrap.conf && . ./bootstrap.conf
134 150
151if test "$vc_ignore" = auto; then
152 vc_ignore=
153 test -d .git && vc_ignore=.gitigno