1997-12-14 16:45:44 +00:00
|
|
|
# ex:ts=8
|
2000-02-13 03:25:05 +00:00
|
|
|
# Ports collection makefile for: ncftp3
|
|
|
|
# Date created: 4 Nov 1994
|
|
|
|
# Whom: ache
|
1994-11-04 09:35:57 +00:00
|
|
|
#
|
1999-08-25 05:57:29 +00:00
|
|
|
# $FreeBSD$
|
1994-11-04 09:35:57 +00:00
|
|
|
#
|
|
|
|
|
2001-11-21 19:38:42 +00:00
|
|
|
PORTNAME= ncftp
|
2005-04-21 16:03:12 +00:00
|
|
|
PORTVERSION= 3.1.9
|
2004-01-05 08:03:05 +00:00
|
|
|
PORTREVISION?= 0
|
2001-02-06 08:45:22 +00:00
|
|
|
CATEGORIES= ftp ipv6
|
2000-03-22 14:41:36 +00:00
|
|
|
MASTER_SITES= ftp://ftp.ncftp.com/ncftp/
|
2000-04-12 05:31:29 +00:00
|
|
|
DISTNAME= ncftp-${PORTVERSION}-src
|
1995-04-12 04:56:21 +00:00
|
|
|
|
2002-06-13 17:15:45 +00:00
|
|
|
PATCH_SITES= ftp://ftp.kame.net/pub/kame/misc/
|
2005-04-21 16:03:12 +00:00
|
|
|
PATCHFILES= ncftp-319-v6-20050419.diff.gz
|
2002-06-13 17:15:45 +00:00
|
|
|
PATCH_DIST_STRIP= -p1
|
2001-02-06 08:45:22 +00:00
|
|
|
|
1999-08-31 06:53:31 +00:00
|
|
|
MAINTAINER= obrien@FreeBSD.org
|
2003-03-07 06:14:21 +00:00
|
|
|
COMMENT= ftp replacement with advanced user interface
|
1995-04-12 04:56:21 +00:00
|
|
|
|
2003-04-19 00:13:06 +00:00
|
|
|
USE_BZIP2= yes
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2004-04-19 11:42:54 +00:00
|
|
|
.if defined(INSTALL_AS_NCFTP3)
|
2001-11-21 19:38:42 +00:00
|
|
|
LATEST_LINK= ncftp3
|
2004-04-19 11:42:54 +00:00
|
|
|
.else
|
|
|
|
LATEST_LINK= ncftp
|
2002-08-04 05:38:32 +00:00
|
|
|
.endif
|
1997-12-14 16:45:44 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME:S/-src//}
|
2004-07-20 08:48:11 +00:00
|
|
|
USE_REINPLACE= yes
|
2000-06-16 21:52:40 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
1997-12-14 16:45:44 +00:00
|
|
|
GNU_CONFIGURE= yes
|
1998-11-11 20:58:50 +00:00
|
|
|
CONFIGURE_ARGS= --with-ncurses
|
2002-08-04 05:38:32 +00:00
|
|
|
PLIST_SUB= NCFTP=${LATEST_LINK}
|
|
|
|
MAN1= ${LATEST_LINK}.1 ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 \
|
2002-07-05 18:34:28 +00:00
|
|
|
ncftpspooler.1
|
1997-12-14 16:45:44 +00:00
|
|
|
MAN3= Strn.3
|
1994-11-04 09:35:57 +00:00
|
|
|
|
2000-04-22 09:56:44 +00:00
|
|
|
LIBNCFTP= libncftp.so.2
|
2002-07-05 18:34:28 +00:00
|
|
|
LIBSIO= libsio.so.5
|
2000-04-22 09:56:44 +00:00
|
|
|
LIBSTRN= libStrn.so.1
|
1998-11-14 09:43:39 +00:00
|
|
|
|
2002-08-04 05:38:32 +00:00
|
|
|
pre-fetch:
|
|
|
|
@${ECHO} ""
|
2004-04-19 11:42:54 +00:00
|
|
|
@${ECHO} "Use INSTALL_AS_NCFTP3=yes to install ncftp v3 as ${PREFIX}/bin/ncftp3"
|
2002-08-04 05:38:32 +00:00
|
|
|
@${ECHO} ""
|
|
|
|
|
1997-12-14 16:45:44 +00:00
|
|
|
pre-build:
|
2004-07-20 09:22:54 +00:00
|
|
|
${REINPLACE_CMD} -e \
|
|
|
|
's|u_decodeurl.so u_decodeurl.so|u_decodeurl.so u_decodehost.so|' \
|
2004-07-20 08:48:11 +00:00
|
|
|
${WRKSRC}/libncftp/Makefile
|
1997-12-14 16:45:44 +00:00
|
|
|
cd ${WRKSRC}/Strn ; make so
|
|
|
|
cd ${WRKSRC}/libncftp ; make so
|
2002-07-05 18:34:28 +00:00
|
|
|
cd ${WRKSRC}/sio; make so
|
1995-05-07 20:57:56 +00:00
|
|
|
|
1997-12-14 16:45:44 +00:00
|
|
|
do-install:
|
2002-08-04 05:38:32 +00:00
|
|
|
@${INSTALL_PROGRAM} ${WRKSRC}/bin/ncftp ${PREFIX}/bin/${LATEST_LINK}
|
2000-04-22 09:56:44 +00:00
|
|
|
@cd ${WRKSRC}/bin ; ${INSTALL_PROGRAM} \
|
1998-08-13 23:25:21 +00:00
|
|
|
ncftpbatch ncftpget ncftpls ncftpput ncftpbookmarks \
|
2000-04-22 09:56:44 +00:00
|
|
|
${PREFIX}/bin
|
2002-07-06 02:24:58 +00:00
|
|
|
@cd ${PREFIX}/bin && ${LN} -f ncftpbatch ncftpspooler
|
|
|
|
@cd ${WRKSRC} && ${INSTALL_DATA} \
|
|
|
|
Strn/${LIBSTRN} libncftp/${LIBNCFTP} sio/${LIBSIO} \
|
2002-07-05 18:34:28 +00:00
|
|
|
${PREFIX}/lib
|
|
|
|
@cd ${PREFIX}/lib \
|
2002-07-06 02:24:58 +00:00
|
|
|
&& ${LN} -sf ${LIBSTRN} libStrn.so \
|
2002-07-05 18:34:28 +00:00
|
|
|
&& ${LN} -sf ${LIBNCFTP} libncftp.so \
|
|
|
|
&& ${LN} -sf ${LIBSIO} libsio.so
|
2002-08-04 05:38:32 +00:00
|
|
|
@${INSTALL_MAN} ${WRKSRC}/doc/man/ncftp.1 \
|
|
|
|
${PREFIX}/man/man1/${LATEST_LINK}.1
|
2000-04-22 09:56:44 +00:00
|
|
|
@cd ${WRKSRC}/doc/man ; ${INSTALL_MAN} \
|
2002-07-05 18:34:28 +00:00
|
|
|
ncftpbatch.1 ncftpget.1 ncftpls.1 ncftpput.1 ncftpspooler.1 \
|
2000-04-22 09:56:44 +00:00
|
|
|
${PREFIX}/man/man1
|
|
|
|
@${INSTALL_MAN} ${WRKSRC}/Strn/Strn.3 ${PREFIX}/man/man3
|
1998-09-27 03:02:15 +00:00
|
|
|
|
2003-04-19 00:13:06 +00:00
|
|
|
.include <bsd.port.post.mk>
|