From 0393bc1691aa8ab45aa230c4d948cd882d0d4e18 Mon Sep 17 00:00:00 2001 From: avsm Date: Thu, 15 Jan 2004 14:21:00 +0000 Subject: [PATCH] initial import of p5-Net-FTPServer-1.119 -- Major features of Net::FTPServer include: * Feature parity with wu-ftpd. * IP-based and IP-less virtual hosting. * Virtual filesystem allows the FTP server to serve files from a SQL database. * Configurable and extensible in Perl. * sections in ftpd.conf file. * Supports all the latest RFCs and Internet Drafts, including MLST, MLSD, FEAT, OPTS, LANG. * Secure by design and implementation. * PAM authentication. * Resource limits. * Run standalone or from inetd. * Configurable server greetings and welcome messages. * Anonymous mode. * Run in chroot jail. * Sophisticated access control rules. * wu-ftpd style aliases and cdpath. * SITE EXEC (disabled by default). * Syslog logging. * Set TCP parameters. --- net/p5-Net-FTPServer/Makefile | 35 +++++++++++++++++ net/p5-Net-FTPServer/distinfo | 3 ++ net/p5-Net-FTPServer/pkg/DESCR | 22 +++++++++++ net/p5-Net-FTPServer/pkg/INSTALL | 64 ++++++++++++++++++++++++++++++++ net/p5-Net-FTPServer/pkg/PLIST | 56 ++++++++++++++++++++++++++++ 5 files changed, 180 insertions(+) create mode 100644 net/p5-Net-FTPServer/Makefile create mode 100644 net/p5-Net-FTPServer/distinfo create mode 100644 net/p5-Net-FTPServer/pkg/DESCR create mode 100644 net/p5-Net-FTPServer/pkg/INSTALL create mode 100644 net/p5-Net-FTPServer/pkg/PLIST diff --git a/net/p5-Net-FTPServer/Makefile b/net/p5-Net-FTPServer/Makefile new file mode 100644 index 00000000000..c11003b1119 --- /dev/null +++ b/net/p5-Net-FTPServer/Makefile @@ -0,0 +1,35 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2004/01/15 14:21:00 avsm Exp $ + +COMMENT= "secure, extensible and configurable Perl FTPd" + +V= 1.119 +DISTNAME= Net-FTPServer-${V} +PKGNAME= p5-${DISTNAME} +CATEGORIES= net perl5 + +MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/} + +MAINTAINER= Anil Madhavapeddy + +BUILD_DEPENDS= ${RUN_DEPENDS} +RUN_DEPENDS= ::archivers/p5-Archive-Zip \ + ::devel/p5-BSD-Resource \ + ::devel/p5-IO-stringy \ + ::databases/p5-DBI \ + ::devel/p5-File-Sync + +# GPL +PERMIT_PACKAGE_CDROM= Yes +PERMIT_PACKAGE_FTP= Yes +PERMIT_DISTFILES_CDROM= Yes +PERMIT_DISTFILES_FTP= Yes + +CONFIGURE_STYLE= perl +FAKE_FLAGS= NOCONF=1 ${DESTDIRNAME}=${WRKINST} +CONFIG_DIR= ${PREFIX}/share/examples/p5-Net-FTPServer + +post-install: + ${INSTALL_DATA_DIR} ${CONFIG_DIR} + ${INSTALL_DATA} ${WRKSRC}/ftpd.conf ${CONFIG_DIR}/ftpd.conf + +.include diff --git a/net/p5-Net-FTPServer/distinfo b/net/p5-Net-FTPServer/distinfo new file mode 100644 index 00000000000..53269f3b91b --- /dev/null +++ b/net/p5-Net-FTPServer/distinfo @@ -0,0 +1,3 @@ +MD5 (Net-FTPServer-1.119.tar.gz) = 8e1779270e4f8e00a0f88e1b830bcd29 +RMD160 (Net-FTPServer-1.119.tar.gz) = 86bf425526998216f36ac6064672b0cbb6f3901e +SHA1 (Net-FTPServer-1.119.tar.gz) = 28d74bcbd55d169711f5799782a0d651fa9fd0c2 diff --git a/net/p5-Net-FTPServer/pkg/DESCR b/net/p5-Net-FTPServer/pkg/DESCR new file mode 100644 index 00000000000..2fada52806f --- /dev/null +++ b/net/p5-Net-FTPServer/pkg/DESCR @@ -0,0 +1,22 @@ +Major features of Net::FTPServer include: + +* Feature parity with wu-ftpd. +* IP-based and IP-less virtual hosting. +* Virtual filesystem allows the FTP server to serve files from a + SQL database. +* Configurable and extensible in Perl. +* sections in ftpd.conf file. +* Supports all the latest RFCs and Internet Drafts, including MLST, + MLSD, FEAT, OPTS, LANG. +* Secure by design and implementation. +* PAM authentication. +* Resource limits. +* Run standalone or from inetd. +* Configurable server greetings and welcome messages. +* Anonymous mode. +* Run in chroot jail. +* Sophisticated access control rules. +* wu-ftpd style aliases and cdpath. +* SITE EXEC (disabled by default). +* Syslog logging. +* Set TCP parameters. diff --git a/net/p5-Net-FTPServer/pkg/INSTALL b/net/p5-Net-FTPServer/pkg/INSTALL new file mode 100644 index 00000000000..63a41ee06d6 --- /dev/null +++ b/net/p5-Net-FTPServer/pkg/INSTALL @@ -0,0 +1,64 @@ +#!/bin/sh +# $OpenBSD: INSTALL,v 1.1.1.1 2004/01/15 14:21:00 avsm Exp $ +# +# Pre/post-installation setup of p5-Net-FTPServer + +# exit on errors, use a sane path and install prefix +# +set -e +PATH=/bin:/usr/bin:/sbin:/usr/sbin +PREFIX=${PKG_PREFIX:-/usr/local} +CONFIG_FILE=${SYSCONFDIR}/ftpd.conf +SAMPLE_CONFIG_FILE=$PREFIX/share/examples/p5-Net-FTPServer/ftpd.conf + +do_notice() +{ + echo + echo "+---------------" + echo "| The existing $1 config file, $CONFIG_FILE," + echo "| has NOT been changed. You may want to compare it to the" + echo "| current sample file, $SAMPLE_CONFIG_FILE," + echo "| and update your configuration as needed." + echo "+---------------" + echo +} + +do_install() +{ + install -o root -g wheel -m 644 $SAMPLE_CONFIG_FILE $CONFIG_FILE + echo + echo "+---------------" + echo "| The $1 configuration file, $CONFIG_FILE," + echo "| has been installed. Please view this file and change" + echo "| the configuration to meet your needs." + echo "+---------------" + echo +} + +# verify proper execution +# +if [ $# -ne 2 ]; then + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 +fi + +# Verify/process the command +# +case $2 in + PRE-INSTALL) + : nothing to pre-install for this port + ;; + POST-INSTALL) + if [ -f $CONFIG_FILE ]; then + do_notice $1 + else + do_install $1 + fi + ;; + *) + echo "usage: $0 distname { PRE-INSTALL | POST-INSTALL }" >&2 + exit 1 + ;; +esac + +exit 0 diff --git a/net/p5-Net-FTPServer/pkg/PLIST b/net/p5-Net-FTPServer/pkg/PLIST new file mode 100644 index 00000000000..8fd6192ae43 --- /dev/null +++ b/net/p5-Net-FTPServer/pkg/PLIST @@ -0,0 +1,56 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2004/01/15 14:21:00 avsm Exp $ +bin/dbeg1-ftpd.pl +bin/ftpd.pl +bin/inmem-ftpd.pl +bin/proxy-ftpd.pl +bin/ro-ftpd.pl +${P5SITE}/Net/FTPServer.pm +${P5SITE}/Net/FTPServer/DBeg1/DirHandle.pm +${P5SITE}/Net/FTPServer/DBeg1/FileHandle.pm +${P5SITE}/Net/FTPServer/DBeg1/IOBlob.pm +${P5SITE}/Net/FTPServer/DBeg1/Server.pm +${P5SITE}/Net/FTPServer/DirHandle.pm +${P5SITE}/Net/FTPServer/FileHandle.pm +${P5SITE}/Net/FTPServer/Full/DirHandle.pm +${P5SITE}/Net/FTPServer/Full/FileHandle.pm +${P5SITE}/Net/FTPServer/Full/Server.pm +${P5SITE}/Net/FTPServer/Handle.pm +${P5SITE}/Net/FTPServer/InMem/DirHandle.pm +${P5SITE}/Net/FTPServer/InMem/FileHandle.pm +${P5SITE}/Net/FTPServer/InMem/Server.pm +${P5SITE}/Net/FTPServer/Proxy/DirHandle.pm +${P5SITE}/Net/FTPServer/Proxy/FileHandle.pm +${P5SITE}/Net/FTPServer/Proxy/Server.pm +${P5SITE}/Net/FTPServer/RO/DirHandle.pm +${P5SITE}/Net/FTPServer/RO/FileHandle.pm +${P5SITE}/Net/FTPServer/RO/Server.pm +man/man3p/Net::FTPServer.3p +man/man3p/Net::FTPServer::DBeg1::DirHandle.3p +man/man3p/Net::FTPServer::DBeg1::FileHandle.3p +man/man3p/Net::FTPServer::DBeg1::IOBlob.3p +man/man3p/Net::FTPServer::DBeg1::Server.3p +man/man3p/Net::FTPServer::DirHandle.3p +man/man3p/Net::FTPServer::FileHandle.3p +man/man3p/Net::FTPServer::Full::DirHandle.3p +man/man3p/Net::FTPServer::Full::FileHandle.3p +man/man3p/Net::FTPServer::Full::Server.3p +man/man3p/Net::FTPServer::Handle.3p +man/man3p/Net::FTPServer::InMem::DirHandle.3p +man/man3p/Net::FTPServer::InMem::FileHandle.3p +man/man3p/Net::FTPServer::InMem::Server.3p +man/man3p/Net::FTPServer::Proxy::DirHandle.3p +man/man3p/Net::FTPServer::Proxy::FileHandle.3p +man/man3p/Net::FTPServer::Proxy::Server.3p +man/man3p/Net::FTPServer::RO::DirHandle.3p +man/man3p/Net::FTPServer::RO::FileHandle.3p +man/man3p/Net::FTPServer::RO::Server.3p +share/examples/p5-Net-FTPServer/ftpd.conf +@dirrm share/examples/p5-Net-FTPServer +@dirrm ${P5SITE}/Net/FTPServer/RO +@dirrm ${P5SITE}/Net/FTPServer/Proxy +@dirrm ${P5SITE}/Net/FTPServer/InMem +@dirrm ${P5SITE}/Net/FTPServer/Full +@dirrm ${P5SITE}/Net/FTPServer/DBeg1 +@dirrm ${P5SITE}/Net/FTPServer +@cwd ${SYSCONFDIR} +@extra ftpd.conf