blob: e4bc4b37438c52ab56b5309f5da8fbcbdee8f663 (
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
|
# New ports collection makefile for: b2evolution
# Date created: 2005-04-16
# Whom: chinsan <chinsan@mail20000.com.tw>
#
# $FreeBSD$
#
PORTNAME= b2evolution
PORTVERSION= 0.9.2
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= evocms
DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVO_DATE}
MAINTAINER= chinsan@FreeBSD.org
COMMENT= A multilingual, multiuser, multi-blog engine
PATCH_DEPENDS= unzip:${PORTSDIR}/archivers/unzip
USE_ZIP= YES
USE_DOS2UNIX= YES
B2EVO_DATE?= 2006-05-22
USE_PHP= mysql pcre session xml
NO_BUILD= YES
WANT_PHP_WEB= YES
TMPDIR?= ${PORTNAME}
WRKSRC= ${WRKDIR}/${TMPDIR}
B2EVO_URL?= b2evo
B2EVO_DIR?= www/${B2EVO_URL}
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
pre-install:
@cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${B2EVO_DIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${B2EVO_DIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${B2EVO_DIR} >> ${PLIST}
do-install:
${MKDIR} ${TARGETDIR}/${B2EVO_DIR}
@${CHMOD} 755 ${TARGETDIR}/${B2EVO_DIR}
@${CP} -R ${WRKSRC}/ ${TARGETDIR}/${B2EVO_DIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${TARGETDIR}/${B2EVO_DIR}
@${CHMOD} 665 ${TARGETDIR}/${B2EVO_DIR}/blogs/conf/_config.php
post-install:
@${SED} -e 's|%%TARGETDIR%%|${TARGETDIR}|; s|%%PORTNAME%%|${PORTNAME}|' \
-e 's|%%B2EVO_DIR%%|${B2EVO_DIR}|; s|%%B2EVO_URL%%|${B2EVO_URL}|' \
${PKGMESSAGE}
.include <bsd.port.post.mk>
|