diff options
author | roam <roam@FreeBSD.org> | 2001-06-27 21:34:06 +0800 |
---|---|---|
committer | roam <roam@FreeBSD.org> | 2001-06-27 21:34:06 +0800 |
commit | 0e829604633ad3a1cb32096a72238703d4fea2bd (patch) | |
tree | 45760260fe0c2345475305c6beaa6d766324dd12 /ftp | |
parent | 0c36544700ef0f7f598a8d9240582585aeddcdff (diff) | |
download | freebsd-ports-graphics-0e829604633ad3a1cb32096a72238703d4fea2bd.tar.gz freebsd-ports-graphics-0e829604633ad3a1cb32096a72238703d4fea2bd.tar.zst freebsd-ports-graphics-0e829604633ad3a1cb32096a72238703d4fea2bd.zip |
Add ncftpd, a well-known commercial FTP server with a restrictive 30-day
evaluation license.
PR: 28270
Submitted by: Justin Stanford <jus@security.za.net>
Diffstat (limited to 'ftp')
-rw-r--r-- | ftp/Makefile | 1 | ||||
-rw-r--r-- | ftp/ncftpd/Makefile | 44 | ||||
-rw-r--r-- | ftp/ncftpd/distinfo | 1 | ||||
-rw-r--r-- | ftp/ncftpd/pkg-comment | 1 | ||||
-rw-r--r-- | ftp/ncftpd/pkg-descr | 7 | ||||
-rw-r--r-- | ftp/ncftpd/pkg-message | 12 | ||||
-rw-r--r-- | ftp/ncftpd/pkg-plist | 14 | ||||
-rw-r--r-- | ftp/ncftpd/scripts/ncftpd.sh | 26 |
8 files changed, 106 insertions, 0 deletions
diff --git a/ftp/Makefile b/ftp/Makefile index 7ca5c3c5e0f..fa5a5297448 100644 --- a/ftp/Makefile +++ b/ftp/Makefile @@ -36,6 +36,7 @@ SUBDIR += ncftp SUBDIR += ncftp2 SUBDIR += ncftp3 + SUBDIR += ncftpd SUBDIR += oftpd SUBDIR += omi SUBDIR += paraget diff --git a/ftp/ncftpd/Makefile b/ftp/ncftpd/Makefile new file mode 100644 index 00000000000..7db0b3a7a9e --- /dev/null +++ b/ftp/ncftpd/Makefile @@ -0,0 +1,44 @@ +# New ports collection Makefile for: ncftpd +# Date created: 19 June 2001 +# Whom: Justin Stanford <jus@security.za.net> +# +# $FreeBSD$ +# + +PORTNAME= ncftpd +PORTVERSION= 2.7.0 +CATEGORIES= ftp +MASTER_SITES= ftp://ftp.ncftp.com/ncftpd/${PORTVERSION}/ +DISTNAME= ${PORTNAME}-${PORTVERSION}-freebsd4.2-${ARCH}-export + +MAINTAINER= jus@security.za.net + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +ONLY_FOR_ARCHS= i386 +NO_BUILD= YES +LICENSE= shareware +RESTRICTED= "30 day evaluation license" + +do-install: + ${MKDIR} ${PREFIX}/etc/ncftpd + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd ${PREFIX}/sbin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_edquota ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_passwd ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_repquota ${PREFIX}/bin + ${INSTALL_PROGRAM} ${WRKSRC}/ncftpd_spy ${PREFIX}/bin + ${INSTALL_DATA} ${WRKSRC}/conf/general.cf-dist ${PREFIX}/etc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/conf/domain.cf-dist ${PREFIX}/etc/ncftpd + ${INSTALL_SCRIPT} ${SCRIPTDIR}/ncftpd.sh ${PREFIX}/etc/rc.d + +post-install: +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/install.html ${PREFIX}/share/doc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/README.freebsd ${PREFIX}/share/doc/ncftpd + ${INSTALL_DATA} ${WRKSRC}/LICENSE ${PREFIX}/share/doc/ncftpd +.endif + ${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE} + +.include <bsd.port.mk> diff --git a/ftp/ncftpd/distinfo b/ftp/ncftpd/distinfo new file mode 100644 index 00000000000..8df5016cb51 --- /dev/null +++ b/ftp/ncftpd/distinfo @@ -0,0 +1 @@ +MD5 (ncftpd-2.7.0-freebsd4.2-i386-export.tar.gz) = 7ba3e5c9f966dcb8ea6a8fff6b2f38a0 diff --git a/ftp/ncftpd/pkg-comment b/ftp/ncftpd/pkg-comment new file mode 100644 index 00000000000..3b70b675b40 --- /dev/null +++ b/ftp/ncftpd/pkg-comment @@ -0,0 +1 @@ +A well known commercial FTP daemon with a 30-day evaluation license diff --git a/ftp/ncftpd/pkg-descr b/ftp/ncftpd/pkg-descr new file mode 100644 index 00000000000..e1537ed9f2b --- /dev/null +++ b/ftp/ncftpd/pkg-descr @@ -0,0 +1,7 @@ +A well known commercial FTP daemon with a restrictive 30-day +evaluation license. NcFTPd is fast, secure, and supports virtual-hosts. + +WWW: http://www.ncftp.com/ncftpd/ + +- jus +jus@security.za.net diff --git a/ftp/ncftpd/pkg-message b/ftp/ncftpd/pkg-message new file mode 100644 index 00000000000..e390fab0281 --- /dev/null +++ b/ftp/ncftpd/pkg-message @@ -0,0 +1,12 @@ +NOTE: This is commercial software that only supplies you with +an evaluation license valid for 30 days from the date of installation. +Please read the LICENSE in "%%PREFIX%%/share/doc/ncftpd" before +using this software. + +If you wish to allow anonymous FTP, an FTP user needs to be created +for this purpose. NcFTPd defaults to the users "daemon", "web", or "www" +in the absence of an FTP user. For details see the installation help file +"%%PREFIX%%/share/doc/ncftpd/install.html". + +Remove "-dist" from the filenames of the configuration files in +"%%PREFIX%%/etc/ncftpd" and edit them to suit. diff --git a/ftp/ncftpd/pkg-plist b/ftp/ncftpd/pkg-plist new file mode 100644 index 00000000000..9037b2cbb8d --- /dev/null +++ b/ftp/ncftpd/pkg-plist @@ -0,0 +1,14 @@ +sbin/ncftpd +bin/ncftpd_edquota +bin/ncftpd_passwd +bin/ncftpd_repquota +bin/ncftpd_spy +%%PORTDOCS%%share/doc/ncftpd/README +%%PORTDOCS%%share/doc/ncftpd/README.freebsd +%%PORTDOCS%%share/doc/ncftpd/install.html +%%PORTDOCS%%share/doc/ncftpd/LICENSE +%%PORTDOCS%%@dirrm share/doc/ncftpd +etc/rc.d/ncftpd.sh +etc/ncftpd/general.cf-dist +etc/ncftpd/domain.cf-dist +@dirrm etc/ncftpd diff --git a/ftp/ncftpd/scripts/ncftpd.sh b/ftp/ncftpd/scripts/ncftpd.sh new file mode 100644 index 00000000000..6799c0c7cf2 --- /dev/null +++ b/ftp/ncftpd/scripts/ncftpd.sh @@ -0,0 +1,26 @@ +#!/bin/sh + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +args="${PREFIX}/etc/ncftpd/general.cf ${PREFIX}/etc/ncftpd/domain.cf" + +case "$1" in +start) + if [ -x ${PREFIX}/sbin/ncftpd ]; then + echo -n ' ncftpd' + ${PREFIX}/sbin/ncftpd -d $args + fi + ;; +stop) + killall ncftpd && echo -n ' ncftpd' + ;; +*) + echo "Usage: `basename $0` {start|stop}" >&2 + exit 64 + ;; +esac + +exit 0 |