1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

New port: ftp4all

FTP4ALL is a free, open source FTP server implementation for the UNIX platform.
FTP4ALL was designed to require no superuser privileges.

PR:		50447
Submitted by:	Alex Semenyaka
This commit is contained in:
Max Khon 2003-04-19 14:14:33 +00:00
parent a2912b935c
commit 9644a9e44b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=79288
7 changed files with 349 additions and 0 deletions

View File

@ -16,6 +16,7 @@
SUBDIR += fmirror
SUBDIR += frox
SUBDIR += ftp-tls
SUBDIR += ftp4all
SUBDIR += ftpcopy
SUBDIR += ftpcube
SUBDIR += ftpfind

77
ftp/ftp4all/Makefile Normal file
View File

@ -0,0 +1,77 @@
# New ports collection makefile for: ftp4all
# Date created: Apr 19 2003
# Whom: Alex Semenyaka <alex@rinet.ru>
#
# $FreeBSD$
#
PORTNAME= ftp4all
PORTVERSION= 3.012
CATEGORIES= ftp
MASTER_SITES= http://www.ftp4all.de/v3/archives/ \
http://www.ftp4all.de/v3/
DISTNAME= ftpd-${PORTVERSION}
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} f4awebsite.tar.gz
MAINTAINER= alexs@snark.rinet.ru
COMMENT= Advanced ftp-daemon
HAS_CONFIGURE= yes
.if defined(BATCH) || defined(PACKAGE_BUILDING)
CONFIGURE_ENV= WANT_DES=y
.else
pre-everything::
@${ECHO_MSG}
@${ECHO_MSG}
@${ECHO_MSG} "-------------------------------------------------"
@${ECHO_MSG}
@${ECHO_MSG} "You can automate configuration process by setting"
@${ECHO_MSG} "environment variable WANT_DES to 'y' or 'n'"
@${ECHO_MSG}
@${ECHO_MSG} "-------------------------------------------------"
@${ECHO_MSG}
.endif
DISTCFGPATH= ${WRKSRC}/standard/etc
CFGPATH= ${PREFIX}/etc/ftp4all
DISTMSGPATH= ${WRKSRC}/standard/msg
MSGPATH= ${PREFIX}/etc/ftp4all/msg
do-install:
-@${MKDIR} /var/log/ftp4all
-@${MKDIR} ${PREFIX}
-@${MKDIR} ${PREFIX}/sbin
${INSTALL_PROGRAM} ${WRKSRC}/bin/ftpd ${PREFIX}/sbin/f4a.ftpd
${INSTALL_PROGRAM} ${WRKSRC}/bin/ftps ${PREFIX}/sbin/
${INSTALL_PROGRAM} ${WRKSRC}/bin/ftpa ${PREFIX}/sbin/
-@${MKDIR} ${CFGPATH}
${INSTALL_DATA} ${DISTCFGPATH}/cdpath.cfg ${CFGPATH}/cdpath.cfg.sample
${INSTALL_DATA} ${DISTCFGPATH}/check.cfg ${CFGPATH}/check.cfg.sample
${INSTALL_DATA} ${DISTCFGPATH}/checkdupe.cfg ${CFGPATH}/checkdupe.cfg.sample
${INSTALL_DATA} ${DISTCFGPATH}/dirshortcut.cfg ${CFGPATH}/dirshortcut.cfg.sample
${INSTALL_DATA} ${DISTCFGPATH}/ftpd.reg ${CFGPATH}/ftpd.reg.sample
${INSTALL_DATA} ${DISTCFGPATH}/limits.cfg ${CFGPATH}/limits.cfg.sample
-@${MKDIR} ${MSGPATH}
-@${MKDIR} ${MSGPATH}/usr
-@${MKDIR} ${MSGPATH}/grp
${INSTALL_DATA} ${DISTMSGPATH}/goodbye ${MSGPATH}/goodbye.sample
${INSTALL_DATA} ${DISTMSGPATH}/startup ${MSGPATH}/startup.sample
${INSTALL_DATA} ${DISTMSGPATH}/welcome ${MSGPATH}/welcome.sample
${INSTALL_DATA} ${DISTMSGPATH}/who_body ${MSGPATH}/who_body.sample
${INSTALL_DATA} ${DISTMSGPATH}/who_tail ${MSGPATH}/who_tail.sample
${INSTALL_DATA} ${DISTMSGPATH}/who_top ${MSGPATH}/who_top.sample
-@${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/lib/COPYRIGHT ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/lib/README ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/lib/RELEASE-TEXT ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/lib/VERSION ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/CHANGES ${DOCSDIR}
${INSTALL_DATA} ${WRKDIR}/ftp4all.gif ${DOCSDIR}
${CP} -pPRf ${WRKDIR}/f4adp ${DOCSDIR}
${CP} -pPRf ${WRKDIR}/frames ${DOCSDIR}
${CP} -pPRf ${WRKDIR}/noframes ${DOCSDIR}
-@${MKDIR} ${PREFIX}/etc/rc.d
${INSTALL_SCRIPT} ${FILESDIR}/ftp4all.sh ${PREFIX}/etc/rc.d/ftp4all.sh.sample
.include <bsd.port.mk>

2
ftp/ftp4all/distinfo Normal file
View File

@ -0,0 +1,2 @@
MD5 (ftpd-3.012.tar.gz) = a1bdeb4080d3900099e07aebd5fdd460
MD5 (f4awebsite.tar.gz) = 34b5c4712b8ed23af5beea1074f71fd7

View File

@ -0,0 +1,21 @@
#!/bin/sh
if ! test -x /usr/local/sbin/f4a.ftpd
then
exit 0
fi
case $1 in
start)
echo -n ' ftp4all.ftpd'
/usr/local/sbin/f4a.ftpd
;;
stop)
echo -n ' ftp4all.ftpd'
kill `head -1 /var/run/ftpd.run`
;;
*)
echo "Usage: $0: [ start | stop ]" 2>&1
exit 65
;;
esac

