[Pkg-voip-commits] r7836 - in /opensips/trunk/debian: bdb_recover.8 changelog opensips-console.install opensips-console.osipsconsole.8 opensipsdbctl.8 osipsconsole.8 rules

alerios at alioth.debian.org alerios at alioth.debian.org
Mon Nov 30 21:45:23 UTC 2009


Author: alerios
Date: Mon Nov 30 21:45:22 2009
New Revision: 7836

URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=7836
Log:
 * Created bdb_recover.8 and opensipsdbctl.8 man pages.
 * Force shipping of upstream changelog on debian/rules.
 * Fix install targets for dbhttp, console and b2bua modules.

Added:
    opensips/trunk/debian/bdb_recover.8
    opensips/trunk/debian/opensips-console.install
    opensips/trunk/debian/opensipsdbctl.8
    opensips/trunk/debian/osipsconsole.8
      - copied, changed from r7834, opensips/trunk/debian/opensips-console.osipsconsole.8
Removed:
    opensips/trunk/debian/opensips-console.osipsconsole.8
Modified:
    opensips/trunk/debian/changelog
    opensips/trunk/debian/rules

Added: opensips/trunk/debian/bdb_recover.8
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/bdb_recover.8?rev=7836&op=file
==============================================================================
--- opensips/trunk/debian/bdb_recover.8 (added)
+++ opensips/trunk/debian/bdb_recover.8 Mon Nov 30 21:45:22 2009
@@ -1,0 +1,76 @@
+.\" $Id: osipsconsole.8 5891 2009-11-22 12:53:09Z alerios $
+.TH bdb_recover 8 22.11.2009 opensips-berkeley-module "OpenSIPS" 
+.\" Process with
+.\" groff -man -Tascii bdb_recover.8 
+.\"
+.SH NAME
+bdb_recover \- utility for recovering OpenSIPS db_berkeley files
+.SH SYNOPSIS
+
+.B bdb_recover
+[
+.BI parameters
+]
+
+.SH DESCRIPTION
+.B bdb_recover
+is an utility to recover data from db_berkeley files created by
+.B OpenSIPS SIP server
+The db_berkeley module uses the Concurrent Data Store (CDS) architecture. As such, no transaction or journaling is provided by the DB natively. The application bdb_recover is specifically written to recover data from journal files that OpenSIPS creates. The bdb_recover application requires an additional text file that contains the table schema.
+
+The schema is loaded with the '-s' option and is required for all operations. Provide the path to the db_berkeley plain-text schema files. By default, these install to '/usr/local/share/opensips/db_berkeley/opensips/'.
+
+The '-h' home option is the DB_PATH path. Unlike the Berkeley utilities, this application does not look for the DB_PATH environment variable, so you have to specify it. If not specified, it will assume the current working directory. The last argument is the operation. There are fundamentally only two operations- create and recover. 
+
+
+.SH FILES
+.PD 0
+.I /usr/local/share/opensips/db_berkeley/opensips/
+
+.SH USAGE
+.TP 12
+.B bdb_recover -s schemadir [-h home] [-c tablename]
+This will create a brand new DB file with metadata.
+.TP
+
+.B bdb_recover -s schemadir [-h home] [-C all]
+This will create all the core tables, each with metadata.
+.TP
+
+.B bdb_recover -s schemadir [-h home] [-r journal-file]
+This will rebuild a DB and populate it with operation from journal-file. The table name is embedded in the journal-file name by convention.
+.TP
+
+.B bdb_recover -s schemadir [-h home] [-R lastN]
+This will iterate over all core tables enumerated. If journal files exist in 'home', 
+a new DB file will be created and populated with the data found in the last N files. 
+The files are 'replayed' in chronological order (oldest to newest). This 
+allows the administrator to rebuild the db with a subset of all possible 
+operations if needed. For example, you may only be interested in 
+the last hours data in table location.
+
+
+.SH NOTES
+.PP
+A corrupted DB file must be moved out of the way before bdb_recover is executed.
+
+.SH AUTHORS
+
+see 
+.B /usr/share/doc/opensips/AUTHORS
+.PP
+This manual page was written by Alejandro Rios P. <alerios at debian.org>,
+based on db_berkeley module's README by Will Quan Copyright (C) 2007 Cisco Systems,
+for the Debian project (and may be used by others).
+
+.SH SEE ALSO
+.BR opensips(8)
+.PP
+Full documentation on opensips db_berkeley module is available at /usr/share/doc/opensips-berkeley-module/README.db_berkeley and 
+.I http://www.opensips.org/.
+.PP
+Mailing lists:
+.nf 
+users at opensips.org - opensips user community
+.nf 
+devel at opensips.org - opensips development, new features and unstable version

