BGPmon-CPM-Demo version 1.0.0a ============================ This package includes the Critical Prefix Management (CPM) website and supporting modules. INSTALLATION This package depends on being able to connect to a postgres installation. The following instructions will help prepare that installation, installation procedures may vary across platforms. 1. Install Postgresql 2. Create the database user bgpmon_cpm_user (sudo -u postgres createuser) 3. Create the database bgpmon_cpm_db (sudo -u postgres createdb bgpmon_cpm_db) 4. Give a user other than root or postgres access to the database (should include web user): Edit /etc/postgresql/8.1/main/pg_hba.conf to give specific users access Refer to postres documentation for assitance editing the pg_hba.conf file 5. Restart postgres 6. Create the CPM database cd db_creation psql -f 0_createTables.postgresql bgpmon_cpm_db bgpmon_cpm_user 7. In order for the modules to access the scripts a password should be set on the bgpmon_cpm_user role. (alter role bgpmon_cpm_user 'passwd';) This password needs to be saved in lib/BGPmon/CPM/DB.pm make test will fail if this is not completed To install this module type the following: perl Makefile.PL make make test make install After module installation you need to copy the webpages (under www) to a location known to your web server. The web server will also need to be able to find the modules. DEPENDENCIES This module requires these other modules and libraries: Rose::DB::Object Net::DNS JSON Net::IP DBD::Pg DBD::Pg depends on pg_config. pg_config is a tool and can be installed using the following (on Ubuntu): sudo apt-get install libpq-dev COPYRIGHT AND LICENCE Copyright (c) 2012 Colorado State University Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.