Index: head/net/aget/Makefile =================================================================== --- head/net/aget/Makefile (revision 549625) +++ head/net/aget/Makefile (revision 549626) @@ -1,26 +1,25 @@ # Created by: Aaron Zauner # $FreeBSD$ PORTNAME= aget PORTVERSION= 0.4.1 +PORTREVISION= 1 CATEGORIES= net MASTER_SITES= http://www.enderunix.org/aget/ MAINTAINER= ports@FreeBSD.org COMMENT= Multithreaded HTTP download accelerator LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/COPYING MAKE_ARGS= CC="${CC}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" LDFLAGS+= -pthread -# Fix build with clang11 -CFLAGS+= -fcommon PLIST_FILES= bin/aget man/man1/aget.1.gz do-install: ${INSTALL_PROGRAM} ${WRKSRC}/aget ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/aget.1 ${STAGEDIR}${MANPREFIX}/man/man1 .include Index: head/net/aget/files/patch-Download.c =================================================================== --- head/net/aget/files/patch-Download.c (nonexistent) +++ head/net/aget/files/patch-Download.c (revision 549626) @@ -0,0 +1,11 @@ +--- Download.c.orig 2009-05-12 05:30:23 UTC ++++ Download.c +@@ -107,7 +107,7 @@ void * http_get(void *arg) { + pthread_mutex_unlock(&bwritten_mutex); + + while (td->offset < foffset) { +- memset(rbuf, GETRECVSIZ, 0); ++ memset(rbuf, 0, GETRECVSIZ); + dr = recv(sd, rbuf, GETRECVSIZ, 0); + if ((td->offset + dr) > foffset) + dw = pwrite(td->fd, rbuf, foffset - td->offset, td->offset); Property changes on: head/net/aget/files/patch-Download.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/aget/files/patch-Head.c =================================================================== --- head/net/aget/files/patch-Head.c (nonexistent) +++ head/net/aget/files/patch-Head.c (revision 549626) @@ -0,0 +1,10 @@ +--- Head.c.orig 2009-05-12 05:22:42 UTC ++++ Head.c +@@ -2,7 +2,6 @@ + #define _XOPEN_SOURCE 500 + #endif + +- + #include + #include + #include Property changes on: head/net/aget/files/patch-Head.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/aget/files/patch-Misc.h =================================================================== --- head/net/aget/files/patch-Misc.h (nonexistent) +++ head/net/aget/files/patch-Misc.h (revision 549626) @@ -0,0 +1,11 @@ +--- Misc.h.orig 2009-05-12 05:24:18 UTC ++++ Misc.h +@@ -24,7 +24,7 @@ void Log(char *, ...); /* Log */ + void updateProgressBar(float, float); + void handleHttpRetcode(char *); + +-time_t t_start, t_finish; ++extern time_t t_start, t_finish; + + #endif + Property changes on: head/net/aget/files/patch-Misc.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/aget/files/patch-Signal.h =================================================================== --- head/net/aget/files/patch-Signal.h (nonexistent) +++ head/net/aget/files/patch-Signal.h (revision 549626) @@ -0,0 +1,11 @@ +--- Signal.h.orig 2020-09-22 19:16:50 UTC ++++ Signal.h +@@ -4,7 +4,7 @@ + #include + #include + +-sigset_t signal_set; ++extern sigset_t signal_set; + + void * signal_waiter(void *arg); + void sigint_handler(void); Property changes on: head/net/aget/files/patch-Signal.h ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/net/aget/files/patch-main.c =================================================================== --- head/net/aget/files/patch-main.c (nonexistent) +++ head/net/aget/files/patch-main.c (revision 549626) @@ -0,0 +1,12 @@ +--- main.c.orig 2009-05-12 05:41:23 UTC ++++ main.c +@@ -15,6 +15,9 @@ + #include "main.h" + #include + ++sigset_t signal_set; ++time_t t_start, t_finish; ++ + int main(int argc, char **argv) + { + extern char *optarg; Property changes on: head/net/aget/files/patch-main.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property