Modified: opensips/trunk/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/changelog?rev=7836&op=diff
==============================================================================
--- opensips/trunk/debian/changelog (original)
+++ opensips/trunk/debian/changelog Mon Nov 30 21:45:22 2009
@@ -18,6 +18,9 @@
     * Build missing modules on debian/rules
     * lib64 and SMP dpatches replaced by debian/rules variable.
   * Removed python build-dependency.
+  * Created bdb_recover.8 and opensipsdbctl.8 man pages.
+  * Force shipping of upstream changelog on debian/rules.
+  * Fix debian/rules install targets for dbhttp, console and b2bua modules. 
 
   [ Kilian Krause ]
   * debian/control: 

Added: opensips/trunk/debian/opensips-console.install
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/opensips-console.install?rev=7836&op=file
==============================================================================
--- opensips/trunk/debian/opensips-console.install (added)
+++ opensips/trunk/debian/opensips-console.install Mon Nov 30 21:45:22 2009
@@ -1,0 +1,1 @@
+scripts/osipsconsolerc /etc/opensips/

Added: opensips/trunk/debian/opensipsdbctl.8
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/opensipsdbctl.8?rev=7836&op=file
==============================================================================
--- opensips/trunk/debian/opensipsdbctl.8 (added)
+++ opensips/trunk/debian/opensipsdbctl.8 Mon Nov 30 21:45:22 2009
@@ -1,0 +1,107 @@
+.\" $Id: opensipsdbctl.8 5891 2009-11-22 12:53:09Z alerios $
+.TH opensipsdbctl 8 22.11.2009 opensips "OpenSIPS" 
+.\" Process with
+.\" groff -man -Tascii opensipsdbctl.8 
+.\"
+.SH NAME
+opensipsdbctl \- control tool for maintaining OpenSIPS databases
+.SH SYNOPSIS
+.B opensipsdbctl
+
+.B opensipsdbctl
+.BI command
+[
+.BI parameters
+]
+
+.SH DESCRIPTION
+.B opensipsdbctl
+is a control tool for maintaining
+.B OpenSIPS SIP server
+databases.
+It can be used to create, migrate, copy, delete, dump and restore
+the persistance databases for OpenSIPS, on the supported Engines.
+
+.SH FILES
+.PD 0
+.I /etc/opensips/opensipsdbctlrc
+.br
+.I ~/.opensipsdbctlrc
+.br
+
+.SH COMMANDS
+.TP 16
+.I OpenSIPS databases management:
+.TP 12
+.B db create <db name or db_path, optional> 
+creates a new database
+.TP
+.B db presence 
+adds the presence related tables
+.TP
+.B db extra 
+adds the extra tables
+.TP
+.B db migrate <old_db> <new_db> 
+migrates DB from 1.5 to 1.6
+.TP
+.B db drop <db name or db_path, optional> 
+!entirely deletes tables!
+.TP
+.B db reinit <db name or db_path, optional> 
+!entirely deletes and than re-creates tables!
+.TP
+.B db backup <file> 
+dumps current database to file
+.TP
+.B db restore <file> 
+restores tables from a file
+.TP
+.B db copy <new_db> 
+creates a new db from an existing one
+
+.TP 16
+.I OpenSIPS Berkeley DB tables management:
+.TP 12
+.B bdb | db_berkeley list
+lists the underlying db files in DB_PATH
+.TP
+.B bdb | db_berkeley cat       <db>
+db_dump the underlying db file to STDOUT
+.TP
+.B bdb | db_berkeley swap      <db>
+installs db.new by db -> db.old; db.new -> db
+.TP
+.B bdb | db_berkeley append    <db> <datafile>
+appends data to an existing db;output DB_PATH/db.new
+.TP
+.B bdb | db_berkeley newappend <db> <datafile>
+appends data to a new instance of db; output DB_PATH/db.new
+.TP
+.B bdb | db_berkeley export <dump_dir>
+exports table data to plain-txt files in dump_dir
+.TP
+.B bdb | db_berkeley import <dump_dir>
+imports plain-txt table data and creates new db tables in db_path
+
+
+.SH AUTHORS
+
+see 
+.B /usr/share/doc/opensips/AUTHORS
+.PP
+This manual page was written by Alejandro Rios P. <alerios at debian.org>,
+based on opensipsctl manpage by Bogdan-Andrei Iancu <bogdan at voice-system.ro>,
+for the Debian project (and may be used by others).
+
+.SH SEE ALSO
+.BR opensips(8), opensips.cfg(5), opensipsctl(8), osipsconsole(8)
+.PP
+Full documentation on opensips is available at
+.I http://www.opensips.org/.
+.PP
+Mailing lists:
+.nf 
+users at opensips.org - opensips user community
+.nf 
+devel at opensips.org - opensips development, new features and unstable version

