summaryrefslogtreecommitdiff
path: root/ftp/mget
diff options
context:
space:
mode:
authorYing-Chieh Liao <ijliao@FreeBSD.org>2001-09-24 01:37:32 +0000
committerYing-Chieh Liao <ijliao@FreeBSD.org>2001-09-24 01:37:32 +0000
commit7c489e9c7c1ccea86f79b516e006a538a157b123 (patch)
tree940c1ced29b09046c2b110852d4ade95d9491012 /ftp/mget
parentFix a typo (ot->or) (diff)
add mget
Multi Threaded Wget
Notes
Notes: svn path=/head/; revision=48131
Diffstat (limited to 'ftp/mget')
-rw-r--r--ftp/mget/Makefile27
-rw-r--r--ftp/mget/distinfo1
-rw-r--r--ftp/mget/files/patch-Makefile18
-rw-r--r--ftp/mget/files/patch-mget.c13
-rw-r--r--ftp/mget/files/patch-mget.h14
-rw-r--r--ftp/mget/pkg-comment1
-rw-r--r--ftp/mget/pkg-descr3
-rw-r--r--ftp/mget/pkg-plist1
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