blob: d37645cf82a268fa229393abab655c786489cc30 (
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
|
# New ports collection makefile for: b2evo
# Date created: 2005-04-16
# Whom: chinsan <chinsan@mail20000.com.tw>
#
# $FreeBSD$
#
PORTNAME= b2evolution
PORTVERSION= 0.9.0.12
CATEGORIES= www
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= evocms
DISTNAME= ${PORTNAME}-${PORTVERSION}-${B2EVODATE}
MAINTAINER= chinsan.tw@gmail.com
COMMENT= A multilingual, multiuser, multi-blog engine
USE_ZIP= YES
B2EVODATE?= 2005-05-06
USE_PHP= mysql pcre session
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
TMPDIR?= b2evolution
WRKSRC= ${WRKDIR}/${TMPDIR}
WWWDOCROOT?= www/data-dist
B2EVOURL?= b2evo
WWWOWN?= www
WWWGRP?= www
B2EVODIR?= ${WWWDOCROOT}/${B2EVOURL}
PLIST= ${WRKDIR}/pkg-plist
.include <bsd.port.pre.mk>
pre-install:
cd ${WRKSRC} && ${FIND} -s . -type f | \
${SED} -e 's|^./||;s|^|${B2EVODIR}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${B2EVODIR}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${B2EVODIR} >> ${PLIST}
do-install:
-${MKDIR} ${PREFIX}/${B2EVODIR}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${B2EVODIR}
@${CHMOD} 755 ${PREFIX}/${B2EVODIR}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${B2EVODIR}
post-install:
@${SED} -e 's|%%B2EVOURL%%|${B2EVOURL}|' ${PKGMESSAGE}
.include <bsd.port.post.mk>
|