Copied: opensips/trunk/debian/osipsconsole.8 (from r7834, opensips/trunk/debian/opensips-console.osipsconsole.8)
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/osipsconsole.8?rev=7836&op=diff
==============================================================================
--- opensips/trunk/debian/opensips-console.osipsconsole.8 (original)
+++ opensips/trunk/debian/osipsconsole.8 Mon Nov 30 21:45:22 2009
@@ -1,5 +1,5 @@
 .\" $Id: osipsconsole.8 5891 2009-11-22 12:53:09Z alerios $
-.TH osipsconsole 8 22.11.2009 opensips "OpenSIPS" 
+.TH osipsconsole 8 22.11.2009 opensips-console "OpenSIPS" 
 .\" Process with
 .\" groff -man -Tascii osipsconsole.8 
 .\"
@@ -16,8 +16,8 @@
 
 .SH DESCRIPTION
 .B osipsconsole
-is a is a console like utility for provisioning
-.B OpenSIPS SIP server
+is a console like utility for provisioning
+.B OpenSIPS SIP server.
 It can be used to manage users, domains, aliases and other server options. If
 command arguments are passed it will work in non-interactive mode, and behave
 as old opensipsctl and opensipsdbctl tools.
@@ -35,164 +35,400 @@
 .TP 12
 .B help
 Displays a short usage description, including all available options.
