1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-13 03:03:15 +00:00
freebsd-ports/www/wordpress-mu/Makefile
Michael Johnson 8d11126eca - Add more sites to MASTER_SITES
- Tarball was re-rolled (no change)

PR:		ports/83112
Submitted by:	maintainer
2005-07-08 04:36:18 +00:00

55 lines
1.4 KiB
Makefile

# 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
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://ftp.twaren.net/local-distfiles/wpmu/ \
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>