View File

@ -0,0 +1,94 @@
diff -u -r ../ftpd-3.012.old/cfg/configure ./cfg/configure
--- ../ftpd-3.012.old/cfg/configure Sun Feb 6 18:34:02 2000
+++ ./cfg/configure Sun Mar 30 10:47:46 2003
@@ -226,20 +226,27 @@
cd ..
-echo $ac_n "| want DES encryption (y/n) ? $ac_c"
-read DES
-if [ $DES = y ]; then
+if [ X$WANT_DES = X ]; then
+ echo $ac_n "| want DES encryption (y/n) ? $ac_c"
+ read DES
+ if [ $DES = y ]; then
+ DEF=$DEF" -DDES_ENCRYPTION"
+ DES="-I../../lib"
+ LIB=${LIB}" -L../../lib -ldes "
+ else
+ DES=""
+ fi
+elif [ $WANT_DES = y ]; then
DEF=$DEF" -DDES_ENCRYPTION"
DES="-I../../lib"
LIB=${LIB}" -L../../lib -ldes "
+ echo "| will use DES"
else
+ echo "| will NOT use DES"
DES=""
fi
-
-
-
echo $ac_n "| creating Makefile ... $ac_c"
cat << "EOF" >Makefile
@@ -618,7 +625,7 @@
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
-#define MAXFILENAMELENGTH 32
+#define MAXFILENAMELENGTH FILENAME_MAX
#ifndef SA_RESTART
#define SA_RESTART 0
diff -u -r ../ftpd-3.012.old/src/common/commondef.h ./src/common/commondef.h
--- ../ftpd-3.012.old/src/common/commondef.h Sun Mar 5 19:40:15 2000
+++ ./src/common/commondef.h Sun Mar 30 11:02:03 2003
@@ -100,30 +100,30 @@
#define LG_CHMOD 0x0400
#define LG_SITE 0x0800
-#define DFL_REGFILE "etc/ftpd.reg"
-#define DFL_GROUPFILE "etc/groups"
-#define DFL_USERFILE "etc/users"
-#define DFL_LIMITFILE "etc/limits.cfg"
-#define DFL_LOGFILE "log/ftpd.log"
-#define DFL_ERRLOGFILE "log/ftpd.err"
-#define DFL_FTPSERRLOGFILE "log/ftps.err"
-#define DFL_MSGDIR "msg/"
-#define DFL_MSGGDIR "msg/grp/"
-#define DFL_MSGUDIR "msg/usr/"
+#define DFL_REGFILE "etc/ftp4all/ftpd.reg"
+#define DFL_GROUPFILE "etc/ftp4all/groups"
+#define DFL_USERFILE "etc/ftp4all/users"
+#define DFL_LIMITFILE "etc/ftp4all/limits.cfg"
+#define DFL_LOGFILE "/var/log/ftp4all/ftpd.log"
+#define DFL_ERRLOGFILE "/var/log/ftp4all/ftpd.err"
+#define DFL_FTPSERRLOGFILE "/var/log/ftp4all/ftps.err"
+#define DFL_MSGDIR "etc/ftp4all/msg/"
+#define DFL_MSGGDIR "etc/ftp4all/msg/grp/"
+#define DFL_MSGUDIR "etc/ftp4all/msg/usr/"
#define DFL_BINDIR "bin/"
#define DFL_BINGDIR "bin/grp/"
#define DFL_BINUDIR "bin/usr/"
#define DFL_SBINDIR "sbin/"
#define DFL_SERVERPRG "sbin/ftps"
#define DFL_ADMINPRG "sbin/ftpa"
-#define DFL_STATDIR "log/"
+#define DFL_STATDIR "/var/run/"
#define DFL_CFGDIR "etc/"
-#define DFL_PIDFILE "log/ftpd.pid"
-#define DFL_STATFILE "log/ftpd.stats"
+#define DFL_PIDFILE "/var/run/ftpd.pid"
+#define DFL_STATFILE "/var/run/ftpd.stats"
/* recent addition */
-#define DFL_GSTATFILE "etc/ftpd.gstats"
+#define DFL_GSTATFILE "/var/run/ftpd.gstats"
/******************/