-.TP
-.B moni
-show internal status
-.TP
-.B ps
-show running processes
-.TP
-.B fifo
-send raw FIFO commands
-.TP
-.B ping <uri>
-ping a URI (OPTIONS)
-.TP
-.B cisco_restart <uri>
-restart a Cisco phone (NOTIFY)
-.TP 16
-.I SUBSCRIBER management:
-.TP
-.B add <username> <password>
-add a new subscriber (*)
-.TP
-.B passwd <username> <passwd>
-change user's password (*)
-.TP
-.B rm <username>
-delete a user (*)
-.TP
-.B alias show [<alias>]
-show aliases
-.TP
-.B alias rm <alias>
-remove an alias
-.TP
-.B alias add <alias> <uri> 
-add an aliases
-.TP
-.B rpid add <username> <rpid>
-add rpid for a user (*)
-.TP
-.B rpid rm <username>
-set rpid to NULL for a user (*)
-.TP
-.B rpid show <username>
-show rpid of a user
-.TP
-.B alias_db show <alias>
-show alias details
-.TP
-.B alias_db list <sip-id>
-list aliases for uri
-.TP
-.B alias_db add <alias> <sip-id>
-add an alias (*)
-.TP
-.B alias_db rm <alias>
-remove an alias (*)
-.TP
-.B alias_db help
-help message
-.TP
-.B speeddial show <speeddial-id>
-show speeddial details
-.TP
-.B speeddial list <sip-id>
-list speeddial for uri
-.TP
-.B speeddial add <sip-id> <sd-id> <new-uri> [<desc>]
-add a speedial (*)
-.TP
-.B speeddial rm <sip-id> <sd-id>
-remove a speeddial (*)
-.TP
-.B speeddial help
-help message
-.TP 16
-.I AVP management:
-.TP
-.B avp list [-T table] [-u <sip-id|uuid>] \
-[-a attribute] [-v value] [-t type]
-list AVPs
-.TP
-.B avp add [-T table] <sip-id|uuid> \
-<attribute> <type> <value>
-add AVP (*)
-.TP
-.B avp rm [-T table]  [-u <sip-id|uuid>] \
-[-a attribute] [-v value] [-t type]
-remove AVP (*)
-.TP
-.B avp help
-help message
-.TP 16
-.I ACL (Access Control Lists) management
-.TP
-.B acl show [<username>]
-show user membership
-.TP
-.B acl grant <username> <group>
-grant user membership (*)
-.TP
-.B acl revoke <username> [<group>]
-grant user membership(s) (*)
-
-.TP 16
-.I USRLOC (User Location) management
-.TP
+
+.TP 16
+.I Command 'online' - dump online users from memory
+.TP 12
+.B online 
+display online users
+
+.TP 16
+.I Command 'monitor' - show internal status
+.TP 12
+.B monitor 
+show server's internal status
+
+.TP 16
+.I Command 'ping' - ping a SIP URI (OPTIONS)
+.TP 12
+.B ping <uri> 
+ping <uri> with SIP OPTIONS
+
+.TP 16
+.I Command 'ul|alias' - manage user location or aliases
+.TP 12
 .B ul show [<username>]
 show in-RAM online users
 .TP
+.B ul show --brief
+show in-RAM online users in short format
+.TP
 .B ul rm <username> [<contact URI>]
-delete user's UsrLoc entries
-.TP
-.B ul add <username> <uri>
-introduce a permanent UrLoc entry
-.TP
-.B ul add <username> <uri> <expires>
-introduce a temporary UrLoc entry
-.TP
-.B showdb [<username>]
-show online users flushed in DB
-.TP 16
-.I DOMAIN management
-.TP
-.B domain show
-show list of served domains
-.TP
-.B domain add <domainname>
-add a new served domain
-.TP
-.B domain rm <domainname>
-remove a served domain
-.TP 16
-.I LCR (Least Cost Routing) management
-.TP
-.B lcr show
+delete user's usrloc entries
+.TP
+.B ul add <username> <uri> 
+introduce a permanent usrloc entry
+.TP
+.B ul add <username> <uri> <expires> 
+introduce a temporary usrloc entry
+
+.TP 16
+.I Command 'start|stop|restart'
+.TP 12
+.B restart 
+restart OpenSIPS
+.TP
+.B start 
+start OpenSIPS
+.TP
+.B stop 
+stop OpenSIPS
+
+.TP 16
+.I Command 'tls'
+.TP 12
+.B tls rootCA [<etcdir>] 
+creates new rootCA
+.TP
+.B tls userCERT <user> [<etcdir>] 
+creates user certificate
+default <etcdir> is /usr/local/etc/opensips/tls
+
+.TP 16
+.I Command 'acl' - manage access control lists (acl)
+.TP 12
+.B acl show [<username>] 
+show user membership
+.TP
+.B acl grant <username> <group> 
+grant user membership (*)
+.TP
+.B acl revoke <username> [<group>] 
+revoke user membership(s) (*)
+
+.TP 16
+.I Command 'lcr' - manage least cost routes (lcr)
+.TP 12
+.B lcr show 
 show routes, gateways and groups
 .TP
-.B lcr reload
+.B lcr reload 
 reload lcr gateways
 .TP
