Browse Source

/var/db changed to /var

mom040267 11 years ago
parent
commit
dcc132223b

+ 0 - 2
Makefile.in

@@ -142,7 +142,6 @@ install:	all ${MAKE_DEPS}
 	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${DOCSDIR}
 	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${DOCSDIR}
 	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${SCHEMADIR}
 	${INSTALL_DATA} turndb/schema.stats.redis ${DESTDIR}${SCHEMADIR}
 	${INSTALL_DATA} examples/etc/turnserver.conf ${DESTDIR}${CONFDIR}/turnserver.conf.default
 	${INSTALL_DATA} examples/etc/turnserver.conf ${DESTDIR}${CONFDIR}/turnserver.conf.default
-	${INSTALL_DATA} examples/var/db/turdb ${DESTDIR}/var/db/turndb
 	${INSTALL_DIR} examples/etc ${DESTDIR}${EXAMPLESDIR}
 	${INSTALL_DIR} examples/etc ${DESTDIR}${EXAMPLESDIR}
 	${INSTALL_DIR} examples/scripts ${DESTDIR}${EXAMPLESDIR}
 	${INSTALL_DIR} examples/scripts ${DESTDIR}${EXAMPLESDIR}
 	${RMCMD} ${DESTDIR}${EXAMPLESDIR}/scripts/rfc5769.sh
 	${RMCMD} ${DESTDIR}${EXAMPLESDIR}/scripts/rfc5769.sh
@@ -169,7 +168,6 @@ deinstall:	${MAKE_DEPS}
 	${RMCMD} ${DESTDIR}${LIBDIR}/libturnclient.a
 	${RMCMD} ${DESTDIR}${LIBDIR}/libturnclient.a
 	${RMCMD} ${DESTDIR}${EXAMPLESDIR}/
 	${RMCMD} ${DESTDIR}${EXAMPLESDIR}/
 	${RMCMD} ${DESTDIR}${CONFDIR}/turnserver.conf.default
 	${RMCMD} ${DESTDIR}${CONFDIR}/turnserver.conf.default
-	${RMCMD} ${DESTDIR}/var/db/turndb
 	${RMCMD} ${DESTDIR}${TURNINCLUDEDIR}
 	${RMCMD} ${DESTDIR}${TURNINCLUDEDIR}
 
 
 uninstall:	deinstall
 uninstall:	deinstall

+ 2 - 2
README.turnadmin

@@ -80,7 +80,7 @@ Commands:
   
   
 Options with required values:  
 Options with required values:  
 
 
--b, --db, --userdb		SQLite user database file name (default - /var/db/turndb).
+-b, --db, --userdb		SQLite user database file name (default - /var/turndb).
 			See the same option in the turnserver section.
 			See the same option in the turnserver section.
 -e, --psql-userdb	PostgreSQL user database connection string.
 -e, --psql-userdb	PostgreSQL user database connection string.
 			See the --psql-userdb option in the turnserver section.
 			See the --psql-userdb option in the turnserver section.
@@ -170,7 +170,7 @@ to see the man page.
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 
 
-/var/db/turndb
+/var/turndb
 
 
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 
 

+ 3 - 3
README.turnserver

@@ -81,7 +81,7 @@ Config file settings:
 
 
 User database settings:  
 User database settings:  
 
 
--b, --db, --userdb	SQLite user database file name (default - /var/db/turndb).
+-b, --db, --userdb	SQLite user database file name (default - /var/turndb).
 				  
 				  
 -e, --psql-userdb	User database connection string for PostgreSQL.
 -e, --psql-userdb	User database connection string for PostgreSQL.
 		This database can be used for long-term and short-term 
 		This database can be used for long-term and short-term 
@@ -716,7 +716,7 @@ For the user database, the turnserver has the following options:
 Obviously, only a few users can be set that way, and their credentials are fixed 
 Obviously, only a few users can be set that way, and their credentials are fixed 
 for the turnserver process lifetime.
 for the turnserver process lifetime.
 
 
