diff options
author | ijliao <ijliao@FreeBSD.org> | 2001-09-24 09:37:32 +0800 |
---|---|---|
committer | ijliao <ijliao@FreeBSD.org> | 2001-09-24 09:37:32 +0800 |
commit | 2e18b5ecc084b47952f2c016901b06fd994c67cb (patch) | |
tree | 310ad5d0e8d4e58d35d2532b530daf309488516b /ftp/mget | |
parent | ad91e4dc396c8e8195aaf3f301ab21bc48427165 (diff) | |
download | freebsd-ports-gnome-2e18b5ecc084b47952f2c016901b06fd994c67cb.tar.gz freebsd-ports-gnome-2e18b5ecc084b47952f2c016901b06fd994c67cb.tar.zst freebsd-ports-gnome-2e18b5ecc084b47952f2c016901b06fd994c67cb.zip |
add mget
Multi Threaded Wget
Diffstat (limited to 'ftp/mget')
-rw-r--r-- | ftp/mget/Makefile | 27 | ||||
-rw-r--r-- | ftp/mget/distinfo | 1 | ||||
-rw-r--r-- | ftp/mget/files/patch-Makefile | 18 | ||||
-rw-r--r-- | ftp/mget/files/patch-mget.c | 13 | ||||
-rw-r--r-- | ftp/mget/files/patch-mget.h | 14 | ||||
-rw-r--r-- | ftp/mget/pkg-comment | 1 | ||||
-rw-r--r-- | ftp/mget/pkg-descr | 3 | ||||
-rw-r--r-- | ftp/mget/pkg-plist | 1 |
8 files changed, 78 insertions, 0 deletions
diff --git a/ftp/mget/Makefile b/ftp/mget/Makefile new file mode 100644 index 000000000000..0161c6060356 --- /dev/null +++ b/ftp/mget/Makefile @@ -0,0 +1,27 @@ +# ex:ts=8 +# New ports collection makefile for: mget +# Date created: Sep 21, 2001 +# Whom: ijliao +# +# $FreeBSD$ +# + +PORTNAME= mget +PORTVERSION= 1.3.0 +CATEGORIES= ftp +MASTER_SITES= http://home.talkcity.com/LaGrangeLn/dbera/ + +MAINTAINER= ports@FreeBSD.org + +LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt + +ALL_TARGET= ${PORTNAME} + +post-patch: + @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \ + s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin + +.include <bsd.port.mk> diff --git a/ftp/mget/distinfo b/ftp/mget/distinfo new file mode 100644 index 000000000000..b153b43f5568 --- /dev/null +++ b/ftp/mget/distinfo @@ -0,0 +1 @@ +MD5 (mget-1.3.0.tar.gz) = fb7d29de46181f9939b5b11aa13aa8eb diff --git a/ftp/mget/files/patch-Makefile b/ftp/mget/files/patch-Makefile new file mode 100644 index 000000000000..615ed024a7ce --- /dev/null +++ b/ftp/mget/files/patch-Makefile @@ -0,0 +1,18 @@ +--- Makefile.orig Sat Sep 22 00:28:48 2001 ++++ Makefile Sat Sep 22 00:29:33 2001 +@@ -2,12 +2,13 @@ + CC=gcc + DEFS=-DHAS_HERROR -DHAVE_IPV6 -DHAVE_GETOPT + DEBUG= +-CFLAGS=-Wall $(DEFS) $(DEBUG) ++CFLAGS+=-Wall $(DEFS) $(DEBUG) -I%%LOCALBASE%%/include + #CFLAGS=-Wall +-LDFLAGS=-lpthread ++LDFLAGS=-lpthread -L%%LOCALBASE%%/lib -lgnugetopt + #LDFLAGS=-lpthread -lsocket -lnsl + + mget: mget.o mgetutil.o ++ ${CC} ${LDFLAGS} mget.o mgetutil.o -o mget + + mget.usriv: mget_usriv.o mgetutil.o + $(CC) $(LDFLAGS) mget_usriv.o mgetutil.o -o mget.usriv diff --git a/ftp/mget/files/patch-mget.c b/ftp/mget/files/patch-mget.c new file mode 100644 index 000000000000..1ee095746c2a --- /dev/null +++ b/ftp/mget/files/patch-mget.c @@ -0,0 +1,13 @@ +--- mget.c.orig Sat Sep 22 00:34:44 2001 ++++ mget.c Sat Sep 22 00:35:26 2001 +@@ -604,8 +604,10 @@ + return segment; + } + ++/* + #if !defined(linux) || !defined(HAVE_IPV6) + char *inet_ntop(int af, INADDR *src, char *dst, size_t cnt){ + return inet_ntoa((INADDR)(*src)); + } + #endif ++*/ diff --git a/ftp/mget/files/patch-mget.h b/ftp/mget/files/patch-mget.h new file mode 100644 index 000000000000..eedaa20bc27f --- /dev/null +++ b/ftp/mget/files/patch-mget.h @@ -0,0 +1,14 @@ +--- mget.h.orig Sat Sep 22 00:34:48 2001 ++++ mget.h Sat Sep 22 00:35:03 2001 +@@ -60,9 +60,11 @@ + #define herror(A) printf("%s\n",A) + #endif + ++/* + #if !defined(__linux__) || !defined(HAVE_IPV6) + char *inet_ntop(int , INADDR *, char *, size_t ); + #endif ++*/ + + #ifndef NULL + #define NULL 0 //some compilers complained diff --git a/ftp/mget/pkg-comment b/ftp/mget/pkg-comment new file mode 100644 index 000000000000..0cd0bf68c00c --- /dev/null +++ b/ftp/mget/pkg-comment @@ -0,0 +1 @@ +Multi Threaded Wget diff --git a/ftp/mget/pkg-descr b/ftp/mget/pkg-descr new file mode 100644 index 000000000000..af8ff9e29b3c --- /dev/null +++ b/ftp/mget/pkg-descr @@ -0,0 +1,3 @@ +Multi Threaded Wget + +WWW: http://home.talkcity.com/LaGrangeLn/dbera/mget.html diff --git a/ftp/mget/pkg-plist b/ftp/mget/pkg-plist new file mode 100644 index 000000000000..2e32c1440ef2 --- /dev/null +++ b/ftp/mget/pkg-plist @@ -0,0 +1 @@ +bin/mget |