aboutsummaryrefslogtreecommitdiff
path: root/archivers/gzrecover
diff options
context:
space:
mode:
authorEmanuel Haupt <ehaupt@FreeBSD.org>2006-09-07 15:37:57 +0000
committerEmanuel Haupt <ehaupt@FreeBSD.org>2006-09-07 15:37:57 +0000
commite515e5ec4b6bb40348a1a9f4614ab08ed3663b52 (patch)
treedb23295bbb038b9343dbba8813b7317bb41f9832 /archivers/gzrecover
parentdc52f89a482ef453a20c73188c09a68be29dc663 (diff)
downloadports-e515e5ec4b6bb40348a1a9f4614ab08ed3663b52.tar.gz
ports-e515e5ec4b6bb40348a1a9f4614ab08ed3663b52.zip
Notes
Diffstat (limited to 'archivers/gzrecover')
-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 c46855e28378..c94ce75763a0 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 af1f9942e99e..4ca0de303d77 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 c379f404e5c6..000000000000
--- 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");