diff options
Diffstat (limited to 'databases/phppgadmin/Makefile')
-rw-r--r-- | databases/phppgadmin/Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/databases/phppgadmin/Makefile b/databases/phppgadmin/Makefile index 4c9a263cfbd1..44c485b9d020 100644 --- a/databases/phppgadmin/Makefile +++ b/databases/phppgadmin/Makefile @@ -6,7 +6,7 @@ # PORTNAME= phppgadmin -PORTVERSION= 3.2.1 +PORTVERSION= 3.3.1 CATEGORIES= databases www MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,6 +15,7 @@ DISTNAME= phpPgAdmin-${PORTVERSION} MAINTAINER= dinoex@FreeBSD.org COMMENT= Web Based Postgres Administration +USE_REINPLACE= yes USE_BZIP2= yes USE_PHP= yes WRKSRC= ${WRKDIR}/phpPgAdmin @@ -24,8 +25,17 @@ PHP_PORT?= www/mod_php4-twig PGADMDIR?= www/data/phpPgAdmin PLIST_SUB+= PGADMDIR=${PGADMDIR} +do-configure: + ${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \ + ${WRKSRC}/conf/config.inc.php-dist + rm -f ${WRKSRC}/conf/config.inc.php \ + ${WRKSRC}/conf/config.inc.php-dist.bak + do-install: ${MKDIR} ${PREFIX}/${PGADMDIR} ${CP} -R ${WRKSRC}/* ${PREFIX}/${PGADMDIR} + @[ -f ${PREFIX}/${PGADMDIR}/conf/config.inc.php ] || \ + cp ${PREFIX}/${PGADMDIR}/conf/config.inc.php-dist \ + ${PREFIX}/${PGADMDIR}/conf/config.inc.php .include <bsd.port.mk> |