freebsd-ports/databases/phppgadmin/Makefile

42 lines
1.1 KiB
Makefile
Raw Normal View History

# New ports collection makefile for: phpPgAdmin
# Date created: 19 Jan 2001
# Whom: nbm
#
# $FreeBSD$
#
PORTNAME= phppgadmin
2004-12-20 11:37:01 +01:00
PORTVERSION= 3.5.1
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
DISTNAME= phpPgAdmin-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Web Based Postgres Administration
USE_REINPLACE= yes
USE_BZIP2= yes
.if !defined(WITHOUT_PHP_DEPENDS)
2004-07-19 11:42:16 +02:00
USE_PHP= ctype imap openssl pgsql pcre posix session tokenizer xml zlib
.endif
WRKSRC= ${WRKDIR}/phpPgAdmin
NO_BUILD= YES
2004-03-22 21:57:26 +01:00
PGADMDIR?= www/data/phpPgAdmin
PLIST_SUB+= PGADMDIR=${PGADMDIR}
do-configure:
${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \
2004-03-22 21:57:26 +01:00
${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 ] || \
2004-03-22 21:57:26 +01:00
${CP} -p ${PREFIX}/${PGADMDIR}/conf/config.inc.php-dist \
${PREFIX}/${PGADMDIR}/conf/config.inc.php
.include <bsd.port.mk>