Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Jul 2021 12:50:20 GMT
From:      Alexey Dokuchaev <danfe@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 01dd3d3c6a79 - main - ftp/wzdftpd: the port had been further improved (+)
Message-ID:  <202107081250.168CoKRx090702@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=01dd3d3c6a79e9477a81d51fa957a4e9372587c8

commit 01dd3d3c6a79e9477a81d51fa957a4e9372587c8
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-07-08 12:48:08 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-07-08 12:48:24 +0000

    ftp/wzdftpd: the port had been further improved (+)
    
    - Unbreak the build against OpenSSL (untested)
    - Do not install useless static libraries
    - Build with PAM support (and enable by default)
    - Annotate installed sample configuration file as @sample
    - Minor textual nits in rc script and port description
---
 ftp/wzdftpd/Makefile                          | 11 ++++++-----
 ftp/wzdftpd/files/patch-libwzd-core_wzd_tls.c | 11 ++++++++++-
 ftp/wzdftpd/files/wzdftpd.in                  |  5 +----
 ftp/wzdftpd/pkg-descr                         |  4 ++--
 ftp/wzdftpd/pkg-plist                         | 14 ++------------
 5 files changed, 21 insertions(+), 24 deletions(-)

diff --git a/ftp/wzdftpd/Makefile b/ftp/wzdftpd/Makefile
index 63eec6fcd56b..9254cca4571b 100644
--- a/ftp/wzdftpd/Makefile
+++ b/ftp/wzdftpd/Makefile
@@ -2,7 +2,7 @@
 
 PORTNAME=	wzdftpd
 PORTVERSION=	0.8.3
-PORTREVISION=	7
+PORTREVISION=	8
 CATEGORIES=	ftp
 MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-${PORTVERSION:R}
 
@@ -14,16 +14,16 @@ LICENSE_FILE=	${WRKSRC}/COPYING
 
 USES=		autoreconf gettext-tools libtool localbase pkgconfig
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--sysconfdir=${ETCDIR} --without-pam --disable-bonjour
+CONFIGURE_ARGS=	--sysconfdir=${ETCDIR} --disable-bonjour --disable-static
 INSTALL_TARGET=	install-strip
 USE_LDCONFIG=	yes
 
 USE_RC_SUBR=	wzdftpd
 
-OPTIONS_DEFINE=	AVAHI ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL DOCS
+OPTIONS_DEFINE=	AVAHI DOCS ICONV IPV6 MYSQL PAM PERL PGSQL SQLITE TCL
 OPTIONS_RADIO=	TLS
 OPTIONS_RADIO_TLS=	GNUTLS OPENSSL
-OPTIONS_DEFAULT=	AVAHI GNUTLS ICONV PERL SQLITE
+OPTIONS_DEFAULT=	AVAHI GNUTLS ICONV PAM PERL SQLITE
 OPTIONS_SUB=	yes
 
 ICONV_CONFIGURE_ON=	${ICONV_CONFIGURE_ARG}
@@ -36,7 +36,6 @@ TCL_USES=		tcl
 
 OPENSSL_CONFIGURE_ENABLE=	openssl
 OPENSSL_USES=		ssl
-OPENSSL_BROKEN=	wzd_tls.c:300:42: error: use of undeclared identifier 'STACK'
 
 GNUTLS_CONFIGURE_ENABLE=	gnutls
 GNUTLS_LIB_DEPENDS=		libgnutls.so:security/gnutls
@@ -49,6 +48,8 @@ PERL_USES=		perl5
 MYSQL_CONFIGURE_ENABLE=	mysql
 MYSQL_USES=		mysql
 
+PAM_CONFIGURE_WITH=	pam
+
 PGSQL_CONFIGURE_ON=	--with-pgsql=${LOCALBASE}
 PGSQL_CONFIGURE_OFF=	--disable-pgsql
 PGSQL_USES=		pgsql
diff --git a/ftp/wzdftpd/files/patch-libwzd-core_wzd_tls.c b/ftp/wzdftpd/files/patch-libwzd-core_wzd_tls.c
index 6c755286c6e3..c474a2fecf96 100644
--- a/ftp/wzdftpd/files/patch-libwzd-core_wzd_tls.c
+++ b/ftp/wzdftpd/files/patch-libwzd-core_wzd_tls.c
@@ -1,5 +1,14 @@
 --- libwzd-core/wzd_tls.c.orig	2007-10-25 17:25:33 UTC
 +++ libwzd-core/wzd_tls.c
+@@ -297,7 +297,7 @@ int tls_init(void)
+       return 1;
+     }
+ 
+-    SSL_CTX_set_client_CA_list(tls_ctx, (STACK *)ca_list);
++    SSL_CTX_set_client_CA_list(tls_ctx, ca_list);
+   }
+ 
+   SSL_CTX_set_session_cache_mode(tls_ctx, SSL_SESS_CACHE_CLIENT);
 @@ -946,19 +946,13 @@ int tls_exit(void)
  
  static gnutls_session initialize_tls_session(gnutls_connection_end con_end)
