blob: 977f9e303794f3ed29baf16941065e7c683dcd90 (
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
|
# New ports collection makefile for: wordpress-mu
# Date created: 2004-12-19
# Whom: Jin-Shan Tseng <tjs@cdpa.nsysu.edu.tw>
#
# $FreeBSD$
#
PORTNAME= wordpress-mu
PORTVERSION= 1.5.1.3
CATEGORIES= www
MASTER_SITES= http://blogs.linux.ie/download/wpmu/ \
http://mu.wordpress.org/nightly-builds/
DISTNAME= wpmu-stable-${PORTVERSION:S/./_/g}
MAINTAINER= tjs@cdpa.nsysu.edu.tw
COMMENT= Multi-user version of the famous WordPress blogging application
WRKSRC= ${WRKDIR}/${DISTNAME}
USE_PHP= mysql pcre xml
PHP4_PORT?= www/mod_php4
NO_BUILD= yes
WANT_PHP_WEB= yes
WORDPRESSMU?= www/data/wordpress-mu
PLIST_SUB+= WORDPRESSMU=${WORDPRESSMU}
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= license.txt readme.html
do-install:
@${MKDIR} ${PREFIX}/${WORDPRESSMU}
@${CHOWN} www:www ${PREFIX}/${WORDPRESSMU}
@${CHMOD} 755 ${PREFIX}/${WORDPRESSMU}
@${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESSMU}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
@${INSTALL_DATA} ${WRKSRC}/wp-inst/${i} ${DOCSDIR}
.endfor
.endif
pre-install:
cd ${WRKSRC} && ${FIND} -s * -type f | \
${SED} -e 's|^|${WORDPRESSMU}/|' > ${PLIST} \
&& ${FIND} -d * -type d | \
${SED} -e 's|^|@dirrm ${WORDPRESSMU}/|' >> ${PLIST} \
&& ${ECHO_CMD} @dirrm ${WORDPRESSMU} >> ${PLIST}
post-install:
${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>
|