aboutsummaryrefslogtreecommitdiffstats
path: root/ftp
diff options
context:
space:
mode:
authormiwi <miwi@FreeBSD.org>2009-05-01 04:55:57 +0800
committermiwi <miwi@FreeBSD.org>2009-05-01 04:55:57 +0800
commit2d123832da0409450239d4907853a1e1a2a51508 (patch)
tree2f9eb538be60814dbba9e14867b574a6063e9e0f /ftp
parentf3bf5e3aa98e031b80ec3896cb9bfbed245de2e0 (diff)
downloadfreebsd-ports-gnome-2d123832da0409450239d4907853a1e1a2a51508.tar.gz
freebsd-ports-gnome-2d123832da0409450239d4907853a1e1a2a51508.tar.zst
freebsd-ports-gnome-2d123832da0409450239d4907853a1e1a2a51508.zip
net2ftp is a web-based FTP client written in PHP
User 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 - View code with syntax highlighting - Plain text editor - HTML editors - Code editor - Search for words or phrases - Calculate size WWW: http://www.net2ftp.com/ PR: ports/133766 Submitted by: Alexander Kriventsov
Diffstat (limited to 'ftp')
-rw-r--r--ftp/Makefile1
-rw-r--r--ftp/net2ftp/Makefile75
-rw-r--r--ftp/net2ftp/distinfo3
-rw-r--r--ftp/net2ftp/files/pkg-message.in18
-rw-r--r--ftp/net2ftp/pkg-descr20
-rw-r--r--ftp/net2ftp/pkg-plist-chunk9
6 files changed, 126 insertions, 0 deletions
diff --git a/ftp/Makefile b/ftp/Makefile
index aa88b08b42ab..b7c8dd77b3e5 100644
--- a/ftp/Makefile
+++ b/ftp/Makefile
@@ -62,6 +62,7 @@
SUBDIR += ncftp2
SUBDIR += ncftp3
SUBDIR += ncftpd
+ SUBDIR += net2ftp
SUBDIR += ocaml-ocurl
SUBDIR += oftpd
SUBDIR += omi
diff --git a/ftp/net2ftp/Makefile b/ftp/net2ftp/Makefile
new file mode 100644
index 000000000000..0f6affef115d
--- /dev/null
+++ b/ftp/net2ftp/Makefile
@@ -0,0 +1,75 @@
+# New ports collection makefile for: net2ftp
+# Date created: 14 Apr 2009
+# Whom: Alexander Kriventsov
+#
+# $FreeBSD$
+#
+
+PORTNAME= net2ftp
+PORTVERSION= 0.97
+CATEGORIES= ftp
+MASTER_SITES= http://www.net2ftp.com/download/
+DISTNAME= ${PORTNAME}_v${PORTVERSION}
+
+MAINTAINER= avk@vl.ru
+COMMENT= PHP scripts to work with ftp
+
+USE_ZIP= YES
+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} $$dst ; \
+ else \
+ ${INSTALL_DATA} $$src $$dst ; \
+ fi \
+ done
+
+install-conf: install-app
+ @cd ${WRKSRC}/files_to_upload ; \
+ ${INSTALL_DATA} settings.inc.php ${WWWDIR}/settings.inc.php.sample ; \
+ ${INSTALL_DATA} settings_authorizations.inc.php ${WWWDIR}/settings_authorizations.inc.php.sample ; \
+ ${INSTALL_DATA} settings_screens.inc.php ${WWWDIR}/settings_screens.inc.php.sample
+ @cd ${WWWDIR} ; \
+ for CFGFILE in ${CFGFILES} ; do \
+ if ${TEST} ! -f $${CFGFILE} ; then \
+ ${CP} -p $${CFGFILE}.sample $${CFGFILE} ; \
+ fi \
+ done
+
+post-install:
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/ftp/net2ftp/distinfo b/ftp/net2ftp/distinfo
new file mode 100644
index 000000000000..64dcec1c30b5
--- /dev/null
+++ b/ftp/net2ftp/distinfo
@@ -0,0 +1,3 @@
+MD5 (net2ftp_v0.97.zip) = b0e21b90d77567a3f4fd6284ce9585ac
+SHA256 (net2ftp_v0.97.zip) = ff27a9ec39ee6a5544746deaf38a3af811044b27da160c023e7f3b8a11e0c284
+SIZE (net2ftp_v0.97.zip) = 4167454
diff --git a/ftp/net2ftp/files/pkg-message.in b/ftp/net2ftp/files/pkg-message.in
new file mode 100644
index 000000000000..08fa47ec3942
--- /dev/null
+++ b/ftp/net2ftp/files/pkg-message.in
@@ -0,0 +1,18 @@
+%%PKGNAME%% has been installed into:
+
+ %%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>
diff --git a/ftp/net2ftp/pkg-descr b/ftp/net2ftp/pkg-descr
new file mode 100644
index 000000000000..d58bba83d99f
--- /dev/null
+++ b/ftp/net2ftp/pkg-descr
@@ -0,0 +1,20 @@
+net2ftp is a web-based FTP client written in PHP
+
+User 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
+ - View code with syntax highlighting
+ - Plain text editor
+ - HTML editors
+ - Code editor
+ - Search for words or phrases
+ - Calculate size
+
+WWW: http://www.net2ftp.com/
diff --git a/ftp/net2ftp/pkg-plist-chunk b/ftp/net2ftp/pkg-plist-chunk
new file mode 100644
index 000000000000..4be6ca78b7ef
--- /dev/null
+++ b/ftp/net2ftp/pkg-plist-chunk
@@ -0,0 +1,9 @@
+@unexec if cmp -s %D/%%WWWDIR%%/settings.inc.php.sample %D/%%WWWDIR%%/settings.inc.php ; then rm -f %D/%%WWWDIR%%/settings.inc.php ; fi
+%%WWWDIR%%/settings.inc.php.sample
+@exec [ ! -f %B/settings.inc.php ] && cp -p %B/%f %B/settings.inc.php || true
+@unexec if cmp -s %D/%%WWWDIR%%/settings_authorizations.inc.php.sample %D/%%WWWDIR%%/settings_authorizations.inc.php ; then rm -f %D/%%WWWDIR%%/settings_authorizations.inc.php ; fi
+%%WWWDIR%%/settings_authorizations.inc.php.sample
+@exec [ ! -f %B/settings_authorizations.inc.php ] && cp -p %B/%f %B/settings_authorizations.inc.php || true
+@unexec if cmp -s %D/%%WWWDIR%%/settings_screens.inc.php.sample %D/%%WWWDIR%%/settings_screens.inc.php ; then rm -f %D/%%WWWDIR%%/settings_screens.inc.php ; fi
+%%WWWDIR%%/settings_screens.inc.php.sample
+@exec [ ! -f %B/settings_screens.inc.php ] && cp -p %B/%f %B/settings_screens.inc.php || true