mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

81 lines
2.7 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/mine/devdoc.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2005 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. Index: mine/selector.c
  20. ===================================================================
  21. --- mine/selector.c (revision 58)
  22. +++ mine/selector.c (working copy)
  23. @@ -111,6 +111,10 @@
  24. fullname = "Base Packages";
  25. if ( !blanks && !strcmp(fullname, "extra") )
  26. fullname = "Additional Packages";
  27. + if ( !blanks && !strcmp(fullname, "dev") )
  28. + fullname = "Development Packages";
  29. + if ( !blanks && !strcmp(fullname, "doc") )
  30. + fullname = "Documentation Packages";
  31. snprintf(tmpstring1, 512,
  32. "%*s(%c) %s/", blanks, "",
  33. Index: mine/readdb.c
  34. ===================================================================
  35. --- mine/readdb.c (revision 58)
  36. +++ mine/readdb.c (working copy)
  37. @@ -145,6 +145,20 @@
  38. e->next = d->list; d->list = e; e->content.pkg = p;
  39. directory_entry_count++;
  40. + if ( strlen(packagename) > 4 && !strcmp(packagename+strlen(packagename)-4, ":dev") ) {
  41. + d = get_create_directory(rootdir, "dev");
  42. + e = calloc(1, sizeof(struct directory_entry));
  43. + e->next = d->list; d->list = e; e->content.pkg = p;
  44. + directory_entry_count++;
  45. + }
  46. +
  47. + if ( strlen(packagename) > 4 && !strcmp(packagename+strlen(packagename)-4, ":doc") ) {
  48. + d = get_create_directory(rootdir, "doc");
  49. + e = calloc(1, sizeof(struct directory_entry));
  50. + e->next = d->list; d->list = e; e->content.pkg = p;
  51. + directory_entry_count++;
  52. + }
  53. +
  54. /* read basic info like V and C tags */
  55. while ( fgets(line, 1024, f) != NULL && strcmp(line,"\027\n") ) {
  56. if ( (line_length = strlen(line)) < 3 ) continue;
  57. @@ -283,9 +297,11 @@
  58. }
  59. char *root_order[] = {
  60. - "all"
  61. + "all",
  62. "base",
  63. "extra",
  64. + "dev",
  65. + "doc",
  66. NULL
  67. };
  68. @@ -298,7 +314,7 @@
  69. }
  70. if ( v1 == v2 ) return strcmp(n1, n2);
  71. - return v1 == v2 ? 0 : v1 > v2 ? -1 : 1;
  72. + return v1 == v2 ? 0 : v1 > v2 ? +1 : -1;
  73. }
  74. void sort_directory(struct directory *d)