-.B lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id>
-add a gateway
-.TP
-.B lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> <prefix>
-add a gateway with prefix
-.TP
-.B lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> \
-<prefix> <strip>
-add a gateway with prefix and strip
-.TP
-.B lcr rmgw  <gw_name>
+.B lcr addgw <gw_name> <ip> <port> <scheme> <transport> <grp_id> <flags> <tag> <strip>
+add a gateway with flags, tag and strip
+.TP
+.B lcr rmgw  <gw_name> 
 delete a gateway
 .TP
-.B lcr addroute <prefix> <from> <grp_id> <prio>
-add a route
-.TP
-.B lcr rmroute  <prefix> <from> <grp_id> <prio>
+.B lcr addroute <prefix> <from> <grp_id> <prio> 
+add a route ( use '' to match anything in <from> )
+.TP
+.B lcr rmroute  <prefix> <from> <grp_id> <prio> 
 delete a route
+
+.TP 16
+.I Command 'cr' - manage carrierroute tables
+.TP 12
+.B cr show 
+show tables
+.TP
+.B cr reload 
+reload tables
+.TP
+.B cr dump 
+show in memory tables
+.TP
+.B cr addrt <routing_tree_id> <routing_tree> 
+add a tree
+.TP
+.B cr rmrt  <routing_tree> 
+rm a tree
+.TP
+cr addcarrier <carrier> <scan_prefix> <domain> <rewrite_host> 
+[<prob>] [<strip>] [<rewrite_prefix>] [<rewrite_suffix>]
+[<flags>] [<mask>] [<comment>]
+add a carrier
+.TP
+.B cr rmcarrier  <carrier> <scan_prefix> <domain> 
+rm a carrier
+
+.TP 16
+.I Command 'rpid' - manage Remote-Party-ID (RPID)
+.TP 12
+.B rpid add <username> <rpid> 
+add rpid for a user (*)
+.TP
+.B rpid rm <username> 
+set rpid to NULL for a user (*)
+.TP
+.B rpid show <username> 
+show rpid of a user
+
+.TP 16
+.I Command 'add|passwd|rm' - manage subscribers
+.TP 12
+.B add <username> <password> 
+add a new subscriber (*)
+.TP
+.B passwd <username> <passwd> 
+change user's password (*)
+.TP
+.B rm <username> 
+delete a user (*)
+
+.TP 16
+.I Command 'add|dump|reload|rm|show' - manage address
+.TP 12
+.B address show 
+show db content
+.TP
+.B address dump 
+show cache content
+.TP
+.B address reload 
+reload db table into cache
+.TP
+.B address add <grp> <ip> <mask> <port> <proto> [<context_info>] [<pattern>]
+add a new entry
+.B address rm <grp> <ip> <mask> <port>
+remove all entries for the given grp ip mask and port
+
+.TP 16
+.I Command 'dispatcher' - manage dispatcher
+.TP 12
+.B dispatcher show 
+show dispatcher gateways
+.TP
+.B dispatcher reload 
+reload dispatcher gateways
+.TP
+.B dispatcher dump 
+show in memory dispatcher gateways
+.TP
+.B dispatcher addgw <setid> <destination> <flags> <description>			
+add gateway
+.TP
+.B dispatcher rmgw <id> 
+delete gateway
+
+.TP 16
+.I Command 'db' - database operations
+.TP 12
+.B db exec <query> 
+execute SQL query
+.TP
+.B db roexec <roquery> 
+execute read-only SQL query
+.TP
+.B db run <id> 
+execute SQL query from $id variable
+.TP
+.B db rorun <id> 
+execute read-only SQL query from $id variable
+.TP
+.B db show <table> 
+display table content
+
+.TP 16
+.I Command 'speeddial' - manage speed dials (short numbers)
+.TP 12
+.B speeddial show <speeddial-id> 
+show speeddial details
+.TP
+.B speeddial list <sip-id> 
+list speeddial for uri
+.TP
+.B speeddial add <sip-id> <sd-id> <new-uri> [<desc>] 
+add a speedial (*)
+.TP
+.B speeddial rm <sip-id> <sd-id> 
+remove a speeddial (*)
+.TP
+.B speeddial help 
+help message
+
+.TP 16
+.I Command 'avp' - manage AVPs
+.TP 12
+.B avp list [-T table] [-u <sip-id|uuid>] [-a attribute] [-v value] [-t type] 
+list AVPs
+.TP
+.B avp add [-T table] <sip-id|uuid> <attribute> <type> <value> 
+add AVP (*)
+.TP
+.B avp rm [-T table]  [-u <sip-id|uuid>] [-a attribute] [-v value] [-t type] 
+remove AVP (*)
+.TP
+.B avp help 
+help message
+
+.TP 16
+.I Command 'alias_db' - manage database aliases
+.TP 12
+.B alias_db show <alias> 
+show alias details
+.TP
+.B alias_db list <sip-id> 
+list aliases for uri
+.TP
+.B alias_db add <alias> <sip-id> 
+add an alias (*)
+.TP
+.B alias_db rm <alias> 
+remove an alias (*)
+.TP
+.B alias_db help 
+help message
+
+.TP 16
+.I Command 'domain' - manage local domains
+.TP 12
+.B domain reload 
+reload domains from disk
+.TP
+.B domain show 
+show current domains in memory
+.TP
+.B domain showdb 
+show domains in the database
+.TP
+.B domain add <domain> 
+add the domain to the database
+.TP
+.B domain rm <domain> 
+delete the domain from the database
+
+.TP 16
+.I Command 'fifo'
+.TP 12
+.B fifo 
+send raw FIFO command
+
+.TP 16
+.I Command 'dialplan' - manage dialplans
+.TP 12
+.B dialplan show <dpid> 
+show dialplan tables
+.TP
+.B dialplan reload 
+reload dialplan tables
+.TP
+.B dialplan addrule <dpid> <prio> <match_op> <match_exp> <match_len> <subst_exp> <repl_exp> <attrs>
+add a rule
+.TP
+.B dialplan rm 
+removes the entire dialplan table
+.TP
+.B dialplan rmdpid <dpid> 
+removes all the gived dpid entries
+.TP
+.B dialplan rmrule <dpid> <prio> 
+removes all the gived dpid/prio entries
+
+.TP 16
+.I Command 'unixsock'
+.TP 12
+.B unixsock 
+send raw unixsock command
+
+.TP 16
+.I Command 'droute'
+.TP 12
+.B dr gateway add <address=address_param> [<type=type_param>] [<strip=strip_param>]  [<pri_prefix=pri_prefix_param>] [<description=description_param>]
+adds new route
+.TP
+.B dr gateway rm <gwid=gwid_param>
+removes route
+.TP
+.B dr gateway list <type=type_param>
+lists route(s)
+.TP
+.B dr gateway list <address=address_param>
+lists route(s)
+.TP
+.B dr gateway list 
+lists all routes
+.TP
+.B dr gateway h
+droute help
+.TP
+.B dr rules add <gwlist=gwlist_param> [<groupid=groupid_param>][<prefix=prefix_param>] [<timerec=timerec_param>][<priority=priority_param>][<routeid=routeid_param>][<description=description_param>]
+adds new rule(s)
+.TP
+.B dr rules rm <ruleid=ruleid_param> 
+removes rules
+.TP
+.B dr rules list
+lists rules(s)
+.TP
+.B dr rules list <gwlist=gwlist_param>
+lists rules(s)
+.TP
+.B dr rules list <groupid=groupid_param>
+lists rules(s)
+.TP
+.B dr rules h
+dr rules help
+.TP
+.B dr h
+dr help
+
+.TP 16
+.I Databases management:
+.TP 12
+.B db create <db name or db_path, optional> 
+.TP
+creates a new database
+.B db presence 
+adds the presence related tables
+.TP
+.B db extra 
+adds the extra tables
+.TP
+.B db migrate <old_db> <new_db> 
+migrates DB from 1.5 to 1.6
+.TP
+.B db drop <db name or db_path, optional> 
+!entirely deletes tables!
+.TP
+.B db reinit <db name or db_path, optional> 
+!entirely deletes and than re-creates tables!
+.TP
+.B db backup <file> 
+dumps current database to file
+.TP
+.B db restore <file> 
+restores tables from a file
+.TP
+.B db copy <new_db> 
+creates a new db from an existing one
+
+.TP 16
+.I Berkeley DB tables management:
+.TP 12
+.B bdb | db_berkeley list
+lists the underlying db files in DB_PATH
+.TP
+.B bdb | db_berkeley cat       <db>
+db_dump the underlying db file to STDOUT
+.TP
+.B bdb | db_berkeley swap      <db>
+installs db.new by db -> db.old; db.new -> db
+.TP
+.B bdb | db_berkeley append    <db> <datafile>
+appends data to an existing db;output DB_PATH/db.new
+.TP
+.B bdb | db_berkeley newappend <db> <datafile>
+appends data to a new instance of db; output DB_PATH/db.new
+.TP
+.B bdb | db_berkeley export <dump_dir>
+exports table data to plain-txt files in dump_dir
+.TP
+.B bdb | db_berkeley import <dump_dir>
+imports plain-txt table data and creates new db tables in db_path
+
+
 
 .SH NOTES
 .PP

