mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
30cd242001
A big Thank You to the original contributors of these ports: * Aaron Dalton <aaron@FreeBSD.org> * Alexander Kriventsov * Anders Nordby <anders@fix.no> * Andreas Fehlner <fehlner@gmx.de> * Andrew Pantyukhin <infofarmer@FreeBSD.org> * Andrey Zakhvatov * Antonio Carlos Venancio Junior (<antonio@inf.ufsc.br>) * Chris Piazza <cpiazza@FreeBSD.org> * Damjan Marion <dmarion@open.hr> * Emanuel Haupt <ehaupt@critical.ch> * Eric Freeman <freebsdports@chillibear.com> * Frank DENIS * Frank Laszlo <laszlof@vonostingroup.com> * Gea-Suan Lin (gslin@ccca.nctu.edu.tw) * Gea-Suan Lin <gslin@ccca.nctu.edu.tw> * George V. Neville-Neil <gnn@FreeBSD.org> * Hye-Shik Chang * Jordan Hubbard <jkh@FreeBSD.org> * Jose Alonso Cardenas Marquez <acardenas@bsd.org.pe> * Joseph Benden <joe@thrallingpenguin.com> * Ju Pengfei <jupengfei@gmail.com> * Jui-Nan Lin <jnlin@freebsd.cs.nctu.edu.tw> * Mark Johnston <markj@FreeBSD.org> * Martin Matuska (mm@FreeBSD.org) * Marwan BURELLE <marwan.burelle@lri.fr> * Maxim Ignatenko * Maxim Sobolev <sobomax@FreeBSD.org> * Neil Blakey-Milner * Neil Blakey-Milner <nbm@rucus.ru.ac.za> * Nick Leuta * Nosov Artem <chip-set@mail.ru> * Petr Holub <hopet@ics.muni.cz> * Philippe Le Berre <philippe@le-berre.com> * Piotr Kubaj <pkubaj@anongoth.pl> * Po-Chuan Hsieh <sunpoet@FreeBSD.org> * Roman Bogorodskiy * Sergey Matveychuk <sem@FreeBSD.org> * Sergey Skvortsov <skv@FreeBSD.org> * Stephane Legrand * Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org> * TAKATSU Tomonari <tota@FreeBSD.org> * Thomas Gellekum <tg@FreeBSD.org> * Tom McLaughlin <tmclaugh@sdf.lonestar.org> * Tomokazu ISHII <t-ishii@tryplanet.com> * Ulrich Spoerlein <uspoerlein@gmail.com> * Wen Heping <wen@FreeBSD.org> * Xavier Beaudouin <kiwi@oav.net> * Yasuhiro Fukuma <yasuf@big.or.jp> * Ying-Chieh Liao <ijliao@FreeBSD.org> * ache * cy@FreeBSD.org * ijliao * ports * torstenb * will With hat: portmgr
94 lines
2.5 KiB
Makefile
94 lines
2.5 KiB
Makefile
PORTNAME= wzdftpd
|
|
PORTVERSION= 0.8.3
|
|
PORTREVISION= 8
|
|
CATEGORIES= ftp
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-sources/${PORTNAME}-${PORTVERSION:R}
|
|
|
|
MAINTAINER= fuz@fuz.su
|
|
COMMENT= Modular FTP server configurable online using SITE commands
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= autoreconf:2.69 cpe gettext-tools libtool localbase pkgconfig
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --sysconfdir=${ETCDIR} --disable-bonjour --disable-static
|
|
INSTALL_TARGET= install-strip
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_RC_SUBR= wzdftpd
|
|
|
|
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 PAM PERL SQLITE
|
|
OPTIONS_SUB= yes
|
|
|
|
ICONV_CONFIGURE_ON= ${ICONV_CONFIGURE_ARG}
|
|
ICONV_CONFIGURE_OFF= --disable-utf8
|
|
ICONV_USES= iconv
|
|
|
|
TCL_CONFIGURE_ON= --with-tcl=${TCL_LIBDIR}
|
|
TCL_CONFIGURE_OFF= --without-tcl
|
|
TCL_USES= tcl
|
|
|
|
OPENSSL_CONFIGURE_ENABLE= openssl
|
|
OPENSSL_USES= ssl
|
|
|
|
GNUTLS_CONFIGURE_ENABLE= gnutls
|
|
GNUTLS_LIB_DEPENDS= libgnutls.so:security/gnutls
|
|
|
|
IPV6_CONFIGURE_ENABLE= ipv6
|
|
|
|
PERL_CONFIGURE_ENABLE= perl
|
|
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
|
|
|
|
SQLITE_CONFIGURE_ENABLE= sqlite3
|
|
SQLITE_USES= sqlite:3
|
|
|
|
AVAHI_CONFIGURE_ON= --with-zeroconf --enable-avahi
|
|
AVAHI_LIB_DEPENDS= libdbus-1.so:devel/dbus \
|
|
libavahi-core.so:net/avahi-app
|
|
|
|
post-patch:
|
|
@${TOUCH} ${WRKSRC}/config.rpath
|
|
@${ECHO_CMD} "ACLOCAL_AMFLAGS= -I ac-helpers" >> ${WRKSRC}/Makefile.am
|
|
@${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'
|
|
@${REINPLACE_CMD} -e \
|
|
's|^wzd_sfv_config SfvConfig|extern &|' \
|
|
${WRKSRC}/modules/sfv/libwzd_sfv_main.h
|
|
|
|
post-install:
|
|
${INSTALL_DATA} ${WRKSRC}/*.pc ${STAGEDIR}${PREFIX}/libdata/pkgconfig
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
.for i in AUTHORS ChangeLog NEWS Permissions.ReadMeFirst README \
|
|
TLS.ReadMeFirst UPGRADING wzd_tls.cnf
|
|
${INSTALL_DATA} ${WRKSRC}/${i} ${STAGEDIR}${DOCSDIR}
|
|
.endfor
|
|
|
|
.include <bsd.port.mk>
|