diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2010-12-21 06:57:40 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2010-12-21 06:57:40 +0000 |
commit | 21c4ab65b6cbec0734004a3cf8a87d9c54330321 (patch) | |
tree | 649a37f6f3ebda4205856f1cfd814cedc6ecee68 /german/wordpress/Makefile | |
parent | 591eb46d8f907a776da5a56532efc568d0cc910a (diff) |
Notes
Diffstat (limited to 'german/wordpress/Makefile')
-rw-r--r-- | german/wordpress/Makefile | 39 |
1 files changed, 15 insertions, 24 deletions
diff --git a/german/wordpress/Makefile b/german/wordpress/Makefile index 9fe67c8f9470..bbc693df291d 100644 --- a/german/wordpress/Makefile +++ b/german/wordpress/Makefile @@ -7,26 +7,23 @@ # PORTNAME= wordpress -PORTVERSION= 3.0 +PORTVERSION= 3.0.3 CATEGORIES= german www MASTER_SITES= http://freebsd.unixfreunde.de/sources/ PKGNAMEPREFIX= de- -DISTNAME= wordpress_300-de +DISTNAME= wordpress_303-de MAINTAINER= miwi@FreeBSD.org COMMENT= A state-of-the-art semantic personal publishing platform +USE_ZIP= yes +NO_BUILD= yes +USE_PHP= gd mysql pcre tokenizer xml zip +WANT_PHP_WEB= yes WRKSRC= ${WRKDIR}/${PORTNAME} -USE_ZIP= YES -USE_PHP= mysql pcre xml gd tokenizer -NO_BUILD= YES -WANT_PHP_WEB= YES -WORDPRESS?= www/wordpress -PLIST_SUB+= WORDPRESS=${WORDPRESS} PLIST= ${WRKDIR}/pkg-plist - -PORTDOCS= license.txt readme.html liesmich.html +PORTDOCS= license.txt readme.html pre-everything:: @${ECHO_CMD} "If you want to upgrade, you must read upgrade document." @@ -34,24 +31,18 @@ pre-everything:: @sleep 1 pre-install: - cd ${WRKSRC} && ${FIND} -s * -type f | \ - ${SED} -e 's|^|${WORDPRESS}/|' > ${PLIST} \ - && ${FIND} -d * -type d | \ - ${SED} -e 's|^|@dirrm ${WORDPRESS}/|' >> ${PLIST} \ - && ${ECHO_CMD} @dirrm ${WORDPRESS} >> ${PLIST} - if [! -f ${WRKSRC}/wp-config-sample.php]; then ${CP} \ + 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: - @${MKDIR} ${PREFIX}/${WORDPRESS} - @${CHOWN} ${WWWOWN}:${WWWGRP} ${PREFIX}/${WORDPRESS} - @${CHMOD} 755 ${PREFIX}/${WORDPRESS} - ${CP} -R ${WRKSRC}/ ${PREFIX}/${WORDPRESS} + ${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${WWWDIR}/ + ${CP} -R ${WRKSRC}/ ${WWWDIR}/ .if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR}/${i} -.endfor + ${MKDIR} ${DOCSDIR}/ + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}/ .endif post-install: |