diff options
author | Kevin Lo <kevlo@FreeBSD.org> | 2000-11-23 15:30:39 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@FreeBSD.org> | 2000-11-23 15:30:39 +0000 |
commit | 933d6114f3ea94caf35319176bad4270bbfac9fe (patch) | |
tree | 2214557b89085ba337556d76b3f67c6c6a8d9174 /graphics/leafpak | |
parent | fd0623f3bb777f690b8c5d46c35845592acd69eb (diff) | |
download | ports-933d6114f3ea94caf35319176bad4270bbfac9fe.tar.gz ports-933d6114f3ea94caf35319176bad4270bbfac9fe.zip |
Notes
Diffstat (limited to 'graphics/leafpak')
-rw-r--r-- | graphics/leafpak/Makefile | 6 | ||||
-rw-r--r-- | graphics/leafpak/distinfo | 2 | ||||
-rw-r--r-- | graphics/leafpak/files/patch-aa | 51 | ||||
-rw-r--r-- | graphics/leafpak/files/patch-ab | 39 | ||||
-rw-r--r-- | graphics/leafpak/pkg-descr | 2 |
5 files changed, 5 insertions, 95 deletions
diff --git a/graphics/leafpak/Makefile b/graphics/leafpak/Makefile index ff53f07f9dc4..00598cb1f495 100644 --- a/graphics/leafpak/Makefile +++ b/graphics/leafpak/Makefile @@ -1,12 +1,12 @@ # New ports collection makefile for: leafpak -# Date created: 25 Sep 2000 -# Whom: TAKAHASHI Kaoru +# Date created: 25 Sep 2000 +# Whom: TAKAHASHI Kaoru <kaoru@kaisei.org> # # $FreeBSD$ # PORTNAME= leafpak -PORTVERSION= 1.1 +PORTVERSION= 1.1.1 CATEGORIES= graphics MASTER_SITES= http://hoshina.denpa.org/ diff --git a/graphics/leafpak/distinfo b/graphics/leafpak/distinfo index b278c84d9154..52e62b62ad36 100644 --- a/graphics/leafpak/distinfo +++ b/graphics/leafpak/distinfo @@ -1 +1 @@ -MD5 (leafpak-1.1.tar.gz) = c5eb844d2428031274067c825a17619e +MD5 (leafpak-1.1.1.tar.gz) = 9b1b53f46b9700f2f8ef6315ab2f5a95 diff --git a/graphics/leafpak/files/patch-aa b/graphics/leafpak/files/patch-aa deleted file mode 100644 index 1aae5df11319..000000000000 --- a/graphics/leafpak/files/patch-aa +++ /dev/null @@ -1,51 +0,0 @@ -diff -u leafpak.c.orig leafpak.c ---- leafpak.c.orig Sat Feb 5 23:48:02 2000 -+++ leafpak.c Tue Oct 31 05:34:30 2000 -@@ -94,20 +94,24 @@ - - for (i = 0; i < lp->file_num; i++) { - fp = fopen(lp->name[i], "w"); -- printf("extracting %s...", lp->name[i]); -- fflush(stdout); -+ if (fp == NULL) { -+ printf("Can't write %s. skip\n", lp->name[i]); -+ } else { -+ printf("extracting %s...", lp->name[i]); -+ fflush(stdout); - -- pos = lp->pos[i]; -- fseek(lp->fp, (long)pos, SEEK_SET); -- k = 0; -- while (pos != lp->nextpos[i]) { -- val = (fgetc(lp->fp) - lp->key[k]) & 0xff; -- k = (++k) % KEY_LEN; -- fputc(val, fp); -- pos++; -+ pos = lp->pos[i]; -+ fseek(lp->fp, (long)pos, SEEK_SET); -+ k = 0; -+ while (pos != lp->nextpos[i]) { -+ val = (fgetc(lp->fp) - lp->key[k]) & 0xff; -+ k = (++k) % KEY_LEN; -+ fputc(val, fp); -+ pos++; -+ } -+ fclose(fp); -+ printf("done.\n"); - } -- fclose(fp); -- printf("done.\n"); - } - printf("\nAll files are extracted.\n"); - } -@@ -139,6 +143,10 @@ - fflush(stdout); - - fp = fopen(file, "w"); -+ if ( fp == NULL ) { -+ printf("Can't write %s.\n", file); -+ return -1; -+ } - pos = lp->pos[i]; - fseek(lp->fp, (long)pos, SEEK_SET); - while (pos != lp->nextpos[i]) { diff --git a/graphics/leafpak/files/patch-ab b/graphics/leafpak/files/patch-ab deleted file mode 100644 index 2b1920f71b81..000000000000 --- a/graphics/leafpak/files/patch-ab +++ /dev/null @@ -1,39 +0,0 @@ -diff -u leafpak2.c.orig leafpak2.c ---- leafpak2.c.orig Sat Feb 5 23:47:49 2000 -+++ leafpak2.c Tue Oct 31 05:41:13 2000 -@@ -236,14 +236,18 @@ - fflush(stdout); - - fp = fopen(lp->name[i], "w"); -- fseek(lp->fp, (long)lp->position[i], SEEK_SET); -+ if (fp == NULL) { -+ printf("Can't write %s\n",lp->name[i]); -+ } else { -+ fseek(lp->fp, (long)lp->position[i], SEEK_SET); - -- for (j = 0; j < lp->length[i]; j++) { -- fputc(fgetc(lp->fp), fp); -- } -+ for (j = 0; j < lp->length[i]; j++) { -+ fputc(fgetc(lp->fp), fp); -+ } - -- fclose(fp); -- printf("done.\n"); -+ fclose(fp); -+ printf("done.\n"); -+ } - } - - #ifdef DEBUG -@@ -275,6 +279,10 @@ - fflush(stdout); - - fp = fopen(filename, "w"); -+ if (fp == NULL) { -+ printf("Can't write %s.\n", filename); -+ return 1; -+ } - fseek(lp->fp, (long)lp->position[i], SEEK_SET); - - for (j = 0; j < lp->length[i]; j++) { diff --git a/graphics/leafpak/pkg-descr b/graphics/leafpak/pkg-descr index 1437be4b39ec..d738c7f79acd 100644 --- a/graphics/leafpak/pkg-descr +++ b/graphics/leafpak/pkg-descr @@ -1,4 +1,4 @@ -This is LEAF/AQUAPLUS PAK format graphic archive file extracter. +This is PAK format graphic archive file extracter for Leaf products. See also /usr/local/share/doc/ja/leafpak/README WWW: http://hoshina.denpa.org/leafpak.html |