-2) Users can be stored in SQlite DB. The default SQLite database file is /var/db/turndb.
+2) Users can be stored in SQlite DB. The default SQLite database file is /var/turndb.
 
 
 3) Users can be stored in PostgreSQL database, if the turnserver was compiled with PostgreSQL
 3) Users can be stored in PostgreSQL database, if the turnserver was compiled with PostgreSQL
 support. Each time turnserver checks user credentials, it reads the database (asynchronously,
 support. Each time turnserver checks user credentials, it reads the database (asynchronously,
@@ -841,7 +841,7 @@ FILES
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 
 
-/var/db/turndb
+/var/turndb
 
 
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 
 

+ 1 - 1
README.turnutils

@@ -251,7 +251,7 @@ FILES
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 
 
-/var/db/turndb
+/var/turndb
 
 
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 
 

+ 2 - 2
examples/etc/turnserver.conf

@@ -250,9 +250,9 @@
 
 
 # SQLite database file name.
 # SQLite database file name.
 #
 #
-# Default file name is /var/db/turndb
+# Default file name is /var/turndb
 # 
 # 
-#userdb=/var/db/turndb
+#userdb=/var/turndb
 
 
 # PostgreSQL database connection string in the case that we are using PostgreSQL
 # PostgreSQL database connection string in the case that we are using PostgreSQL
 # as the user database.
 # as the user database.

+ 3 - 3
man/man1/turnadmin.1

@@ -1,5 +1,5 @@
 .\" Text automatically generated by txt2man
 .\" Text automatically generated by txt2man
-.TH TURN 1 "15 November 2014" "" ""
+.TH TURN 1 "16 November 2014" "" ""
 .SH GENERAL INFORMATION
 .SH GENERAL INFORMATION
 
 
 \fIturnadmin\fP is a TURN administration tool. This tool can be used to manage 
 \fIturnadmin\fP is a TURN administration tool. This tool can be used to manage 
@@ -132,7 +132,7 @@ Options with required values:
 .TP
 .TP
 .B
 .B
 \fB\-b\fP, \fB\-\-db\fP, \fB\-\-userdb\fP
 \fB\-b\fP, \fB\-\-db\fP, \fB\-\-userdb\fP
-SQLite user database file name (default \- /var/db/turndb).
+SQLite user database file name (default \- /var/turndb).
 See the same option in the \fIturnserver\fP section.
 See the same option in the \fIturnserver\fP section.
 .TP
 .TP
 .B
 .B
@@ -261,7 +261,7 @@ to see the man page.
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 .PP
 .PP
-/var/db/turndb
+/var/turndb
 .PP
 .PP
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 .PP
 .PP

+ 4 - 4
man/man1/turnserver.1

@@ -1,5 +1,5 @@
 .\" Text automatically generated by txt2man
 .\" Text automatically generated by txt2man
-.TH TURN 1 "15 November 2014" "" ""
+.TH TURN 1 "16 November 2014" "" ""
 .SH GENERAL INFORMATION
 .SH GENERAL INFORMATION
 
 
 The \fBTURN Server\fP project contains the source code of a TURN server and TURN client 
 The \fBTURN Server\fP project contains the source code of a TURN server and TURN client 
@@ -132,7 +132,7 @@ User database settings:
 .TP
 .TP
 .B
 .B
 \fB\-b\fP, \fB\-\-db\fP, \fB\-\-userdb\fP
 \fB\-b\fP, \fB\-\-db\fP, \fB\-\-userdb\fP
-SQLite user database file name (default \- /var/db/turndb).
+SQLite user database file name (default \- /var/turndb).
 .TP
 .TP
 .B
 .B
 \fB\-e\fP, \fB\-\-psql\-userdb\fP
 \fB\-e\fP, \fB\-\-psql\-userdb\fP
@@ -971,7 +971,7 @@ Users can be set in the command line, with multiple \fB\-u\fP or \fB\-\-user\fP
 Obviously, only a few users can be set that way, and their credentials are fixed 
 Obviously, only a few users can be set that way, and their credentials are fixed 
 for the \fIturnserver\fP process lifetime.
 for the \fIturnserver\fP process lifetime.
 .IP 2) 4
 .IP 2) 4
