1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
4 # T2 SDE: package/.../mine/x-no-cksums.patch
5 # Copyright (C) 2006 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
9 # This patch file is dual-licensed. It is available under the license the
10 # patched project is licensed under, as long as it is an OpenSource license
11 # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
12 # of the GNU General Public License as published by the Free Software
13 # Foundation; either version 2 of the License, or (at your option) any later
15 # --- T2-COPYRIGHT-NOTE-END ---
17 To reduce redundancy our reduncancy detector found that this goold
18 old Un*x chksums are not worth much and unused despite the size field.
19 We now only use the md5sums files where we added the otherwise missing
22 - Rene Rebe <rene@exactcode.de>
24 diff -urN mine-0.23-orig/create.c mine-0.23/create.c
25 --- mine-0.23-orig/create.c 2005-03-23 09:51:06.000000000 +0100
26 +++ mine-0.23/create.c 2006-10-29 20:19:46.000000000 +0100
29 * GEM MINE - The ROCK Linux Package Manager
30 * Copyright (C) 2002-2005 Clifford Wolf
31 + * Copyright (C) 2006 Rene Rebe
33 * This program is free software; you can redistribute it and/or modify
34 * it under the terms of the GNU General Public License as published by
43 diff -urN mine-0.23-orig/md5sum.c mine-0.23/md5sum.c
44 --- mine-0.23-orig/md5sum.c 2006-10-29 20:16:56.000000000 +0100
45 +++ mine-0.23/md5sum.c 2006-10-29 20:19:20.000000000 +0100
47 struct dirent *md5_dent;
48 char buffer[1024], buffer2[1024];
49 char *md5sum, *filename;
50 - const char const *admdirs[6] =
51 - {"cksums", "dependencies", "descs", "flists", "md5sums", "packages"};
52 + const char const *admdirs[5] =
53 + {"dependencies", "descs", "flists", "md5sums", "packages"};
58 /* Add the /var/adm files of each package to the
59 md5sum memdb so md5sum_check() recognizes them. */
61 - for (n = 0; n < 6; n++) {
62 + for (n = 0; n < 5; n++) {
63 snprintf(buffer2, 1024, "var/adm/%s/%s",
64 admdirs[n], md5_dent->d_name);
65 memdb_put(&md5_memdb, buffer2,
66 diff -urN mine-0.23-orig/mine.c mine-0.23/mine.c
67 --- mine-0.23-orig/mine.c 2005-09-30 12:34:36.000000000 +0200
68 +++ mine-0.23/mine.c 2006-10-29 20:19:51.000000000 +0100
71 * GEM MINE - The ROCK Linux Package Manager
72 * Copyright (C) 2002-2005 Clifford Wolf
73 + * Copyright (C) 2006 Rene Rebe
75 * This program is free software; you can redistribute it and/or modify
76 * it under the terms of the GNU General Public License as published by
78 " Where {query-mode} might be one of:\n"
80 " -q name and version -p long description -l file list\n"
81 -" -m md5sums -c cksums -d dependencies\n"
82 +" -m md5sums -d dependencies\n"
84 " -k key (for *.gem files only, use 'LIST' as key to list all keys)\n"
85 " -P create 'packages.db' records (for *.gem files only)\n"
87 " packages The /var/adm/packages/<pkg> file\n"
88 " flists The /var/adm/flists/<pkg> file\n"
89 " md5sums The /var/adm/md5sums/<pkg> file\n"
90 -" cksums The /var/adm/cksums/<pkg> file\n"
91 " dependencies The /var/adm/dependencies/<pkg> file\n"
92 " descs The /var/adm/descs/<pkg> file\n"
95 set_mode(MINE_MODE_SHOWFILE);
96 mine_file_key_name = "md5sums";
99 - set_mode(MINE_MODE_SHOWFILE);
100 - mine_file_key_name = "cksums";
103 set_mode(MINE_MODE_SHOWFILE);
104 mine_file_key_name = "dependencies";
105 diff -urN mine-0.23-orig/mkpdb.c mine-0.23/mkpdb.c
106 --- mine-0.23-orig/mkpdb.c 2005-03-23 09:51:06.000000000 +0100
107 +++ mine-0.23/mkpdb.c 2006-10-29 20:19:56.000000000 +0100
110 * GEM MINE - The ROCK Linux Package Manager
111 * Copyright (C) 2002-2005 Clifford Wolf
112 + * Copyright (C) 2006 Rene Rebe
114 * This program is free software; you can redistribute it and/or modify
115 * it under the terms of the GNU General Public License as published by
117 if ( dump_field(&c, "pkg_name") == -1 ) goto error;
118 if ( dump_field(&c, "descs") == -1 ) goto error;
119 if ( dump_field(&c, "dependencies") == -1 ) goto error;
120 - if ( dump_field(&c, "cksums") == -1 ) goto error;
124 diff -urN mine-0.23-orig/readdb.c mine-0.23/readdb.c
125 --- mine-0.23-orig/readdb.c 2006-10-29 20:16:56.000000000 +0100
126 +++ mine-0.23/readdb.c 2006-10-29 20:17:15.000000000 +0100
131 - snprintf(filename, PATH_MAX, "%s/%s/info/cksums/%s",
132 + snprintf(filename, PATH_MAX, "%s/%s/info/md5sums/%s",
133 sourcedir, config, packagename);
134 f = fopen(filename, "r");