2005-02-06 12:32:39 -05:00
|
|
|
# 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
|
2005-07-06 01:24:57 -04:00
|
|
|
PORTVERSION= 1.5.1.3
|
2005-07-06 11:48:35 -04:00
|
|
|
PORTEPOCH= 1
|
2005-02-06 12:32:39 -05:00
|
|
|
CATEGORIES= www
|
2005-07-08 00:36:18 -04:00
|
|
|
MASTER_SITES= http://ftp.twaren.net/local-distfiles/wpmu/ \
|
|
|
|
http://blogs.linux.ie/download/wpmu/ \
|
2005-05-17 09:16:33 -04:00
|
|
|
http://mu.wordpress.org/nightly-builds/
|
2005-07-05 10:10:58 -04:00
|
|
|
DISTNAME= wpmu-stable-${PORTVERSION:S/./_/g}
|
2005-02-06 12:32:39 -05:00
|
|
|
|
|
|
|
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}
|
2005-02-25 02:42:44 -05:00
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
2005-02-06 12:32:39 -05:00
|
|
|
|
|
|
|
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
|
|
|
|
|
2005-02-25 02:42:44 -05:00
|
|
|
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}
|
|
|
|
|
2005-02-06 12:32:39 -05:00
|
|
|
post-install:
|
2005-02-25 02:42:44 -05:00
|
|
|
${CAT} ${PKGMESSAGE}
|
2005-02-06 12:32:39 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|