- Update to 4.0

- Trim header

PR:		180506
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2013-07-15 14:44:18 +00:00
parent c00323f194
commit f6bb01c268
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=323037
3 changed files with 28 additions and 34 deletions

View File

@ -1,43 +1,39 @@
# ex:ts=8
# Ports collection makefile for: ftplib
# Date created: Feb 11, 2004
# Whom: ijliao
#
# Created by: ijliao
# $FreeBSD$
#
PORTNAME= ftplib
PORTVERSION= 3.1.1
PORTVERSION= 4.0
CATEGORIES= ftp
MASTER_SITES= http://www.nbpfaus.net/~pfau/ftplib/
DISTNAME= ${PORTNAME}-${PORTVERSION:R}-src
PATCH_SITES= http://www.nbpfaus.net/~pfau/ftplib/
PATCHFILES= ${PORTNAME}-${PORTVERSION:R}-${PORTVERSION:E}.patch
PATCH_DIST_STRIP= -p3
MASTER_SITES= http://nbpfaus.net/~pfau/ftplib/
MAINTAINER= ports@FreeBSD.org
COMMENT= A set of routines that implement the FTP protocol
COMMENT= Set of routines that implement the FTP protocol
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:R}/linux
WRKSRC= ${WRKDIR}/${DISTNAME}/src
USE_GMAKE= yes
MAKE_ARGS+= DEBUG="${CFLAGS}" LDFLAGS="${LDFLAGS} -L."
USE_LDCONFIG= yes
PLIST_FILES= lib/libftp.so lib/libftp.so.3 lib/libftp.a \
include/ftplib.h bin/qftp bin/ftpdir bin/ftpget \
bin/ftplist bin/ftprm bin/ftpsend
PLIST_FILES= bin/ftpdir bin/ftpget bin/ftplist bin/ftprm bin/ftpsend \
bin/qftp include/ftplib.h \
lib/libftp.a lib/libftp.so lib/libftp.so.4
post-patch:
@${REINPLACE_CMD} -e \
'/^SOVERSION/s|=.*|= $$(SONAME)| ; \
s|CFLAGS =|CFLAGS +=| ; \
s|LDFLAGS =|LDFLAGS +=| ; \
s|$$(SOVERSION)|$$(SONAME)| ; \
s|-lc -o|-o| ; \
/libftp.so/s|ln -sf|${TRUE}|' ${WRKSRC}/Makefile
do-install:
@(cd ${WRKSRC} ; \
${INSTALL_PROGRAM} qftp ${PREFIX}/bin ; \
${INSTALL_DATA} libftp.so.3 ${PREFIX}/lib ; \
${INSTALL_DATA} libftp.a ${PREFIX}/lib ; \
${LN} -fs ${PREFIX}/lib/libftp.so.3 ${PREFIX}/lib/libftp.so ; \
${INSTALL_DATA} ftplib.h ${PREFIX}/include ; \
for i in ftpdir ftpget ftplist ftprm ftpsend; do \
${LN} -s qftp ${PREFIX}/bin/$$i ; done \
)
(cd ${WRKSRC} && ${INSTALL_PROGRAM} qftp ${PREFIX}/bin)
.for i in ftpdir ftpget ftplist ftprm ftpsend
(cd ${PREFIX}/bin && ${LN} -sf qftp ${i})
.endfor
(cd ${WRKSRC} && ${INSTALL_DATA} ftplib.h ${PREFIX}/include)
(cd ${WRKSRC} && ${INSTALL_DATA} libftp.a libftp.so.4 ${PREFIX}/lib)
(cd ${PREFIX}/lib && ${LN} -sf libftp.so.4 libftp.so)
.include <bsd.port.mk>

View File

@ -1,4 +1,2 @@
SHA256 (ftplib-3.1-src.tar.gz) = be524e1086cfe9d86afa832e1413dde79a4e88ee8ea5325a87ffaaf6620a0a2b
SIZE (ftplib-3.1-src.tar.gz) = 90243
SHA256 (ftplib-3.1-1.patch) = 374c278c5aecfc957600ae0cadc4ed0ca49a132920e84adf2b76215531c3c273
SIZE (ftplib-3.1-1.patch) = 6741
SHA256 (ftplib-4.0.tar.gz) = a9fabf1fdb2d6cc3713fd5413724ecc266f438a53a24595619080db9e51426a1
SIZE (ftplib-4.0.tar.gz) = 66680

View File

@ -1,5 +1,5 @@
ftplib is a set of routines that implement the FTP protocol. They allow
applications to create and access remote files through function calls instead
of needing to fork and exec an interactive ftp client program.
applications to create and access remote files through function calls
instead of needing to fork and exec an interactive ftp client program.
WWW: http://nbpfaus.net/~pfau/ftplib/