aboutsummaryrefslogtreecommitdiffstats
path: root/russian/wordpress/Makefile
blob: 112840176f1aafb3c9c28c8700bba119cd8435e2 (plain) (blame)
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
# Created by: Mihail Timofeev <9267096@gmail.com>
# $FreeBSD$

PORTNAME=   wordpress
PORTVERSION=    3.5
CATEGORIES= russian www
MASTER_SITES=   http://ru.wordpress.org/
DISTNAME=   ${PORTNAME}-${PORTVERSION}-ru_RU

MAINTAINER= 9267096@gmail.com
COMMENT=    State-of-the-art semantic personal publishing platform

LICENSE=    GPLv2

CONFLICTS_INSTALL=  wordpress-3.* de-wordpress-3.* ja-wordpress-3.*

NO_BUILD=   yes
USE_ZIP=    yes
USE_PHP=    curl gd mysql pcre tokenizer xml zip
WANT_PHP_WEB=   yes
WRKSRC=     ${WRKDIR}/${PORTNAME}

PLIST=      ${WRKDIR}/pkg-plist
PORTDOCS=   readme.html
SUB_FILES=  pkg-message

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

do-install:
    ${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/
    ${CP} -R ${WRKSRC}/ ${WWWDIR}/
.if !defined(NOPORTDOCS)
    ${MKDIR} ${DOCSDIR}/
    cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/
.endif

post-install:
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.mk>