freebsd-ports/databases/phppgadmin/Makefile
Dirk Meyer 914d197f6f databases/phppgadmin: update to 7.14.3
- add support for postgres15
- fix Authentication Bypass
PR: 268785
MFH: 2023Q1
Security: CVE-2021-3850
Security: https://huntr.dev/bounties/bdf5f216-4499-4225-a737-b28bc6f5801c/
2023-01-08 18:25:32 +01:00

44 lines
1.1 KiB
Makefile

PORTNAME= phppgadmin
PORTVERSION= 7.14.3
DISTVERSIONPREFIX= v
DISTVERSIONSUFFIX= -mod
CATEGORIES= databases www
PKGNAMESUFFIX= ${PHP_PKGNAMESUFFIX}
MAINTAINER= dinoex@FreeBSD.org
COMMENT= Web Based Postgres Administration
WWW= https://github.com/ReimuHakurei/phpPgAdmin
LICENSE= GPLv2
NO_ARCH= yes
NO_BUILD= yes
USES= cpe tar:bzip2 php:web,flavors shebangfix
USE_GITHUB= yes
GH_ACCOUNT= ReimuHakurei
WRKSRC= ${WRKDIR}/phpPgAdmin-${DISTVERSION}${DISTVERSIONSUFFIX}
.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP= pgsql pcre session mbstring
.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>