Lines 2-7
Link Here
|
2 |
|
2 |
|
3 |
PORTNAME= pgbouncer |
3 |
PORTNAME= pgbouncer |
4 |
PORTVERSION= 1.16.0 |
4 |
PORTVERSION= 1.16.0 |
|
|
5 |
PORTREVISION= 1 |
5 |
CATEGORIES= databases |
6 |
CATEGORIES= databases |
6 |
MASTER_SITES= https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \ |
7 |
MASTER_SITES= https://pgbouncer.github.io/downloads/files/${PORTVERSION}/ \ |
7 |
http://pgbouncer.github.io/downloads/files/${PORTVERSION}/ |
8 |
http://pgbouncer.github.io/downloads/files/${PORTVERSION}/ |
Lines 12-18
COMMENT= Lightweight connection pooler for PostgreSQL
Link Here
|
12 |
LICENSE= BSD2CLAUSE |
13 |
LICENSE= BSD2CLAUSE |
13 |
|
14 |
|
14 |
LIB_DEPENDS= libevent.so:devel/libevent |
15 |
LIB_DEPENDS= libevent.so:devel/libevent |
15 |
BUILD_DEPENDS+= ${LOCALBASE}/bin/gsed:textproc/gsed |
|
|
16 |
|
16 |
|
17 |
USES= cpe gmake ssl pkgconfig |
17 |
USES= cpe gmake ssl pkgconfig |
18 |
|
18 |
|
Lines 42-54
PLIST_SUB+= PGBOUNCER_USER="${USERS}" \
Link Here
|
42 |
PGBOUNCER_LOGDIR="${PGBOUNCER_LOGDIR}" \ |
42 |
PGBOUNCER_LOGDIR="${PGBOUNCER_LOGDIR}" \ |
43 |
PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" |
43 |
PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" |
44 |
SUB_LIST+= PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" |
44 |
SUB_LIST+= PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" |
|
|
45 |
SUB_FILES= pkg-message |
45 |
|
46 |
|
46 |
post-patch: |
47 |
post-patch: |
47 |
@${REINPLACE_CMD} -e "s|= pgbouncer.log|= ${PGBOUNCER_LOGDIR}/pgbouncer.log|g" \ |
48 |
@${REINPLACE_CMD} -e "s|= /etc/pgbouncer/userlist.txt|= ${PREFIX}/etc/pgbouncer.users|g" \ |
48 |
-e "s|= pgbouncer.pid|= ${PGBOUNCER_RUNDIR}/pgbouncer.pid|g" \ |
49 |
-e "s|= /etc/pgbouncer/resolv.conf|= ${PREFIX}/etc/pgbouncer-resolv.conf|g" \ |
|
|
50 |
-e "s|include /etc/pgbouncer/pgbouncer-other.ini|include ${PREFIX}/etc/pgbouncer-other.ini|g" \ |
49 |
${WRKSRC}/etc/pgbouncer.ini |
51 |
${WRKSRC}/etc/pgbouncer.ini |
50 |
@${REINPLACE_CMD} -e "s|sed -n|${LOCALBASE}/bin/gsed -n|g" \ |
|
|
51 |
${WRKSRC}/lib/find_modules.sh |
52 |
|
52 |
|
53 |
do-install: |
53 |
do-install: |
54 |
${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${STAGEDIR}${PREFIX}/bin/ |
54 |
${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${STAGEDIR}${PREFIX}/bin/ |