aboutsummaryrefslogtreecommitdiff
path: root/ftp/net2ftp
diff options
context:
space:
mode:
Diffstat (limited to 'ftp/net2ftp')
-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
5 files changed, 125 insertions, 0 deletions
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