blob: f96b5ea501279d6c93357d920e798704e09b13e9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Created by: Joe Horn <joehorn@gmail.com>
# $FreeBSD$
PORTNAME= wordpress
DISTVERSION= 5.0.1
DISTVERSIONSUFFIX= -zh_CN
CATEGORIES= chinese www
MASTER_SITES= http://cn.wordpress.org/
PKGNAMESUFFIX= -zh_CN
MAINTAINER= joneum@FreeBSD.org
COMMENT= State-of-the-art semantic personal publishing platform
LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/license.txt
WRKSRC= ${WRKDIR}/${PORTNAME}
USES= php:web
USE_PHP= curl gd mysqli pcre tokenizer xml zip
NO_ARCH= yes
NO_BUILD= yes
PLIST= ${WRKDIR}/pkg-plist
WWWDIR= ${PREFIX}/www/${PORTNAME}${PKGNAMESUFFIX}
PORTDOCS= readme.html
OPTIONS_DEFINE= DOCS
SUB_FILES= pkg-message
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>
|