13
ftp/ftp4all/pkg-descr Normal file
View File

@ -0,0 +1,13 @@
FTP4ALL is a free, open source FTP server implementation for the UNIX platform.
FTP4ALL was designed to require no superuser privileges. The advantages are
that FTP4ALL cannot be exploited to gain root access on a machine. And second,
any user on a UNIX box can run this server. It does not use the default user
database (/etc/passwd or NIS or whatever), or the UNIX file and directory
permissions. Instead, FTP4ALL sets up its own user and group database and
file and directory permission system.
Those and other features like user upload and download ratios, IP checks,
bandwidth limit, transfer statistics make FTP4ALL a good choice for running
a private, specialised FTP site.
WWW: http://www.ftp4all.de/

141
ftp/ftp4all/pkg-plist Normal file
View File

@ -0,0 +1,141 @@
sbin/f4a.ftpd
sbin/ftps
sbin/ftpa
etc/rc.d/ftp4all.sh.sample
etc/ftp4all/cdpath.cfg.sample
etc/ftp4all/check.cfg.sample
etc/ftp4all/checkdupe.cfg.sample
etc/ftp4all/dirshortcut.cfg.sample
etc/ftp4all/ftpd.reg.sample
etc/ftp4all/limits.cfg.sample
etc/ftp4all/msg/goodbye.sample
etc/ftp4all/msg/startup.sample
etc/ftp4all/msg/welcome.sample
etc/ftp4all/msg/who_body.sample
etc/ftp4all/msg/who_tail.sample
etc/ftp4all/msg/who_top.sample
share/doc/ftp4all/COPYRIGHT
share/doc/ftp4all/README
share/doc/ftp4all/RELEASE-TEXT
share/doc/ftp4all/VERSION
share/doc/ftp4all/CHANGES
share/doc/ftp4all/ftp4all.gif
share/doc/ftp4all/f4adp/wa_del.txt
share/doc/ftp4all/f4adp/aen.txt
share/doc/ftp4all/f4adp/cfg_avl.txt
share/doc/ftp4all/f4adp/cfg_get.txt
share/doc/ftp4all/f4adp/cfg_rm.txt
share/doc/ftp4all/f4adp/cfg_set.txt
share/doc/ftp4all/f4adp/cnt.txt
share/doc/ftp4all/f4adp/col.txt
share/doc/ftp4all/f4adp/dgf.txt
share/doc/ftp4all/f4adp/duf.txt
share/doc/ftp4all/f4adp/grp.txt
share/doc/ftp4all/f4adp/grp_add.txt
share/doc/ftp4all/f4adp/grp_chg.txt
share/doc/ftp4all/f4adp/grp_get.txt
share/doc/ftp4all/f4adp/grp_ls.txt
share/doc/ftp4all/f4adp/grp_lsr.txt
share/doc/ftp4all/f4adp/grp_mdn.txt
share/doc/ftp4all/f4adp/grp_mup.txt
share/doc/ftp4all/f4adp/grp_rm.txt
share/doc/ftp4all/f4adp/grp_set.txt
share/doc/ftp4all/f4adp/msg_avl.txt
share/doc/ftp4all/f4adp/msg_dfl.txt
share/doc/ftp4all/f4adp/msg_get.txt
share/doc/ftp4all/f4adp/msg_rm.txt
share/doc/ftp4all/f4adp/msg_set.txt
share/doc/ftp4all/f4adp/ulp.txt
share/doc/ftp4all/f4adp/prt_get.txt
share/doc/ftp4all/f4adp/prt_set.txt
share/doc/ftp4all/f4adp/srv_gst.txt
share/doc/ftp4all/f4adp/srv_sst.txt
share/doc/ftp4all/f4adp/f4adp_frame.html
share/doc/ftp4all/f4adp/f4adp_index.html
share/doc/ftp4all/f4adp/f4adp_overview.html
share/doc/ftp4all/f4adp/dup.txt
share/doc/ftp4all/f4adp/fcm.txt
share/doc/ftp4all/f4adp/fco.txt
share/doc/ftp4all/f4adp/fdn.txt
share/doc/ftp4all/f4adp/fup.txt
share/doc/ftp4all/f4adp/frm.txt
share/doc/ftp4all/f4adp/frn.txt
share/doc/ftp4all/f4adp/lim_gbw.txt
share/doc/ftp4all/f4adp/lim_rbw.txt
share/doc/ftp4all/f4adp/log_act.txt
share/doc/ftp4all/f4adp/log_beg.txt
share/doc/ftp4all/f4adp/log_end.txt
share/doc/ftp4all/f4adp/_template.txt
share/doc/ftp4all/f4adp/quit.txt
share/doc/ftp4all/f4adp/reg_get.txt
share/doc/ftp4all/f4adp/reg_key.txt
share/doc/ftp4all/f4adp/reg_ls.txt
share/doc/ftp4all/f4adp/uan.txt
share/doc/ftp4all/f4adp/reg_rm.txt
share/doc/ftp4all/f4adp/reg_set.txt
share/doc/ftp4all/f4adp/usr_add.txt
share/doc/ftp4all/f4adp/usr_adq.txt
share/doc/ftp4all/f4adp/usr_chg.txt
share/doc/ftp4all/f4adp/usr_get.txt
share/doc/ftp4all/f4adp/usr_set.txt
share/doc/ftp4all/f4adp/usr_kic.txt
share/doc/ftp4all/f4adp/usr_kil.txt
share/doc/ftp4all/f4adp/usr_ls.txt
share/doc/ftp4all/f4adp/usr_lsr.txt
share/doc/ftp4all/f4adp/usr_pwd.txt
share/doc/ftp4all/f4adp/usr_rm.txt
share/doc/ftp4all/f4adp/usr_rst.txt
share/doc/ftp4all/f4adp/var_exp.txt
share/doc/ftp4all/f4adp/ver_f4p.txt
share/doc/ftp4all/f4adp/wa_add.txt
share/doc/ftp4all/f4adp/adi.txt
share/doc/ftp4all/frames/faq_user.html
share/doc/ftp4all/frames/configs.html
share/doc/ftp4all/frames/copyright.html
share/doc/ftp4all/frames/debug.html
share/doc/ftp4all/frames/faq_v3.html
share/doc/ftp4all/frames/history.html
share/doc/ftp4all/frames/index_v3.html
share/doc/ftp4all/frames/install.html
share/doc/ftp4all/frames/new.html
share/doc/ftp4all/frames/registry.html
share/doc/ftp4all/frames/sitecmds.html
share/doc/ftp4all/frames/upgrade.html
share/doc/ftp4all/frames/index.html
share/doc/ftp4all/frames/menu.html
share/doc/ftp4all/frames/credits.html
share/doc/ftp4all/frames/download.html
share/doc/ftp4all/frames/f4agui.html
share/doc/ftp4all/frames/messages.html
share/doc/ftp4all/frames/faq_config.html
share/doc/ftp4all/frames/faq_f4agui.html
share/doc/ftp4all/frames/faq_files.html
share/doc/ftp4all/frames/faq_index.html
share/doc/ftp4all/frames/faq_start.html
share/doc/ftp4all/frames/faq_system.html
share/doc/ftp4all/frames/concepts.html
share/doc/ftp4all/noframes/faq_user.html
share/doc/ftp4all/noframes/configs.html
share/doc/ftp4all/noframes/copyright.html
share/doc/ftp4all/noframes/debug.html
share/doc/ftp4all/noframes/faq_v3.html
share/doc/ftp4all/noframes/history.html
share/doc/ftp4all/noframes/index_v3.html
share/doc/ftp4all/noframes/install.html
share/doc/ftp4all/noframes/new.html
share/doc/ftp4all/noframes/registry.html
share/doc/ftp4all/noframes/sitecmds.html
share/doc/ftp4all/noframes/upgrade.html
share/doc/ftp4all/noframes/index.html
share/doc/ftp4all/noframes/menu.html
share/doc/ftp4all/noframes/credits.html
share/doc/ftp4all/noframes/download.html
share/doc/ftp4all/noframes/f4agui.html
share/doc/ftp4all/noframes/messages.html
share/doc/ftp4all/noframes/faq_config.html
share/doc/ftp4all/noframes/faq_f4agui.html
share/doc/ftp4all/noframes/faq_files.html
share/doc/ftp4all/noframes/faq_index.html
share/doc/ftp4all/noframes/faq_start.html
share/doc/ftp4all/noframes/faq_system.html
share/doc/ftp4all/noframes/concepts.html