blob: 8d51fb7b0c87ba79dd6030ed53df8b578e206e0c (
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Created by: Hubert Tournier <hubert@frbsd.org>
# $FreeBSD$
PORTNAME= phpGedView
PORTVERSION= 4.2.3
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME:L}/1%20PhpGedView/PhpGedView%20v${PORTVERSION}
DISTNAME= ${PORTNAME:S/p/P/}-basic-${PORTVERSION}
MAINTAINER= fbsd@opal.com
COMMENT= Online genealogy viewer
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
EXTRACT_AFTER_ARGS= -d ${WRKSRC}
USES= zip:infozip
USE_PHP= calendar dom gd pcre session xml
NO_BUILD= yes
SUB_FILES= pkg-message pkg-deinstall
DISTATE= config.php config_download.php config_gedcom.php
OPTIONS_MULTI= DB
OPTIONS_MULTI_DB= MYSQL PGSQL SQLITE
OPTIONS_DEFAULT= SQLITE
DB_DESC= Data storage
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_MYSQL= yes
USE_PHP += pdo_mysql
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PGSQL= yes
USE_PHP += pdo_pgsql
.endif
.if ${PORT_OPTIONS:MSQLITE}
USE_PHP += pdo_sqlite
.endif
post-extract:
.for f in ${DISTATE}
@${MV} ${WRKSRC}/${f} ${WRKSRC}/${f}-dist
.endfor
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media
@${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST}
@${ECHO_CMD} '@exec ${CHMOD} -R u+w ${WWWDIR}/index ${WWWDIR}/media' >>${TMPPLIST}
post-install:
.for f in ${DISTATE}
@if [ ! -f ${WWWDIR}/${f} ]; then \
${CP} -p ${WWWDIR}/${f}-dist ${WWWDIR}/${f}; \
${CHMOD} a+w ${WWWDIR}/${f}; \
fi
.endfor
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|