1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-14 03:10:47 +00:00
freebsd-ports/russian/wordpress/Makefile
Florian Smeets 103072492e Update to 4.2.4
PR:		202107
Submitted by:	ychsiao@ychsiao.org (maintainer)
MFH:		2015Q3
Security:	ac5ec8e3-3c6c-11e5-b921-00a0986f28c4
2015-08-06 19:55:51 +00:00

58 lines
1.5 KiB
Makefile

# Created by: Mihail Timofeev <9267096@gmail.com>
# $FreeBSD$
PORTNAME= wordpress
PORTVERSION= 4.2.4
DISTVERSIONSUFFIX= -ru_RU
CATEGORIES= russian www
MASTER_SITES= http://ru.wordpress.org/
MAINTAINER= 9267096@gmail.com
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2
CONFLICTS_INSTALL= wordpress-3.* de-wordpress-3.* ja-wordpress-3.*
NO_ARCH= yes
NO_BUILD= yes
USES= cpe
USE_PHP= curl gd hash mysql pcre tokenizer xml zip zlib
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
CPE_LANG= ru
.if ${PORTVERSION:N*.*.*}
CPE_VERSION= ${PORTVERSION}.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}
cd ${WRKSRC}/ && ${FIND} -d . -type d | ${SED} -e 's|^\.|@dir %%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 '{}' \;
${MKDIR} ${STAGEDIR}${DOCSDIR}/
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>