diff options
Diffstat (limited to 'ftp/phpwebftp/Makefile')
-rw-r--r-- | ftp/phpwebftp/Makefile | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/ftp/phpwebftp/Makefile b/ftp/phpwebftp/Makefile index b66bf362fc9f..bb6b376cc14c 100644 --- a/ftp/phpwebftp/Makefile +++ b/ftp/phpwebftp/Makefile @@ -6,13 +6,11 @@ # PORTNAME= phpwebftp -PORTVERSION= 3.2 -PORTREVISION= 1 +PORTVERSION= 3.3 CATEGORIES= ftp MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= phpwebftp -DISTNAME= phpWebFTP32 -EXTRACT_SUFX= .zip +DISTNAME= ${PORTNAME}33 MAINTAINER= acardenas@bsd.org.pe COMMENT= A set of PHP-scripts to manage FTP over the web @@ -20,19 +18,19 @@ COMMENT= A set of PHP-scripts to manage FTP over the web USE_ZIP= yes NO_BUILD= yes USE_PHP= ftp -PHPWEBFTPDIR?= www/data/phpWebFTP +PHPWEBFTPDIR?= www/data-dist/${PORTNAME} PLIST_SUB+= PHPWEBFTPDIR=${PHPWEBFTPDIR} -WRKSRC= ${WRKDIR}/phpWebFTP +WRKSRC= ${WRKDIR}/${PORTNAME} do-configure: - @${MV} ${WRKSRC}/config.inc.php ${WRKSRC}/config.inc.php.bak - @${CAT} ${WRKSRC}/config.inc.php.bak | ${TR} -d '\015' > ${WRKSRC}/config.inc.php && \ - ${RM} ${WRKSRC}/config.inc.php.bak @${FIND} -d ${WRKSRC} -name CVS -type d -print0 | ${XARGS} -0 ${RM} -R do-install: - @${MKDIR} ${PREFIX}/${PHPWEBFTPDIR} - @${CP} -R ${WRKSRC}/* ${PREFIX}/${PHPWEBFTPDIR} + ${MKDIR} ${PREFIX}/${PHPWEBFTPDIR} + @cd ${WRKSRC} && \ + ${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${PHPWEBFTPDIR}/{}" \; && \ + ${FIND} -E * -type f -iregex ".*\.(php|html|css|gif|js)" \ + -exec ${INSTALL_DATA} "{}" "${PREFIX}/${PHPWEBFTPDIR}/{}" \; @${CHGRP} -R ${WWWGRP} ${PREFIX}/${PHPWEBFTPDIR} .include <bsd.port.mk> |