diff options
author | marino <marino@FreeBSD.org> | 2014-08-11 05:42:50 +0800 |
---|---|---|
committer | marino <marino@FreeBSD.org> | 2014-08-11 05:42:50 +0800 |
commit | 268eba93d1ef81e278b77a5d89731a87084b87bf (patch) | |
tree | 20bb252c847bbf8b5e7fb05d82b4a480f565da11 | |
parent | 3562c96e7ff50d4a0391bcdad0b85a28e9fb70b3 (diff) | |
download | freebsd-ports-gnome-268eba93d1ef81e278b77a5d89731a87084b87bf.tar.gz freebsd-ports-gnome-268eba93d1ef81e278b77a5d89731a87084b87bf.tar.zst freebsd-ports-gnome-268eba93d1ef81e278b77a5d89731a87084b87bf.zip |
databases/pgbouncer: Unconditionally install man pages
This port had a couple of issues besided installing man pages as a
function of the DOCS option selection. It also was using <pre> and <post>
inclusions with <options>, _DEPENDS were in multiple places.
I regrouped the *_DEPENDS, I moved the options to just above the make
targets (their conventional location) and I utilized <option>_*_DEPENDS
as well after fixing the man pages.
PR: 192507
Reported by: dmitry2004 (yandex.ru)
Approved by: Just Fix It (maintainer in copy)
-rw-r--r-- | databases/pgbouncer/Makefile | 31 |
1 files changed, 8 insertions, 23 deletions
diff --git a/databases/pgbouncer/Makefile b/databases/pgbouncer/Makefile index 0a68f2ffe449..dc64abd63aad 100644 --- a/databases/pgbouncer/Makefile +++ b/databases/pgbouncer/Makefile @@ -3,7 +3,7 @@ PORTNAME= pgbouncer PORTVERSION= 1.5.4 -PORTREVISION= 3 +PORTREVISION= 4 CATEGORIES= databases MASTER_SITES= http://pgfoundry.org/frs/download.php/3393/ @@ -13,14 +13,8 @@ COMMENT= Lightweight connection pooler for PostgreSQL LICENSE= BSD2CLAUSE LIB_DEPENDS= libevent.so:${PORTSDIR}/devel/libevent2 - -OPTIONS_DEFINE= DOCS - -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MDOCS} -BUILD_DEPENDS+= xmlto:${PORTSDIR}/textproc/xmlto -.endif +BUILD_DEPENDS+= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed \ + xmlto:${PORTSDIR}/textproc/xmlto PORTSCOUT= site:http://pgfoundry.org/frs/?group_id=1000258 @@ -42,15 +36,10 @@ PGBOUNCER_GROUP?= pgbouncer PGBOUNCER_RUNDIR?= /var/run/pgbouncer PGBOUNCER_LOGDIR?= /var/log/pgbouncer -BUILD_DEPENDS+= ${LOCALBASE}/bin/gsed:${PORTSDIR}/textproc/gsed - -.include <bsd.port.pre.mk> - PLIST_SUB+= PGBOUNCER_USER="${USERS}" \ PGBOUNCER_GROUP="${GROUPS}" \ PGBOUNCER_LOGDIR="${PGBOUNCER_LOGDIR}" \ PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" - SUB_LIST+= PGBOUNCER_RUNDIR="${PGBOUNCER_RUNDIR}" post-patch: @@ -60,17 +49,13 @@ post-patch: @${REINPLACE_CMD} -e "s|sed -n|${LOCALBASE}/bin/gsed -n|g" \ ${WRKSRC}/lib/find_modules.sh -.if empty(PORT_OPTIONS:MDOCS) - ${REINPLACE_CMD} -e "s| = doc| = |g" ${WRKSRC}/Makefile -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/pgbouncer ${STAGEDIR}${PREFIX}/bin/ -.if ${PORT_OPTIONS:MDOCS} ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.1 ${STAGEDIR}${PREFIX}/man/man1/ ${INSTALL_MAN} ${WRKSRC}/doc/pgbouncer.5 ${STAGEDIR}${PREFIX}/man/man5/ -.endif - ${INSTALL_DATA} ${WRKSRC}/etc/pgbouncer.ini ${STAGEDIR}${PREFIX}/etc/pgbouncer.ini.sample - ${INSTALL_DATA} ${WRKSRC}/etc/userlist.txt ${STAGEDIR}${PREFIX}/etc/pgbouncer.users.sample + ${INSTALL_DATA} ${WRKSRC}/etc/pgbouncer.ini \ + ${STAGEDIR}${PREFIX}/etc/pgbouncer.ini.sample + ${INSTALL_DATA} ${WRKSRC}/etc/userlist.txt \ + ${STAGEDIR}${PREFIX}/etc/pgbouncer.users.sample -.include <bsd.port.post.mk> +.include <bsd.port.mk> |