Tue, 29 Mar 2011 20:04:34 +0200
Rework package yet again, correcting and introducing new buildconf logic:
Conditionally disable bootstrap stage comparison correctly, correct
english grammar, better find system as(1) and ld(1), indotruce detailed
optimization option messages, more completely guess cpu types, allow
profiled bootstrapping without a preinstalled GCC because many other
compilers have long since implemented 64-bit arithmetic, instruct make
to build sequentially (not in sparallel) when building a profiled
bootstrap as GCC online documents recommend, and generally improve
comment blocks.
The single most important correction in this changeset relates to the
GCC changed optimization policy since at least GCC 4.5, in which -march
is always passed and not always correctly guessed. In the case of this
package, allowing GCC to guess the architecture leads to wild build
errors at various subcomponents (zlib, libgcc, libiberty...) and
bootstrap stages. It seems quite platform specific, and the safest
approach to correcting this seems to be explicitly always specifying the
-march argument when bootstrapping GCC. Because the best choice 'native'
is not available when bootstrapping using a foreign (non GCC) compiler,
a guess is made according to rpmmacros l_platform in that case.
It is questionable as to whether these recent optimization changes
on the part of GCC or this package are compatible with each other,
or if either are complete or correct at all. At least applying these
corrections allows this package to build again in most cases test.
1 Index: nessus-core/doc/nessusd.8.in
2 --- nessus-core/doc/nessusd.8.in.orig 2004-10-19 17:21:05 +0200
3 +++ nessus-core/doc/nessusd.8.in 2005-03-23 11:59:54 +0100
4 @@ -183,7 +183,7 @@
5 .SH USERS MANAGEMENT
7 The utility nessus-adduser(8) creates new nessusd users. Each nessusd user
8 -is attributed a "home", in @NESSUS_STATEDIR@/users/<username>. This home contains the following directories :
9 +is attributed a "home", in @NESSUSD_STATEDIR@/users/<username>. This home contains the following directories :
10 .IP auth/
11 This directory contains the authentification information for this user. It might contain the file 'dname' if the user is authenticating using a certificate, or 'hash' (or 'passwd') if the user is authenticating using a password. The file 'hash' contains a MD5 hash of the user password, as well as a random seed. The file 'password' should contain the password in clear text.
13 @@ -206,7 +206,7 @@
16 When a user attempts to log in, nessusd first checks that the directory
17 -@NESSUS_STATEDIR@/users/<username> exists, then hashes the password sent by the user with the random salt found in <username>/auth/hash, and compares it with the password hash stored in the same file. If the users authenticates using a certificate, then nessusd checks that the certificate has been signed by a recognized authority, and makes sure that the dname of the certificate shown by the user is the same as the one in <username>/dname.
18 +@NESSUSD_STATEDIR@/users/<username> exists, then hashes the password sent by the user with the random salt found in <username>/auth/hash, and compares it with the password hash stored in the same file. If the users authenticates using a certificate, then nessusd checks that the certificate has been signed by a recognized authority, and makes sure that the dname of the certificate shown by the user is the same as the one in <username>/dname.
21 To remove a given user, use the command nessus-rmuser(8).
22 Index: nessus-core/nessus-mkcert.in
23 --- nessus-core/nessus-mkcert.in.orig 2004-12-10 20:40:22 +0100
24 +++ nessus-core/nessus-mkcert.in 2005-03-23 12:00:24 +0100
25 @@ -407,31 +407,12 @@
27 chmod a+r $CACERT $SRVCERT #cln $CLNCERT
29 -
30 -CF=@sysconfdir@/nessus/nessusd.conf
31 -egrep -v '^ *(pem_password|cert_file|key_file|ca_file|force_pubkey_auth) *=' "$CF" > "$CF.tmp"
32 -echo "#
33 -# Added by nessus-mkcert
34 -#
35 -cert_file=$SRVCERT
36 -key_file=$SRVKEY
37 -ca_file=$CACERT
38 -# If you decide to protect your private key with a password,
39 -# uncomment and change next line
40 -# pem_password=password
41 -# If you want to force the use of a client certificate, uncomment next line
42 -# force_pubkey_auth = yes" >> "$CF.tmp"
43 -
44 -
45 -
46 -
47 test -z "$QUIET" && header
49 if [ -s "$CACERT" -a -s "$CAKEY" -a -s "$SRVCERT" -a -s "$SRVKEY" ];
50 then
51 test -z "$QUIET" && echo "Congratulations. Your server certificate was properly created."
53 - mv -f "$CF.tmp" "$CF"
54 test -z "$QUIET" && {
55 echo
56 echo "$CF updated