New upstream release pgbouncer:

* Change listen port to 5433.
* Added fields Enhances and Conflicts.
parent 63f27e54
pgbouncer (1.2.3-1) unstable; urgency=low
* New upstream Release.
* Change listen port to 5433.
* Added fields Enhances and Conflicts.
-- Fernando Ike de Oliveira <fike@midstorm.org> Mon, 08 Sep 2008 10:16:48 -0300
pgbouncer (1.1.2.1-1) unstable; urgency=low
* Change section contrib to main and regenerate
......
--- pgbouncer-1.0.7/etc/pgbouncer.ini 2007-07-25 16:32:38.928507645 -0300
+++ pgbouncer-1.0.7.new/etc/pgbouncer.ini 2007-07-25 16:39:48.819374145 -0300
@@ -2,13 +2,13 @@
[databases]
; foodb over unix socket
-foodb =
+foodb =
--- pgbouncer-1.2.3/etc/pgbouncer.ini 2008-08-04 09:26:55.000000000 -0300
+++ pgbouncer-1.2.3_fike/etc/pgbouncer.ini 2008-09-08 10:46:25.979788701 -0300
@@ -5,10 +5,10 @@
foodb =
; redirect bardb to bazdb on localhost
-bardb = host=127.0.0.1 dbname=bazdb
+bardb =
+bardb =
; acceess to dest database will go with single user
-forcedb = host=127.0.0.1 port=300 user=baz password=foo client_encoding=UNICODE datestyle=ISO
-forcedb = host=127.0.0.1 port=300 user=baz password=foo client_encoding=UNICODE datestyle=ISO connect_query='SELECT 1'
+forcedb =
;; Configuation section
......@@ -23,29 +19,28 @@
-logfile = pgbouncer.log
-pidfile = pgbouncer.pid
+logfile = /var/log/pgbouncer/pgbouncer.log
+logfile = /var/log/postgresql/pgbouncer.log
+pidfile = /var/run/postgresql/pgbouncer.pid
;;;
;;; Where to wait for clients
@@ -27,26 +27,26 @@
@@ -26,8 +26,8 @@
; ip address or * which means all ip-s
listen_addr = 127.0.0.1
listen_port = 6000
-listen_port = 6000
-unix_socket_dir = /tmp
+listen_port = 5433
+unix_socket_dir = /var/run/postgresql
;;;
;;; Authentication settings
;;;
@@ -36,17 +36,17 @@
; any, trust, plain, crypt, md5
-auth_type = trust
-#auth_file = 8.0/main/global/pg_auth
auth_type = trust
#auth_file = 8.0/main/global/pg_auth
-auth_file = etc/userlist.txt
+auth_type = any
+auth_file = /etc/postgresql/8.2/main/pgdata/global/pg_auth
+#auth_file = etc/userlist.txt
+auth_file = /etc/pgbouncer/userlist.txt
;;;
;;; Users allowed into database 'pgbouncer'
......
......@@ -11,8 +11,9 @@ Vcs-Browser: http://svn.debian.org/wsvn/pkg-postgresql/trunk/pgbouncer/
Package: pgbouncer
Architecture: any
Depends: ${shlibs:Depends}
Suggests: postgresql-8.3
Depends: lsb-base (>= 3.2-20), postgresql-common (>= 26), ${misc:Depends}, ${shlibs:Depends}
Enhances: postgresql (>= 8.2.0-1)
Conflicts: pgpool, pgpool-2
Description: Lightweight connection pooler for PostgreSQL
PgBouncer is connection pooler for PostgreSQL has as features:
.
......
......@@ -8,8 +8,8 @@
# Should-Stop: $local_fs
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: start pgbouncer-II
# Description: pgbouncer-II is a connection pool server and replication
# Short-Description: start pgbouncer
# Description: pgbouncer is a connection pool server and replication
# proxy for PostgreSQL.
### END INIT INFO
......@@ -17,7 +17,7 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/sbin/pgbouncer
PIDFILE=/var/run/postgresql/pgbouncer.pid
OPTS="-d /etc/pgbouncer.ini"
OPTS="-d /etc/pgbouncer/pgbouncer.ini"
test -x $DAEMON || exit 5
......@@ -39,7 +39,7 @@ d_start() {
if is_running; then
:
else
su -c "$DAEMON -n $OPTS 2>&1 </dev/null &" - postgres
su -c "$DAEMON $OPTS 2>&1 </dev/null &" - postgres
fi
}
......@@ -54,12 +54,12 @@ d_stop() {
case "$1" in
start)
log_daemon_msg "Starting pgbouncer-II" pgbouncer
log_daemon_msg "Starting pgbouncer" pgbouncer
d_start
log_end_msg $?
;;
stop)
log_daemon_msg "Stopping pgbouncer-II" pgbouncer
log_daemon_msg "Stopping pgbouncer" pgbouncer
d_stop
log_end_msg $?
;;
......@@ -67,14 +67,14 @@ case "$1" in
is_running
status=$?
if [ $status -eq 0 ]; then
log_success_msg "pgbouncer-II is running."
log_success_msg "pgbouncer is running."
else
log_failure_msg "pgbouncer-II is not running."
log_failure_msg "pgbouncer is not running."
fi
exit $status
;;
restart|force-reload)
log_daemon_msg "Restarting pgbouncer-II" pgbouncer
log_daemon_msg "Restarting pgbouncer" pgbouncer
d_stop && sleep 1 && d_start
log_end_msg $?
;;
......
etc/pgbouncer.ini
etc/pgbouncer.ini /etc/pgbouncer/
etc/userlist.txt /etc/pgbouncer/
......@@ -9,9 +9,9 @@ include /usr/share/cdbs/1/rules/buildcore.mk
DH_VERBOSE = 1
DEB_CONFIGURE_EXTRA_FLAGS := --bindir=/usr/sbin
DEB_INSTALL_MANPAGES_pgbouncer := debian/pgbouncer.8
DEB_INSTALL_MANPAGES_pgbouncer := doc/*.1 doc/*.5
DEB_UPDATE_RCD_PARAMS := defaults 21 19
DEB_SOURCE_PACKAGE := pgbouncer_1.1.2.1-1.tar.gz
#DEB_SOURCE_PACKAGE := pgbouncer_1.1.2.1-1.tar.gz
clean::
......@@ -25,4 +25,4 @@ install/pgbouncer::
binary-predeb/pgbouncer::
patch -p0 $(CURDIR)/debian/pgbouncer/etc/pgbouncer.ini $(CURDIR)/debian/config.patch
patch -p0 $(CURDIR)/debian/pgbouncer/etc/pgbouncer/pgbouncer.ini $(CURDIR)/debian/config.patch
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment