diff options
author | miwi <miwi@FreeBSD.org> | 2013-04-30 11:15:37 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-04-30 11:15:37 +0800 |
commit | 2620102f115cb6d63e0261b640c5f6d0e9ac43f9 (patch) | |
tree | 3bd7101d4cd39791bb55d24fffd28675bc11fcb9 | |
parent | 73463da93a886069ce38f79fbc077fd3d0e489bb (diff) | |
download | freebsd-ports-gnome-2620102f115cb6d63e0261b640c5f6d0e9ac43f9.tar.gz freebsd-ports-gnome-2620102f115cb6d63e0261b640c5f6d0e9ac43f9.tar.zst freebsd-ports-gnome-2620102f115cb6d63e0261b640c5f6d0e9ac43f9.zip |
- Update to 0.8.3
PR: 178152
Submitted by: Ports Fury
-rw-r--r-- | ftp/wzdftpd/Makefile | 129 | ||||
-rw-r--r-- | ftp/wzdftpd/distinfo | 4 | ||||
-rw-r--r-- | ftp/wzdftpd/files/patch-ac-helpers__tls.m4 | 11 | ||||
-rw-r--r-- | ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_avahi.h | 10 | ||||
-rw-r--r-- | ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_zeroconf.c | 10 | ||||
-rw-r--r-- | ftp/wzdftpd/files/wzdftpd.in | 2 | ||||
-rw-r--r-- | ftp/wzdftpd/pkg-plist | 117 |
7 files changed, 167 insertions, 116 deletions
diff --git a/ftp/wzdftpd/Makefile b/ftp/wzdftpd/Makefile index 3c515c1dfa5c..477fd1508ecf 100644 --- a/ftp/wzdftpd/Makefile +++ b/ftp/wzdftpd/Makefile @@ -2,55 +2,54 @@ # $FreeBSD$ PORTNAME= wzdftpd -PORTVERSION= 0.8.1 -PORTREVISION= 9 +PORTVERSION= 0.8.3 CATEGORIES= ftp ipv6 -MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-0.8 +MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-${PORTVERSION:R} MAINTAINER= ports@FreeBSD.org COMMENT= Modular FTP server configurable online using SITE commands +LICENSE= GPLv2 # (or later) + +OPTIONS_DEFINE= ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL +OPTIONS_RADIO= TLS ZEROCONF +OPTIONS_RADIO_TLS= GNUTLS OPENSSL +OPTIONS_RADIO_ZEROCONF= AVAHI HOWL +OPTIONS_DEFAULT= AVAHI GNUTLS +HOWL_DESC= Zeroconf support via Howl + USES= pkgconfig -USE_AUTOTOOLS= libtool -USE_RC_SUBR= wzdftpd -USE_GMAKE= yes -GNU_CONFIGURE= yes +USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf +LIBTOOLIZE_ARGS=--copy --force +ACLOCAL_ARGS= -I m4 -I ac-helpers +AUTOMAKE_ARGS= --add-missing --copy +CONFIGURE_ARGS= --sysconfdir=${ETCDIR} --without-pam --disable-bonjour USE_LDCONFIG= yes -USE_GNOME= ltverhack -CONFIGURE_ARGS+= --without-pam --disable-pgsql --disable-bonjour -CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} -LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} -PKGMESSAGE= ${WRKDIR}/pkg-message - -OPTIONS_DEFINE= UTF8 TCL OPENSSL GNUTLS IPV6 PERL MYSQL -OPTIONS_RADIO= ZEROCONF -OPTIONS_RADIO_ZEROCONF= AVAHI HOWL -OPTIONS_DEFAULT= GNUTLS IPV6 AVAHI +MAKE_JOBS_SAFE= yes -UTF8_DESC= Enable UTF8 support -HOWL_DESC= Enable Zeroconf support using Howl -AVAHI_DESC= Enable Zeroconf support using Avahi +USE_RC_SUBR= wzdftpd + +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib -MAN1= siteconfig.1 \ - siteuptime.1 \ - sitewho.1 \ - wzd-config.1 -MAN8= wzdftpd.8 +MAN1= siteconfig.1 siteuptime.1 sitewho.1 wzd-config.1 +MAN8= wzdftpd.8 .include <bsd.port.options.mk> -.if ${PORT_OPTIONS:MUTF8} +.if ${PORT_OPTIONS:MICONV} USES+= iconv +CONFIGURE_ARGS+= --with-libiconv-prefix=${LOCALBASE} .else CONFIGURE_ARGS+= --disable-utf8 .endif .if ${PORT_OPTIONS:MTCL} -LIB_DEPENDS+= tcl84:${PORTSDIR}/lang/tcl84 -CONFIGURE_ARGS+= --with-tcl='${PREFIX}/lib/tcl8.4' +USE_TCL_BUILD= yes +USE_TCL= yes +CONFIGURE_ARGS+= --with-tcl=${TCL_LIBDIR} PLIST_SUB+= TCL="" .else -CONFIGURE_ARGS+= --without-tcl PLIST_SUB+= TCL="@comment " .endif @@ -61,21 +60,23 @@ CONFIGURE_ARGS+= --disable-openssl .endif .if ${PORT_OPTIONS:MGNUTLS} -LIB_DEPENDS+= gnutls.26:${PORTSDIR}/security/gnutls +LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls .else CONFIGURE_ARGS+= --disable-gnutls .endif -.if !${PORT_OPTIONS:MIPV6} +.if empty(PORT_OPTIONS:MIPV6) CONFIGURE_ARGS+= --disable-ipv6 .endif -.if !${PORT_OPTIONS:MPERL} -CONFIGURE_ARGS+= --disable-perl -PLIST_SUB+= PERL="@comment " -.else +.if ${PORT_OPTIONS:MPERL} USE_PERL5= yes +MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION} +MAN3+= wzdftpd.3 PLIST_SUB+= PERL="" +.else +CONFIGURE_ARGS+= --disable-perl +PLIST_SUB+= PERL="@comment " .endif .if ${PORT_OPTIONS:MMYSQL} @@ -86,35 +87,73 @@ CONFIGURE_ARGS+= --disable-mysql PLIST_SUB+= MYSQL="@comment " .endif -.if ${PORT_OPTIONS:MZEROCONF} +.if ${PORT_OPTIONS:MPGSQL} +USE_PGSQL= yes +CONFIGURE_ARGS+= --with-pgsql=${LOCALBASE} +PLIST_SUB+= PGSQL="" +.else +CONFIGURE_ARGS+= --disable-pgsql +PLIST_SUB+= PGSQL="@comment " +.endif + +.if ${PORT_OPTIONS:MSQLITE} +USE_SQLITE= 3 +PLIST_SUB+= SQLITE="" +.else +CONFIGURE_ARGS+= --disable-sqlite3 +PLIST_SUB+= SQLITE="@comment " +.endif + +.if ${PORT_OPTIONS:MAVAHI} || ${PORT_OPTIONS:MHOWL} PLIST_SUB+= ZEROCONF="" .else PLIST_SUB+= ZEROCONF="@comment " .endif .if ${PORT_OPTIONS:MAVAHI} -LIB_DEPENDS+= dbus-1.3:${PORTSDIR}/devel/dbus \ - avahi-core.7:${PORTSDIR}/net/avahi-app +LIB_DEPENDS+= dbus-1:${PORTSDIR}/devel/dbus \ + avahi-core:${PORTSDIR}/net/avahi-app CONFIGURE_ARGS+= --with-zeroconf --enable-avahi .endif .if ${PORT_OPTIONS:MHOWL} -CFLAGS+= -I${LOCALBASE}/include/howl -LIB_DEPENDS+= howl.0:${PORTSDIR}/net/howl +LIB_DEPENDS+= howl:${PORTSDIR}/net/howl +CPPFLAGS+= -I${LOCALBASE}/include/howl CONFIGURE_ARGS+= --with-zeroconf --enable-howl .endif -PORTDOCS= AUTHORS Permissions.ReadMeFirst README TLS.ReadMeFirst ChangeLog +post-extract: + @${RM} -f ${WRKSRC}/m4/libtool.m4 + @${RM} -f ${WRKSRC}/m4/lib-*.m4 + @${ECHO_CMD} -n > ${WRKSRC}/config.rpath post-patch: - @${REINPLACE_CMD} -e "s|@HAVE_PERL_TRUE@|#|g" ${WRKSRC}/Makefile.in - @${REINPLACE_CMD} -e "s|-lpthread|${PTHREAD_LIBS}|" ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + '/Libs:/s|@PTHREAD_CFLAGS@|@LTLIBICONV@|' \ + ${WRKSRC}/wzdftpd.pc.in + @${REINPLACE_CMD} -e \ + '/LDFLAGS/s|@PTHREAD_CFLAGS@|@LTLIBICONV@|' \ + ${WRKSRC}/libwzd-core/Makefile.am + @${REINPLACE_CMD} -e \ + 's|INSTALLDIRS=vendor|INSTALLPRIVLIB=$${prefix}/lib| ; \ + /MAKE/s| install| pure_install|' \ + ${WRKSRC}/libwzd-perl/Makefile.am +.for i in backends modules + @${FIND} ${WRKSRC}/${i} -name "Makefile.am" | ${XARGS} \ + ${REINPLACE_CMD} -e \ + '/^libdir/s|$${pkgdatadir}|$${prefix}/lib/wzdftpd|' +.endfor + @${FIND} ${WRKSRC} -name "*_tls.c" | ${XARGS} ${REINPLACE_CMD} -e \ + '/<gcrypt.h>/d ; \ + /gcry_control/d' \ post-install: + (cd ${WRKSRC} && ${INSTALL_DATA} *.pc ${PREFIX}/libdata/pkgconfig ) .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} -.for i in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${i} ${DOCSDIR} +.for i in AUTHORS ChangeLog NEWS Permissions.ReadMeFirst README \ + TLS.ReadMeFirst UPGRADING wzd_tls.cnf + (cd ${WRKSRC} && ${INSTALL_DATA} ${i} ${DOCSDIR}) .endfor .endif diff --git a/ftp/wzdftpd/distinfo b/ftp/wzdftpd/distinfo index 76f8d2af3eb6..1feca65dbf38 100644 --- a/ftp/wzdftpd/distinfo +++ b/ftp/wzdftpd/distinfo @@ -1,2 +1,2 @@ -SHA256 (wzdftpd-0.8.1.tar.gz) = 7d2a41399c7d098489acb8bcf6deb0654971e1efcc02a78ac09633eef35946a0 -SIZE (wzdftpd-0.8.1.tar.gz) = 916176 +SHA256 (wzdftpd-0.8.3.tar.gz) = 14b958739bfe8f2c9e665b036ea627f7830332a43a32000feb1b6e632c18ec5d +SIZE (wzdftpd-0.8.3.tar.gz) = 850981 diff --git a/ftp/wzdftpd/files/patch-ac-helpers__tls.m4 b/ftp/wzdftpd/files/patch-ac-helpers__tls.m4 new file mode 100644 index 000000000000..86f9dd704ec5 --- /dev/null +++ b/ftp/wzdftpd/files/patch-ac-helpers__tls.m4 @@ -0,0 +1,11 @@ +--- ac-helpers/tls.m4.orig ++++ ac-helpers/tls.m4 +@@ -22,7 +22,7 @@ + ) + + if test "$gnutls" = "yes"; then +-AM_PATH_LIBGNUTLS(0.9.8,wzd_have_gnutls=yes) ++PKG_CHECK_MODULES(LIBGNUTLS, [gnutls], [wzd_have_gnutls=yes], [wzd_have_gnutls=no]) + fi + + # openssl is checked only if gnutls was not found or disabled diff --git a/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_avahi.h b/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_avahi.h deleted file mode 100644 index 5d53ed46acb6..000000000000 --- a/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_avahi.h +++ /dev/null @@ -1,10 +0,0 @@ ---- modules/zeroconf/libwzd_avahi.h.orig Wed May 31 14:55:16 2006 -+++ modules/zeroconf/libwzd_avahi.h Wed May 31 14:56:17 2006 -@@ -29,6 +29,7 @@ - #include <stdlib.h>
- #include <assert.h>
- #include <string.h>
-+#include <pthread.h>
-
- #include <libwzd-core/wzd_structs.h>
- #include <libwzd-core/wzd_log.h>
diff --git a/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_zeroconf.c b/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_zeroconf.c deleted file mode 100644 index b86388677afd..000000000000 --- a/ftp/wzdftpd/files/patch-modules-zeroconf-libwzd_zeroconf.c +++ /dev/null @@ -1,10 +0,0 @@ ---- modules/zeroconf/libwzd_zeroconf.c.orig Wed Feb 22 21:44:51 2006 -+++ modules/zeroconf/libwzd_zeroconf.c Wed Feb 22 21:45:26 2006 -@@ -27,6 +27,7 @@ - #include <unistd.h> - #include <sys/types.h> - #include <string.h> -+#include <signal.h> - - #include <arpa/inet.h> /* htonl() */ - #include <sys/wait.h> diff --git a/ftp/wzdftpd/files/wzdftpd.in b/ftp/wzdftpd/files/wzdftpd.in index 133f8a3e5b82..112d07a25b1c 100644 --- a/ftp/wzdftpd/files/wzdftpd.in +++ b/ftp/wzdftpd/files/wzdftpd.in @@ -20,7 +20,7 @@ wzdftpd_enable=${wzdftpd_enable:-"NO"} # Enable wzdftpd name="wzdftpd" rcvar=wzdftpd_enable command="%%PREFIX%%/sbin/${name}" -required_files="%%PREFIX%%/etc/wzd.cfg" +required_files="%%PREFIX%%/etc/wzdftpd/wzd.cfg" load_rc_config $name run_rc_command "$1" diff --git a/ftp/wzdftpd/pkg-plist b/ftp/wzdftpd/pkg-plist index 89de587b2aa7..685e0621048b 100644 --- a/ftp/wzdftpd/pkg-plist +++ b/ftp/wzdftpd/pkg-plist @@ -3,17 +3,19 @@ bin/siteconfig bin/siteuptime bin/sitewho bin/wzd-config -etc/wzd.pem -etc/file_ginfo.txt -etc/file_help.txt -etc/file_swho.txt -etc/file_user.txt -etc/file_group.txt -etc/file_rules.txt -etc/file_users.txt -etc/file_vfs.txt -etc/file_who.txt -etc/file_groups.txt +%%ETCDIR%%/file_ginfo.txt +%%ETCDIR%%/file_group.txt +%%ETCDIR%%/file_groups.txt +%%ETCDIR%%/file_help.txt +%%ETCDIR%%/file_rules.txt +%%ETCDIR%%/file_swho.txt +%%ETCDIR%%/file_user.txt +%%ETCDIR%%/file_users.txt +%%ETCDIR%%/file_vfs.txt +%%ETCDIR%%/file_who.txt +%%ETCDIR%%/users.sample +%%ETCDIR%%/wzd.cfg.sample +%%ETCDIR%%/wzd.pem include/wzdftpd/libwzd-auth/wzd_auth.h include/wzdftpd/libwzd-auth/wzd_base64.h include/wzdftpd/libwzd-auth/wzd_crypt.h @@ -32,7 +34,6 @@ include/wzdftpd/libwzd-base/wzd_strlcat.h include/wzdftpd/libwzd-base/wzd_strtok_r.h include/wzdftpd/libwzd-core/arch/bsd.h include/wzdftpd/libwzd-core/arch/win32.h -include/wzdftpd/libwzd-core/ls.h include/wzdftpd/libwzd-core/wzd_ClientThread.h include/wzdftpd/libwzd-core/wzd_action.h include/wzdftpd/libwzd-core/wzd_all.h @@ -53,8 +54,9 @@ include/wzdftpd/libwzd-core/wzd_group.h include/wzdftpd/libwzd-core/wzd_hardlimits.h include/wzdftpd/libwzd-core/wzd_ip.h include/wzdftpd/libwzd-core/wzd_libmain.h -include/wzdftpd/libwzd-core/wzd_login.h +include/wzdftpd/libwzd-core/wzd_list.h include/wzdftpd/libwzd-core/wzd_log.h +include/wzdftpd/libwzd-core/wzd_login.h include/wzdftpd/libwzd-core/wzd_messages.h include/wzdftpd/libwzd-core/wzd_misc.h include/wzdftpd/libwzd-core/wzd_mod.h @@ -83,45 +85,64 @@ include/wzdftpd/libwzd_err.h include/wzdftpd/libwzd_pv.h include/wzdftpd/libwzd_socket.h include/wzdftpd/libwzd_tls.h -lib/libwzd_core.a -lib/libwzd_core.la -lib/libwzd_core.so -lib/libwzd_core.so.0 lib/libwzd.a lib/libwzd.la lib/libwzd.so -lib/libwzd.so.0 -share/aclocal/wzd.m4 +lib/libwzd.so.801 +lib/libwzd_core.a +lib/libwzd_core.la +lib/libwzd_core.so +lib/libwzd_core.so.801 +%%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/wzdftpd/.packlist +%%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/wzdftpd/wzdftpd.bs +%%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/auto/wzdftpd/wzdftpd.so +%%PERL%%%%SITE_PERL%%/%%PERL_ARCH%%/wzdftpd.pm +%%MYSQL%%lib/wzdftpd/backends/libwzdmysql.a +%%MYSQL%%lib/wzdftpd/backends/libwzdmysql.la +%%MYSQL%%lib/wzdftpd/backends/libwzdmysql.so +%%PGSQL%%lib/wzdftpd/backends/libwzdpgsql.a +%%PGSQL%%lib/wzdftpd/backends/libwzdpgsql.la +%%PGSQL%%lib/wzdftpd/backends/libwzdpgsql.so +lib/wzdftpd/backends/libwzdplaintext.a +lib/wzdftpd/backends/libwzdplaintext.la +lib/wzdftpd/backends/libwzdplaintext.so +%%SQLITE%%lib/wzdftpd/backends/libwzdsqlite.a +%%SQLITE%%lib/wzdftpd/backends/libwzdsqlite.la +%%SQLITE%%lib/wzdftpd/backends/libwzdsqlite.so +lib/wzdftpd/modules/libwzd_debug.a +lib/wzdftpd/modules/libwzd_debug.la +lib/wzdftpd/modules/libwzd_debug.so +%%PERL%%lib/wzdftpd/modules/libwzd_perl.a +%%PERL%%lib/wzdftpd/modules/libwzd_perl.la +%%PERL%%lib/wzdftpd/modules/libwzd_perl.so +lib/wzdftpd/modules/libwzd_sfv.a +lib/wzdftpd/modules/libwzd_sfv.la +lib/wzdftpd/modules/libwzd_sfv.so +%%TCL%%lib/wzdftpd/modules/libwzd_tcl.a +%%TCL%%lib/wzdftpd/modules/libwzd_tcl.la +%%TCL%%lib/wzdftpd/modules/libwzd_tcl.so +%%ZEROCONF%%lib/wzdftpd/modules/libwzd_zeroconf.a +%%ZEROCONF%%lib/wzdftpd/modules/libwzd_zeroconf.la +%%ZEROCONF%%lib/wzdftpd/modules/libwzd_zeroconf.so +libdata/pkgconfig/wzdftpd.pc +%%PORTDOCS%%%%DOCSDIR%%/AUTHORS +%%PORTDOCS%%%%DOCSDIR%%/ChangeLog +%%PORTDOCS%%%%DOCSDIR%%/NEWS +%%PORTDOCS%%%%DOCSDIR%%/Permissions.ReadMeFirst +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTDOCS%%%%DOCSDIR%%/TLS.ReadMeFirst +%%PORTDOCS%%%%DOCSDIR%%/UPGRADING +%%PORTDOCS%%%%DOCSDIR%%/wzd_tls.cnf sbin/wzdftpd -%%DATADIR%%/backends/libwzdplaintext.a -%%DATADIR%%/backends/libwzdplaintext.la -%%DATADIR%%/backends/libwzdplaintext.so -%%MYSQL%%%%DATADIR%%/backends/libwzdmysql.a -%%MYSQL%%%%DATADIR%%/backends/libwzdmysql.la -%%MYSQL%%%%DATADIR%%/backends/libwzdmysql.so -%%DATADIR%%/modules/libwzd_debug.so -%%DATADIR%%/modules/libwzd_debug.la -%%DATADIR%%/modules/libwzd_debug.a -%%DATADIR%%/modules/libwzd_sfv.a -%%DATADIR%%/modules/libwzd_sfv.la -%%DATADIR%%/modules/libwzd_sfv.so -%%PERL%%%%DATADIR%%/modules/libwzd_perl.a -%%PERL%%%%DATADIR%%/modules/libwzd_perl.la -%%PERL%%%%DATADIR%%/modules/libwzd_perl.so -%%TCL%%%%DATADIR%%/modules/libwzd_tcl.a -%%TCL%%%%DATADIR%%/modules/libwzd_tcl.la -%%TCL%%%%DATADIR%%/modules/libwzd_tcl.so -%%ZEROCONF%%%%DATADIR%%/modules/libwzd_zeroconf.a -%%ZEROCONF%%%%DATADIR%%/modules/libwzd_zeroconf.la -%%ZEROCONF%%%%DATADIR%%/modules/libwzd_zeroconf.so -@dirrm %%DATADIR%%/modules/ -@dirrm %%DATADIR%%/backends/ -@dirrm %%DATADIR%%/ -@dirrm include/wzdftpd/libwzd-auth -@dirrm include/wzdftpd/libwzd-base +share/aclocal/wzd.m4 +%%PORTDOCS%%@dirrm %%DOCSDIR%% +@dirrm lib/wzdftpd/modules +@dirrm lib/wzdftpd/backends +@dirrm lib/wzdftpd +%%PERL%%@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/wzdftpd @dirrm include/wzdftpd/libwzd-core/arch @dirrm include/wzdftpd/libwzd-core +@dirrm include/wzdftpd/libwzd-base +@dirrm include/wzdftpd/libwzd-auth @dirrm include/wzdftpd -etc/wzd.cfg.sample -etc/users.sample -@dirrmtry etc/wzdftpd +@dirrmtry %%ETCDIR%% |