Modified: opensips/trunk/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/opensips/trunk/debian/rules?rev=7836&op=diff
==============================================================================
--- opensips/trunk/debian/rules (original)
+++ opensips/trunk/debian/rules Mon Nov 30 21:45:22 2009
@@ -208,6 +208,7 @@
 	find $(CURDIR)/debian/opensips/etc/opensips -type f -exec chmod -x {} \;
 	sed -i -e "s/^PATH.*//" $(CURDIR)/debian/opensips/usr/sbin/opensipsctl
 	rm -f  $(CURDIR)/debian/opensips/usr/sbin/osipsconsole
+	rm -f  $(CURDIR)/debian/opensips/etc/opensips/osipsconsolerc
 
 	# install only the mysql module
 	CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) $(MAKE) install-modules-all modules="$(MYSQL_MOD_PATH)"  \
@@ -360,19 +361,19 @@
 
 	# install only the b2bua modules
 	CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) $(MAKE) install-modules-all modules="$(B2BUA_MOD_PATH)"  \
-		basedir=$(CURDIR)/debian/opensips-identity-module \
-		prefix=/usr \
-		cfg-prefix=$(CURDIR)/debian/opensips-identity-module \
-		cfg-target=/etc/opensips/ \
-		doc-dir=share/doc/opensips-identity-module
+		basedir=$(CURDIR)/debian/opensips-b2bua-module \
+		prefix=/usr \
+		cfg-prefix=$(CURDIR)/debian/opensips-b2bua-module \
+		cfg-target=/etc/opensips/ \
+		doc-dir=share/doc/opensips-b2bua-module
 
 	# install only the db_http modules
 	CC="$(CC)" CFLAGS="$(CFLAGS)" $(VARS) $(MAKE) install-modules-all modules="$(DBHTTP_MOD_PATH)"  \
