mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
9bf7d9196f
Changes: http://cn.wordpress.org/2012/04/21/wordpress-3-3-2/ PR: ports/167174 Submitted by: sunpoet (myself) Approved by: Joe Horn <joehorn@gmail.com> (maintainer)
68 lines
1.7 KiB
Makefile
68 lines
1.7 KiB
Makefile
# New ports collection makefile for: wordpress-zh_CN
|
|
# Date created: 2010-03-01
|
|
# Whom: Joe Horn <joehorn@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= wordpress
|
|
PORTVERSION= 3.3.2
|
|
CATEGORIES= chinese www
|
|
MASTER_SITES= http://cn.wordpress.org/ \
|
|
http://mirror.joehorn.idv.tw/wordpress/
|
|
PKGNAMESUFFIX= -zh_CN
|
|
DISTNAME= ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
|
|
|
|
MAINTAINER= joehorn@gmail.com
|
|
COMMENT= A state-of-the-art semantic personal publishing platform
|
|
|
|
LICENSE= GPLv2
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
USE_PHP= mysql pcre xml gd tokenizer
|
|
NO_BUILD= YES
|
|
WANT_PHP_WEB= YES
|
|
|
|
PLIST= ${WRKDIR}/pkg-plist
|
|
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
|
|
|
|
PORTDOCS= license.txt readme.html
|
|
|
|
SUB_FILES+= pkg-message
|
|
SUB_LISTS+= WWWDIR=${WWWDIR}
|
|
|
|
pre-everything::
|
|
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
|
|
@${ECHO_CMD} ""
|
|
@sleep 1
|
|
|
|
pre-install:
|
|
cd ${WRKSRC} && ${FIND} -s * -type f | \
|
|
${SED} -e 's|^|${WWWDIR:S|${PREFIX}/||}/|' > ${PLIST} \
|
|
&& ${FIND} -d * -type d | \
|
|
${SED} -e 's|^|@dirrm ${WWWDIR:S|${PREFIX}/||}/|' >> ${PLIST} \
|
|
&& ${ECHO_CMD} @dirrm ${WWWDIR:S|${PREFIX}/||} >> ${PLIST}
|
|
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
|
|
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
|
|
|
|
do-install:
|
|
@${MKDIR} ${WWWDIR}
|
|
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}
|
|
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' \
|
|
>> ${TMPPLIST}
|
|
@${CHMOD} -R 755 ${WWWDIR}
|
|
@${ECHO_CMD} '@exec ${CHMOD} -R 755 ${WWWDIR}' >> ${TMPPLIST}
|
|
${CP} -R ${WRKSRC}/ ${WWWDIR}
|
|
.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>
|