Update to version 1.1.1

PR: 23033
Submitted by: MAINTAINER
This commit is contained in:
Kevin Lo 2000-11-23 15:30:39 +00:00
parent fd0623f3bb
commit 933d6114f3
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=35380
5 changed files with 5 additions and 95 deletions

View File

@ -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/

View File

@ -1 +1 @@
MD5 (leafpak-1.1.tar.gz) = c5eb844d2428031274067c825a17619e
MD5 (leafpak-1.1.1.tar.gz) = 9b1b53f46b9700f2f8ef6315ab2f5a95

View File

@ -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]) {

View File

@ -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++) {

View File

@ -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