mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
- Update to 3.9
- While I'm here, allow packaging as user Changes: http://ru.wordpress.org/2014/04/3-9-smith/ PR: ports/188687 Submitted by: Mihail Timofeev <9267096@gmail.com> (maintainer)
This commit is contained in:
parent
12b0d522b2
commit
68bb3ea5f2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=352314
@ -2,7 +2,7 @@
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= wordpress
|
||||
PORTVERSION= 3.8.2
|
||||
PORTVERSION= 3.9
|
||||
CATEGORIES= russian www
|
||||
MASTER_SITES= http://ru.wordpress.org/
|
||||
DISTNAME= ${PORTNAME}-${PORTVERSION}-ru_RU
|
||||
@ -19,9 +19,7 @@ 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}"
|
||||
SUB_FILES= pkg-message
|
||||
PLIST= ${WRKDIR}/pkg-plist
|
||||
PORTDOCS= license.txt readme.html
|
||||
|
||||
@ -33,19 +31,20 @@ pre-everything::
|
||||
@sleep 1
|
||||
|
||||
pre-install:
|
||||
cd ${WRKSRC}/ && \
|
||||
(${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|'; \
|
||||
${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%WWWDIR%%|') > ${PLIST}
|
||||
${ECHO_CMD} '@owner www' > ${PLIST}
|
||||
${ECHO_CMD} '@group www' >> ${PLIST}
|
||||
cd ${WRKSRC}/ && ${FIND} -s * -type f | ${SED} -e 's|^|%%WWWDIR%%/|' >> ${PLIST}
|
||||
cd ${WRKSRC}/ && ${FIND} -d . -type d | ${SED} -e 's|^\.|@dirrm %%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:
|
||||
${INSTALL} -d -g ${WWWGRP} -m 755 -o ${WWWOWN} ${STAGEDIR}${WWWDIR}/
|
||||
${INSTALL} -d -m 755 ${STAGEDIR}${WWWDIR}/
|
||||
${CP} -R ${WRKSRC}/ ${STAGEDIR}${WWWDIR}/
|
||||
${FIND} ${STAGEDIR}${WWWDIR}/ -type d -exec ${CHMOD} g+w '{}' \;
|
||||
${MKDIR} ${STAGEDIR}${DOCSDIR}/
|
||||
cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
|
||||
|
||||
post-install:
|
||||
@${SETENV} PKG_PREFIX=${PREFIX} ${SH} ${PKGINSTALL} ${PKGNAME} POST-INSTALL
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (wordpress-3.8.2-ru_RU.tar.gz) = 6d0d68e02da0ac651a0298e35e74f4567af13cc0f38464a450d30eb70741fab7
|
||||
SIZE (wordpress-3.8.2-ru_RU.tar.gz) = 6346886
|
||||
SHA256 (wordpress-3.9-ru_RU.tar.gz) = eb43ae674b76e9cae75276091881d0fbe118b5d2d2ec7ff2d8770ecb8b598d12
|
||||
SIZE (wordpress-3.9-ru_RU.tar.gz) = 6262702
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/bin/sh
|
||||
case $2 in
|
||||
PRE-INSTALL)
|
||||
;;
|
||||
POST-INSTALL)
|
||||
%%CHOWN%% -R %%WWWOWN%% %%WWWDIR%%/wp-content
|
||||
%%FIND%% %%WWWDIR%% -type d -print | xargs %%CHGRP%% %%WWWGRP%%
|
||||
%%FIND%% %%WWWDIR%% -type d -print | xargs %%CHMOD%% g+w
|
||||
;;
|
||||
*)
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user