-		basedir=$(CURDIR)/debian/opensips-identity-module \
-		prefix=/usr \
-		cfg-prefix=$(CURDIR)/debian/opensips-identity-module \
-		cfg-target=/etc/opensips/ \
-		doc-dir=share/doc/opensips-identity-module
+		basedir=$(CURDIR)/debian/opensips-dbhttp-module \
+		prefix=/usr \
+		cfg-prefix=$(CURDIR)/debian/opensips-dbhttp-module \
+		cfg-target=/etc/opensips/ \
+		doc-dir=share/doc/opensips-dbhttp-module
 
 	# install only the opensips console tool
 	$(MAKE) install-console \
@@ -397,9 +398,12 @@
 #	dh_installlogrotate
 	dh_installinit -popensips -- defaults 23
 	dh_installcron
-	dh_installman debian/opensips-console.osipsconsole.8
+	dh_installman -p opensips debian/opensipsdbctl.8
+	dh_installman -p opensips-console debian/osipsconsole.8
+	dh_installman -p opensips-berkeley-module debian/bdb_recover.8
+	dh_install
 	dh_installinfo
-	dh_installchangelogs
+	dh_installchangelogs ChangeLog
 	dh_link
 	dh_strip --dbg-package=opensips-dbg
 	dh_compress




More information about the Pkg-voip-commits mailing list