# This is a shell archive. Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file". Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
# net2ftp/
# net2ftp/pkg-plist-chunk
# net2ftp/files
# net2ftp/files/pkg-message.in
# net2ftp/distinfo
# net2ftp/Makefile
# net2ftp/pkg-descr
#
echo c - net2ftp/
mkdir -p net2ftp/ > /dev/null 2>&1
echo x - net2ftp/pkg-plist-chunk
sed 's/^X//' >net2ftp/pkg-plist-chunk << 'END-of-net2ftp/pkg-plist-chunk'
X@unexec if cmp -s %D/%%WWWDIR%%/settings.inc.php.sample %D/%%WWWDIR%%/settings.inc.php ; then rm -f %D/%%WWWDIR%%/settings.inc.php ; fi
X%%WWWDIR%%/settings.inc.php.sample
X@exec [ ! -f %B/settings.inc.php ] && cp -p %B/%f %B/settings.inc.php || true
X@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
X%%WWWDIR%%/settings_authorizations.inc.php.sample
X@exec [ ! -f %B/settings_authorizations.inc.php ] && cp -p %B/%f %B/settings_authorizations.inc.php || true
X@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
X%%WWWDIR%%/settings_screens.inc.php.sample
X@exec [ ! -f %B/settings_screens.inc.php ] && cp -p %B/%f %B/settings_screens.inc.php || true
END-of-net2ftp/pkg-plist-chunk
echo c - net2ftp/files
mkdir -p net2ftp/files > /dev/null 2>&1
echo x - net2ftp/files/pkg-message.in
sed 's/^X//' >net2ftp/files/pkg-message.in << 'END-of-net2ftp/files/pkg-message.in'
X%%PKGNAME%% has been installed into:
X
X %%WWWDIR%%
X
X
XTo make net2ftp available through your web site, I suggest
Xthat you add something like the following to httpd.conf:
X
X Alias /net2ftp/ "%%WWWDIR%%/"
X
X
X Options none
X AllowOverride Limit
X
X Order Deny,Allow
X Deny from all
X Allow from 127.0.0.1 .example.com
X
END-of-net2ftp/files/pkg-message.in
echo x - net2ftp/distinfo
sed 's/^X//' >net2ftp/distinfo << 'END-of-net2ftp/distinfo'
XMD5 (net2ftp_v0.97.zip) = b0e21b90d77567a3f4fd6284ce9585ac
XSHA256 (net2ftp_v0.97.zip) = ff27a9ec39ee6a5544746deaf38a3af811044b27da160c023e7f3b8a11e0c284
XSIZE (net2ftp_v0.97.zip) = 4167454
END-of-net2ftp/distinfo
echo x - net2ftp/Makefile
sed 's/^X//' >net2ftp/Makefile << 'END-of-net2ftp/Makefile'
X# New ports collection makefile for: net2ftp
X# Date created: 14 Apr 2009
X# Whom: Alexander Kriventsov
X#
X# $FreeBSD$
X#
X
XPORTNAME= net2ftp
XPORTVERSION= 0.97
XCATEGORIES= ftp
XMASTER_SITES= http://www.net2ftp.com/download/
XDISTNAME= ${PORTNAME}_v${PORTVERSION}
X
XMAINTAINER= avk@vl.ru
XCOMMENT= PHP scripts to work with ftp
X
XUSE_ZIP= YES
XNO_BUILD= YES
X.if !defined(WITHOUT_PHP_DEPENDS)
XUSE_PHP= ftp mysql pcre session zlib
X.endif
X#USE_DOS2UNIX= YES
X
XPLIST= ${WRKDIR}/plist
X
XCFGFILES= settings.inc.php settings_authorizations.inc.php settings_screens.inc.php
X
XSUB_LIST+= PKGNAME=${PKGNAME}
XSUB_FILES+= pkg-message
X
X# When creating a package, empty directories will not be generated
X# from the pkg tarball. Therefore make sure no directories are empty.
X
Xpost-patch:
X @cd ${WRKSRC}/files_to_upload ; \
X for emptydir in $$( ${FIND} . -type d -empty -print ) ; do \
X ${TOUCH} $${emptydir}/.keep-me ; \
X done
X @cd ${WRKSRC}/files_to_upload ; \
X ${FIND} . ! -type d ! -name "settings*.inc.php" | ${SORT} | \
X ${SED} -e "s,^\.,%%WWWDIR%%," >${PLIST} ; \
X ${CAT} ${PKGDIR}/pkg-plist-chunk >>${PLIST} ; \
X ${FIND} . -type d | ${SORT} -r | ${SED} \
X -e "s,^\.$$,@dirrmtry %%WWWDIR%%," \
X -e "s,^\.,@dirrm %%WWWDIR%%," >>${PLIST}
X
Xdo-install: install-app install-conf
X
Xinstall-app:
X @cd ${WRKSRC}/files_to_upload ; \
X for src in $$( ${FIND} . ! -name "settings*.inc.php" ) ; do \
X dst=${WWWDIR}$${src#.} ; \
X if ${TEST} -d $$src ; then \
X ${MKDIR} $$dst ; \
X else \
X ${INSTALL_DATA} $$src $$dst ; \
X fi \
X done
X
Xinstall-conf: install-app
X @cd ${WRKSRC}/files_to_upload ; \
X ${INSTALL_DATA} settings.inc.php ${WWWDIR}/settings.inc.php.sample ; \
X ${INSTALL_DATA} settings_authorizations.inc.php ${WWWDIR}/settings_authorizations.inc.php.sample ; \
X ${INSTALL_DATA} settings_screens.inc.php ${WWWDIR}/settings_screens.inc.php.sample
X @cd ${WWWDIR} ; \
X for CFGFILE in ${CFGFILES} ; do \
X if ${TEST} ! -f $${CFGFILE} ; then \
X ${CP} -p $${CFGFILE}.sample $${CFGFILE} ; \
X fi \
X done
X
Xpost-install:
X @${CAT} ${PKGMESSAGE}
X
X.include
END-of-net2ftp/Makefile
echo x - net2ftp/pkg-descr
sed 's/^X//' >net2ftp/pkg-descr << 'END-of-net2ftp/pkg-descr'
Xnet2ftp is a web-based FTP client written in PHP
X
XUser features
X - Navigate the FTP server
X - Upload files
X - Download files
X - Zip files
X - Unzip files
X - Install software
X - Copy, move and delete
X - Copy or move to a 2nd FTP server
X - Rename and chmod
X - View code with syntax highlighting
X - Plain text editor
X - HTML editors
X - Code editor
X - Search for words or phrases
X - Calculate size
X
XWWW: http://www.net2ftp.com/
END-of-net2ftp/pkg-descr
exit