proftpd 1.0.3, apache-like configurable ftp daemon
This commit is contained in:
parent
952693e708
commit
25ede85b12
61
net/proftpd/Makefile
Normal file
61
net/proftpd/Makefile
Normal file
@ -0,0 +1,61 @@
|
||||
# New ports collection makefile for: proftpd
|
||||
# Version required: 1.0.3pl1
|
||||
# Date created: 16 Jun 1998
|
||||
# Whom: Oleg Safiullin <form@vs.itam.nsc.ru>
|
||||
#
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 1998/06/16 07:05:33 form Exp $
|
||||
# FreeBSD: Makefile,v 1.3 1998/06/14 15:56:40 steve Exp
|
||||
#
|
||||
|
||||
DISTNAME= proftpd-1.0.3pl1
|
||||
PKGNAME= proftpd-1.0.3
|
||||
CATEGORIES= net
|
||||
MASTER_SITES= ftp://ftp.proftpd.org/distrib/
|
||||
|
||||
MAINTAINER= form@vs.itam.nsc.ru
|
||||
|
||||
MAN1= ftpwho.1 ftpcount.1
|
||||
MAN8= proftpd.8 ftpshut.8
|
||||
|
||||
USE_GMAKE= yes
|
||||
GNU_CONFIGURE= yes
|
||||
CONFIGURE_ENV= CFLAGS="${CFLAGS}"
|
||||
|
||||
#
|
||||
# - "configure --prefix=..." doesn't seem to work :(
|
||||
# do a "sed" to set prefix to $PREFIX
|
||||
#
|
||||
# - do a "sed" to set the config dir to ${PREFIX}/etc
|
||||
#
|
||||
|
||||
post-configure:
|
||||
${MV} ${WRKSRC}/Makefile ${WRKSRC}/Makefile.pre_sed
|
||||
${SED} -e "s:^prefix=\/usr:prefix=${PREFIX}:" \
|
||||
< ${WRKSRC}/Makefile.pre_sed > ${WRKSRC}/Makefile
|
||||
|
||||
@${MV} ${WRKSRC}/src/proftpd.8 ${WRKSRC}/src/proftpd.8.pre_sed
|
||||
@${SED} -e 's:/usr/sbin/proftpd:${PREFIX}/libexec/proftpd:' \
|
||||
-e 's:/usr/sbin:${PREFIX}/sbin:' \
|
||||
-e 's:/usr/bin:${PREFIX}/bin:' \
|
||||
< ${WRKSRC}/src/proftpd.8.pre_sed > ${WRKSRC}/src/proftpd.8
|
||||
|
||||
@${MV} ${WRKSRC}/src/ftpshut.8 ${WRKSRC}/src/ftpshut.8.pre_sed
|
||||
@${SED} -e 's:/usr/sbin:${PREFIX}/sbin:' \
|
||||
-e 's:/etc:/var/run:' \
|
||||
< ${WRKSRC}/src/ftpshut.8.pre_sed > ${WRKSRC}/src/ftpshut.8
|
||||
|
||||
@${MV} ${WRKSRC}/src/ftpwho.1 ${WRKSRC}/src/ftpwho.1.pre_sed
|
||||
@${SED} -e 's:/usr/bin:${PREFIX}/bin:' \
|
||||
< ${WRKSRC}/src/ftpwho.1.pre_sed > ${WRKSRC}/src/ftpwho.1
|
||||
|
||||
@${MV} ${WRKSRC}/src/ftpcount.1 ${WRKSRC}/src/ftpcount.1.pre_sed
|
||||
@${SED} -e 's:/usr/bin:${PREFIX}/bin:' \
|
||||
< ${WRKSRC}/src/ftpcount.1.pre_sed > ${WRKSRC}/src/ftpcount.1
|
||||
|
||||
post-install:
|
||||
strip ${PREFIX}/bin/ftpcount \
|
||||
${PREFIX}/bin/ftpwho \
|
||||
${PREFIX}/libexec/proftpd \
|
||||
${PREFIX}/sbin/ftpshut \
|
||||
|
||||
.include <bsd.port.mk>
|
1
net/proftpd/files/md5
Normal file
1
net/proftpd/files/md5
Normal file
@ -0,0 +1 @@
|
||||
MD5 (proftpd-1.0.3pl1.tar.gz) = 4f6c85a84ba42365704df359fd2aae0b
|
63
net/proftpd/patches/patch-aa
Normal file
63
net/proftpd/patches/patch-aa
Normal file
@ -0,0 +1,63 @@
|
||||
--- sample-configurations/basic.conf.orig Tue Nov 18 02:23:12 1997
|
||||
+++ sample-configurations/basic.conf Mon Jan 26 22:45:53 1998
|
||||
@@ -1,3 +1,8 @@
|
||||
+#
|
||||
+# To have more informations about Proftpd configuration
|
||||
+# look at : http://www.proftpd.org/
|
||||
+#
|
||||
+
|
||||
# This is a basic ProFTPD configuration file (rename it to
|
||||
# 'proftpd.conf' for actual use. It establishes a single server
|
||||
# and a single anonymous login. It assumes that you have a user/group
|
||||
@@ -23,24 +28,31 @@
|
||||
AllowOverwrite on
|
||||
</Directory>
|
||||
|
||||
-# A basic anonymous configuration, no upload directories.
|
||||
-<Anonymous ~ftp>
|
||||
- User ftp
|
||||
- Group ftp
|
||||
- # We want clients to be able to login with "anonymous" as well as "ftp"
|
||||
- UserAlias anonymous ftp
|
||||
-
|
||||
- # Limit the maximum number of anonymous logins
|
||||
- MaxClients 10
|
||||
-
|
||||
- # We want 'welcome.msg' displayed at login, and '.message' displayed
|
||||
- # in each newly chdired directory.
|
||||
- DisplayLogin welcome.msg
|
||||
- DisplayFirstChdir .message
|
||||
-
|
||||
- # Limit WRITE everywhere in the anonymous chroot
|
||||
- <Limit WRITE>
|
||||
- DenyAll
|
||||
- </Limit>
|
||||
|
||||
-</Anonymous>
|
||||
+#########################################################################
|
||||
+# #
|
||||
+# Uncomment lines with only one # to allow basic anonymous access #
|
||||
+# #
|
||||
+#########################################################################
|
||||
+
|
||||
+### A basic anonymous configuration, no upload directories.
|
||||
+# <Anonymous ~ftp>
|
||||
+# User ftp
|
||||
+# Group ftp
|
||||
+ ### We want clients to be able to login with "anonymous" as well as "ftp"
|
||||
+ # UserAlias anonymous ftp
|
||||
+
|
||||
+ ### Limit the maximum number of anonymous logins
|
||||
+ # MaxClients 10
|
||||
+
|
||||
+ ### We want 'welcome.msg' displayed at login, and '.message' displayed
|
||||
+ ### in each newly chdired directory.
|
||||
+ # DisplayLogin welcome.msg
|
||||
+ # DisplayFirstChdir .message
|
||||
+
|
||||
+ ### Limit WRITE everywhere in the anonymous chroot
|
||||
+ # <Limit WRITE>
|
||||
+ # DenyAll
|
||||
+ # </Limit>
|
||||
+
|
||||
+# </Anonymous>
|
42
net/proftpd/patches/patch-ab
Normal file
42
net/proftpd/patches/patch-ab
Normal file
@ -0,0 +1,42 @@
|
||||
*** Makefile.in.orig Wed May 20 23:43:14 1998
|
||||
--- Makefile.in Tue Jun 16 13:34:45 1998
|
||||
***************
|
||||
*** 32,37 ****
|
||||
--- 32,38 ----
|
||||
sbindir=@sbindir@
|
||||
etcdir=@etcdir@
|
||||
mandir=@mandir@
|
||||
+ libexecdir=@libexecdir@
|
||||
|
||||
include ./Make.rules
|
||||
include ./Make.modules
|
||||
***************
|
||||
*** 76,90 ****
|
||||
rm -f proftpd ftpcount ftpwho ftpshut core
|
||||
|
||||
install-proftpd:
|
||||
! $(INSTALL) -s -g 0 -o 0 -m 0755 proftpd $(sbindir)/proftpd
|
||||
! if [ ! -f $(sbindir)/in.proftpd ] ; then \
|
||||
! ln -s $(sbindir)/proftpd $(sbindir)/in.proftpd; \
|
||||
! fi
|
||||
!
|
||||
install-utils:
|
||||
$(INSTALL) -s -g 0 -o 0 -m 0755 ftpcount $(bindir)/ftpcount
|
||||
$(INSTALL) -s -g 0 -o 0 -m 0755 ftpcount $(bindir)/ftpwho
|
||||
! $(INSTALL) -s -g 0 -o 0 -m 0755 ftpcount $(sbindir)/ftpwho
|
||||
|
||||
install-conf:
|
||||
if [ ! -e $(etcdir)/proftpd.conf ] ; then \
|
||||
--- 77,88 ----
|
||||
rm -f proftpd ftpcount ftpwho ftpshut core
|
||||
|
||||
install-proftpd:
|
||||
! $(INSTALL) -s -g 0 -o 0 -m 0755 proftpd $(libexecdir)/proftpd
|
||||
!
|
||||
install-utils:
|
||||
$(INSTALL) -s -g 0 -o 0 -m 0755 ftpcount $(bindir)/ftpcount
|
||||
$(INSTALL) -s -g 0 -o 0 -m 0755 ftpcount $(bindir)/ftpwho
|
||||
! $(INSTALL) -s -g 0 -o 0 -m 0755 ftpshut $(sbindir)/ftpshut
|
||||
|
||||
install-conf:
|
||||
if [ ! -e $(etcdir)/proftpd.conf ] ; then \
|
11
net/proftpd/patches/patch-ac
Normal file
11
net/proftpd/patches/patch-ac
Normal file
@ -0,0 +1,11 @@
|
||||
--- configure.orig Tue May 19 21:50:43 1998
|
||||
+++ configure Sun Jun 7 16:00:24 1998
|
||||
@@ -669,7 +669,7 @@
|
||||
EOF
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
||||
-#define SHUTMSG_PATH "/etc/shutmsg"
|
||||
+#define SHUTMSG_PATH "/var/run/shutmsg"
|
||||
EOF
|
||||
|
||||
cat >> confdefs.h <<\EOF
|
20
net/proftpd/patches/patch-ad
Normal file
20
net/proftpd/patches/patch-ad
Normal file
@ -0,0 +1,20 @@
|
||||
--- src/log.c.orig Sun Jun 7 16:12:04 1998
|
||||
+++ src/log.c Sun Jun 7 16:15:34 1998
|
||||
@@ -38,7 +38,7 @@
|
||||
static int syslog_open = FALSE;
|
||||
static int logstderr = TRUE;
|
||||
static int debug_level = DEBUG0; /* Default is no debug logging */
|
||||
-static int facility = LOG_DAEMON;
|
||||
+static int facility = LOG_FTP;
|
||||
static int runfd = -1;
|
||||
static char *runfn = NULL;
|
||||
static int xferfd = -1;
|
||||
@@ -463,7 +463,7 @@
|
||||
|
||||
buf[1023] = '\0';
|
||||
|
||||
- log(priority,LOG_AUTHPRIV,buf);
|
||||
+ log(priority,LOG_FTP,buf);
|
||||
}
|
||||
|
||||
/* Disable logging to stderr, should be done right before forking
|
33
net/proftpd/patches/patch-ae
Normal file
33
net/proftpd/patches/patch-ae
Normal file
@ -0,0 +1,33 @@
|
||||
--- modules//mod_auth.c.orig Sun Jun 7 16:17:57 1998
|
||||
+++ modules/mod_auth.c Sun Jun 7 16:21:29 1998
|
||||
@@ -177,7 +177,7 @@
|
||||
/* Is this the proper behavior when timing out? */
|
||||
send_response_async(R_421,"Login Timeout (%d seconds): closing control connection.",
|
||||
TimeoutLogin);
|
||||
- schedule(main_exit,0,(void*)LOG_NOTICE,"FTP login timed out, disconnected.",
|
||||
+ schedule(main_exit,0,(void*)LOG_INFO,"FTP login timed out, disconnected.",
|
||||
(void*)0,NULL);
|
||||
remove_timer(TIMER_IDLE,ANY_MODULE);
|
||||
remove_timer(TIMER_NOXFER,ANY_MODULE);
|
||||
@@ -763,10 +763,10 @@
|
||||
}
|
||||
|
||||
if(c)
|
||||
- log_auth(LOG_NOTICE,"ANONYMOUS FTP login as '%s' from %s [%s]",
|
||||
+ log_auth(LOG_INFO,"ANONYMOUS FTP login as '%s' from %s [%s]",
|
||||
origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr));
|
||||
else
|
||||
- log_auth(LOG_NOTICE,"FTP login as '%s' from %s [%s]",
|
||||
+ log_auth(LOG_INFO,"FTP login as '%s' from %s [%s]",
|
||||
origuser,session.c->remote_name,inet_ntoa(*session.c->remote_ipaddr));
|
||||
|
||||
session.user = pstrdup(permanent_pool,auth_map_uid(pw->pw_uid));
|
||||
@@ -987,7 +987,7 @@
|
||||
send_response(R_530,"%s",
|
||||
sreplace(cmd->tmp_pool,maxstr,"%m",maxn,NULL));
|
||||
|
||||
- log_auth(LOG_NOTICE,"connection refused (max clients %d)",
|
||||
+ log_auth(LOG_INFO,"connection refused (max clients %d)",
|
||||
max);
|
||||
end_login(0);
|
||||
}
|
15
net/proftpd/patches/patch-af
Normal file
15
net/proftpd/patches/patch-af
Normal file
@ -0,0 +1,15 @@
|
||||
--- src/proftpd.8.orig Sun Jun 7 16:26:39 1998
|
||||
+++ src/proftpd.8 Sun Jun 7 16:27:44 1998
|
||||
@@ -19,6 +19,12 @@
|
||||
may be invoked by the Internet "super-server" inetd(8) each time a
|
||||
connection to the FTP service is made, or alternatively it can be run as a
|
||||
stand-alone daemon.
|
||||
+.br
|
||||
+.PP
|
||||
+Each successful and failed ftp(1) session is logged using syslog with a
|
||||
+facility of LOG_FTP. Note: LOG_FTP messages are not displayed
|
||||
+by syslogd(8) by default, and may have to be enabled in syslogd(8)'s
|
||||
+configuration file.
|
||||
.SH OPTIONS
|
||||
.TP 12
|
||||
.B \-h,\--help
|
1
net/proftpd/pkg/COMMENT
Normal file
1
net/proftpd/pkg/COMMENT
Normal file
@ -0,0 +1 @@
|
||||
Highly configurable ftp daemon.
|
10
net/proftpd/pkg/DESCR
Normal file
10
net/proftpd/pkg/DESCR
Normal file
@ -0,0 +1,10 @@
|
||||
ProFTPD is a highly configurable ftp daemon for unix
|
||||
and unix-like operating systems. ProFTPD is designed
|
||||
to be somewhat of a "drop-in" replacement for wu-ftpd.
|
||||
|
||||
Full online documentation is available at
|
||||
http://www.proftpd.org/, including a server
|
||||
configuration directive reference manual.
|
||||
|
||||
- Stephane Legrand
|
||||
stephane@lituus.fr
|
12
net/proftpd/pkg/PLIST
Normal file
12
net/proftpd/pkg/PLIST
Normal file
@ -0,0 +1,12 @@
|
||||
bin/ftpcount
|
||||
bin/ftpwho
|
||||
libexec/proftpd
|
||||
sbin/ftpshut
|
||||
man/man8/proftpd.8
|
||||
man/man8/ftpshut.8
|
||||
man/man1/ftpwho.1
|
||||
man/man1/ftpcount.1
|
||||
@unexec echo "***"
|
||||
@unexec echo "*** You should remove /etc/proftpd.conf manually"
|
||||
@unexec echo "*** if you won't install proftpd again."
|
||||
@unexec echo "***"
|
Loading…
Reference in New Issue
Block a user