summaryrefslogtreecommitdiff
path: root/misc/cksfv/patches
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-08-13 22:03:07 +0000
committerwiz <wiz@pkgsrc.org>2000-08-13 22:03:07 +0000
commit3b301bdfcc7359ae8c3613afcadf21605d191dee (patch)
tree4f060777cf3b608767410a72dcd71551500dbed5 /misc/cksfv/patches
parentd469d0d2b1381d5d27f9b8a237f0408603830d5a (diff)
downloadpkgsrc-3b301bdfcc7359ae8c3613afcadf21605d191dee.tar.gz
Initial import of cksfv-1.1, a tool to check and create simple file
verification (SFV) listings. Package provided by Dieter Baron in private communication.
Diffstat (limited to 'misc/cksfv/patches')
-rw-r--r--misc/cksfv/patches/patch-aa27
-rw-r--r--misc/cksfv/patches/patch-ac22
-rw-r--r--misc/cksfv/patches/patch-ad48
-rw-r--r--misc/cksfv/patches/patch-ae21
4 files changed, 118 insertions, 0 deletions
diff --git a/misc/cksfv/patches/patch-aa b/misc/cksfv/patches/patch-aa
new file mode 100644
index 00000000000..83017fc88a9
--- /dev/null
+++ b/misc/cksfv/patches/patch-aa
@@ -0,0 +1,27 @@
+$NetBSD: patch-aa,v 1.1.1.1 2000/08/13 22:03:07 wiz Exp $
+
+--- Makefile.orig Thu Aug 10 22:06:59 2000
++++ Makefile Thu Aug 10 22:07:17 2000
+@@ -17,13 +17,13 @@
+ # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+
+ all:
+- cd src && gmake
++ cd src && ${MAKE}
+
+ install:
+- cd src && gmake install
++ cd src && ${MAKE} install
+
+ dist:
+- gmake clean
++ ${MAKE} clean
+ rm -rf ~/cksfv-1.1 && \
+ cp -r . ~/cksfv-1.1 && cd ~ && rm -rf cksfv-1.1/CVS \
+ && rm -rf cksfv-1.1/src/CVS && tar cf cksfv-1.1.tar cksfv-1.1 \
+@@ -38,4 +38,4 @@
+ clean:
+ rm -f *.o *~ *.core
+ rm -f rpm/*.o rpm/*~ rpm/*.core
+- cd src && gmake clean
++ cd src && ${MAKE} clean
diff --git a/misc/cksfv/patches/patch-ac b/misc/cksfv/patches/patch-ac
new file mode 100644
index 00000000000..e3f84e9d7d6
--- /dev/null
+++ b/misc/cksfv/patches/patch-ac
@@ -0,0 +1,22 @@
+$NetBSD: patch-ac,v 1.1.1.1 2000/08/13 22:03:07 wiz Exp $
+
+--- src/cksfv.c.orig Thu Aug 10 22:54:48 2000
++++ src/cksfv.c Thu Aug 10 23:00:16 2000
+@@ -20,7 +20,7 @@
+ #include <string.h>
+ #include <unistd.h>
+
+-extern int readsfv(char*, char*, int);
++extern int readsfv(char*, char*, int, int, char **);
+ extern int newsfv(char**);
+ extern void pusage();
+
+@@ -58,7 +58,7 @@
+ argv += optind;
+
+ if (rsfvflag == 1) {
+- rval = readsfv(sfvfile, dir, nocase);
++ rval = readsfv(sfvfile, dir, nocase, argc, argv);
+ } else {
+ if (argc < 1) {
+ pusage();
diff --git a/misc/cksfv/patches/patch-ad b/misc/cksfv/patches/patch-ad
new file mode 100644
index 00000000000..7a4fa34473e
--- /dev/null
+++ b/misc/cksfv/patches/patch-ad
@@ -0,0 +1,48 @@
+$NetBSD: patch-ad,v 1.1.1.1 2000/08/13 22:03:07 wiz Exp $
+
+--- src/readsfv.c.orig Thu Aug 10 22:50:02 2000
++++ src/readsfv.c Thu Aug 10 23:01:30 2000
+@@ -33,12 +33,13 @@
+
+ extern int verbose;
+
+-int readsfv(char *fn, char *dir, int nocase)
++int readsfv(char *fn, char *dir, int nocase, int argc, char **argv)
+ {
+ FILE *fd;
+ DIR *dirp = NULL;
+ char buf[512], *end, filename[512], crc[9], path[256];
+ int file, rval = 0;
++ int i, check;
+ unsigned long len, val, sfvcrc;
+ struct dirent *dirinfo;
+
+@@ -79,6 +80,19 @@
+ strncpy(filename, buf, 512);
+ sfvcrc = strtoul(crc, '\0', 16);
+
++ if (argc) {
++ check = 0;
++ for (i=0; i<argc; i++) {
++ if ((nocase == 1 && strcasecmp(argv[i], filename) == 0)
++ || (nocase == 0 && strcmp(argv[i], filename) == 0)) {
++ check = 1;
++ break;
++ }
++ }
++ if (check == 0)
++ continue;
++ }
++
+ if (nocase == 1) {
+ len = strlen(filename);
+ while ((dirinfo = readdir(dirp)) != NULL) {
+@@ -126,6 +140,8 @@
+ }
+ }
+ fclose(fd);
++ if (nocase == 1)
++ closedir(dirp);
+
+ if (verbose == 1) {
+ if (rval == 0) {
diff --git a/misc/cksfv/patches/patch-ae b/misc/cksfv/patches/patch-ae
new file mode 100644
index 00000000000..1381657ab27
--- /dev/null
+++ b/misc/cksfv/patches/patch-ae
@@ -0,0 +1,21 @@
+$NetBSD: patch-ae,v 1.1.1.1 2000/08/13 22:03:08 wiz Exp $
+
+--- README.orig Sun Aug 13 23:33:33 2000
++++ README Sun Aug 13 23:36:07 2000
+@@ -48,6 +48,16 @@
+ ------------------------------------------------------------
+ Everything OK
+
++ If you do not want to check all files liste in an .sfv file, name the
++ files you want checked on the command line:
++
++ $ cksfv -f new_files.sfv -i COPYING ChangeLog
++ --( Verifying file: new_files.sfv )-------------------------
++ COPYING: OK
++ ChangeLog: OK
++ ------------------------------------------------------------
++ Everything OK
++
+ Now for creating your own .sfv files. You can run the following command.
+
+ $ cksfv * > mine.sfv