xref: /mports/databases/phppgadmin/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	phppgadmin
2PORTVERSION=	7.14.7
3DISTVERSIONPREFIX=	v
4DISTVERSIONSUFFIX=	-mod
5CATEGORIES=	databases www
6PKGNAMESUFFIX=	${PHP_PKGNAMESUFFIX}
7
8MAINTAINER=	ports@MidnightBSD.org
9COMMENT=	Web Based Postgres Administration
10WWW=		https://github.com/ReimuHakurei/phpPgAdmin
11
12LICENSE=	gpl2
13
14NO_ARCH=	yes
15NO_BUILD=	yes
16USES=		cpe tar:bzip2 php:web,flavors shebangfix
17USE_GITHUB=	yes
18GH_ACCOUNT=	ReimuHakurei
19WRKSRC=		${WRKDIR}/phpPgAdmin-${DISTVERSION}${DISTVERSIONSUFFIX}
20
21.if !defined(WITHOUT_PHP_DEPENDS)
22USE_PHP=	pgsql session mbstring
23.endif
24
25CPE_VENDOR=	phppgadmin_project
26SHEBANG_FILES=	lang/synch
27PGADMDIR?=	www/phpPgAdmin
28PLIST_SUB+=	PGADMDIR=${PGADMDIR}
29
30pre-everything::
31	@${ECHO_CMD} "# you can customize the installation directory"
32	@${ECHO_CMD} "# by setting PGADMDIR in /etc/make.conf"
33
34do-configure:
35	${REINPLACE_CMD} -e "s|/usr/bin/pg|${LOCALBASE}/bin/pg|" \
36		${WRKSRC}/conf/config.inc.php-dist
37	${RM} -f ${WRKSRC}/conf/config.inc.php \
38		${WRKSRC}/conf/config.inc.php-dist.bak
39
40.include <bsd.port.pre.mk>
41
42do-install:
43	${MKDIR} ${PREFIX}/${PGADMDIR}
44	${CP} -Rp ${WRKSRC}/ ${PREFIX}/${PGADMDIR}/
45
46.include <bsd.port.post.mk>
47

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026