mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-22 00:35:15 +00:00
- Update to 1.0.1
PR: ports/63650 Submitted by: Nick Leuta <skynick@mail.sc.ru> (maintainer)
This commit is contained in:
parent
d37060630b
commit
bb56456c2c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=102777
@ -6,8 +6,8 @@
|
||||
#
|
||||
|
||||
PORTNAME= bsdftpd-ssl
|
||||
PORTVERSION= 1.0.0
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 1.0.1
|
||||
PORTREVISION= 0
|
||||
CATEGORIES= ftp
|
||||
MASTER_SITES= http://bsdftpd-ssl.sc.ru/files/bsdftpd-ssl/archive/1.0/src/
|
||||
DISTNAME= bsdftpd-ssl-${PORTVERSION}
|
||||
@ -26,10 +26,11 @@ MAN1= ftps.1
|
||||
# Server part
|
||||
.if !defined(CLIENT_ONLY)
|
||||
COMMENT= Secure FTP server with the TLS/SSL support
|
||||
MAN5= ftpchroot.5
|
||||
MAN5= ftpchroot.5 xferlog.5
|
||||
MAN8= ftpd.8
|
||||
MLINKS= ftpd.8 ftpd-ssl.8
|
||||
PKGMESSAGE= ${FILESDIR}/pkg-message.server
|
||||
PKGMESSAGE= ${WRKDIR}/pkg-message
|
||||
SED_ARG= 's|%%PREFIX%%|${PREFIX}|g; s|%%DOCSDIR%%|${DOCSDIR}|g'
|
||||
.endif
|
||||
|
||||
MANCOMPRESSED= yes
|
||||
@ -56,6 +57,8 @@ do-build:
|
||||
# Server part
|
||||
.if !defined(CLIENT_ONLY)
|
||||
(cd ${WRKSRC}/ftpd && make) || exit
|
||||
@${SED} ${SED_ARG} ${FILESDIR}/pkg-message.server > \
|
||||
${WRKDIR}/pkg-message
|
||||
.endif
|
||||
|
||||
do-install:
|
||||
@ -66,6 +69,7 @@ do-install:
|
||||
.if !defined(CLIENT_ONLY)
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/ftpd/ftpd ${PREFIX}/libexec/ftpd
|
||||
${INSTALL_MAN} ${WRKSRC}/ftpd/ftpchroot.5.gz ${MANDIR}5/ftpchroot.5.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/ftpd/xferlog.5.gz ${MANDIR}5/xferlog.5.gz
|
||||
${INSTALL_MAN} ${WRKSRC}/ftpd/ftpd.8.gz ${MANDIR}8/ftpd.8.gz
|
||||
.endif
|
||||
|
||||
@ -94,6 +98,7 @@ post-install:
|
||||
${INSTALL_SCRIPT} -p ${WRKSRC}/cert/xCA.sh ${DOCDIR}/cert/xCA.sh
|
||||
.endif
|
||||
.if !defined(CLIENT_ONLY)
|
||||
@${INSTALL_SCRIPT} ${FILESDIR}/bsdftpd-ssl.sh ${PREFIX}/etc/rc.d/bsdftpd-ssl.sh.sample
|
||||
@${ECHO_CMD} "*******************************************************************************"
|
||||
@${CAT} ${PKGMESSAGE}
|
||||
@${ECHO_CMD} "*******************************************************************************"
|
||||
|
@ -1 +1 @@
|
||||
MD5 (bsdftpd-ssl-1.0.0.tar.gz) = 745befccb117d08aa0e37ea592dfb48c
|
||||
MD5 (bsdftpd-ssl-1.0.1.tar.gz) = fe77f5a8631c01aa85f969355fba3b69
|
||||
|
30
ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh
Normal file
30
ftp/bsdftpd-ssl/files/bsdftpd-ssl.sh
Normal file
@ -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
|
@ -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;
|
||||
}
|
@ -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).
|
||||
=============================================================================
|
||||
|
@ -1,4 +1,5 @@
|
||||
bin/ftps
|
||||
etc/rc.d/bsdftpd-ssl.sh.sample
|
||||
libexec/ftpd
|
||||
%%PORTDOCS%%%%DOCSDIR%%/COPYRIGHT
|
||||
%%PORTDOCS%%%%DOCSDIR%%/README
|
||||
|
Loading…
Reference in New Issue
Block a user