blob: 3bb03e1f518f349f7f48b5728188ed52e951bd7f (
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
|
# New ports collection makefile for: wordpress
# Date created: 2004-07-29
# Whom: Elvis Chiang <elvis@sslab.cs.ccu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= wordpress
PORTVERSION= 1.5
CATEGORIES= www
MASTER_SITES= ftp://ftp.stu.edu.tw/pub/wordpress/
MASTER_SITE_SUBDIR= cafelog
MAINTAINER= ychsiao@ychsiao.org
COMMENT= A state-of-the-art semantic personal publishing platform
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_PHP= mysql pcre xml
PHP4_PORT?= www/mod_php4
NO_BUILD= YES
WANT_PHP_WEB= YES
WORDPRESS?= www/data/wordpress
PLIST_SUB+= WORDPRESS=${WORDPRESS}
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= license.txt readme.html
pre-install:
cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${WORDPRESS}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${WORDPRESS}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${WORDPRESS} >> ${PLIST}
do-install:
-@${MKDIR} ${PREFIX}/${WORDPRESS}
@${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${WORDPRESS}
@${CHMOD} 755 ${PREFIX}/${WORDPRESS}
${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESS}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i}
.endfor
.endif
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|