1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/www/php-plurk-api/Makefile
Martin Wilke 3fb88a0584 - Stage support
PR:		190315
2014-06-05 05:22:40 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Bo-Yi Wu <appleboy.tw@gmail.com>
# $FreeBSD$
PORTNAME= php-plurk-api
PORTVERSION= 1.6.4
CATEGORIES= www
MASTER_SITES= GOOGLE_CODE
MAINTAINER= appleboy.tw@gmail.com
COMMENT= A Plurk API Implementation with PHP
LICENSE= BSD
NO_BUILD= yes
USE_PHP= json curl
USES= zip
WRKSRC= ${WRKDIR}/${PORTVERSION}
SUB_LIST= PKGNAME=${PKGNAME}
SUB_FILES= pkg-message
do-install:
@cd ${WRKSRC} && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR}
@${CHOWN} -R ${WWWOWN}:${WWWGRP} ${STAGEDIR}${WWWDIR}
@${ECHO_CMD} '@exec ${CHOWN} -R ${WWWOWN}:${WWWGRP} ${WWWDIR}' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${WWWDIR} -type f -print0 | ${XARGS} -0 ${CHMOD} 644
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type f -print0 | \
${XARGS} -0 ${CHMOD} 644' >> ${TMPPLIST}
@${FIND} ${STAGEDIR}${WWWDIR} -type d -print0 | ${XARGS} -0 ${CHMOD} 755
@${ECHO_CMD} '@exec ${FIND} ${WWWDIR} -type d -print0 | \
${XARGS} -0 ${CHMOD} 755' >> ${TMPPLIST}
@${CHMOD} 755 ${STAGEDIR}${WWWDIR}/example.php
@${ECHO_CMD} '@exec ${CHMOD} 755 ${WWWDIR}/example.php' >> ${TMPPLIST}
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.mk>