diff options
author | sat <sat@FreeBSD.org> | 2006-05-31 13:02:33 +0000 |
---|---|---|
committer | sat <sat@FreeBSD.org> | 2006-05-31 13:02:33 +0000 |
commit | 33f406b98571f003df5d7996a05056190405d971 (patch) | |
tree | 701f058c3ecdc58148d9c70e3d5580eca43df852 /ftp/phpwebftp/Makefile | |
parent | c5dea76517c0af2dd3a36ddc2b82b1a65ae3cf4d (diff) | |
download | FreeBSD-ports-33f406b98571f003df5d7996a05056190405d971.zip FreeBSD-ports-33f406b98571f003df5d7996a05056190405d971.tar.gz |
- Change installation directory
- Various minor fixes
PR: ports/97145
Submitted by: Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe>
Approved by: krion (mentor)
Diffstat (limited to 'ftp/phpwebftp/Makefile')
-rw-r--r-- | ftp/phpwebftp/Makefile | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/ftp/phpwebftp/Makefile b/ftp/phpwebftp/Makefile index bb6b376..2328254 100644 --- a/ftp/phpwebftp/Makefile +++ b/ftp/phpwebftp/Makefile @@ -7,10 +7,11 @@ PORTNAME= phpwebftp PORTVERSION= 3.3 +PORTREVISION= 1 CATEGORIES= ftp MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} -MASTER_SITE_SUBDIR= phpwebftp -DISTNAME= ${PORTNAME}33 +MASTER_SITE_SUBDIR= ${PORTNAME} +DISTNAME= ${PORTNAME}${PORTVERSION:S/.//} MAINTAINER= acardenas@bsd.org.pe COMMENT= A set of PHP-scripts to manage FTP over the web @@ -18,19 +19,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-dist/${PORTNAME} -PLIST_SUB+= PHPWEBFTPDIR=${PHPWEBFTPDIR} -WRKSRC= ${WRKDIR}/${PORTNAME} +PHPWEBFTPDIR?= www/${PORTNAME} +PLIST_SUB+= PHPWEBFTPDIR=${PHPWEBFTPDIR} WWWOWN=${WWWOWN} WWWGRP=${WWWGRP} +WRKSRC= ${WRKDIR}/${PORTNAME} +INSTALL_DIRE= ${INSTALL} -d -m 0755 -o ${WWWOWN} -g ${WWWGRP} +INSTALL_FILE= ${INSTALL} -m 0644 -o ${WWWOWN} -g ${WWWGRP} -do-configure: - @${FIND} -d ${WRKSRC} -name CVS -type d -print0 | ${XARGS} -0 ${RM} -R +post-extract: + @${FIND} -d ${WRKSRC} -name CVS -type d -exec ${RM} -R "{}" \; do-install: - ${MKDIR} ${PREFIX}/${PHPWEBFTPDIR} + ${INSTALL_DIRE} ${PREFIX}/${PHPWEBFTPDIR} @cd ${WRKSRC} && \ - ${FIND} * -type d -exec ${MKDIR} "${PREFIX}/${PHPWEBFTPDIR}/{}" \; && \ + ${FIND} * -type d -exec ${INSTALL_DIRE} "${PREFIX}/${PHPWEBFTPDIR}/{}" \; && \ ${FIND} -E * -type f -iregex ".*\.(php|html|css|gif|js)" \ - -exec ${INSTALL_DATA} "{}" "${PREFIX}/${PHPWEBFTPDIR}/{}" \; - @${CHGRP} -R ${WWWGRP} ${PREFIX}/${PHPWEBFTPDIR} - + -exec ${INSTALL_FILE} "{}" "${PREFIX}/${PHPWEBFTPDIR}/{}" \; .include <bsd.port.mk> |