freebsd-ports/databases/phppgadmin/Makefile
Mathieu Arnold eabbfd75e3 ${RM} already has -f.
PR:		213570
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	Absolight
2016-10-21 12:51:40 +00:00

42 lines
1,019 B
Makefile

# Created by: nbm
# $FreeBSD$
PORTNAME= phppgadmin
PORTVERSION= 5.1
PORTREVISION= 3
CATEGORIES= databases www
MASTER_SITES= SF/${PORTNAME}/phpPgAdmin%20%5Bstable%5D/phpPgAdmin-5.1
DISTNAME= phpPgAdmin-${PORTVERSION}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Web Based Postgres Administration
LICENSE= GPLv2
NO_ARCH= yes
NO_BUILD= yes
USES= cpe tar:bzip2 shebangfix
.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP= pgsql pcre session
.endif
CPE_VENDOR= phppgadmin_project
SHEBANG_FILES= lang/synch
PGADMDIR?= www/phpPgAdmin
PLIST_SUB+= PGADMDIR=${PGADMDIR}
pre-everything::
@${ECHO_CMD} "# you can customize the installation directory"
@${ECHO_CMD} "# by setting PGADMDIR in /etc/make.conf"
do-configure:
${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \
${WRKSRC}/conf/config.inc.php-dist
${RM} ${WRKSRC}/conf/config.inc.php \
${WRKSRC}/conf/config.inc.php-dist.bak
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/${PGADMDIR}
${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${PREFIX}/${PGADMDIR}/
.include <bsd.port.mk>