blob: 73dc301d21483913c66de947201b20511223a750 (
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
|
# $FreeBSD$
PORTNAME= phprecipebook
PORTVERSION= 3.01
PORTREVISION= 1
CATEGORIES= www deskutils
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}%20%28stable%29/${PORTVERSION:C/\..*//}
EXTRACT_SUFX= .tgz
MAINTAINER= madpilot@FreeBSD.org
COMMENT= Small php webapp to manage your recipes
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/docs/LICENSE.TXT
WRKSRC= ${WRKDIR}/${PORTNAME}
NO_BUILD= yes
USE_PHP= xml
WANT_PHP_WEB= yes
SUB_FILES= pkg-message
OPTIONS_SINGLE= BACKEND
OPTIONS_SINGLE_BACKEND= MYSQL PGSQL
OPTIONS_DEFAULT= MYSQL
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMYSQL}
USE_PHP+= mysql
USE_MYSQL= yes
.endif
.if ${PORT_OPTIONS:MPGSQL}
USE_PHP+= pgsql
USE_PGSQL= yes
.endif
post-extract:
@${CHMOD} -R u+w ${WRKSRC}
do-install:
@${CP} ${WRKSRC}/custom_inc.php ${WRKSRC}/custom_inc.php.sample
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${WWWDIR}
@if [ ! -f ${WWWDIR}/custom_inc.php ]; then \
${CP} ${WWWDIR}/custom_inc.php.sample \
${WWWDIR}/custom_inc.php ; fi
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
post-install:
@${SED} -e 's|%%RECIPEDIR%%|${WWWDIR}|' ${PKGMESSAGE}
.include <bsd.port.mk>
|