[28800] trunk/dports/net/fetch

source_changes at macosforge.org source_changes at macosforge.org
Sun Sep 9 00:32:44 PDT 2007


Revision: 28800
          http://trac.macosforge.org/projects/macports/changeset/28800
Author:   afb at macports.org
Date:     2007-09-09 00:32:44 -0700 (Sun, 09 Sep 2007)

Log Message:
-----------
port upgrade from 4.6.2 (2001) to 6.2.0 (2007)

Modified Paths:
--------------
    trunk/dports/net/fetch/Portfile

Added Paths:
-----------
    trunk/dports/net/fetch/files/
    trunk/dports/net/fetch/files/patch-Makefile
    trunk/dports/net/fetch/files/patch-fetch.c

Modified: trunk/dports/net/fetch/Portfile
===================================================================
--- trunk/dports/net/fetch/Portfile	2007-09-09 07:32:07 UTC (rev 28799)
+++ trunk/dports/net/fetch/Portfile	2007-09-09 07:32:44 UTC (rev 28800)
@@ -3,24 +3,28 @@
 PortSystem 1.0
 
 name		fetch
-version		4.6.2-RELEASE
-revision	1
+version		6.2.0-RELEASE
 categories	net
-maintainers	nomaintainer at macports.org
+maintainers	afb at macports.org openmaintainer
 description	FreeBSD file fetching utility
 long_description	Fetch provides a command-line interface to the fetch(3) library. \
 	Its purpose is to retrieve the file(s) pointed to by the URL(s) on the command line.
-platforms	darwin
+platforms	darwin freebsd
 use_bzip2	yes
 homepage	http://www.freebsd.org/
 master_sites	macports
-checksums	md5 08c3a2b57be775c1d630f5a9097451d1
+checksums	md5 41f930ab95e10e6d204bf8ac380db7bd
 worksrcdir	${name}
 use_configure	no
-depends_lib	lib:libfetch.3:libfetch
+depends_lib	lib:libfetch.4:libfetch
 build.type	bsd
-build.args	CFLAGS+=-I${prefix}/include LDADD+=-L${prefix}/lib\\ -lfetch
+build.args	CFLAGS+=-I${prefix}/include LDFLAGS+=-L${prefix}/lib
 
 destroot	{ cd ${workpath}/${worksrcdir}
 		xinstall -m 755 fetch ${destroot}${prefix}/bin
 		xinstall -m 644 -c fetch.1 ${destroot}${prefix}/share/man/man1 }
+
+platform darwin {
+	patchfiles	patch-Makefile patch-fetch.c
+	build.args-append CFLAGS+=-D__FBSDID=__RCSID
+}

Added: trunk/dports/net/fetch/files/patch-Makefile
===================================================================
--- trunk/dports/net/fetch/files/patch-Makefile	                        (rev 0)
+++ trunk/dports/net/fetch/files/patch-Makefile	2007-09-09 07:32:44 UTC (rev 28800)
@@ -0,0 +1,10 @@
+--- Makefile.orig	2004-12-21 11:16:02.000000000 +0100
++++ Makefile	2007-09-08 22:40:22.000000000 +0200
+@@ -2,6 +2,7 @@
+ 
+ PROG=		fetch
+ CSTD?=		c99
++CFLAGS+=	-D__FBSDID=__RCSID
+ WARNS?=		6
+ DPADD=		${LIBFETCH}
+ LDADD=		-lfetch

Added: trunk/dports/net/fetch/files/patch-fetch.c
===================================================================
--- trunk/dports/net/fetch/files/patch-fetch.c	                        (rev 0)
+++ trunk/dports/net/fetch/files/patch-fetch.c	2007-09-09 07:32:44 UTC (rev 28800)
@@ -0,0 +1,19 @@
+--- fetch.c.orig	2006-01-13 10:07:49.000000000 +0100
++++ fetch.c	2007-09-08 23:13:26.000000000 +0200
+@@ -202,12 +202,16 @@
+ 
+ 	fprintf(stderr, "\r%-46.46s", xs->name);
+ 	if (xs->size <= 0) {
++#ifdef __FreeBSD__
+ 		setproctitle("%s [%s]", xs->name, stat_bytes(xs->rcvd));
++#endif
+ 		fprintf(stderr, "        %s", stat_bytes(xs->rcvd));
+ 	} else {
++#ifdef __FreeBSD__
+ 		setproctitle("%s [%d%% of %s]", xs->name,
+ 		    (int)((100.0 * xs->rcvd) / xs->size),
+ 		    stat_bytes(xs->size));
++#endif
+ 		fprintf(stderr, "%3d%% of %s",
+ 		    (int)((100.0 * xs->rcvd) / xs->size),
+ 		    stat_bytes(xs->size));


Property changes on: trunk/dports/net/fetch/files/patch-fetch.c
___________________________________________________________________
Name: svn:eol-style
   + native

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070909/02168e4e/attachment.html


More information about the macports-changes mailing list