From 0dc848abaaf66a52a0bb6372daa744310b71ac2f Mon Sep 17 00:00:00 2001 From: Pav Lucistnik Date: Mon, 24 May 2004 21:31:32 +0000 Subject: [PATCH] - Update to 0.3.2 - Add WITH_UTF8 and WITH_TCL knobs PR: ports/67121 Submitted by: Roman Bogorodskiy (maintainer) --- ftp/wzdftpd/Makefile | 29 +++++++++++++++++++++++++++-- ftp/wzdftpd/distinfo | 4 ++-- ftp/wzdftpd/pkg-plist | 3 +++ 3 files changed, 32 insertions(+), 4 deletions(-) diff --git a/ftp/wzdftpd/Makefile b/ftp/wzdftpd/Makefile index 79ed4c8697f0..1af5e976cd0b 100644 --- a/ftp/wzdftpd/Makefile +++ b/ftp/wzdftpd/Makefile @@ -6,8 +6,7 @@ # PORTNAME= wzdftpd -PORTVERSION= 0.3.1 -PORTREVISION= 1 +PORTVERSION= 0.3.2 CATEGORIES= ftp ipv6 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -15,6 +14,7 @@ MASTER_SITE_SUBDIR= ${PORTNAME} MAINTAINER= bogorodskiy@inbox.ru COMMENT= Modular FTP server configurable online using SITE commands +USE_REINPLACE= yes USE_GMAKE= yes USE_GETOPT_LONG=yes GNU_CONFIGURE= yes @@ -23,6 +23,26 @@ USE_LIBTOOL_VER=13 CONFIGURE_ARGS+= --without-mysql CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL} +.if defined(PACKAGE_BUILDING) +WITH_UTF8= yes +WITH_TCL= yes +WITH_SSL= yes +WITH_IPV6= yes +.endif + +.if defined(WITH_UTF8) +USE_ICONV= yes +CONFIGURE_ARGS+= --enable-utf8 +.endif + +.if defined(WITH_TCL) +LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl84 +CONFIGURE_ARGS+= --with-tcl='${PREFIX}/include/tcl8.4:${PREFIX}/lib' +PLIST_SUB+= TCL="" +.else +PLIST_SUB+= TCL="@comment " +.endif + .if defined(WITH_SSL) USE_OPENSSL= yes CONFIGURE_ARGS+= --enable-ssl @@ -35,6 +55,11 @@ CONFIGURE_ARGS+= --enable-ipv6 DOCS= AUTHORS Permissions.ReadMeFirst README TLS.ReadMeFirst \ ChangeLog src/DOCS_XFERLOG_FORMAT src/KNOWN_BUGS src/TODO +post-extract: +.if defined(WITH_TCL) + @${REINPLACE_CMD} -e 's|-ltcl8.4|-ltcl84|g' ${WRKSRC}/configure +.endif + post-install: ${MV} ${PREFIX}/etc/wzd.cfg ${PREFIX}/etc/wzd.cfg.sample ${MV} ${PREFIX}/etc/users ${DATADIR}/users.sample diff --git a/ftp/wzdftpd/distinfo b/ftp/wzdftpd/distinfo index 464af0d199a4..86b51e21b542 100644 --- a/ftp/wzdftpd/distinfo +++ b/ftp/wzdftpd/distinfo @@ -1,2 +1,2 @@ -MD5 (wzdftpd-0.3.1.tar.gz) = 829ec5588a75f7cfe7e1c4c8f6c4a685 -SIZE (wzdftpd-0.3.1.tar.gz) = 595594 +MD5 (wzdftpd-0.3.2.tar.gz) = 4fe01d9bca959eb507654cacc78f1133 +SIZE (wzdftpd-0.3.2.tar.gz) = 612698 diff --git a/ftp/wzdftpd/pkg-plist b/ftp/wzdftpd/pkg-plist index ef1bc0d5812e..f96794d3f59d 100644 --- a/ftp/wzdftpd/pkg-plist +++ b/ftp/wzdftpd/pkg-plist @@ -34,6 +34,9 @@ etc/file_groups.txt %%DATADIR%%/modules/libwzd_sfv.la %%DATADIR%%/modules/libwzd_sfv.a %%DATADIR%%/modules/libwzd_sfv.so +%%TCL%%%%DATADIR%%/modules/libwzd_tcl.a +%%TCL%%%%DATADIR%%/modules/libwzd_tcl.la +%%TCL%%%%DATADIR%%/modules/libwzd_tcl.so @dirrm %%DATADIR%%/modules/ @dirrm %%DATADIR%%/backends/ @dirrm %%DATADIR%%/