2013-02-01 13:29:11 +01:00
|
|
|
# Created by: Andrey Zakhvatov
|
1999-08-25 07:57:29 +02:00
|
|
|
# $FreeBSD$
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2000-04-12 07:31:29 +02:00
|
|
|
PORTNAME= lftp
|
2013-05-27 11:28:05 +02:00
|
|
|
PORTVERSION= 4.4.7
|
2000-01-18 13:54:55 +01:00
|
|
|
CATEGORIES= ftp ipv6
|
2010-10-15 13:30:05 +02:00
|
|
|
MASTER_SITES= http://ftp.yars.free.net/pub/source/lftp/ \
|
|
|
|
http://ftp.yars.free.net/pub/source/lftp/old/ \
|
2008-02-21 10:27:16 +01:00
|
|
|
http://lftp.cybermirror.org/ \
|
2009-02-01 03:20:22 +01:00
|
|
|
http://lftp.cybermirror.org/old/ \
|
2010-10-15 13:30:05 +02:00
|
|
|
http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/ \
|
|
|
|
http://ftp.st.ryukoku.ac.jp/pub/network/ftp/lftp/old/ \
|
|
|
|
http://ftp.tuwien.ac.at/infosys/browsers/ftp/lftp/ \
|
|
|
|
ftp://ftp.cs.tu-berlin.de/pub/net/ftp/lftp/
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2010-09-27 14:08:23 +02:00
|
|
|
MAINTAINER= martymac@FreeBSD.org
|
2003-02-21 13:06:51 +01:00
|
|
|
COMMENT= Shell-like command line ftp client
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2010-10-15 13:30:05 +02:00
|
|
|
LICENSE= GPLv3
|
|
|
|
|
2012-06-11 09:56:37 +02:00
|
|
|
LIB_DEPENDS= expat:${PORTSDIR}/textproc/expat2
|
2011-11-10 08:35:16 +01:00
|
|
|
|
2013-04-27 10:50:46 +02:00
|
|
|
USES= iconv
|
2002-07-02 19:30:31 +02:00
|
|
|
|
2011-05-23 15:10:06 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2005-09-18 19:53:32 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-05-23 15:10:06 +02:00
|
|
|
# XXX FreeBSD 9.x has posix_fallocate() for OSVERSION > 900035,
|
|
|
|
# but is missing the required POSIX_FADV_* macros
|
|
|
|
CONFIGURE_ENV= i_cv_posix_fallocate_works=no \
|
2005-09-18 19:53:32 +02:00
|
|
|
LIBS="-L${LOCALBASE}/lib"
|
2009-03-25 16:07:17 +01:00
|
|
|
MAKE_JOBS_SAFE= yes
|
2005-09-18 19:53:32 +02:00
|
|
|
|
2008-02-21 10:27:16 +01:00
|
|
|
PORTDOCS= AUTHORS BUGS ChangeLog FAQ FEATURES INSTALL \
|
|
|
|
MIRRORS NEWS README README.debug-levels README.modules \
|
|
|
|
THANKS TODO
|
|
|
|
|
2012-12-12 09:12:13 +01:00
|
|
|
OPTIONS_DEFINE= NLS
|
|
|
|
OPTIONS_RADIO= SSL
|
|
|
|
OPTIONS_RADIO_SSL= OPENSSL GNUTLS
|
2012-06-11 09:56:37 +02:00
|
|
|
OPTIONS_DEFAULT= SSL OPENSSL NLS
|
2005-09-18 19:53:32 +02:00
|
|
|
|
2012-12-12 09:12:13 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2005-09-18 19:53:32 +02:00
|
|
|
|
2012-06-11 09:56:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2012-12-12 09:12:13 +01:00
|
|
|
USE_OPENSSL= yes
|
2005-05-30 22:32:06 +02:00
|
|
|
CONFIGURE_ARGS+= --with-openssl
|
2008-06-05 16:44:11 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-openssl
|
2002-07-02 19:30:31 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-11 09:56:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
2009-09-19 14:50:42 +02:00
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --with-gnutls
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnutls
|
|
|
|
.endif
|
|
|
|
|
2012-06-11 09:56:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
2013-04-24 20:10:30 +02:00
|
|
|
USES+= gettext
|
2008-06-05 16:44:11 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-nls
|
2004-05-28 16:18:38 +02:00
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2008-06-05 16:44:11 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-nls
|
2004-05-28 16:18:38 +02:00
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2006-01-09 14:06:13 +01:00
|
|
|
MAN1= lftp.1 lftpget.1
|
2010-06-20 06:44:23 +02:00
|
|
|
MAN5= lftp.conf.5
|
1997-11-30 01:24:02 +01:00
|
|
|
|
1998-05-10 18:45:52 +02:00
|
|
|
post-install:
|
2001-11-22 01:30:26 +01:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/lftp.conf ${PREFIX}/etc/lftp.conf.sample
|
2011-02-14 15:20:35 +01:00
|
|
|
.if !exists(${PREFIX}/etc/lftp.conf)
|
|
|
|
${CP} -p ${PREFIX}/etc/lftp.conf.sample ${PREFIX}/etc/lftp.conf
|
|
|
|
.endif
|
2012-06-11 09:56:37 +02:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2011-02-14 15:20:35 +01:00
|
|
|
${MKDIR} ${DOCSDIR}
|
|
|
|
.for doc in ${PORTDOCS}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR}
|
|
|
|
.endfor
|
1998-05-10 18:45:52 +02:00
|
|
|
.endif
|
1997-11-17 14:18:37 +01:00
|
|
|
|
2012-12-12 09:12:13 +01:00
|
|
|
.include <bsd.port.mk>
|