[mirrorbrain-commits] [mod_asn] r83 - /trunk/docs/installation.rst

From: <poeml_at_mirrorbrain.org>
Date: Fri, 03 Sep 2010 02:46:10 -0000
Author: poeml
Date: Fri Sep  3 04:46:06 2010
New Revision: 83

URL: http://svn.mirrorbrain.org/viewvc/mod_asn?rev=83&view=rev
Log:
docs/installation:
- update examples of Debian package- and filenames
- improve example about installing onto an existing database
- fix typo (routeview->routeviews)
- add a FIXME demanding further examples

Modified:
    trunk/docs/installation.rst

Modified: trunk/docs/installation.rst
URL: http://svn.mirrorbrain.org/viewvc/mod_asn/trunk/docs/installation.rst?rev=83&r1=82&r2=83&view=diff
==============================================================================
--- trunk/docs/installation.rst (original)
+++ trunk/docs/installation.rst Fri Sep  3 04:46:06 2010
_at_@ -28,10 +28,14 @@
 openSUSE/SLE rpm package: 
     http://download.opensuse.org/repositories/server:/database:/postgresql/
 
-The Debian package is called postgresql-8.3-ip4r.
+The Debian package is called postgresql-8.4-ip4r or postgresql-8.3-ip4r. The
+install command would look like this::
+
+    apt-get install postgresql-8.4-ip4r libapache2-mod-asn
 
 Gentoo portage overlay:
     http://github.com/ramereth/ramereth-overlay/tree
+
 
 If a manual install is required, you need the PostgresSQL devel package of your
 operating system and compile a shared library, following the procedure
_at_@ -43,9 +47,15 @@
     su - postgres
     psql -f /usr/share/postgresql-ip4r/ip4r.sql template1
 
-"template1" means that all databases that are created later will have the
+``template1`` means that all databases that are created later will have the
 datatype available. To install it onto an existing database, use your database
 name instead of "template1".
+
+For instance, if you are on Debian, and you have an existing ``mirrorbrain``
+database, you would install the data type on it like this::
+
+    su - postgres
+    psql -f /usr/share/postgresql/8.4/contrib/ip4r.sql mirrorbrain
 
 It is normal to see a a good screenful of output printed out by the above
 :command:`psql` command.
_at_@ -61,12 +71,19 @@
 
     psql -U <dbuser> -f asn.sql <dbname>
 
-If you see some "NOTICE" printed out by the command, that's normal; it's due to
+.. note::
+   The command creates a table named `pfx2asn` in the database named <dbname>.
+   Since the table name is used in some other places, so you should not change
+   its name.
+
+Example: assuming the database already exists (when installing MirrorBrain) and
+you are on Debian::
+
+   su - mirrorbrain
+   psql -f /usr/share/doc/libapache2-mod-asn/asn.sql
+
+If you see some ``NOTICE`` printed out by the command, that's normal; it's due to
 the default logging setup of PostgreSQL which is verbose.
-
-.. note::
-   The command creates a table named `pfx2asn` in the <dbname> database. Since
-   the table name is used in some other places, so you should not change it.
 
 
 
_at_@ -124,7 +141,7 @@
 
 
 .. warning::
-   You should be aware of the fact that routeview.org kindly provides this data
+   You should be aware of the fact that routeviews.org kindly provides this data
    to the public, and you should use their bandwidth with consideration. 
    
 Therefore, the MirrorBrain project provides a daily mirror at
_at_@ -251,6 +268,9 @@
 
 Configure mod_asn
 ------------------------------------
+
+.. FIXME: a complete, working config example should be shown at the beginning or the end of this section
+
 
 .. describe:: ASLookup
 




_______________________________________________
mirrorbrain-commits mailing list
Archive: http://mirrorbrain.org/archive/mirrorbrain-commits/

Note: To remove yourself from this list, send a mail with the content
 	unsubscribe
to the address mirrorbrain-commits-request_at_mirrorbrain.org
Received on Fri Sep 03 2010 - 02:46:15 GMT

This archive was generated by hypermail 2.3.0 : Mon Feb 20 2012 - 23:47:04 GMT