2013-04-23 10:23:53 +00:00
|
|
|
# Created by: Roman Bogorodskiy
|
2003-12-18 16:31:09 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= wzdftpd
|
2013-04-30 03:15:37 +00:00
|
|
|
PORTVERSION= 0.8.3
|
2016-03-27 14:57:59 +00:00
|
|
|
PORTREVISION= 6
|
2003-12-18 16:31:09 +00:00
|
|
|
CATEGORIES= ftp ipv6
|
2013-04-30 03:15:37 +00:00
|
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-${PORTVERSION:R}
|
2003-12-18 16:31:09 +00:00
|
|
|
|
2011-09-24 17:16:46 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-12-18 16:31:09 +00:00
|
|
|
COMMENT= Modular FTP server configurable online using SITE commands
|
|
|
|
|
2016-01-12 16:20:31 +00:00
|
|
|
LICENSE= GPLv2+
|
2017-04-08 11:03:01 +00:00
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2013-04-30 03:15:37 +00:00
|
|
|
|
2017-04-08 11:03:01 +00:00
|
|
|
USES= autoreconf gettext-tools libtool localbase pkgconfig
|
2014-11-29 18:22:32 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2013-04-30 03:15:37 +00:00
|
|
|
CONFIGURE_ARGS= --sysconfdir=${ETCDIR} --without-pam --disable-bonjour
|
2015-05-30 00:35:49 +00:00
|
|
|
INSTALL_TARGET= install-strip
|
2007-01-02 08:54:13 +00:00
|
|
|
USE_LDCONFIG= yes
|
2012-06-12 10:34:46 +00:00
|
|
|
|
2013-04-30 03:15:37 +00:00
|
|
|
USE_RC_SUBR= wzdftpd
|
|
|
|
|
2017-04-08 11:03:01 +00:00
|
|
|
OPTIONS_DEFINE= ICONV IPV6 MYSQL PERL PGSQL SQLITE TCL DOCS
|
|
|
|
OPTIONS_RADIO= TLS ZEROCONF
|
|
|
|
OPTIONS_RADIO_TLS= GNUTLS OPENSSL
|
|
|
|
OPTIONS_RADIO_ZEROCONF= AVAHI HOWL
|
|
|
|
OPTIONS_DEFAULT= AVAHI GNUTLS
|
|
|
|
OPTIONS_SUB= yes
|
2004-07-01 23:38:36 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
|
|
|
|
ICONV_CONFIGURE_OFF= --disable-utf8
|
|
|
|
ICONV_USES= iconv
|
2004-05-24 21:31:32 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
TCL_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR}
|
|
|
|
TCL_CONFIGURE_OFF= --without-tcl
|
|
|
|
TCL_USES= tcl
|
2004-11-05 08:30:57 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
OPENSSL_CONFIGURE_ENABLE= openssl
|
2017-03-15 14:45:54 +00:00
|
|
|
OPENSSL_USES= ssl
|
2004-05-24 21:31:32 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
GNUTLS_CONFIGURE_ENABLE= gnutls
|
2016-04-01 14:00:51 +00:00
|
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
2004-05-24 21:31:32 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
2005-02-25 19:22:21 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
PERL_CONFIGURE_ENABLE= perl
|
|
|
|
PERL_USES= perl5
|
2003-12-18 16:31:09 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
MYSQL_CONFIGURE_ENABLE= mysql
|
|
|
|
MYSQL_USE= MYSQL=yes
|
2003-12-18 16:31:09 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
PGSQL_CONFIGURE_ON= --with-pgsql=${LOCALBASE}
|
|
|
|
PGSQL_CONFIGURE_OFF= --disable-pgsql
|
2014-11-22 19:13:49 +00:00
|
|
|
PGSQL_USES= pgsql
|
2004-08-28 20:31:48 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
SQLITE_CONFIGURE_ENABLE= sqlite3
|
2016-04-25 16:13:38 +00:00
|
|
|
SQLITE_USES= sqlite:3
|
2005-02-25 19:22:21 +00:00
|
|
|
|
2014-02-09 01:54:21 +00:00
|
|
|
AVAHI_CONFIGURE_ON= --with-zeroconf --enable-avahi
|
2016-04-01 14:00:51 +00:00
|
|
|
AVAHI_LIB_DEPENDS= libdbus-1.so:devel/dbus \
|
|
|
|
libavahi-core.so:net/avahi-app
|
2013-04-30 03:15:37 +00:00
|
|
|
|
2017-04-08 11:03:01 +00:00
|
|
|
HOWL_DESC= Zeroconf support via Howl
|
2014-02-09 01:54:21 +00:00
|
|
|
HOWL_CONFIGURE_ON= --with-zeroconf --enable-howl
|
|
|
|
HOWL_CPPFLAGS= -I${LOCALBASE}/include/howl
|
2016-04-01 14:00:51 +00:00
|
|
|
HOWL_LIB_DEPENDS= libhowl.so:net/howl
|
2014-02-09 01:54:21 +00:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
2013-04-30 03:15:37 +00:00
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MAVAHI} || ${PORT_OPTIONS:MHOWL}
|
2006-02-22 21:52:51 +00:00
|
|
|
PLIST_SUB+= ZEROCONF=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ZEROCONF="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-03-12 08:48:57 +00:00
|
|
|
post-patch:
|
2014-11-29 18:22:32 +00:00
|
|
|
@${TOUCH} ${WRKSRC}/config.rpath
|
|
|
|
@${ECHO_CMD} "ACLOCAL_AMFLAGS= -I ac-helpers" >> ${WRKSRC}/Makefile.am
|
2013-04-30 03:15:37 +00:00
|
|
|
@${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' \
|
2005-03-12 08:48:57 +00:00
|
|
|
|
2003-12-18 16:31:09 +00:00
|
|
|
post-install:
|
2017-04-08 11:03:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
|
|
|
|
post-install-DOCS-on:
|
2014-02-09 01:54:21 +00:00
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
2013-04-30 03:15:37 +00:00
|
|
|
.for i in AUTHORS ChangeLog NEWS Permissions.ReadMeFirst README \
|
|
|
|
TLS.ReadMeFirst UPGRADING wzd_tls.cnf
|
2017-04-08 11:03:01 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
2004-08-28 20:31:48 +00:00
|
|
|
.endfor
|
2003-12-18 16:31:09 +00:00
|
|
|
|
2012-06-12 10:34:46 +00:00
|
|
|
.include <bsd.port.mk>
|