blob: 32f4f207c2757fc267c522d090269cec48c688d9 (
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
|
# Created by: chinsan@mail2000.com.tw
# $FreeBSD$
PORTNAME= bBlog
PORTVERSION= 0.7.6
PORTREVISION= 2
CATEGORIES= www
MASTER_SITES= SF/${PORTNAME:tl}/${PORTNAME:tl}/${PORTNAME}%20${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Elegant personal publishing system with Smarty
USE_PHP= mysql pcre session
NO_BUILD= YES
WANT_PHP_WEB= YES
WRKSRC= ${WRKDIR}/${PORTNAME:tl}
WWWDOCROOT?= www
BBLOGURL?= ${PORTNAME:tl}
BBLOGDIR?= ${WWWDOCROOT}/${BBLOGURL}
SUB_FILES= pkg-message
SUB_LIST= BBLOGURL=${BBLOGURL} BBLOGDIR=${BBLOGDIR}
PLIST_SUB= WWWDOCROOT=${WWWDOCROOT} BBLOGURL=${BBLOGURL}
OPTIONS_DEFINE= GD IMAGICK
OPTIONS_DEFAULT=GD
IMAGICK_DESC= ${IMAGEMAGICK_DESC}
.include <bsd.port.pre.mk>
.if ${PORT_OPTIONS:MGD}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/gd.so:${PORTSDIR}/${gd_DEPENDS}
.endif
.if ${PORT_OPTIONS:MIMAGICK}
RUN_DEPENDS+= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:${PORTSDIR}/${imagick_DEPENDS}
.endif
.if empty(PORT_OPTIONS:MGD) && empty(PORT_OPTIONS:MIMAGICK)
pre-patch:
@${ECHO_CMD} "Without GD or ImageMagick support. No thumbnails will be generated at all."
.endif
do-install:
@${MKDIR} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${STAGEDIR}${PREFIX}/${BBLOGDIR}
@${CHGRP} -R ${WWWGRP} ${STAGEDIR}${PREFIX}/${BBLOGDIR}
@${CHMOD} 755 ${STAGEDIR}${PREFIX}/${BBLOGDIR}
.for f in archives.php documentation.txt htaccess-cleanurls index.php item rss.php search.php section
${INSTALL_DATA} ${WRKDIR}/${f} ${STAGEDIR}${PREFIX}/${BBLOGDIR}
.endfor
@${CP} -Rv ${WRKSRC}/* ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/compiled_templates/
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/cache/favorites.xml
@${CHMOD} 775 ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php
@${MV} ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php ${STAGEDIR}${PREFIX}/${BBLOGDIR}/${PORTNAME:tl}/config.php.sample
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
|