@@ -22,7 +31,7 @@
  
    gnutls_credentials_set(session, GNUTLS_CRD_CERTIFICATE, x509_cred);
  
-@@ -1001,27 +995,6 @@ int tls_auth (const char *type, wzd_cont
+@@ -1001,27 +995,6 @@ int tls_auth (const char *type, wzd_context_t * contex
    }
  
    /** \todo XXX parse TLS cipher names */
diff --git a/ftp/wzdftpd/files/wzdftpd.in b/ftp/wzdftpd/files/wzdftpd.in
index 2be8e0ee1fca..866449da8ceb 100644
--- a/ftp/wzdftpd/files/wzdftpd.in
+++ b/ftp/wzdftpd/files/wzdftpd.in
@@ -1,14 +1,11 @@
 #!/bin/sh
 
-# Start or stop wzdftpd
-
 # PROVIDE: wzdftpd
 # REQUIRE: DAEMON
 # BEFORE: LOGIN
 # KEYWORD: shutdown
 #
-
-# Add the following lines to /etc/rc.conf to enable wzdftpd
+# Add the following lines to /etc/rc.conf to enable wzdftpd:
 # wzdftpd_enable="YES"
 # wzdftpd_flags="<set as needed>"
 
diff --git a/ftp/wzdftpd/pkg-descr b/ftp/wzdftpd/pkg-descr
index cb2eab5245a2..b3a81f744537 100644
--- a/ftp/wzdftpd/pkg-descr
+++ b/ftp/wzdftpd/pkg-descr
@@ -1,5 +1,5 @@
-wzdftpd is a ftp server designed to be modular and entirely configurable online
-using SITE commands.
+wzdftpd is an FTP server designed to be modular and entirely configurable
+online using SITE commands.
 
 wzdftpd offers the following features:
 - Simple configuration file, supporting inclusions
diff --git a/ftp/wzdftpd/pkg-plist b/ftp/wzdftpd/pkg-plist
index 58b8bb9b5802..b3a273711cd7 100644
--- a/ftp/wzdftpd/pkg-plist
+++ b/ftp/wzdftpd/pkg-plist
@@ -18,7 +18,7 @@ man/man8/wzdftpd.8.gz
 %%ETCDIR%%/file_vfs.txt
 %%ETCDIR%%/file_who.txt
 %%ETCDIR%%/users.sample
-%%ETCDIR%%/wzd.cfg.sample
+@sample %%ETCDIR%%/wzd.cfg.sample
 %%ETCDIR%%/wzd.pem
 include/wzdftpd/libwzd-auth/wzd_auth.h
 include/wzdftpd/libwzd-auth/wzd_base64.h
@@ -89,34 +89,24 @@ include/wzdftpd/libwzd_err.h
 include/wzdftpd/libwzd_pv.h
 include/wzdftpd/libwzd_socket.h
 include/wzdftpd/libwzd_tls.h
-lib/libwzd.a
 lib/libwzd.so
 lib/libwzd.so.0
 lib/libwzd.so.0.801.1
-lib/libwzd_core.a
 lib/libwzd_core.so
 lib/libwzd_core.so.0
 lib/libwzd_core.so.0.801.1
 %%PERL%%%%SITE_ARCH%%/auto/wzdftpd/wzdftpd.so
 %%PERL%%%%SITE_ARCH%%/wzdftpd.pm
-%%MYSQL%%lib/wzdftpd/backends/libwzdmysql.a
 %%MYSQL%%lib/wzdftpd/backends/libwzdmysql.so
-%%PGSQL%%lib/wzdftpd/backends/libwzdpgsql.a
+%%PAM%%lib/wzdftpd/backends/libwzdpam.so
 %%PGSQL%%lib/wzdftpd/backends/libwzdpgsql.so
-lib/wzdftpd/backends/libwzdplaintext.a
 lib/wzdftpd/backends/libwzdplaintext.so
-%%SQLITE%%lib/wzdftpd/backends/libwzdsqlite.a
 %%SQLITE%%lib/wzdftpd/backends/libwzdsqlite.so
-lib/wzdftpd/modules/libwzd_debug.a
 lib/wzdftpd/modules/libwzd_debug.so
-%%PERL%%lib/wzdftpd/modules/libwzd_perl.a
 %%PERL%%lib/wzdftpd/modules/libwzd_perl.so
 %%PERL%%%%PERL5_MAN3%%/wzdftpd.3.gz
-lib/wzdftpd/modules/libwzd_sfv.a
 lib/wzdftpd/modules/libwzd_sfv.so
-%%TCL%%lib/wzdftpd/modules/libwzd_tcl.a
 %%TCL%%lib/wzdftpd/modules/libwzd_tcl.so
-%%AVAHI%%lib/wzdftpd/modules/libwzd_zeroconf.a
 %%AVAHI%%lib/wzdftpd/modules/libwzd_zeroconf.so
 libdata/pkgconfig/wzdftpd.pc
 %%PORTDOCS%%%%DOCSDIR%%/AUTHORS



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107081250.168CoKRx090702>