mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
5a10d19e80
Changlogs: - https://wordpress.org/news/2020/10/wordpress-5-5-2-security-and-maintenance-release/ - https://wordpress.org/news/2020/10/wordpress-5-5-3-maintenance-release/ MFH: 2020Q4 (with hat) Security: 11325357-1d3c-11eb-ab74-4c72b94353b5 Sponsored by: Netzkommune GmbH
62 lines
1.7 KiB
Makefile
62 lines
1.7 KiB
Makefile
# Created by: Mihail Timofeev <9267096@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= wordpress
|
|
DISTVERSION= 5.5.3
|
|
DISTVERSIONSUFFIX= -ru_RU
|
|
CATEGORIES= russian www
|
|
MASTER_SITES= http://ru.wordpress.org/
|
|
|
|
MAINTAINER= joneum@FreeBSD.org
|
|
COMMENT= State-of-the-art semantic personal publishing platform
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
CONFLICTS_INSTALL= wordpress-[0-9].* de-wordpress-[0-9].* ja-wordpress-[0-9].*
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
USES= php:web cpe
|
|
USE_PHP= curl exif fileinfo ftp gd hash json mysqli pcre tokenizer xml zip zlib
|
|
RUN_DEPENDS= ${LOCALBASE}/lib/php/${PHP_EXT_DIR}/imagick.so:graphics/pecl-imagick@${PHP_FLAVOR}
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
CPE_LANG= ru
|
|
.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} ""
|
|
. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
|
|
@sleep 1
|
|
. endif
|
|
|
|
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:
|
|
@${MKDIR} ${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>
|