Commit 7fba6e8f authored by Bernd Zeimetz's avatar Bernd Zeimetz

* New upstream Release (Closes: #499531).

* Changes done by Fernando Ike de Oliveira, but without a proper
  changelog entry:
  - debian/control: Depend on postgresql-common to make sure the postgres
    user exists (Closes: #499521).
  - Fixed init script, not using -n option anymore (Closes: #499522)
* Adding myself to Uploaders.
* The following changes are a general cleanup of the package,
  unfortunately these things were never detected by the former
  sponsor. Sorry Fernando, but I also have to revert some of your
  recent changes.
  - debian/control:
    * Fixing the long description, removing the copy of the short
      description from it and switch to a better indenting.
    * Removing extra blank lines.
    * Keeping Standards-Version on 3.7.3 as the patch system is not
      documented yet.
    * pgbouncer supports PostgreSQL versions 7.4 and higher, changing the
      Enhances field accordingly.
    * Dropping Conflicts field again. It's not a problem to install
      pgpool/pgpool2 on the same machine with pgbouncer.
    * Lowering the Dependency on lsb-base, 3.1 is enough to support
      the new init script.
  - debian/rules:
    * Don't gzip examples manually, dh_compress will handle it according to
      the policy.
    * Dropping DEB_INSTALL_MANPAGES_pgbouncer definition, upstream installs
      the manpages into the right place.
    * Don't include /usr/share/cdbs/1/rules/utils.mk and
      /usr/share/cdbs/1/rules/buildcore.mk, cdbs takes care of that.
    * DEB_UPDATE_RCD_PARAMS: pgbouncer should start *after* PostgreSQL and
      needs to stop before it. Changing to 'defaults 20 18' therefore.
    * Don't install pgbouncer.ini.examples in the doc directory, use
      dh_installexamples to install into the examples directory instead.
  - debian/pgbouncer.8:
    * Dropping file, upstream provides a manpage.
  - debian/init:
    * renaming debian/init.d to debian/init - that's the filename
      dh_installinit takes care of.
    * Respect the setting of 'START' in /etc/default/pgbouncer. The option
      was ignored completely.
  - debian/install:
    * Renamed from pgbouncer.install.
    * Don't install an example userlist to /etc. File will be touched in
      debian/rules. Install it as example instead.
  - debian/examples:
    * Adding file, installing ini-file and userlist example.
  - debian/config.patch, debian/patches/default-port.dpatch:
    * Changing default port to 6432 as upstream's default conflicts with
      X11. 5433 is also a bad choice as postgres instances may use
      this port dynamically.
  - debian/patches/fix_pgbouncer.5.dpatch:
    * Renamed from debian/patches/01_configtxt to make the patch target
      more obvious.
  - debian/patches/00list:
    * Updated accordingly.
parent ce9f854a
pgbouncer (1.2.3-1) unstable; urgency=low
* New upstream Release.
[ Fernando Ike de Oliveira ]
* New upstream Release (Closes: #499531).
* 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
[ Bernd Zeimetz ]
* Changes done by Fernando Ike de Oliveira, but without a proper
changelog entry:
- debian/control: Depend on postgresql-common to make sure the postgres
user exists (Closes: #499521).
- Fixed init script, not using -n option anymore (Closes: #499522)
* Adding myself to Uploaders.
* The following changes are a general cleanup of the package,
unfortunately these things were never detected by the former
sponsor. Sorry Fernando, but I also have to revert some of your
recent changes.
- debian/control:
* Fixing the long description, removing the copy of the short
description from it and switch to a better indenting.
* Removing extra blank lines.
* Keeping Standards-Version on 3.7.3 as the patch system is not
documented yet.
* pgbouncer supports PostgreSQL versions 7.4 and higher, changing the
Enhances field accordingly.
* Dropping Conflicts field again. It's not a problem to install
pgpool/pgpool2 on the same machine with pgbouncer.
* Lowering the Dependency on lsb-base, 3.1 is enough to support
the new init script.
- debian/rules:
* Don't gzip examples manually, dh_compress will handle it according to
the policy.
* Dropping DEB_INSTALL_MANPAGES_pgbouncer definition, upstream installs
the manpages into the right place.
* Don't include /usr/share/cdbs/1/rules/utils.mk and
/usr/share/cdbs/1/rules/buildcore.mk, cdbs takes care of that.
* DEB_UPDATE_RCD_PARAMS: pgbouncer should start *after* PostgreSQL and
needs to stop before it. Changing to 'defaults 20 18' therefore.
* Don't install pgbouncer.ini.examples in the doc directory, use
dh_installexamples to install into the examples directory instead.
- debian/pgbouncer.8:
* Dropping file, upstream provides a manpage.
- debian/init:
* renaming debian/init.d to debian/init - that's the filename
dh_installinit takes care of.
* Respect the setting of 'START' in /etc/default/pgbouncer. The option
was ignored completely.
- debian/install:
* Renamed from pgbouncer.install.
* Don't install an example userlist to /etc. File will be touched in
debian/rules. Install it as example instead.
- debian/examples:
* Adding file, installing ini-file and userlist example.
- debian/config.patch, debian/patches/default-port.dpatch:
* Changing default port to 6432 as upstream's default conflicts with
X11. 5433 is also a bad choice as postgres instances may use
this port dynamically.
- debian/patches/fix_pgbouncer.5.dpatch:
* Renamed from debian/patches/01_configtxt to make the patch target
more obvious.
- debian/patches/00list:
* Updated accordingly.
-- Bernd Zeimetz <bzed@debian.org> Fri, 26 Sep 2008 18:01:55 +0200
pgbouncer (1.1.2.1-1) unstable; urgency=low
......
......@@ -30,7 +30,7 @@
listen_addr = 127.0.0.1
-listen_port = 6000
-unix_socket_dir = /tmp
+listen_port = 5433
+listen_port = 6432
+unix_socket_dir = /var/run/postgresql
;;;
......
Source: pgbouncer
Maintainer: Fernando Ike de Oliveira <fike@midstorm.org>
Uploaders: Bernd Zeimetz <bzed@debian.org>
Section: misc
Priority: optional
Standards-Version: 3.8.0
Standards-Version: 3.7.3
Build-Depends: cdbs, debhelper (>= 5), libevent-dev, dpatch, asciidoc, xmlto
Homepage: http://pgfoundry.org/projects/pgbouncer/
Vcs-Svn: svn://svn.debian.org/pkg-postgresql/trunk/pgbouncer/
Vcs-Browser: http://svn.debian.org/wsvn/pkg-postgresql/trunk/pgbouncer/
Package: pgbouncer
Architecture: any
Depends: lsb-base (>= 3.2-20), postgresql-common (>= 26), ${misc:Depends}, ${shlibs:Depends}
Enhances: postgresql (>= 8.2.0-1)
Conflicts: pgpool, pgpool-2
Depends: lsb-base (>= 3.1), postgresql-common (>= 26), ${misc:Depends}, ${shlibs:Depends}
Enhances: postgresql (>= 7.4)
Description: Lightweight connection pooler for PostgreSQL
PgBouncer is connection pooler for PostgreSQL has as features:
It provides the following features:
.
* Several levels of brutality when rotating connections.
* Low memory requirements.
* It is not tied to one backend server, the destination databases
can reside on differet hosts.
* Supports online reconfiguration for most of the settings.
* Supports online restart/upgrade.
* Several levels of brutality when rotating connections.
* Low memory requirements.
* It is not tied to one backend server, the destination databases
can reside on different hosts.
* Supports online reconfiguration for most of the settings.
* Supports online restart/upgrade.
etc/pgbouncer.ini
etc/userlist.txt
......@@ -54,9 +54,13 @@ d_stop() {
case "$1" in
start)
log_daemon_msg "Starting pgbouncer" pgbouncer
d_start
log_end_msg $?
if [ ${START} -eq 1 ]; then
log_daemon_msg "Starting pgbouncer" pgbouncer
d_start
log_end_msg $?
else
log_warning_msg "pgbouncer daemon disabled in /etc/default/pgbouncer"
fi
;;
stop)
log_daemon_msg "Stopping pgbouncer" pgbouncer
......
etc/pgbouncer.ini /etc/pgbouncer/
etc/userlist.txt /etc/pgbouncer/
01_configtxt
02_user_list
fix_pgbouncer.5
default-port
#! /bin/sh /usr/share/dpatch/dpatch-run
## default-port.dpatch by Bernd Zeimetz <bzed@debian.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Port 6000 is blocked by X11 - use a better port instead.
@DPATCH@
diff -urNad pgbouncer~/src/main.c pgbouncer/src/main.c
--- pgbouncer~/src/main.c 2008-08-08 15:33:29.000000000 +0200
+++ pgbouncer/src/main.c 2008-09-26 18:05:35.000000000 +0200
@@ -65,7 +65,7 @@
static char *cf_config_file;
char *cf_listen_addr = NULL;
-int cf_listen_port = 6000;
+int cf_listen_port = 6432;
char *cf_unix_socket_dir = "/tmp";
int cf_pool_mode = POOL_SESSION;
Copyright 2004-2007 by PgPool Global Development Group
.\" This man page is subject to the same license as the rest of pgpool.
.\"
.TH PgBouncer 8 "25 Jul 2007"
.\" Please adjust this date whenever revising the manpage.
.SH NAME
pgbouncer \- Lightweiht connection pooler for PostgreSQL
.SH SYNOPSIS
\fBpgbouncer\fR [ \fB-d\fR ] [ \fB-R\fR ] [ \fB-v\fR ] [ \fB-h\fR | \fB-V\fR ] \fBconfig.ini\fR
.SH DESCRIPTION
\fBpgbouncer\fR is connection pool server for PostgreSQL.
.SH OPTIONS
.TP
\fB\-R\fR
Reboot pgbouncer.
.TP
\fB\-v\fR
Display extra informations.
.TP
\fB\-V\fR
Display the version of pgbouncer.
.TP
\fB-d\fR
Start as daemon.
.TP
\fB\-h\fR
Print a help message and exit.
.SH FILES
.TP
\fI@sysconfdir@/config.ini
Default configuration file.
.SH AUTHOR
This manpage was written by Fernando Ike de Oliveira <fike@midstorm.org>
.PP
Additionl information can be found in the \fBhttps://developer.skype.com/SkypeGarage/DbProjects/PgBouncer\fR.
......@@ -3,26 +3,18 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/autotools.mk
include /usr/share/cdbs/1/rules/dpatch.mk
include /usr/share/cdbs/1/rules/utils.mk
include /usr/share/cdbs/1/rules/buildcore.mk
DH_VERBOSE = 1
#DH_VERBOSE = 1
DEB_CONFIGURE_EXTRA_FLAGS := --bindir=/usr/sbin
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_UPDATE_RCD_PARAMS := defaults 20 18
clean::
find doc -name "pgbouncer.*" -exec rm {} \;
install/pgbouncer::
mv $(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/pgbouncer.ini \
$(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/pgbouncer.ini.example
gzip $(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/pgbouncer.ini.example
rm -f $(CURDIR)/debian/pgbouncer/usr/share/doc/pgbouncer/pgbouncer.ini
binary-predeb/pgbouncer::
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