freebsd-ports/www/wordpress/Makefile
Jochen Neumeister 527ebbd684 Update to 5.3.2
Changelog: https://wordpress.org/news/

MFH:		2019Q4
Security:	7b97b32e-27c4-11ea-9673-4c72b94353b5
Sponsored by:	Netzkommune GmbH
2019-12-26 10:29:11 +00:00

57 lines
1.5 KiB
Makefile

# Created by: Elvis Chiang <elvis@sslab.cs.ccu.edu.tw>
# $FreeBSD$
PORTNAME= wordpress
DISTVERSION= 5.3.2
PORTEPOCH= 1
CATEGORIES= www
MASTER_SITES= http://wordpress.org/
MAINTAINER= joneum@FreeBSD.org
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2
CONFLICTS_INSTALL= de-wordpress-[0-9].* ja-wordpress-[0-9].* ru-wordpress-[0-9].*
NO_ARCH= yes
NO_BUILD= yes
USES= php:web cpe
USE_PHP= curl gd hash mysqli pcre tokenizer xml zip zlib ftp
WRKSRC= ${WRKDIR}/${PORTNAME}
.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:
${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>