summaryrefslogtreecommitdiffstats
path: root/archivers
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2006-09-07 15:37:57 +0000
committerehaupt <ehaupt@FreeBSD.org>2006-09-07 15:37:57 +0000
commitae0162f6464b3ae5f287c853a25024772d90efd3 (patch)
tree547371306c8c0a50efc0a55f50589b04347c5935 /archivers
parent44cd1ae21b81fd4b041b64cf981dab32edd7485f (diff)
downloadFreeBSD-ports-ae0162f6464b3ae5f287c853a25024772d90efd3.zip
FreeBSD-ports-ae0162f6464b3ae5f287c853a25024772d90efd3.tar.gz
Update to 0.5
Diffstat (limited to 'archivers')
-rw-r--r--archivers/gzrecover/Makefile6
-rw-r--r--archivers/gzrecover/distinfo6
-rw-r--r--archivers/gzrecover/files/patch-gzrecover.c49
3 files changed, 6 insertions, 55 deletions
diff --git a/archivers/gzrecover/Makefile b/archivers/gzrecover/Makefile
index c46855e..c94ce75 100644
--- a/archivers/gzrecover/Makefile
+++ b/archivers/gzrecover/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= gzrecover
-PORTVERSION= 0.4
+PORTVERSION= 0.5
CATEGORIES= archivers
MASTER_SITES= http://www.urbanophile.com/arenn/hacking/gzrt/ \
http://critical.ch/distfiles/ \
@@ -16,13 +16,13 @@ DISTNAME= gzrt-${PORTVERSION}
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= A gzip recovery toolkit
-CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
+CFLAGS+= -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -lz
PLIST_FILES= bin/${PORTNAME}
PORTDOCS= README
do-build:
- ${CC} -o ${WRKSRC}/${PORTNAME} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c -lz
+ ${CC} -o ${WRKSRC}/${PORTNAME} ${CFLAGS} ${WRKSRC}/${PORTNAME}.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${TARGETDIR}/bin
diff --git a/archivers/gzrecover/distinfo b/archivers/gzrecover/distinfo
index af1f994..4ca0de3 100644
--- a/archivers/gzrecover/distinfo
+++ b/archivers/gzrecover/distinfo
@@ -1,3 +1,3 @@
-MD5 (gzrt-0.4.tar.gz) = 7a5207fe710f8547f90ceafc82fc8564
-SHA256 (gzrt-0.4.tar.gz) = b07e87989899c6ed805bd4a90fd7ee2bbf15f16220d3423728f1ca728da3c091
-SIZE (gzrt-0.4.tar.gz) = 5029
+MD5 (gzrt-0.5.tar.gz) = 91e9cbc1d92276742691dca89d6b8293
+SHA256 (gzrt-0.5.tar.gz) = f961311903ce742360a3ab04877648617010aa0f142bcbab59d3bada155cf1df
+SIZE (gzrt-0.5.tar.gz) = 5559
diff --git a/archivers/gzrecover/files/patch-gzrecover.c b/archivers/gzrecover/files/patch-gzrecover.c
deleted file mode 100644
index c379f40..0000000
--- a/archivers/gzrecover/files/patch-gzrecover.c
+++ /dev/null
@@ -1,49 +0,0 @@
---- gzrecover.c.orig Sat Sep 4 19:55:08 2004
-+++ gzrecover.c Wed Jun 8 21:53:49 2005
-@@ -20,6 +20,7 @@
-
- #include <stdio.h>
- #include <stdlib.h>
-+#include <string.h>
- #include <sys/types.h>
- #include <sys/stat.h>
- #include <errno.h>
-@@ -85,10 +86,14 @@
- static int suffix = 1;
-
- /* Build the output file name */
-- if (outfile_specified)
-- check_error(0, outfile = (char *)malloc(strlen(user_outname) + 9), "malloc");
-- else
-- check_error(0, outfile = (char *)malloc(strlen(infile) + 25), "malloc");
-+ if (outfile_specified) {
-+ outfile = (char *)malloc(strlen(user_outname) + 9);
-+ check_error(0, (int)outfile, "malloc");
-+ }
-+ else {
-+ outfile = (char *)malloc(strlen(infile) + 25);
-+ check_error(0, (int)outfile, "malloc");
-+ }
-
- if (!outfile_specified) /* Strip of .gz unless user specified name */
- {
-@@ -223,7 +228,8 @@
- infile = argv[optind];
-
- /* Open input file and memory map */
-- check_error(0, inbuf = (char *)malloc(inbuf_size), "malloc");
-+ inbuf = (char *)malloc(inbuf_size);
-+ check_error(0, (int)inbuf, "malloc");
- check_error(-1, ifd = open(infile, O_RDONLY), "open");
-
- if (verbose_mode)
-@@ -231,7 +237,8 @@
-
- /* Open output file & initialize output buffer */
- ofd = open_outfile(infile);
-- check_error(0, outbuf = (char *)malloc(outbuf_size), "malloc");
-+ outbuf = (char *)malloc(outbuf_size);
-+ check_error(0, (int)outbuf, "malloc");
-
- /* Initialize zlib */
- check_error(-1, bytes_read = read_internal(ifd, inbuf, inbuf_size), "read");
OpenPOWER on IntegriCloud