summaryrefslogtreecommitdiffstats
path: root/ftp/bsdftpd-ssl/files
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-03-02 23:23:55 +0000
committerpav <pav@FreeBSD.org>2004-03-02 23:23:55 +0000
commitf64d60d83b79c76fe4b78b9d689579cfbba6bd86 (patch)
tree662822ca0d4bbe36646e84c85190b95d80d111f0 /ftp/bsdftpd-ssl/files
parent3512d363694eef5580d6b4b23b9622a0b498720e (diff)
downloadFreeBSD-ports-f64d60d83b79c76fe4b78b9d689579cfbba6bd86.zip
FreeBSD-ports-f64d60d83b79c76fe4b78b9d689579cfbba6bd86.tar.gz
- Update to 1.0.1
PR: ports/63650 Submitted by: Nick Leuta <skynick@mail.sc.ru> (maintainer)
Diffstat (limited to 'ftp/bsdftpd-ssl/files')
-rw-r--r--ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh30
-rw-r--r--ftp/bsdftpd-ssl/files/patch-aa40
-rw-r--r--ftp/bsdftpd-ssl/files/pkg-message.server14
3 files changed, 43 insertions, 41 deletions
diff --git a/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh
new file mode 100644
index 0000000..7ac97ef
--- /dev/null
+++ b/ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh
@@ -0,0 +1,30 @@
+#!/bin/sh
+
+if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then
+ echo "$0: Cannot determine the PREFIX" >&2
+ exit 1
+fi
+
+case "$1" in
+start)
+ if [ -x ${PREFIX}/libexec/ftpd ]; then
+ ${PREFIX}/libexec/ftpd -D -l -p /var/run/ftpd.pid > /dev/null
+ echo -n ' BSDftpd-ssl'
+ fi
+ ;;
+stop)
+ if [ -r /var/run/ftpd.pid ]; then
+ kill -TERM `cat /var/run/ftpd.pid`
+ rm -f /var/run/ftpd.pid
+ echo -n ' BSDftpd-ssl'
+ fi
+ ;;
+*)
+ echo ""
+ echo "Usage: `basename $0` { start | stop }"
+ echo ""
+ exit 1
+ ;;
+esac
+
+exit 0
diff --git a/ftp/bsdftpd-ssl/files/patch-aa b/ftp/bsdftpd-ssl/files/patch-aa
deleted file mode 100644
index 533d6da..0000000
--- a/ftp/bsdftpd-ssl/files/patch-aa
+++ /dev/null
@@ -1,40 +0,0 @@
---- ftpd/Makefile.FreeBSD.ORI Wed Oct 8 00:59:49 2003
-+++ ftpd/Makefile.FreeBSD Mon Jan 12 00:33:53 2004
-@@ -44,7 +44,7 @@
- CFLAGS+=-Wall
- ## Feature flags
- CFLAGS+=-DSETPROCTITLE -DLOGIN_CAP -DVIRTUAL_HOSTING
--CFLAGS+=-DUSE_SENDFILE
-+#CFLAGS+=-DUSE_SENDFILE
- #CFLAGS+=-DINET6
-
- YFLAGS=
---- ftpd/ftpd.c.ORI Mon Nov 10 11:42:45 2003
-+++ ftpd/ftpd.c Mon Jan 12 00:36:04 2004
-@@ -2810,6 +2810,17 @@
- goto oldway;
- } else
- #endif /* USE_SSL */
-+/* workaround for the problem described in
-+ * http://bsdftpd-ssl.sc.ru/news/bfa_20040112.txt */
-+#if __FreeBSD__ >= 5
-+# if __FreeBSD_version >= 502000
-+# define USE_SENDFILE = 1
-+# endif
-+#else
-+# if __FreeBSD_version > 490000
-+# define USE_SENDFILE = 1
-+# endif
-+#endif /* __FreeBSD__ */
- #ifdef USE_SENDFILE
- while (err != -1 && filesize > 0) {
- #ifdef LINUX /* Linux port */
-@@ -2834,7 +2845,7 @@
-
- if (err == -1) {
- #ifndef LINUX /* BSD source */
-- if (errno == EAGAIN) {
-+ if (errno == EAGAIN || errno == EINTR) {
- err = 0;
- continue;
- }
diff --git a/ftp/bsdftpd-ssl/files/pkg-message.server b/ftp/bsdftpd-ssl/files/pkg-message.server
index 06081d4..8f1643a 100644
--- a/ftp/bsdftpd-ssl/files/pkg-message.server
+++ b/ftp/bsdftpd-ssl/files/pkg-message.server
@@ -1,2 +1,14 @@
+=============================================================================
You will also need to read "Configuration" and "Supplement information" parts
-of INSTALL file from package documentation for subsequent configuration issues.
+of %%DOCSDIR%%/INSTALL file from the package documentation
+for the subsequent configuration steps:
+ 1. Create the server certificate
+ 2. Edit PAM configuration
+ 3. Start the FTP server
+
+If you want to run the FTP server in the daemon mode, you can copy the sample
+start-up script %%PREFIX%%/etc/rc.d/bsdftpd-ssl.sh.sample to
+%%PREFIX%%/etc/rc.d/bsdftpd-ssl.sh.
+
+Please note: the manual page for the FTP server is available as ftpd-ssl(8).
+=============================================================================
OpenPOWER on IntegriCloud