1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/www/wordpress/Makefile
Jason Unovitch d01ca2c264 www/wordpress: update 4.5.2 -> 4.5.3
Approved by:	ports-secteam (with hat)
Security:	CVE-2016-5832
Security:	CVE-2016-5833
Security:	CVE-2016-5834
Security:	CVE-2016-5835
Security:	CVE-2016-5836
Security:	CVE-2016-5837
Security:	CVE-2016-5838
Security:	CVE-2016-5839
Security:	https://vuxml.FreeBSD.org/freebsd/bfcc23b6-3b27-11e6-8e82-002590263bf5.html
MFH:		2016Q2
2016-06-25 23:18:12 +00:00

58 lines
1.5 KiB
Makefile

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