1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

- Update to 20031217 snapshot

PR:		ports/62069
Submitted by:	Rudolf Cejka <cejkar@fit.vutbr.cz> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-02-03 17:57:21 +00:00
parent c8a1c59a11
commit 4f8677eb55
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=99890
6 changed files with 42 additions and 29 deletions

View File

@ -6,11 +6,9 @@
#
PORTNAME= tnftpd
PORTVERSION= 2.0b3
PORTREVISION= 1
PORTVERSION= 20031217
CATEGORIES= ftp ipv6
MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/
DISTNAME= ${PORTNAME}-2.0-beta3
MAINTAINER= cejkar@fit.vutbr.cz
COMMENT= Enhanced ftp server from NetBSD
@ -19,6 +17,8 @@ USE_REINPLACE= yes
GNU_CONFIGURE= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
CFLAGS+= -DSUPPORT_UTMP
.if defined(WITH_SOCKS5)
BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5
CONFIGURE_ARGS+= --with-socks5

View File

@ -1 +1 @@
MD5 (tnftpd-2.0-beta3.tar.gz) = 2c70bdc6549f88f992191ebe772629a7
MD5 (tnftpd-20031217.tar.gz) = b33d184b49bf5335cc59c2827f4c71aa

View File

@ -1,11 +1,20 @@
--- src/ftpd.c-orig Mon Feb 17 23:52:49 2003
+++ src/ftpd.c Mon Feb 17 23:56:52 2003
@@ -98,6 +98,8 @@
* SUCH DAMAGE.
*/
--- src/ftpd.c-orig Tue Feb 3 18:16:46 2004
+++ src/ftpd.c Tue Feb 3 18:19:26 2004
@@ -436,6 +436,7 @@
if (EMPTYSTR(confdir))
confdir = _DEFAULT_CONFDIR;
+#define SUPPORT_UTMP
+
#if HAVE_TNFTPD_H
#define FTP_NAMES
+#ifdef _SC_LOGIN_NAME_MAX
errno = 0;
l = sysconf(_SC_LOGIN_NAME_MAX);
if (l == -1 && errno != 0) {
@@ -446,6 +447,9 @@
curname_len = _POSIX_LOGIN_NAME_MAX;
} else
curname_len = (size_t)l;
+#else
+ curname_len = LOGIN_NAME_MAX;
+#endif
curname = malloc(curname_len);
if (curname == NULL) {
syslog(LOG_ERR, "malloc: %m");

View File

@ -1,6 +1,6 @@
--- src/logutmp.c-orig Mon Feb 24 07:38:44 2003
+++ src/logutmp.c Thu Jan 22 11:59:38 2004
@@ -40,10 +40,10 @@
--- src/logutmp.c-orig Thu Jan 29 15:43:57 2004
+++ src/logutmp.c Thu Jan 29 15:44:33 2004
@@ -60,13 +60,13 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@ -8,6 +8,9 @@
#include <ttyent.h>
#include <unistd.h>
#include <utmp.h>
#ifdef SUPPORT_UTMPX
#include <utmpx.h>
#endif
-#include <util.h>
#include "extern.h"

View File

@ -1,12 +1,13 @@
--- src/logwtmp.c-orig Mon Feb 24 07:38:44 2003
+++ src/logwtmp.c Thu Jan 22 12:05:36 2004
@@ -46,10 +46,12 @@
--- src/logwtmp.c-orig Thu Jan 29 15:45:32 2004
+++ src/logwtmp.c Thu Jan 29 15:47:34 2004
@@ -42,11 +42,13 @@
#include <sys/types.h>
#include <sys/param.h>
+#include <sys/socket.h>
#include <sys/time.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <fcntl.h>
+#include <netdb.h>
@ -14,14 +15,14 @@
#include <signal.h>
#include <stdio.h>
@@ -57,7 +59,6 @@
#include <time.h>
#include <unistd.h>
#include <utmp.h>
#ifdef SUPPORT_UTMPX
#include <utmpx.h>
#endif
-#include <util.h>
#ifdef KERBEROS5
#include <krb5/krb5.h>
@@ -77,6 +78,26 @@
@@ -80,6 +81,26 @@
{
struct utmp ut;
struct stat buf;

View File

@ -1,12 +1,12 @@
--- tnftpd.h-orig Wed Feb 26 19:16:13 2003
+++ tnftpd.h Sun Aug 3 15:49:57 2003
@@ -404,6 +404,8 @@
#define SECSPERDAY 86400
--- tnftpd.h-orig Wed Dec 17 02:43:41 2003
+++ tnftpd.h Tue Feb 3 18:14:15 2004
@@ -429,5 +429,9 @@
#define TM_YEAR_BASE 1900
-#if ! defined(LOGIN_NAME_MAX)
#if ! defined(LOGIN_NAME_MAX)
+#if defined(MAXLOGNAME)
+# define LOGIN_NAME_MAX MAXLOGNAME
+#elif ! defined(LOGIN_NAME_MAX)
# define LOGIN_NAME_MAX (9)
+#endif
#endif