freebsd-ports/russian/wordpress/Makefile
Xin LI a107fbed69 Update to 3.5.1. While I'm there, also change russian to use gzipped tarball,
make the port to use OptionsNG and fix installation permissions.

PR:		ports/175525 [1], ports/175632 [2], ports/175679 [3]
Submitted by:	Takefu <takefu airport fm> [1],
		Mihail Timofeev <miha_hard mail ru> [2],
		delphij [3]
Approved by:	maintainer, 9267096@gmail.com [1][2], ychsiao [1][3]
Security:	559e00b7-6a4d-11e2-b6b0-10bf48230856
2013-01-30 01:50:42 +00:00

57 lines
1.5 KiB
Makefile

# Created by: Mihail Timofeev <9267096@gmail.com>
# $FreeBSD$
PORTNAME= wordpress
PORTVERSION= 3.5.1
CATEGORIES= russian www
MASTER_SITES= http://ru.wordpress.org/
DISTNAME= ${PORTNAME}-${PORTVERSION}-ru_RU
MAINTAINER= 9267096@gmail.com
COMMENT= A state-of-the-art semantic personal publishing platform
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license.txt
CONFLICTS_INSTALL= wordpress-3.* de-wordpress-3.* ja-wordpress-3.*
NO_BUILD= yes
USE_PHP= curl gd mysql pcre tokenizer xml zip
WANT_PHP_WEB= yes
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message pkg-install
SUB_LIST= CHGRP="${CHGRP}" CHOWN="${CHOWN}" CHMOD="${CHMOD}"\
FIND="${FIND}" WWWGRP="${WWWGRP}" WWWOWN="${WWWOWN}"
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:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>