Wed Jun 3 16:45:17 2009 UTC ()
Add miros to the default accepted licenses.


(ahoka)
diff -r1.3 -r1.4 pkgsrc/pkgtools/pkg_install/files/lib/license.c

cvs diff -r1.3 -r1.4 pkgsrc/pkgtools/pkg_install/files/lib/license.c (expand / switch to unified diff)

--- pkgsrc/pkgtools/pkg_install/files/lib/license.c 2009/05/27 21:56:11 1.3
+++ pkgsrc/pkgtools/pkg_install/files/lib/license.c 2009/06/03 16:45:17 1.4
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: license.c,v 1.3 2009/05/27 21:56:11 joerg Exp $ */ 1/* $NetBSD: license.c,v 1.4 2009/06/03 16:45:17 ahoka Exp $ */
2 2
3/*- 3/*-
4 * Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>. 4 * Copyright (c) 2009 Joerg Sonnenberger <joerg@NetBSD.org>.
5 * All rights reserved. 5 * All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 10 *
11 * 1. Redistributions of source code must retain the above copyright 11 * 1. Redistributions of source code must retain the above copyright
12 * notice, this list of conditions and the following disclaimer. 12 * notice, this list of conditions and the following disclaimer.
13 * 2. Redistributions in binary form must reproduce the above copyright 13 * 2. Redistributions in binary form must reproduce the above copyright
14 * notice, this list of conditions and the following disclaimer in 14 * notice, this list of conditions and the following disclaimer in
@@ -41,27 +41,27 @@ @@ -41,27 +41,27 @@
41#include <stdlib.h> 41#include <stdlib.h>
42#include <string.h> 42#include <string.h>
43 43
44#include "lib.h" 44#include "lib.h"
45 45
46#define HASH_SIZE 521 46#define HASH_SIZE 521
47 47
48const char *default_acceptable_licenses = 48const char *default_acceptable_licenses =
49 "public-domain " 49 "public-domain "
50 "gnu-fdl-v1.1 gnu-fdl-v1.2 gnu-fdl-v1.3 " 50 "gnu-fdl-v1.1 gnu-fdl-v1.2 gnu-fdl-v1.3 "
51 "gnu-gpl-v2 gnu-lgpl-v2 gnu-lgpl-v2.1 " 51 "gnu-gpl-v2 gnu-lgpl-v2 gnu-lgpl-v2.1 "
52 "gnu-gpl-v3 gnu-lgpl-v3 " 52 "gnu-gpl-v3 gnu-lgpl-v3 "
53 "original-bsd modified-bsd " 53 "original-bsd modified-bsd "
54 "x11 mit " 54 "x11 mit miros "
55 "apache-1.1 apache-2.0 " 55 "apache-1.1 apache-2.0 "
56 "artistic artistic-2.0 " 56 "artistic artistic-2.0 "
57 "cddl-1.0 " 57 "cddl-1.0 "
58 "cpl-1.0 " 58 "cpl-1.0 "
59 "open-font-license "; 59 "open-font-license ";
60 60
61#ifdef DEBUG 61#ifdef DEBUG
62static size_t hash_collisions; 62static size_t hash_collisions;
63#endif 63#endif
64 64
65static char **license_hash[HASH_SIZE]; 65static char **license_hash[HASH_SIZE];
66static const char license_spaces[] = " \t\n"; 66static const char license_spaces[] = " \t\n";
67static const char license_chars[] = "abcdefghijklmnopqrstuvwxyz0123456789_-."; 67static const char license_chars[] = "abcdefghijklmnopqrstuvwxyz0123456789_-.";