-Users can be stored in SQlite DB. The default SQLite database file is /var/db/turndb.
+Users can be stored in SQlite DB. The default SQLite database file is /var/turndb.
 .IP 3) 4
 .IP 3) 4
 Users can be stored in PostgreSQL database, if the \fIturnserver\fP was compiled with PostgreSQL
 Users can be stored in PostgreSQL database, if the \fIturnserver\fP was compiled with PostgreSQL
 support. Each time \fIturnserver\fP checks user credentials, it reads the database (asynchronously,
 support. Each time \fIturnserver\fP checks user credentials, it reads the database (asynchronously,
@@ -1096,7 +1096,7 @@ it would affect the performance.
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 .PP
 .PP
-/var/db/turndb
+/var/turndb
 .PP
 .PP
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 .PP
 .PP

+ 2 - 2
man/man1/turnutils.1

@@ -1,5 +1,5 @@
 .\" Text automatically generated by txt2man
 .\" Text automatically generated by txt2man
-.TH TURN 1 "15 November 2014" "" ""
+.TH TURN 1 "16 November 2014" "" ""
 .SH GENERAL INFORMATION
 .SH GENERAL INFORMATION
 
 
 A set of turnutils_* programs provides some utility functionality to be used
 A set of turnutils_* programs provides some utility functionality to be used
@@ -374,7 +374,7 @@ to see the man page.
 
 
 /etc/turnserver.conf
 /etc/turnserver.conf
 .PP
 .PP
-/var/db/turndb
+/var/turndb
 .PP
 .PP
 /usr/local/etc/turnserver.conf
 /usr/local/etc/turnserver.conf
 .PP
 .PP

+ 0 - 3
postinstall.txt

@@ -16,9 +16,6 @@ service, you have to:
 	database schema description and/or /usr/local/share/turnserver/schema.stats.redis
 	database schema description and/or /usr/local/share/turnserver/schema.stats.redis
 	as Redis status & statistics database schema description.
 	as Redis status & statistics database schema description.
 	 
 	 
-	The installation process automatically creates /var/db/turndb SQlite database file,
-	with pre-set example data tables.
-
 	c) add whatever is necessary to enable start-up daemon for the /usr/local/bin/turnserver.
 	c) add whatever is necessary to enable start-up daemon for the /usr/local/bin/turnserver.
      
      
 2) If you do not want the turnserver to be a system service, 
 2) If you do not want the turnserver to be a system service, 

+ 0 - 1
rpm/turnserver.spec

@@ -167,7 +167,6 @@ fi
 %defattr(-,root,root)
 %defattr(-,root,root)
 %{_bindir}/turnserver
 %{_bindir}/turnserver
 %{_bindir}/turnadmin
 %{_bindir}/turnadmin
-%{_localstatedir}/db/turndb
 %{_mandir}/man1/coturn.1.gz
 %{_mandir}/man1/coturn.1.gz
 %{_mandir}/man1/turnserver.1.gz
 %{_mandir}/man1/turnserver.1.gz
 %{_mandir}/man1/turnadmin.1.gz
 %{_mandir}/man1/turnadmin.1.gz

+ 1 - 1
src/apps/relay/userdb.h

@@ -48,7 +48,7 @@ extern "C" {
 
 
 //////////// Defines //////////////////////////////
 //////////// Defines //////////////////////////////
 
 
-#define DEFAULT_USERDB_FILE "/var/db/turndb"
+#define DEFAULT_USERDB_FILE ("/var/turndb")
 
 
 #define AUTH_SECRET_SIZE (512)
 #define AUTH_SECRET_SIZE (512)