Bugfix: test inversion
(cherry picked from commit f48ee571f4b60a9257d3a34e742f3f6ad751fd3d)

close #103
Bugfix: (typo) psql::quote -> pgsql::quote
(cherry picked from commit decfaa57d1d67698e25feb0dbeea15eef8ad9460)

close #104
Bugfix: argument given twice
(cherry picked from commit b48beee25ab9bc63035ae39932042fe614649d3a)

close #106
Use fully qualified equipement name in i/f changes

When recording interfaces changes, the equipement was previously pointing
to a host in the dns.rr table (via idrr).
Removing this dependancy was **a good thing**.

The unqualified equipment name comes from the topo graph.
But a fully qualified name is needed now since it must match an existing
equipement in the topo.eq table.
This is a temporary fix (see issue #9).
(cherry picked from commit d8c36fb9ebbb1da703ec63df7c2ee8dc920321a1)

close #107
Bad detection of schema version

This patch solves the bug diagnosed in issue #100 record.
The schema version is queried and the application displays
an appropriate error message even if database schema has not
been converted for 2.2.
Database automatic upgrade script

This script is intended to automatically
take care of database upgrading.

Issue #100
Bugfix: initial value for zone version

The initial value of the zone serial was empty.
That's the reason the "new-serial" function returned 1 as
the initial value.
This fixes issue #108.
Use cc instead of gcc

Close #109
Merge branch '2.2' of github.com:pdav/netmagis into 2.2
Fix definition according to functions
Release 2.2.1
Bugfix: translate database columns in netmagis-dbmaint

Close #118

Thanks to plabanowski
Netmagis-config can use an alternate configuration file

- add the -f option to netmagis-config in order to use
    an alternate configuration file
- provide a pseudo-parameter _conffile in order to return
    the configuration file actually used

Close #119
Add the _version pseudo-paramater to netmagis-config

Close #120
Automate database upgrades

Issue #120

Provide a new program to ease database upgrades:
    $ netmagis-dbupgrade [-f netmagis.conf] [target]

-f : use alternate netmagis.conf file

If no target is specified, the program displays:
    - detected database schema version
    - highest supported database version
    Example:
	$ netmagis-dbupgrade -f /etc/netmagis.conf.new
	Detected schema version: 21
	Latest schema supported: 22
If a target is specified, the database will be upgrade
to this target version:
    Example:
	$ netmagis-dbupgrade -f /etc/netmagis.conf.new 22
	Preparing upgrade from 21 to 22.
	Upgrading: 21-22
	Upgrade successful
Bugfix: prevent netmagis-utils programs from dying badly.

Update the scriptargv0 variable as soon as possible in
init-script method.

Close #121
Update example Apache configuration file

The example configuration file was written for
Apache 2.0. The newest version (2.4) obsoletes
some directives, so this commit updates this
example to use either Apache 2.2 or 2.4.
This new configuration cannot provide a simple
file to include for each authentication method.
Thus, the old auth-ldap.conf and auth-pgsql.conf
no longer exist, and all directives are now in
httpd.conf, which must be edited by hand (as
before, anyway).

Issue #116 (not closed here)
Close #122
Fix typo in upgrade URL

Followup to: 87d3f6fb

http://netmagis.org/upgrade.sql -> upgrade.html
Update dependency for postgres authentication

Close #116

mod-auth-pgsql is not available anymore on recent Linux distribution.
It is replaced with the DBD authentication method based on postgres.
Update CHANGES file