mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-20 04:02:27 +00:00
5c1d26756b
- Add a second MASTER_SITE - Suffix patch and resulting files for .htaccess and .htpasswd with ".sample" PR: ports/187798 Submitted by: Lukasz Wasikowski <lukasz@wasikowski.net> (maintainer)
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# Created by: Lukasz Wasikowski <lukasz@wasikowski.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= sgwi
|
|
PORTVERSION= 1.1.6
|
|
CATEGORIES= mail www
|
|
MASTER_SITES= http://www.vanheusden.com/sgwi/ \
|
|
http://lukasz.wasikowski.net/files/
|
|
DISTNAME= sqlgreywebinterface-${PORTVERSION}
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
MAINTAINER= lukasz@wasikowski.net
|
|
COMMENT= PHP web interface to SQLGrey
|
|
|
|
LICENSE= GPLv2
|
|
|
|
NO_BUILD= yes
|
|
SUB_FILES+= pkg-message pkg-install
|
|
SUB_LIST= WWWOWN=${WWWOWN} WWWGRP=${WWWGRP}
|
|
|
|
OPTIONS_SINGLE= BACKEND
|
|
OPTIONS_SINGLE_BACKEND= MYSQL PGSQL
|
|
|
|
MYSQL_DESC= MySQL back-end (use mysql PHP extension)
|
|
PGSQL_DESC= PostgreSQL back-end (use pgsql PHP extension)
|
|
|
|
OPTIONS_DEFAULT=MYSQL
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
|
USE_PHP+= mysql
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
USE_PHP+= pgsql
|
|
.endif
|
|
|
|
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>
|