Index: head/ftp/mget/files/patch-mget.c =================================================================== --- head/ftp/mget/files/patch-mget.c (revision 50703) +++ head/ftp/mget/files/patch-mget.c (nonexistent) @@ -1,13 +0,0 @@ ---- 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 -+*/ Property changes on: head/ftp/mget/files/patch-mget.c ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.1 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/ftp/mget/files/patch-mget.h =================================================================== --- head/ftp/mget/files/patch-mget.h (revision 50703) +++ head/ftp/mget/files/patch-mget.h (nonexistent) @@ -1,14 +0,0 @@ ---- 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 Property changes on: head/ftp/mget/files/patch-mget.h ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.1 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/ftp/mget/files/patch-Makefile =================================================================== --- head/ftp/mget/files/patch-Makefile (revision 50703) +++ head/ftp/mget/files/patch-Makefile (nonexistent) @@ -1,18 +0,0 @@ ---- 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 Property changes on: head/ftp/mget/files/patch-Makefile ___________________________________________________________________ Deleted: cvs2svn:cvs-rev ## -1 +0,0 ## -1.1 \ No newline at end of property Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Index: head/ftp/mget/Makefile =================================================================== --- head/ftp/mget/Makefile (revision 50703) +++ head/ftp/mget/Makefile (revision 50704) @@ -1,27 +1,32 @@ # 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 +PORTVERSION= 1.3.0.2 +CATEGORIES= ftp ipv6 MASTER_SITES= http://home.talkcity.com/LaGrangeLn/dbera/ MAINTAINER= ports@FreeBSD.org -LIB_DEPENDS= gnugetopt:${PORTSDIR}/devel/libgnugetopt +LIB_DEPENDS= gnugetopt.1:${PORTSDIR}/devel/libgnugetopt -ALL_TARGET= ${PORTNAME} +CFLAGS+= -DHAS_HERROR -DHAVE_GETOPT_LONG -DHAVE_INET_NTOP -DHAVE_IPV6 \ + -I${LOCALBASE}/include ${PTHREAD_CFLAGS:S/"//g} +LDFLAGS= -L${LOCALBASE}/lib -lgnugetopt ${PTHREAD_LIBS:S/"//g} -post-patch: - @${PERL} -pi -e "s,-lpthread,${PTHREAD_LIBS},g ; \ - s,%%LOCALBASE%%,${LOCALBASE},g" ${WRKSRC}/Makefile +pre-patch: + @find ${WRKSRC} -name '*.[ch]' | xargs ${PERL} -pi -e \ + 's|#include ||g' + +do-build: + cd ${WRKSRC} && ${CC} ${CFLAGS} -o mget *.c ${LDFLAGS} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/mget ${PREFIX}/bin .include Property changes on: head/ftp/mget/Makefile ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property Index: head/ftp/mget/distinfo =================================================================== --- head/ftp/mget/distinfo (revision 50703) +++ head/ftp/mget/distinfo (revision 50704) @@ -1 +1 @@ -MD5 (mget-1.3.0.tar.gz) = fb7d29de46181f9939b5b11aa13aa8eb +MD5 (mget-1.3.0.2.tar.gz) = ec78edddc43172bd00421e2323c35995 Property changes on: head/ftp/mget/distinfo ___________________________________________________________________ Modified: cvs2svn:cvs-rev ## -1 +1 ## -1.1 \ No newline at end of property +1.2 \ No newline at end of property