blob: 45bf8e9d302c254f1d56a2126fdce414be963e76 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= phppgadmin
PORTVERSION= 7.14.7
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 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>
|