From owner-svn-ports-all@freebsd.org Wed Sep 2 06:40:08 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 2F68B3CEB8A; Wed, 2 Sep 2020 06:40:08 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BhDp00NxFz4KrX; Wed, 2 Sep 2020 06:40:08 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E22C3260EC; Wed, 2 Sep 2020 06:40:07 +0000 (UTC) (envelope-from fernape@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 0826e7a9073259; Wed, 2 Sep 2020 06:40:07 GMT (envelope-from fernape@FreeBSD.org) Received: (from fernape@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 0826e6F4073252; Wed, 2 Sep 2020 06:40:06 GMT (envelope-from fernape@FreeBSD.org) Message-Id: <202009020640.0826e6F4073252@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: fernape set sender to fernape@FreeBSD.org using -f From: =?UTF-8?Q?Fernando_Apestegu=c3=ada?= Date: Wed, 2 Sep 2020 06:40:06 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r547332 - in head/ftp/tnftpd: . files X-SVN-Group: ports-head X-SVN-Commit-Author: fernape X-SVN-Commit-Paths: in head/ftp/tnftpd: . files X-SVN-Commit-Revision: 547332 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Sep 2020 06:40:08 -0000 Author: fernape Date: Wed Sep 2 06:40:06 2020 New Revision: 547332 URL: https://svnweb.freebsd.org/changeset/ports/547332 Log: ftp/tnftpd: update to 20200704 Includes fix for clang11 -fno-common issue While here, pet linters. PR: 248831 Submitted by: cejkar@fit.vutbr.cz (maintainer) MFH: 2020Q3 (build fix, fno-common) Deleted: head/ftp/tnftpd/files/patch-configure.ac Modified: head/ftp/tnftpd/Makefile head/ftp/tnftpd/distinfo head/ftp/tnftpd/files/patch-src-Makefile.am head/ftp/tnftpd/files/patch-src-ftpd.c head/ftp/tnftpd/files/patch-src-logutmp.c head/ftp/tnftpd/files/patch-src-logwtmp.c head/ftp/tnftpd/files/patch-tnftpd.h Modified: head/ftp/tnftpd/Makefile ============================================================================== --- head/ftp/tnftpd/Makefile Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/Makefile Wed Sep 2 06:40:06 2020 (r547332) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= tnftpd -PORTVERSION= 20130325 +PORTVERSION= 20200704 CATEGORIES= ftp MASTER_SITES= ftp://ftp.netbsd.org/pub/NetBSD/misc/tnftp/ @@ -12,15 +12,18 @@ COMMENT= Enhanced FTP server from NetBSD USES= autoreconf libtool GNU_CONFIGURE= yes -CFLAGS+= -DSUPPORT_UTMPX +CFLAGS+= -DSUPPORT_UTMPX -fcommon +SUB_FILES= pkg-message + PLIST_FILES= libexec/tnftpd \ - man/man5/ftpd.conf.5.gz man/man5/ftpusers.5.gz man/man8/tnftpd.8.gz -PORTDOCS= ChangeLog NEWS README THANKS COPYING + man/man5/ftpd.conf.5.gz \ + man/man5/ftpusers.5.gz \ + man/man8/tnftpd.8.gz +PORTDOCS= COPYING ChangeLog NEWS README THANKS PORTEXAMPLES= ftpd.conf ftpusers OPTIONS_DEFINE= DOCS EXAMPLES -SUB_FILES= pkg-message do-install: ${INSTALL_PROGRAM} ${WRKSRC}/src/tnftpd ${STAGEDIR}${PREFIX}/libexec Modified: head/ftp/tnftpd/distinfo ============================================================================== --- head/ftp/tnftpd/distinfo Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/distinfo Wed Sep 2 06:40:06 2020 (r547332) @@ -1,2 +1,3 @@ -SHA256 (tnftpd-20130325.tar.gz) = 331006f0bcee593af3f4faaaf1de8db825e2aa60449be1c961916b37d562e147 -SIZE (tnftpd-20130325.tar.gz) = 518350 +TIMESTAMP = 1597924555 +SHA256 (tnftpd-20200704.tar.gz) = 92de915e1b4b7e4bd403daac5d89ce67fa73e49e8dda18e230fa86ee98e26ab7 +SIZE (tnftpd-20200704.tar.gz) = 529105 Modified: head/ftp/tnftpd/files/patch-src-Makefile.am ============================================================================== --- head/ftp/tnftpd/files/patch-src-Makefile.am Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/files/patch-src-Makefile.am Wed Sep 2 06:40:06 2020 (r547332) @@ -1,25 +1,23 @@ FreeBSD does have support for utmp/utmpx, so include relevant files into a build. ---- src/Makefile.am.orig 2010-01-04 06:46:29.000000000 +0100 -+++ src/Makefile.am 2010-01-04 06:46:29.000000000 +0100 -@@ -7,7 +7,9 @@ - conf.c \ +--- src/Makefile.am.orig 2019-01-29 12:51:38 UTC ++++ src/Makefile.am +@@ -8,7 +8,9 @@ tnftpd_SOURCES = \ ftpd.c \ ftpcmd.y \ + pfilter.c \ - popen.c + popen.c \ + logutmp.c \ + logwtmp.c - AM_CPPFLAGS = \ - -DHAVE_TNFTPD_H=1 \ -@@ -45,8 +47,6 @@ + noinst_HEADERS = \ extern.h \ +@@ -51,6 +53,4 @@ seddotin = \ + EXTRA_DIST = \ ftpd.conf.manin \ ftpusers.manin \ - logutmp.c \ - logwtmp.c \ - pathnames.h \ - tnftpd.manin \ - version.h + tnftpd.manin Modified: head/ftp/tnftpd/files/patch-src-ftpd.c ============================================================================== --- head/ftp/tnftpd/files/patch-src-ftpd.c Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/files/patch-src-ftpd.c Wed Sep 2 06:40:06 2020 (r547332) @@ -1,9 +1,9 @@ Rewrite utmpx support. ---- src/ftpd.c.orig 2009-11-07 04:26:48.000000000 +0100 -+++ src/ftpd.c 2009-11-07 04:26:48.000000000 +0100 -@@ -504,9 +504,6 @@ - confdir = _DEFAULT_CONFDIR; +--- src/ftpd.c.orig 2020-07-04 04:02:07 UTC ++++ src/ftpd.c +@@ -514,9 +514,6 @@ main(int argc, char *argv[]) + pfilter_open(); if (dowtmp) { -#ifdef SUPPORT_UTMPX @@ -12,7 +12,7 @@ Rewrite utmpx support. #ifdef SUPPORT_UTMP ftpd_initwtmp(); #endif -@@ -1320,23 +1317,18 @@ +@@ -1336,23 +1333,18 @@ login_utmp(const char *line, const char *name, const c (void)gettimeofday(&tv, NULL); #endif #ifdef SUPPORT_UTMPX @@ -41,7 +41,7 @@ Rewrite utmpx support. #endif #ifdef SUPPORT_UTMP if (doutmp) { -@@ -1356,17 +1348,23 @@ +@@ -1372,17 +1364,23 @@ static void logout_utmp(void) { #ifdef SUPPORT_UTMPX Modified: head/ftp/tnftpd/files/patch-src-logutmp.c ============================================================================== --- head/ftp/tnftpd/files/patch-src-logutmp.c Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/files/patch-src-logutmp.c Wed Sep 2 06:40:06 2020 (r547332) @@ -1,9 +1,9 @@ FreeBSD does not have header file util.h, fortunately it is not needed. Add header file time.h for time(). Rewrite utmpx support. ---- src/logutmp.c.orig 2008-09-21 16:44:01.000000000 +0200 -+++ src/logutmp.c 2008-09-21 16:44:01.000000000 +0200 -@@ -71,13 +71,15 @@ +--- src/logutmp.c.orig 2013-03-21 01:02:40 UTC ++++ src/logutmp.c +@@ -71,13 +71,15 @@ __RCSID(" NetBSD: logutmp.c,v 1.12 2011/09/16 16:13:17 #include #include #include @@ -20,7 +20,7 @@ Add header file time.h for time(). Rewrite utmpx suppo #endif /* !defined(HAVE_TNFTPD_H) */ -@@ -161,7 +163,7 @@ +@@ -161,7 +163,7 @@ ftpd_logout(const char *line) } #endif /* SUPPORT_UTMP */ Modified: head/ftp/tnftpd/files/patch-src-logwtmp.c ============================================================================== --- head/ftp/tnftpd/files/patch-src-logwtmp.c Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/files/patch-src-logwtmp.c Wed Sep 2 06:40:06 2020 (r547332) @@ -3,9 +3,9 @@ header files sys/socket.h and netdb.h for getaddrinfo( If host name is longer than UT_HOSTSIZE (16 characters), log numeric address to utmp. Rewrite utmpx support. ---- src/logwtmp.c.orig 2008-09-21 16:44:01.000000000 +0200 -+++ src/logwtmp.c 2008-09-21 16:44:01.000000000 +0200 -@@ -46,11 +46,13 @@ +--- src/logwtmp.c.orig 2019-01-29 12:14:57 UTC ++++ src/logwtmp.c +@@ -46,11 +46,13 @@ __RCSID(" NetBSD: logwtmp.c,v 1.27 2015/08/09 20:34:24 #include #include @@ -19,7 +19,7 @@ address to utmp. Rewrite utmpx support. #include #include #include -@@ -63,7 +65,6 @@ +@@ -63,7 +65,6 @@ __RCSID(" NetBSD: logwtmp.c,v 1.27 2015/08/09 20:34:24 #ifdef SUPPORT_UTMPX #include #endif @@ -27,7 +27,7 @@ address to utmp. Rewrite utmpx support. #ifdef KERBEROS5 #include -@@ -95,6 +96,26 @@ +@@ -95,6 +96,26 @@ ftpd_logwtmp(const char *line, const char *name, const struct utmp ut; struct stat buf; @@ -54,7 +54,7 @@ address to utmp. Rewrite utmpx support. if (fd < 0) return; if (fstat(fd, &buf) == 0) { -@@ -109,7 +130,7 @@ +@@ -109,7 +130,7 @@ ftpd_logwtmp(const char *line, const char *name, const } #endif Modified: head/ftp/tnftpd/files/patch-tnftpd.h ============================================================================== --- head/ftp/tnftpd/files/patch-tnftpd.h Wed Sep 2 05:00:15 2020 (r547331) +++ head/ftp/tnftpd/files/patch-tnftpd.h Wed Sep 2 06:40:06 2020 (r547332) @@ -1,8 +1,8 @@ FreeBSD does not have LOGIN_NAME_MAX, but it has MAXLOGNAME instead, so use it as much as possible. Rewrite utmpx support. ---- tnftpd.h.orig 2009-11-07 10:59:09.000000000 +0100 -+++ tnftpd.h 2009-11-07 10:59:09.000000000 +0100 +--- tnftpd.h.orig 2019-01-29 13:06:14 UTC ++++ tnftpd.h @@ -119,6 +119,8 @@ #endif #if defined(HAVE_UTMP_H) @@ -12,7 +12,7 @@ so use it as much as possible. Rewrite utmpx support. #endif #if defined(HAVE_POLL) -@@ -561,8 +563,12 @@ +@@ -565,7 +567,11 @@ int usleep(unsigned int); #define TM_YEAR_BASE 1900 #if !defined(LOGIN_NAME_MAX) @@ -20,8 +20,7 @@ so use it as much as possible. Rewrite utmpx support. +# define LOGIN_NAME_MAX MAXLOGNAME +#else # define LOGIN_NAME_MAX (9) - #endif +#endif + #endif #if !defined(_POSIX_LOGIN_NAME_MAX) - # define _POSIX_LOGIN_NAME_MAX LOGIN_NAME_MAX