From owner-svn-ports-head@freebsd.org Mon Jan 30 18:04:30 2017 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A2F05CC7C33; Mon, 30 Jan 2017 18:04:30 +0000 (UTC) (envelope-from dinoex@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 mx1.freebsd.org (Postfix) with ESMTPS id 63C7210F7; Mon, 30 Jan 2017 18:04:30 +0000 (UTC) (envelope-from dinoex@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id v0UI4ToA092339; Mon, 30 Jan 2017 18:04:29 GMT (envelope-from dinoex@FreeBSD.org) Received: (from dinoex@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id v0UI4Th1092335; Mon, 30 Jan 2017 18:04:29 GMT (envelope-from dinoex@FreeBSD.org) Message-Id: <201701301804.v0UI4Th1092335@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: dinoex set sender to dinoex@FreeBSD.org using -f From: Dirk Meyer Date: Mon, 30 Jan 2017 18:04:29 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r432861 - in head/ftp/vsftpd: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 30 Jan 2017 18:04:30 -0000 Author: dinoex Date: Mon Jan 30 18:04:28 2017 New Revision: 432861 URL: https://svnweb.freebsd.org/changeset/ports/432861 Log: - fix build for FreeBSD-12 - make portlint happier Added: head/ftp/vsftpd/files/patch-utility.c - copied, changed from r432860, head/ftp/vsftpd/files/patch-utility Deleted: head/ftp/vsftpd/files/patch-utility Modified: head/ftp/vsftpd/files/patch-sysdeputil.c head/ftp/vsftpd/files/patch-sysstr.c head/ftp/vsftpd/pkg-plist Modified: head/ftp/vsftpd/files/patch-sysdeputil.c ============================================================================== --- head/ftp/vsftpd/files/patch-sysdeputil.c Mon Jan 30 17:49:17 2017 (r432860) +++ head/ftp/vsftpd/files/patch-sysdeputil.c Mon Jan 30 18:04:28 2017 (r432861) @@ -1,15 +1,25 @@ ---- sysdeputil.c.orig 2012-09-16 06:18:04.000000000 +0200 -+++ sysdeputil.c 2012-10-13 20:20:42.000000000 +0200 -@@ -57,7 +57,7 @@ +--- sysdeputil.c.orig 2012-09-16 04:18:04 UTC ++++ sysdeputil.c +@@ -103,6 +103,7 @@ + #if (defined(__FreeBSD__) && __FreeBSD__ >= 3) + #define VSF_SYSDEP_HAVE_FREEBSD_SENDFILE + #define VSF_SYSDEP_HAVE_SETPROCTITLE ++ #undef VSF_SYSDEP_HAVE_LIBCAP #endif - #define VSF_SYSDEP_HAVE_SHADOW - #define VSF_SYSDEP_HAVE_USERSHELL --#define VSF_SYSDEP_HAVE_LIBCAP -+#undef VSF_SYSDEP_HAVE_LIBCAP - #define VSF_SYSDEP_HAVE_UTMPX - #define __USE_GNU -@@ -323,8 +323,12 @@ + #if defined(__NetBSD__) +@@ -177,8 +178,10 @@ + #include + #endif + ++#ifdef VSF_SYSDEP_HAVE_LIBCAP + /* Prefer libcap based capabilities over raw syscall capabilities */ + #include ++#endif + + #if defined(VSF_SYSDEP_HAVE_CAPABILITIES) && !defined(VSF_SYSDEP_HAVE_LIBCAP) + #include +@@ -323,8 +326,12 @@ vsf_sysdep_check_auth(struct mystr* p_us const struct mystr* p_remote_host) { int retval = -1; @@ -22,7 +32,7 @@ struct pam_conv the_conv = { &pam_conv_func, -@@ -1216,7 +1220,9 @@ +@@ -1216,7 +1223,9 @@ vsf_insert_uwtmp(const struct mystr* p_u setutxent(); (void) pututxline(&s_utent); endutxent(); @@ -32,7 +42,7 @@ } void -@@ -1235,7 +1241,9 @@ +@@ -1235,7 +1244,9 @@ vsf_remove_uwtmp(void) (void) pututxline(&s_utent); endutxent(); s_utent.ut_tv.tv_sec = vsf_sysutil_get_time_sec(); Modified: head/ftp/vsftpd/files/patch-sysstr.c ============================================================================== --- head/ftp/vsftpd/files/patch-sysstr.c Mon Jan 30 17:49:17 2017 (r432860) +++ head/ftp/vsftpd/files/patch-sysstr.c Mon Jan 30 18:04:28 2017 (r432861) @@ -1,6 +1,6 @@ ---- sysstr.c.orig 2011-12-14 18:26:39.000000000 +0800 -+++ sysstr.c 2012-07-24 11:27:18.000000000 +0800 -@@ -74,7 +74,7 @@ +--- sysstr.c.orig 2011-12-14 10:26:39 UTC ++++ sysstr.c +@@ -74,7 +74,7 @@ str_chdir(const struct mystr* p_str) int str_open(const struct mystr* p_str, const enum EVSFSysStrOpenMode mode) { Copied and modified: head/ftp/vsftpd/files/patch-utility.c (from r432860, head/ftp/vsftpd/files/patch-utility) ============================================================================== --- head/ftp/vsftpd/files/patch-utility Mon Jan 30 17:49:17 2017 (r432860, copy source) +++ head/ftp/vsftpd/files/patch-utility.c Mon Jan 30 18:04:28 2017 (r432861) @@ -1,6 +1,6 @@ ---- utility.c.orig Fri Jul 2 18:26:30 2004 -+++ utility.c Mon Oct 10 01:19:02 2005 -@@ -33,6 +33,10 @@ +--- utility.c.orig 2012-09-16 04:09:09 UTC ++++ utility.c +@@ -40,6 +40,10 @@ die2(const char* p_text1, const char* p_ void bug(const char* p_text) { Modified: head/ftp/vsftpd/pkg-plist ============================================================================== --- head/ftp/vsftpd/pkg-plist Mon Jan 30 17:49:17 2017 (r432860) +++ head/ftp/vsftpd/pkg-plist Mon Jan 30 18:04:28 2017 (r432861) @@ -1,13 +1,13 @@ libexec/vsftpd man/man5/vsftpd.conf.5.gz man/man8/vsftpd.8.gz -@exec if ! pw groupshow ftp 2>/dev/null; then pw groupadd ftp -g 14; fi -@exec if ! pw usershow ftp 2>/dev/null; then pw useradd ftp -g ftp -u 14 -h - -d /var/ftp -s /nonexistent -c "Anonymous FTP"; fi -@unexec if diff -q %D/etc/vsftpd.conf %D/etc/vsftpd.conf.dist; then rm %D/etc/vsftpd.conf; fi +@preexec if ! pw groupshow ftp 2>/dev/null; then pw groupadd ftp -g 14; fi +@preexec if ! pw usershow ftp 2>/dev/null; then pw useradd ftp -g ftp -u 14 -h - -d /var/ftp -s /nonexistent -c "Anonymous FTP"; fi +@preunexec if diff -q %D/etc/vsftpd.conf %D/etc/vsftpd.conf.dist; then rm %D/etc/vsftpd.conf; fi etc/vsftpd.conf.dist -@exec if [ ! -f %B/vsftpd.conf ]; then cp %B/vsftpd.conf.dist %B/vsftpd.conf; fi -@unexec rmdir /var/ftp 2>/dev/null || true -@exec if [ ! -d /var/ftp ]; then mkdir /var/ftp ; fi +@postexec if [ ! -f %B/vsftpd.conf ]; then cp %B/vsftpd.conf.dist %B/vsftpd.conf; fi +@postunexec rmdir /var/ftp 2>/dev/null || true +@postexec if [ ! -d /var/ftp ]; then mkdir /var/ftp ; fi @dir %%DATADIR%%/empty %%PORTDOCS%%%%DOCSDIR%%/AUDIT %%PORTDOCS%%%%DOCSDIR%%/BENCHMARKS