diff options
author | Beech Rintoul <beech@FreeBSD.org> | 2008-08-23 20:13:18 +0000 |
---|---|---|
committer | Beech Rintoul <beech@FreeBSD.org> | 2008-08-23 20:13:18 +0000 |
commit | 6d5be517236a57556b6bd02c624b6da080331420 (patch) | |
tree | 6ddcddd5dcf7640aba750dd64cdb2d9dcc274d08 | |
parent | 2b5f0add8ff7d1ebaefc9e04e79c51af4f06bce0 (diff) | |
download | ports-6d5be517236a57556b6bd02c624b6da080331420.tar.gz ports-6d5be517236a57556b6bd02c624b6da080331420.zip |
Notes
-rw-r--r-- | ftp/tnftpd/Makefile | 14 | ||||
-rw-r--r-- | ftp/tnftpd/distinfo | 6 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-configure | 13 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-Makefile.in | 18 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-ftpd.c | 14 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-logutmp.c | 4 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-src-logwtmp.c | 16 | ||||
-rw-r--r-- | ftp/tnftpd/files/patch-tnftpd.h | 13 | ||||
-rw-r--r-- | ftp/tnftpd/files/pkg-message.in | 9 |
9 files changed, 49 insertions, 58 deletions
diff --git a/ftp/tnftpd/Makefile b/ftp/tnftpd/Makefile index 8d602f62e8f5..b0c9a31c4d78 100644 --- a/ftp/tnftpd/Makefile +++ b/ftp/tnftpd/Makefile @@ -6,8 +6,7 @@ # PORTNAME= tnftpd -PORTVERSION= 20061204 -PORTREVISION= 1 +PORTVERSION= 20080609 CATEGORIES= ftp ipv6 MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/ @@ -15,7 +14,6 @@ MAINTAINER= cejkar@fit.vutbr.cz COMMENT= Enhanced ftp server from NetBSD GNU_CONFIGURE= yes -PKGMESSAGE= ${WRKDIR}/pkg-message CFLAGS+= -DSUPPORT_UTMP @@ -24,13 +22,12 @@ BUILD_DEPENDS+= ${LOCALBASE}/lib/libsocks5.a:${PORTSDIR}/net/socks5 CONFIGURE_ARGS+= --with-socks5 .endif -DOCS= ChangeLog README THANKS COPYING - MAN5= ftpd.conf.5 ftpusers.5 MAN8= tnftpd.8 PLIST_FILES= libexec/tnftpd -PORTDOCS= ChangeLog README THANKS COPYING +PORTDOCS= ChangeLog NEWS README THANKS COPYING +SUB_FILES= pkg-message FIXPREFIX= ftpd.8 ftpd.conf.5 ftpusers.5 pre-patch: @@ -51,9 +48,6 @@ pre-patch: "s@^#define _DEFAULT_CONFDIR \"/etc\"@#define _DEFAULT_CONFDIR \"${PREFIX}/etc\"@" \ ${WRKSRC}/src/pathnames.h -post-build: - @${CAT} pkg-message | ${SED} -e 's|%%PREFIX%%|${PREFIX}|' > ${PKGMESSAGE} - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${PREFIX}/libexec ${INSTALL_MAN} ${WRKSRC}/src/ftpd.8 ${PREFIX}/man/man8/tnftpd.8 @@ -61,7 +55,7 @@ do-install: ${INSTALL_MAN} ${WRKSRC}/src/ftpusers.5 ${PREFIX}/man/man5 .if !defined(NOPORTDOCS) ${MKDIR} ${DOCSDIR} -.for f in ${DOCS} +.for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR} .endfor .endif diff --git a/ftp/tnftpd/distinfo b/ftp/tnftpd/distinfo index 50496a51d4ad..3a214c0d407c 100644 --- a/ftp/tnftpd/distinfo +++ b/ftp/tnftpd/distinfo @@ -1,3 +1,3 @@ -MD5 (tnftpd-20061204.tar.gz) = dada97588519fea2535678b6652ecf64 -SHA256 (tnftpd-20061204.tar.gz) = 7cc0532a8d492ed79ced7c44c3351829021169cc1e75bff8fd1d1066f0c2a2cc -SIZE (tnftpd-20061204.tar.gz) = 187164 +MD5 (tnftpd-20080609.tar.gz) = 9753e194b81357262581de12f07a76b5 +SHA256 (tnftpd-20080609.tar.gz) = 82f594afd58f70e4439c52262edefee7edbd8802d7feb86710e34cab2facdd7c +SIZE (tnftpd-20080609.tar.gz) = 244732 diff --git a/ftp/tnftpd/files/patch-configure b/ftp/tnftpd/files/patch-configure deleted file mode 100644 index c6ecb3856d84..000000000000 --- a/ftp/tnftpd/files/patch-configure +++ /dev/null @@ -1,13 +0,0 @@ - -Fix off_t size detection, so that determined off_t size is 8 instead of 0. - ---- configure.orig Wed Dec 13 11:00:41 2006 -+++ configure Wed Dec 13 11:02:41 2006 -@@ -2455,6 +2455,7 @@ - cat > conftest.$ac_ext <<EOF - #line 2457 "configure" - #include "confdefs.h" -+#include <sys/types.h> - #include <stdio.h> - main() - { diff --git a/ftp/tnftpd/files/patch-src-Makefile.in b/ftp/tnftpd/files/patch-src-Makefile.in index a1e4f3cfefca..bce22d9f22a0 100644 --- a/ftp/tnftpd/files/patch-src-Makefile.in +++ b/ftp/tnftpd/files/patch-src-Makefile.in @@ -2,15 +2,15 @@ FreeBSD does have support for utmp/wtmp, so include relevant files into a build. ---- src/Makefile.in.orig Wed Dec 13 13:03:12 2006 -+++ src/Makefile.in Wed Dec 13 13:03:47 2006 -@@ -23,8 +23,7 @@ - INSTALL = @INSTALL@ +--- src/Makefile.in.orig 2008-03-09 16:51:35.000000000 -0400 ++++ src/Makefile.in 2008-03-09 16:51:35.000000000 -0400 +@@ -2,8 +2,7 @@ + # - PROG = tnftpd --OBJS = cmds.o conf.o ftpd.o ftpcmd.o popen.o @LSOBJS@ + PROG = tnftpd@EXEEXT@ +-SRCS = cmds.c conf.c ftpd.c ftpcmd.c popen.c @LSOBJS@ -# removed: logutmp.o logwtmp.o -+OBJS = cmds.o conf.o ftpd.o ftpcmd.o popen.o logutmp.o logwtmp.o @LSOBJS@ - - all: ${PROG} ++SRCS = cmds.c conf.c ftpd.c ftpcmd.c popen.c logutmp.c logwtmp.c @LSOBJS@ + srcdir = @srcdir@ + VPATH = @srcdir@ diff --git a/ftp/tnftpd/files/patch-src-ftpd.c b/ftp/tnftpd/files/patch-src-ftpd.c index 82b8f24b4c5d..2b968a6d06ca 100644 --- a/ftp/tnftpd/files/patch-src-ftpd.c +++ b/ftp/tnftpd/files/patch-src-ftpd.c @@ -8,9 +8,9 @@ instead. We are sure, that we have good LOGIN_NAME_MAX from tnftpd.h, so use it instead of unnecessarily conservative _POSIX_LOGIN_NAME_MAX. ---- src/ftpd.c.orig Wed Sep 27 07:22:18 2006 -+++ src/ftpd.c Thu Dec 14 00:19:55 2006 -@@ -371,6 +371,24 @@ +--- src/ftpd.c.orig 2008-06-08 20:52:33.000000000 -0400 ++++ src/ftpd.c 2008-06-08 20:52:33.000000000 -0400 +@@ -368,6 +368,24 @@ break; case 'C': @@ -35,7 +35,7 @@ instead of unnecessarily conservative _POSIX_LOGIN_NAME_MAX. pw = sgetpwnam(optarg); exit(checkaccess(optarg) ? 0 : 1); /* NOTREACHED */ -@@ -496,12 +514,12 @@ +@@ -497,12 +515,12 @@ exit(1); } else if (l <= 0) { syslog(LOG_WARNING, "using conservative LOGIN_NAME_MAX value"); @@ -50,7 +50,7 @@ instead of unnecessarily conservative _POSIX_LOGIN_NAME_MAX. #endif curname = malloc(curname_len); if (curname == NULL) { -@@ -1166,18 +1184,38 @@ +@@ -1179,18 +1197,38 @@ /* have a host specifier */ if ((p = strchr(word, '@')) != NULL) { @@ -98,10 +98,10 @@ instead of unnecessarily conservative _POSIX_LOGIN_NAME_MAX. continue; /* check against hostname glob */ -@@ -3744,7 +3782,7 @@ +@@ -3776,7 +3814,7 @@ expire = pwent->pw_expire; #endif - #if HAVE_PW_CHANGE + #if defined(HAVE_STRUCT_PASSWD_PW_CHANGE) - change = (pwent->pw_change == _PASSWORD_CHGNOW)? now : pwent->pw_change; + change = (pwent->pw_change == -1)? now : pwent->pw_change; #endif diff --git a/ftp/tnftpd/files/patch-src-logutmp.c b/ftp/tnftpd/files/patch-src-logutmp.c index 81b94e37a3da..86c7cc2066fd 100644 --- a/ftp/tnftpd/files/patch-src-logutmp.c +++ b/ftp/tnftpd/files/patch-src-logutmp.c @@ -2,8 +2,8 @@ FreeBSD does not have header file util.h, fortunately it is not needed. Add header file time.h for time(). ---- src/logutmp.c.orig Wed Dec 13 13:16:58 2006 -+++ src/logutmp.c Wed Dec 13 13:17:18 2006 +--- src/logutmp.c.orig 2006-12-04 16:13:22.000000000 -0500 ++++ src/logutmp.c 2006-12-04 16:13:22.000000000 -0500 @@ -59,13 +59,13 @@ #include <stdio.h> #include <stdlib.h> diff --git a/ftp/tnftpd/files/patch-src-logwtmp.c b/ftp/tnftpd/files/patch-src-logwtmp.c index 1af239320351..d9cc5ab38122 100644 --- a/ftp/tnftpd/files/patch-src-logwtmp.c +++ b/ftp/tnftpd/files/patch-src-logwtmp.c @@ -4,9 +4,9 @@ header files sys/socket.h and netdb.h for getaddrinfo() and getnameinfo(). If host name is longer than UT_HOSTSIZE (16 characters), log numeric address to utmp. ---- src/logwtmp.c.orig Wed Dec 13 13:26:40 2006 -+++ src/logwtmp.c Wed Dec 13 14:14:52 2006 -@@ -42,11 +42,13 @@ +--- src/logwtmp.c.orig 2008-05-31 23:26:12.000000000 -0400 ++++ src/logwtmp.c 2008-05-31 23:26:12.000000000 -0400 +@@ -43,11 +43,13 @@ #include <sys/types.h> #include <sys/param.h> @@ -20,7 +20,7 @@ address to utmp. #include <signal.h> #include <stdio.h> #include <string.h> -@@ -59,7 +61,6 @@ +@@ -60,7 +62,6 @@ #ifdef SUPPORT_UTMPX #include <utmpx.h> #endif @@ -28,11 +28,10 @@ address to utmp. #ifdef KERBEROS5 #include <krb5/krb5.h> -@@ -88,6 +89,26 @@ - { +@@ -90,6 +91,26 @@ struct utmp ut; struct stat buf; -+ + + if (strlen(host) > UT_HOSTSIZE) { + struct addrinfo hints, *res; + int error; @@ -52,6 +51,7 @@ address to utmp. + hostbuf[UT_HOSTSIZE] = '\0'; + } + } - ++ if (fd < 0) return; + if (fstat(fd, &buf) == 0) { diff --git a/ftp/tnftpd/files/patch-tnftpd.h b/ftp/tnftpd/files/patch-tnftpd.h index cd1070620e8a..9164f1eb1c42 100644 --- a/ftp/tnftpd/files/patch-tnftpd.h +++ b/ftp/tnftpd/files/patch-tnftpd.h @@ -2,17 +2,18 @@ FreeBSD does not have LOGIN_NAME_MAX, but it has MAXLOGNAME instead, so use it as much as possible. ---- tnftpd.h.orig Wed Dec 13 14:38:43 2006 -+++ tnftpd.h Wed Dec 13 14:39:24 2006 -@@ -479,7 +479,11 @@ +--- tnftpd.h.orig 2008-06-08 21:24:51.000000000 -0400 ++++ tnftpd.h 2008-06-08 21:24:51.000000000 -0400 +@@ -548,8 +548,12 @@ #define TM_YEAR_BASE 1900 - #if ! defined(LOGIN_NAME_MAX) + #if !defined(LOGIN_NAME_MAX) +#if defined(MAXLOGNAME) +# define LOGIN_NAME_MAX MAXLOGNAME +#else # define LOGIN_NAME_MAX (9) -+#endif #endif ++#endif - #if ! defined(_POSIX_LOGIN_NAME_MAX) + #if !defined(_POSIX_LOGIN_NAME_MAX) + # define _POSIX_LOGIN_NAME_MAX LOGIN_NAME_MAX diff --git a/ftp/tnftpd/files/pkg-message.in b/ftp/tnftpd/files/pkg-message.in new file mode 100644 index 000000000000..07752592032f --- /dev/null +++ b/ftp/tnftpd/files/pkg-message.in @@ -0,0 +1,9 @@ +================================================================================ +This port relies on a number of configuration files in %%PREFIX%%/etc. +At the very least, create a ftpusers file with the usernams of users you don't +want to connect (root, toor, etc.). This will allow non-listed users to log in. +Copying /etc/ftpusers to %%PREFIX%%/etc/ftpusers should be sufficient. + +See the man files for more information. The man- and configuration files for +FreeBSD's built-in ftpd can also be of use as examples/additional info. +================================================================================ |