ports/153932: [PATCH] databases/pgbouncer: update to 1.4
Martin Matuska
mm at FreeBSD.org
Wed Jan 12 15:20:05 UTC 2011
>Number: 153932
>Category: ports
>Synopsis: [PATCH] databases/pgbouncer: update to 1.4
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: update
>Submitter-Id: current-users
>Arrival-Date: Wed Jan 12 15:20:05 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator: Martin Matuska
>Release: FreeBSD 8.2-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD neo.vx.sk 8.2-PRERELEASE FreeBSD 8.2-PRERELEASE #14 r216479M: Thu Dec 16 10:31:17 CET
>Description:
- Update to 1.4
- Fix lib/usual/endian.h
- Add EVDNS to options
Added file(s):
- files/patch-lib-usual-endian.h
Port maintainer (skv at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99
>How-To-Repeat:
>Fix:
--- pgbouncer-1.4.patch begins here ---
Index: Makefile
===================================================================
RCS file: /home/pcvs/ports/databases/pgbouncer/Makefile,v
retrieving revision 1.12
diff -u -r1.12 Makefile
--- Makefile 28 Sep 2010 09:30:50 -0000 1.12
+++ Makefile 12 Jan 2011 15:04:42 -0000
@@ -6,9 +6,9 @@
#
PORTNAME= pgbouncer
-PORTVERSION= 1.3.4
+PORTVERSION= 1.4
CATEGORIES= databases
-MASTER_SITES= http://pgfoundry.org/frs/download.php/2797/
+MASTER_SITES= http://pgfoundry.org/frs/download.php/2912/
MAINTAINER= skv at FreeBSD.org
COMMENT= Lightweight connection pooler for PostgreSQL
@@ -17,6 +17,8 @@
PORTSCOUT= site:http://pgfoundry.org/frs/?group_id=1000258
+OPTIONS= EVDNS "Use libevent for DNS lookups" off
+
USE_RC_SUBR= pgbouncer.sh
SUB_FILES= pkg-message pkg-install pkg-deinstall
@@ -40,7 +42,14 @@
PGBOUNCER_RUNDIR?= /var/run/pgbouncer
PGBOUNCER_LOGDIR?= /var/log/pgbouncer
+BUILD_DEPENDS+= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed
+
.include <bsd.port.pre.mk>
+
+.if defined(WITH_EVDNS)
+CONFIGURE_ARGS+= --enable-evdns
+.endif
+
# Parse ${PORTSDIR}/UIDs and GIDs for the defaults
USER!= ${GREP} -E '^${PGBOUNCER_USER}:' ${PORTSDIR}/UIDs | \
${SED} -Ee 's/^([^:]*):([^:]*):([^:]*):([^:]*)::0:0:([^:]*):([^:]*):([^:]*)$$/USER="\1" UID="\3" GECOS="\5" HOME="\6" SHELL="\7"/'
@@ -71,6 +80,8 @@
@${REINPLACE_CMD} -e "s|= pgbouncer.log|= ${PGBOUNCER_LOGDIR}/pgbouncer.log|g" \
-e "s|= pgbouncer.pid|= ${PGBOUNCER_RUNDIR}/pgbouncer.pid|g" \
${WRKSRC}/etc/pgbouncer.ini
+ @${REINPLACE_CMD} -e "s|sed -n|${LOCALBASE}/bin/gsed -n|g" \
+ ${WRKSRC}/lib/find_modules.sh
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${PREFIX}/bin/
Index: distinfo
===================================================================
RCS file: /home/pcvs/ports/databases/pgbouncer/distinfo,v
retrieving revision 1.8
diff -u -r1.8 distinfo
--- distinfo 28 Sep 2010 09:30:50 -0000 1.8
+++ distinfo 12 Jan 2011 15:04:42 -0000
@@ -1,3 +1,2 @@
-MD5 (pgbouncer-1.3.4.tar.gz) = 38af22d4b3546dc6763d374ec3b40f38
-SHA256 (pgbouncer-1.3.4.tar.gz) = 74eba35f6e088d45a49e4b2226b266d8d5649af498f72f771a22873fa9b16fe7
-SIZE (pgbouncer-1.3.4.tar.gz) = 167957
+SHA256 (pgbouncer-1.4.tar.gz) = e94a8e7edd6de4ae6978e8f485bbc6a610195b56b1f5fe95a49bfd70959628fb
+SIZE (pgbouncer-1.4.tar.gz) = 231691
Index: files/patch-lib-usual-endian.h
===================================================================
RCS file: files/patch-lib-usual-endian.h
diff -N files/patch-lib-usual-endian.h
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ files/patch-lib-usual-endian.h 12 Jan 2011 15:04:42 -0000
@@ -0,0 +1,32 @@
+--- lib/usual/endian.h.orig 2010-12-14 07:35:50.000000000 +0100
++++ lib/usual/endian.h 2011-01-12 16:01:08.148625395 +0100
+@@ -157,6 +157,7 @@
+ /*
+ * Read LE/BE values from memory.
+ */
++#ifndef le64dec
+
+ #define _DEC(name, typ, decode) \
+ static inline typ name(const void *p) { \
+@@ -173,10 +174,14 @@
+ _DEC(le64dec, uint64_t, le64toh)
+ #undef _DEC
+
++#endif
++
+ /*
+ * Write LE/BE values to memory.
+ */
+
++#ifndef le64enc
++
+ #define _ENC(name, typ, encode) \
+ static inline void name(void *p, typ val) { \
+ typ tmp = encode(val); \
+@@ -190,4 +195,6 @@
+ _ENC(le64enc, uint64_t, htole64)
+ #undef _ENC
+
++#endif
++
+ #endif /* _USUAL_ENDIAN_H_ */
--- pgbouncer-1.4.patch ends here ---
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list