ftp/net2ftp: update 0.98 -> 1.0

- Set MAINTAINER to chris@bsdjunk.com
- Use static pkg-plist instead of dynamic

PR:		198098
Submitted by:	Ben Woods <woodsb02@gmail.com>
This commit is contained in:
Bartek Rutkowski 2015-03-04 15:01:24 +00:00
parent bb0f3c2184
commit 99fae6ce68
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=380440
6 changed files with 1472 additions and 77 deletions

View File

@ -2,14 +2,13 @@
# $FreeBSD$
PORTNAME= net2ftp
PORTVERSION= 0.98
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= ftp
MASTER_SITES= http://www.net2ftp.com/download/
DISTNAME= ${PORTNAME}_v${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= PHP scripts to work with ftp
MAINTAINER= chris@bsdjunk.com
COMMENT= Web-based FTP client written in PHP
LICENSE= GPLv2
@ -18,48 +17,13 @@ NO_BUILD= YES
.if !defined(WITHOUT_PHP_DEPENDS)
USE_PHP= ftp mysql pcre session zlib
.endif
#USE_DOS2UNIX= YES
PLIST= ${WRKDIR}/plist
CFGFILES= settings.inc.php settings_authorizations.inc.php settings_screens.inc.php
SUB_LIST+= PKGNAME=${PKGNAME}
SUB_FILES+= pkg-message
# When creating a package, empty directories will not be generated
# from the pkg tarball. Therefore make sure no directories are empty.
post-patch:
@cd ${WRKSRC}/files_to_upload ; \
for emptydir in $$( ${FIND} . -type d -empty -print ) ; do \
${TOUCH} $${emptydir}/.keep-me ; \
done
@cd ${WRKSRC}/files_to_upload ; \
${FIND} . ! -type d ! -name "settings*.inc.php" | ${SORT} | \
${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \
${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \
${FIND} . -type d | ${SORT} -r | ${SED} \
-e "s,^\.$$,@dirrmtry %%WWWDIR%%," \
-e "s,^\.,@dirrm %%WWWDIR%%," >>${PLIST}
do-install: install-app install-conf
install-app:
@cd ${WRKSRC}/files_to_upload ; \
for src in $$( ${FIND} . ! -name "settings*.inc.php" ) ; do \
dst=${WWWDIR}$${src#.} ; \
if ${TEST} -d $$src ; then \
${MKDIR} ${STAGEDIR}$$dst ; \
else \
${INSTALL_DATA} $$src ${STAGEDIR}$$dst ; \
fi \
done
install-conf: install-app
@cd ${WRKSRC}/files_to_upload ; \
${INSTALL_DATA} settings.inc.php ${STAGEDIR}${WWWDIR}/settings.inc.php.sample ; \
${INSTALL_DATA} settings_authorizations.inc.php ${STAGEDIR}${WWWDIR}/settings_authorizations.inc.php.sample ; \
${INSTALL_DATA} settings_screens.inc.php ${STAGEDIR}${WWWDIR}/settings_screens.inc.php.sample
do-install:
@(for samplefile in $$( ${FIND} ${WRKSRC}/files_to_upload -name "settings*.inc.php" ) ; do \
${MV} $$samplefile $$samplefile.sample ; \
done)
@(cd ${WRKSRC}/files_to_upload && ${COPYTREE_SHARE} . ${STAGEDIR}${WWWDIR})
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (net2ftp_v0.98.zip) = 3c2e106f8b1d234578ca2af3ee03b822990586c8fabf40e6ba47a24ca63c56be
SIZE (net2ftp_v0.98.zip) = 4499018
SHA256 (net2ftp_v1.0.zip) = c0071ccec8fd0f1309904f5cacc7d5173b5a3b57bede70ea078d892c676c9c31
SIZE (net2ftp_v1.0.zip) = 4460502

View File

@ -1,18 +1,13 @@
%%PKGNAME%% has been installed into:
%%WWWDIR%%
To make net2ftp available through your Apache web server,
add something similar to the following to httpd.conf:
Alias /net2ftp/ "%%WWWDIR%%/"
To make net2ftp available through your web site, I suggest
that you add something like the following to httpd.conf:
Alias /net2ftp/ "%%WWWDIR%%/"
<Directory "%%WWWDIR%%/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>
<Directory "%%WWWDIR%%/">
Options none
AllowOverride Limit
Order Deny,Allow
Deny from all
Allow from 127.0.0.1 .example.com
</Directory>

View File

@ -1,20 +1,15 @@
net2ftp is a web-based FTP client written in PHP
User features
Features
- Navigate the FTP server
- Upload files
- Download files
- Zip files
- Unzip files
- Install software
- Copy, move and delete
- Copy or move to a 2nd FTP server
- Rename and chmod
- Upload and download files
- Edit files (WYSIWYG and syntax highlighting)
- View code with syntax highlighting
- Plain text editor
- HTML editors
- Code editor
- Copy, move, delete (also to 2nd FTP server)
- Rename and chmod (also recursive)
- Zip and unzip files
- Install software
- Search for words or phrases
- Calculate size
- Calculate the size of directories and files
WWW: http://www.net2ftp.com/

1444
ftp/net2ftp/pkg-plist Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +0,0 @@
@sample %%WWWDIR%%/settings.inc.php.sample
@sample %%WWWDIR%%/settings_authorizations.inc.php.sample
@sample %%WWWDIR%%/settings_screens.inc.php.sample