mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
0b61befb1c
- Document security issue [4] PR: ports/171397 [1] PR: ports/171404 [2] PR: ports/171405 [3] Submitted by: Yuan-Chung Hsiao <ychsiao@ychsiao.org> (maintainer) [1] Submitted by: Joe Horn <joehorn@gmail.com> (maintainer) [2] [3] Reviewed by: eadler [4] Security: 30149157-f926-11e1-95cd-001fd0af1a4c
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# New ports collection makefile for: wordpress
|
|
# Date created: 2004-07-29
|
|
# Whom: Elvis Chiang <elvis@sslab.cs.ccu.edu.tw>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= wordpress
|
|
PORTVERSION= 3.4.2
|
|
PORTEPOCH= 1
|
|
CATEGORIES= www
|
|
MASTER_SITES= http://wordpress.org/
|
|
|
|
MAINTAINER= ychsiao@ychsiao.org
|
|
COMMENT= A state-of-the-art semantic personal publishing platform
|
|
|
|
CONFLICTS_INSTALL= de-wordpress-3.* ja-wordpress-3.* ru-wordpress-3.*
|
|
|
|
NO_BUILD= yes
|
|
USE_PHP= curl gd mysql pcre tokenizer xml zip
|
|
WANT_PHP_WEB= yes
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
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:
|
|
cd ${WRKSRC}/ && \
|
|
(${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|'; \
|
|
${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|') > ${PLIST}
|
|
if [ ! -f ${WRKSRC}/wp-config-sample.php ]; then ${CP} \
|
|
${WRKSRC}/wp-config.php.sample ${WRKSRC}/wp-config.php; fi
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
do-install:
|
|
${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/
|
|
${CP} -R ${WRKSRC}/ ${WWWDIR}/
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
${MKDIR} ${DOCSDIR}/
|
|
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
|
|
.endif
|
|
|
|
post-install:
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
.include <bsd.port.mk>
|