blob: f6ea194b016141248cfcebf885ff46487733910b (
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
|
# Created by: Lukasz Wasikowski <lukasz@wasikowski.net>
# $FreeBSD$
PORTNAME= sgwi
PORTVERSION= 1.1.8
CATEGORIES= mail www
MASTER_SITES= http://www.vanheusden.com/sgwi/ \
http://lukasz.wasikowski.net/files/
DISTNAME= sqlgreywebinterface-${PORTVERSION}
MAINTAINER= lukasz@wasikowski.net
COMMENT= PHP web interface to SQLGrey
LICENSE= GPLv2
BROKEN_powerpc64= Does not build
USES= tar:tgz
NO_BUILD= yes
SUB_FILES+= pkg-message pkg-install
SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND= MYSQL PGSQL SQLITE3
MYSQL_DESC= MySQL back-end (use mysql PHP extension)
PGSQL_DESC= PostgreSQL back-end (use pgsql PHP extension)
SQLITE3_DESC= SQLite3 back-end (use pgsql PHP extension)
OPTIONS_DEFAULT=MYSQL
MYSQL_USE= PHP=mysql
PGSQL_USE= PHP=pgsql
SQLITE3_USE= PHP=sqlite3
WANT_PHP_WEB= yes
post-patch:
${FIND} ${WRKSRC} -name '*.orig' -delete
do-install:
@${MV} ${WRKSRC}/includes/config.inc.php ${WRKSRC}/includes/config.inc.php.sample
@${MKDIR} ${STAGEDIR}${WWWDIR}
@${MKDIR} ${STAGEDIR}${WWWDIR}/includes
${INSTALL_DATA} ${WRKSRC}/*.php ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/*.txt ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/*.css ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/.ht* ${STAGEDIR}${WWWDIR}
${INSTALL_DATA} ${WRKSRC}/includes/*.sample ${STAGEDIR}${WWWDIR}/includes/
${INSTALL_DATA} ${WRKSRC}/includes/*.php ${STAGEDIR}${WWWDIR}/includes/
.include <bsd.port.mk>
|