2007-12-12 10:11:24 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= phprecipebook
|
2011-06-21 17:12:01 +02:00
|
|
|
PORTVERSION= 3.01
|
2013-06-12 00:07:57 +02:00
|
|
|
PORTREVISION= 1
|
2007-12-12 10:11:24 +01:00
|
|
|
CATEGORIES= www deskutils
|
2011-06-21 17:12:01 +02:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION:C/\..*//}
|
|
|
|
EXTRACT_SUFX= .tgz
|
2007-12-12 10:11:24 +01:00
|
|
|
|
2012-04-14 20:45:07 +02:00
|
|
|
MAINTAINER= madpilot@FreeBSD.org
|
2007-12-12 10:11:24 +01:00
|
|
|
COMMENT= Small php webapp to manage your recipes
|
|
|
|
|
2011-06-21 17:12:01 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/docs/LICENSE.TXT
|
|
|
|
|
2010-03-19 01:48:16 +01:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2007-12-12 10:11:24 +01:00
|
|
|
NO_BUILD= yes
|
|
|
|
USE_PHP= xml
|
|
|
|
WANT_PHP_WEB= yes
|
|
|
|
SUB_FILES= pkg-message
|
|
|
|
|
2012-10-06 15:59:33 +02:00
|
|
|
OPTIONS_SINGLE= BACKEND
|
|
|
|
OPTIONS_SINGLE_BACKEND= MYSQL PGSQL
|
|
|
|
OPTIONS_DEFAULT= MYSQL
|
2007-12-12 10:11:24 +01:00
|
|
|
|
2012-10-06 15:59:33 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-12-12 10:11:24 +01:00
|
|
|
|
2012-10-06 15:59:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MMYSQL}
|
2007-12-12 10:11:24 +01:00
|
|
|
USE_PHP+= mysql
|
|
|
|
USE_MYSQL= yes
|
|
|
|
.endif
|
|
|
|
|
2012-10-06 15:59:33 +02:00
|
|
|
.if ${PORT_OPTIONS:MPGSQL}
|
|
|
|
USE_PHP+= pgsql
|
|
|
|
USE_PGSQL= yes
|
|
|
|
.endif
|
|
|
|
|
2007-12-12 10:11:24 +01:00
|
|
|
post-extract:
|
|
|
|
@${CHMOD} -R u+w ${WRKSRC}
|
|
|
|
|
|
|
|
do-install:
|
2013-10-03 00:56:47 +02:00
|
|
|
${MV} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
|
|
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
|
|
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
|
2007-12-12 10:11:24 +01:00
|
|
|
|
|
|
|
post-install:
|
2013-10-03 00:56:47 +02:00
|
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
|
2007-12-12 10:11:24 +01:00
|
|
|
|
2012-10-06 15:59:33 +02:00
|
|
|
.include <bsd.port.mk>
|