freebsd-ports/german/wordpress/Makefile
Sunpoet Po-Chuan Hsieh 423baf2335 - Update to 3.4.1
- Remove PKGNAMESUFFIX: language identifier is already in PKGNAMEPREFIX
- Fix CONFLICTS_INSTALL: chinese/wordpres-* do not install to PREFIX/www/wordpress/

Changes:	http://blog.wpde.org/2012/06/28/wordpress-3-4-1-de-edition-und-upgradepaket.html
		http://blog.wpde.org/2012/06/28/wordpress-3-4-1-veroeffentlicht.html
		http://blog.wpde.org/2012/06/13/wordpress-3-4-green-ist-veroeffentlicht.html
PR:		ports/169116
Submitted by:	sunpoet (myself)
Approved by:	maintainer (timeout, 19 days)
2012-07-05 09:37:43 +00:00

59 lines
1.6 KiB
Makefile

# New ports collection makefile for: wordpress
# Date created: 2006-06-03
# Whom: Martin Wilke <miwi@FreeBSD.org>
# (based on wordpress by Elvis Chiang)
#
# $FreeBSD$
#
PORTNAME= wordpress
PORTVERSION= 3.4.1
CATEGORIES= german www
MASTER_SITES= http://de.wordpress.org/
DISTNAME= ${PORTNAME}-${PORTVERSION}-de_DE
MAINTAINER= miwi@FreeBSD.org
COMMENT= A state-of-the-art semantic personal publishing platform
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/license.txt
CONFLICTS_INSTALL= wordpress-3.* ja-wordpress-3.* ru-wordpress-3.*
NO_BUILD= yes
USE_ZIP= 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
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:
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>