blob: 41b7b25b46194d2cdf2cd77676a8de4a152daa75 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
# $NetBSD: Makefile,v 1.32 2019/11/02 15:38:07 rillig Exp $
DISTNAME= phpPgAdmin-5.1
PKGNAME= ${DISTNAME:S/PgAdmin/pgadmin/}
PKGREVISION= 1
CATEGORIES= databases www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=phppgadmin/}
EXTRACT_SUFX= .tar.bz2
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://phppgadmin.sourceforge.net/
COMMENT= Set of PHP-scripts to administer PostgreSQL over the WWW
DEPENDS+= ${PHP_PKG_PREFIX}-pgsql>=4.2.0:../../databases/php-pgsql
MESSAGE_SUBST+= EGDIR=${EGDIR}
NO_BUILD= YES
PHPPGBASE= ${PREFIX}/share/phppgadmin
EGDIR= ${PREFIX}/share/examples/phppgadmin
DOCDIR= ${PREFIX}/share/doc/phppgadmin
CONF_FILES= ${EGDIR}/config.inc.php-dist ${PHPPGBASE}/conf/config.inc.php
DOC_FILES= CREDITS DEVELOPERS FAQ HISTORY INSTALL LICENSE TODO \
TRANSLATORS
REPLACE_INTERPRETER+= pkgsrc-php
REPLACE.pkgsrc-php.old= .*php
REPLACE.pkgsrc-php.new= ${PREFIX}/bin/php
REPLACE_FILES.pkgsrc-php= build_tests.php
do-configure:
${SED} -e "s#/usr/bin/pg#${PREFIX}/bin/pg#" \
${WRKSRC}/conf/config.inc.php-dist > \
${WRKSRC}/conf/config.inc.php-dist.tmp
${MV} ${WRKSRC}/conf/config.inc.php-dist.tmp \
${WRKSRC}/conf/config.inc.php-dist
${SED} -e "s#@PHPPGBASE@#${PHPPGBASE}#g" ${FILESDIR}/apache.conf-dist \
> ${WRKDIR}/apache.conf
do-install:
${INSTALL_DATA_DIR} ${DESTDIR}${PHPPGBASE}
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
for d in $$(cd ${WRKSRC} && find . -type d); do \
${INSTALL_DATA_DIR} ${DESTDIR}${PHPPGBASE}/$$d; \
done
${INSTALL_SCRIPT} ${WRKSRC}/*.php ${DESTDIR}${PHPPGBASE}
cd ${WRKSRC}; \
for f in $$(find . -name "*.php"); do \
${INSTALL_SCRIPT} $$f ${DESTDIR}${PHPPGBASE}/$$f; \
done
# data:
cd ${WRKSRC}; \
for f in $$(find . -name "*.sql" -o -name "*.txt" -o -name "*.css" -o -name "*.js" -o -name "*.png" -o -name "*.gif" -o -name "*.ico"); do \
${INSTALL_DATA} $$f ${DESTDIR}${PHPPGBASE}/$$f; \
done
${INSTALL_DATA} ${WRKSRC}/conf/config.inc.php-dist ${DESTDIR}${EGDIR}
${INSTALL_DATA} ${WRKDIR}/apache.conf ${DESTDIR}${EGDIR}
${INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
for f in ${DOC_FILES}; do \
${INSTALL_DATA} ${WRKSRC}/$$f ${DESTDIR}${DOCDIR}; \
done
.include "../../lang/php/phpversion.mk"
.include "../../mk/bsd.pkg.mk"
|