diff options
author | danfe <danfe@FreeBSD.org> | 2012-09-26 16:59:21 +0800 |
---|---|---|
committer | danfe <danfe@FreeBSD.org> | 2012-09-26 16:59:21 +0800 |
commit | 6d2498cfc4d86d6601cd7ed8b1dfbb423431a0aa (patch) | |
tree | 085f9993d600f472a5568e8014569bc2fc50509f /archivers/nwreckdum | |
parent | 57a3e3a2c528ae3eee655f9a14243aabd366266a (diff) | |
download | freebsd-ports-gnome-6d2498cfc4d86d6601cd7ed8b1dfbb423431a0aa.tar.gz freebsd-ports-gnome-6d2498cfc4d86d6601cd7ed8b1dfbb423431a0aa.tar.zst freebsd-ports-gnome-6d2498cfc4d86d6601cd7ed8b1dfbb423431a0aa.zip |
- Move the source code under my GitHub account and integrate the patch
- Drop maintainership as I no longer actively use it these days
- Trim Makefile header per new world order + other minor cleanups
Diffstat (limited to 'archivers/nwreckdum')
-rw-r--r-- | archivers/nwreckdum/Makefile | 18 | ||||
-rw-r--r-- | archivers/nwreckdum/distinfo | 4 | ||||
-rw-r--r-- | archivers/nwreckdum/files/patch-nwreckdu.c | 95 |
3 files changed, 12 insertions, 105 deletions
diff --git a/archivers/nwreckdum/Makefile b/archivers/nwreckdum/Makefile index 50fcea501b92..278c95ed812f 100644 --- a/archivers/nwreckdum/Makefile +++ b/archivers/nwreckdum/Makefile @@ -1,20 +1,22 @@ -# New ports collection makefile for: nwreckdum -# Date created: 27 May 2003 -# Whom: Alexey Dokuchaev <danfe@regency.nsu.ru> -# +# Created by: Alexey Dokuchaev <danfe@regency.nsu.ru> # $FreeBSD$ -# PORTNAME= nwreckdum PORTVERSION= 0.0.6 PORTREVISION= 2 CATEGORIES= archivers games -MASTER_SITES= http://freebsd.nsu.ru/distfiles/ +DISTNAME= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_COMMIT} -MAINTAINER= danfe@FreeBSD.org +MAINTAINER= ports@FreeBSD.org COMMENT= Utility for manipulating of Quake PAK files -PLIST_FILES= bin/nwreckdum +USE_GITHUB= yes +GH_ACCOUNT= danfe +GH_PROJECT= ${PORTNAME} +GH_TAGNAME= master +GH_COMMIT= 22cbc47 + +PLIST_FILES= bin/${PORTNAME} do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin diff --git a/archivers/nwreckdum/distinfo b/archivers/nwreckdum/distinfo index a573b3071280..f4ea0378670b 100644 --- a/archivers/nwreckdum/distinfo +++ b/archivers/nwreckdum/distinfo @@ -1,2 +1,2 @@ -SHA256 (nwreckdum-0.0.6.tar.gz) = 0e10ad843e58cc63f016545d8b51257832188f50bc0a8ce135c1d249af75fe7e -SIZE (nwreckdum-0.0.6.tar.gz) = 6189 +SHA256 (danfe-nwreckdum-22cbc47.tar.gz) = 21ab8cd85cfb831a65cfe89e4d0d4a04c31a98d319ecf45bc263a46385ffecf7 +SIZE (danfe-nwreckdum-22cbc47.tar.gz) = 7844 diff --git a/archivers/nwreckdum/files/patch-nwreckdu.c b/archivers/nwreckdum/files/patch-nwreckdu.c deleted file mode 100644 index 4b301f2c88e4..000000000000 --- a/archivers/nwreckdum/files/patch-nwreckdu.c +++ /dev/null @@ -1,95 +0,0 @@ ---- nwreckdu.c.orig Mon Jun 8 17:47:02 1998 -+++ nwreckdu.c Fri Nov 3 02:30:05 2006 -@@ -23,11 +23,11 @@ - - typedef struct { - char name[56]; -- unsigned long offset, length; -+ uint32_t offset, length; - } dirrec; - - int asmpak(FILE *); --int extrpak(FILE *); -+int extrpak(FILE *, int); - int write_rec(dirrec, FILE *); - int makepath(char *); - -@@ -37,6 +37,7 @@ - "\n" - " -c, --create create PACK instead of extracting\n" - " -d, --dir=DIR use DIR as the input/output directory\n" -+" -l, --list list files stored in PACK\n" - " -h, --help display this help\n" - " -p, --pak=FILE read FILE for PACK information\n" - "\n" -@@ -47,7 +48,7 @@ - - int main(int argc, char **argv) { - FILE *pakhand = NULL; -- int makepak = 0; -+ int makepak = 0, listpak = 0; - char *pakfile = NULL, *outdir = NULL; - const char defpakfile[] = "pak0.pak", - defoutdir[] = "pak0"; -@@ -55,6 +56,7 @@ - { 'p', "pak", OPT_STRING, &pakfile, 0 }, - { 'd', "dir", OPT_STRING, &outdir, 0 }, - { 'c', "create", OPT_FLAG, &makepak, 0 }, -+ { 'l', "list", OPT_FLAG, &listpak, 0 }, - { 'h', "help", OPT_FLAG, usage, OPT_CALLFUNC }, - { 0, NULL, OPT_END, 0, 0 } - }; -@@ -66,8 +68,9 @@ - outdir = (char *)defoutdir; - - printf("Using pak file: %s\n", pakfile); -- printf("Input/output directory: %s\n", outdir); -- printf("Operation: %s\n", (makepak?"create":"extract")); -+ if (!listpak) -+ printf("Input/output directory: %s\n", outdir); -+ printf("Operation: %s\n", (makepak?"create":listpak?"list":"extract")); - - if (makepak) - pakhand = fopen(pakfile, "wb"); -@@ -79,6 +82,8 @@ - return(-1); - } - -+ if (!listpak) { -+ - if (!makepak && (mkdir(outdir, 493 /*octal=755*/) == -1)) { - printf("Error making %s: %s\n", outdir, strerror(errno)); - fclose(pakhand); -@@ -89,12 +94,12 @@ - strerror(errno)); - fclose(pakhand); - return(-1); -- } -+ } } - - if (makepak) - asmpak(pakhand); - else -- extrpak(pakhand); -+ extrpak(pakhand, listpak); - - fclose(pakhand); - return(0); -@@ -209,7 +214,7 @@ - return(1); - } - --int extrpak(FILE *in) { -+int extrpak(FILE *in, int listpak) { - dirrec *dir = NULL; - char signature[4]; - unsigned long dir_start = 0, num_ents = 0; -@@ -244,6 +249,8 @@ - for (i = 0; i < num_ents; i++) { - printf("%3i %8lu %s\n", i, dir[i].length, - dir[i].name); -+ if (listpak) -+ continue; - if (write_rec(dir[i], in)) - printf("Error writing record: %s\n", - strerror(errno)); |