1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-22 04:17:44 +00:00
freebsd-ports/japanese/wordpress/Makefile
Jochen Neumeister a3779d483f Securityupdate to 4.9.1:
www/wordpress
russian/wordpress [1]
chinese/wordpress-zh_CN
japanese/wordpress
german/wordpress
french/wordpress

Changelog:
 https://codex.wordpress.org/Version_4.9.1
 https://wordpress.org/news/2017/11/wordpress-4-9-1-security-and-maintenance-release/

PR:		223982 [1]
Submitted by:	Mikhail Timofeev <9267096@gmail.com> (maintainer) [1]
Approved by:	tcberner (mentor)
MFH:		2017Q4
Security:	a2589511-d6ba-11e7-88dd-00e04c1ea73d
Differential Revision:	https://reviews.freebsd.org/D13337
2017-12-02 12:20:31 +00:00

60 lines
1.5 KiB
Makefile

# Created by: Takefu
# $FreeBSD$
PORTNAME= wordpress
DISTVERSION= 4.9.1
DISTVERSIONSUFFIX= -ja
CATEGORIES= japanese www
MASTER_SITES= http://ja.wordpress.org/
MAINTAINER= joneum@FreeBSD.org
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2 GPLv3
LICENSE_COMB= dual
LICENSE_FILE= ${WRKSRC}/license.txt
CONFLICTS_INSTALL= wordpress-[0-9].* de-wordpress-[0-9].* ru-wordpress-[0-9].*
NO_ARCH= yes
NO_BUILD= yes
USES= cpe php:web
USE_PHP= curl gd mysqli pcre tokenizer xml zip zlib ftp
WRKSRC= ${WRKDIR}/${PORTNAME}
CPE_LANG= ja
.if ${DISTVERSION:N*.*.*}
CPE_VERSION= ${DISTVERSION}.0
.endif
SUB_FILES= pkg-message
PLIST= ${WRKDIR}/pkg-plist
PORTDOCS= license.txt readme.html
OPTIONS_DEFINE= DOCS
pre-everything::
@${ECHO_CMD} "If you want to upgrade, you must read upgrade document."
@${ECHO_CMD} ""
@sleep 1
pre-install:
${ECHO_CMD} '@owner www' > ${PLIST}
${ECHO_CMD} '@group www' >> ${PLIST}
cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|' >> ${PLIST}
${ECHO_CMD} '@owner' >> ${PLIST}
${ECHO_CMD} '@group' >> ${PLIST}
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
do-install:
${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w {} \;
do-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>