summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRuss Allbery <eagle@eyrie.org>2018-06-03 15:36:21 -0700
committerRuss Allbery <eagle@eyrie.org>2018-06-03 15:36:42 -0700
commit4a0b9e747c8abfca24f30b7ce1e9a725ce11474a (patch)
tree9ed741a1fcc25fe23a6231782769d975c76a81c1
parent85f851653191bb9f0fc8435ada239f00f182d34a (diff)
Add SPDX-License-Identifier headers
Add SPDX-License-Identifier headers to all substantial source files. Collapse copyright years. Add some Emacs configuration for files where the copyright notice is at the end. Add a test that every file has SPDX-License-Identifier.
-rw-r--r--Makefile.am2
-rw-r--r--NEWS2
-rw-r--r--client/file.c4
-rw-r--r--client/internal.h2
-rw-r--r--client/keytab.c4
-rw-r--r--client/krb5.c4
-rw-r--r--client/options.c2
-rw-r--r--client/remctl.c2
-rw-r--r--client/srvtab.c2
-rw-r--r--client/wallet-rekey.c2
-rw-r--r--client/wallet-rekey.pod4
-rw-r--r--client/wallet.c2
-rw-r--r--client/wallet.pod7
-rwxr-xr-xcontrib/ad-keytab29
-rwxr-xr-xcontrib/commerzbank/wallet-history3
-rwxr-xr-xcontrib/convert-srvtab-db2
-rwxr-xr-xcontrib/used-principals2
-rwxr-xr-xcontrib/wallet-contacts2
-rwxr-xr-xcontrib/wallet-rekey-periodic10
-rwxr-xr-xcontrib/wallet-summary3
-rwxr-xr-xcontrib/wallet-unknown-hosts8
-rw-r--r--docs/design4
-rw-r--r--docs/design-acl4
-rw-r--r--docs/design-api4
-rw-r--r--docs/netdb-role-api4
-rw-r--r--docs/notes4
-rw-r--r--docs/objects-and-schemes4
-rw-r--r--docs/setup4
-rw-r--r--docs/stanford-naming4
-rw-r--r--examples/stanford.conf4
-rw-r--r--perl/Build.PL2
-rwxr-xr-xperl/create-ddl2
-rw-r--r--perl/lib/Wallet/ACL.pm4
-rw-r--r--perl/lib/Wallet/ACL/Base.pm2
-rw-r--r--perl/lib/Wallet/ACL/External.pm2
-rw-r--r--perl/lib/Wallet/ACL/Krb5.pm2
-rw-r--r--perl/lib/Wallet/ACL/Krb5/Regex.pm2
-rw-r--r--perl/lib/Wallet/ACL/LDAP/Attribute.pm4
-rw-r--r--perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm3
-rw-r--r--perl/lib/Wallet/ACL/Nested.pm2
-rw-r--r--perl/lib/Wallet/ACL/NetDB.pm2
-rw-r--r--perl/lib/Wallet/ACL/NetDB/Root.pm2
-rw-r--r--perl/lib/Wallet/Admin.pm4
-rw-r--r--perl/lib/Wallet/Config.pm4
-rw-r--r--perl/lib/Wallet/Database.pm4
-rw-r--r--perl/lib/Wallet/Kadmin.pm4
-rw-r--r--perl/lib/Wallet/Kadmin/AD.pm6
-rw-r--r--perl/lib/Wallet/Kadmin/Heimdal.pm4
-rw-r--r--perl/lib/Wallet/Kadmin/MIT.pm4
-rw-r--r--perl/lib/Wallet/Object/Base.pm4
-rw-r--r--perl/lib/Wallet/Object/Duo.pm4
-rw-r--r--perl/lib/Wallet/Object/File.pm2
-rw-r--r--perl/lib/Wallet/Object/Keytab.pm4
-rw-r--r--perl/lib/Wallet/Object/Password.pm2
-rw-r--r--perl/lib/Wallet/Object/WAKeyring.pm4
-rw-r--r--perl/lib/Wallet/Policy/Stanford.pm4
-rw-r--r--perl/lib/Wallet/Report.pm4
-rw-r--r--perl/lib/Wallet/Schema.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/Acl.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/AclEntry.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/AclHistory.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/AclScheme.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/Duo.pm2
-rw-r--r--perl/lib/Wallet/Schema/Result/Flag.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/Object.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/ObjectHistory.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/SyncTarget.pm4
-rw-r--r--perl/lib/Wallet/Schema/Result/Type.pm4
-rw-r--r--perl/lib/Wallet/Server.pm4
-rw-r--r--perl/sql/Wallet-Schema-0.07-MySQL.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.07-SQLite.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.08-MySQL.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.08-PostgreSQL.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.08-SQLite.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.09-MySQL.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.09-PostgreSQL.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.09-SQLite.sql21
-rw-r--r--perl/sql/Wallet-Schema-0.10-MySQL.sql19
-rw-r--r--perl/sql/Wallet-Schema-0.10-PostgreSQL.sql19
-rw-r--r--perl/sql/Wallet-Schema-0.10-SQLite.sql19
-rwxr-xr-xperl/t/data/acl-command3
-rwxr-xr-xperl/t/general/acl.t4
-rwxr-xr-xperl/t/general/admin.t4
-rwxr-xr-xperl/t/general/config.t2
-rwxr-xr-xperl/t/general/init.t4
-rwxr-xr-xperl/t/general/report.t4
-rwxr-xr-xperl/t/general/server.t4
-rw-r--r--perl/t/lib/Util.pm4
-rwxr-xr-xperl/t/object/base.t4
-rw-r--r--perl/t/object/duo-ldap.t2
-rw-r--r--perl/t/object/duo-pam.t2
-rw-r--r--perl/t/object/duo-radius.t2
-rw-r--r--perl/t/object/duo-rdp.t2
-rwxr-xr-xperl/t/object/duo.t2
-rwxr-xr-xperl/t/object/file.t2
-rwxr-xr-xperl/t/object/keytab.t4
-rw-r--r--perl/t/object/password.t2
-rwxr-xr-xperl/t/object/wa-keyring.t4
-rwxr-xr-xperl/t/policy/stanford.t4
-rwxr-xr-xperl/t/util/kadmin.t4
-rwxr-xr-xperl/t/verifier/basic.t4
-rwxr-xr-xperl/t/verifier/external.t3
-rwxr-xr-xperl/t/verifier/ldap-attr.t2
-rwxr-xr-xperl/t/verifier/nested.t2
-rwxr-xr-xperl/t/verifier/netdb.t2
-rw-r--r--server/keytab-backend.in12
-rw-r--r--server/wallet-admin.in12
-rw-r--r--server/wallet-backend.in14
-rw-r--r--server/wallet-report.in13
-rw-r--r--tests/TESTS1
-rw-r--r--tests/client/basic-t.in2
-rw-r--r--tests/client/full-t.in2
-rw-r--r--tests/client/prompt-t.in2
-rw-r--r--tests/client/rekey-t.in2
-rwxr-xr-xtests/data/cmd-fake4
-rwxr-xr-xtests/docs/spdx-license-t133
-rwxr-xr-xtests/server/admin-t2
-rwxr-xr-xtests/server/backend-t2
-rwxr-xr-xtests/server/keytab-t2
-rwxr-xr-xtests/server/report-t2
-rw-r--r--tests/tap/perl/Test/RRA/Automake.pm2
121 files changed, 405 insertions, 370 deletions
diff --git a/Makefile.am b/Makefile.am
index ffd3560..98e52fe 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -5,7 +5,7 @@
# Copyright 2006-2008, 2010, 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
# These variables exist only for the use of the Debian packaging and similar
# situations and aren't normally set. We want to honor them if they're set
diff --git a/NEWS b/NEWS
index 1af55fc..74e2884 100644
--- a/NEWS
+++ b/NEWS
@@ -28,6 +28,8 @@ wallet 1.4 (unreleased)
Rename the script to bootstrap from a Git checkout to bootstrap,
matching the emerging consensus in the Autoconf world.
+ Add SPDX-License-Identifier headers to all substantial source files.
+
Update to rra-c-util 7.2:
* Improve configure output for krb5-config testing.
diff --git a/client/file.c b/client/file.c
index 468eb30..809e78b 100644
--- a/client/file.c
+++ b/client/file.c
@@ -2,10 +2,10 @@
* File handling for the wallet client.
*
* Written by Russ Allbery <eagle@eyrie.org>
- * Copyright 2007, 2008, 2010
+ * Copyright 2007-2008, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/internal.h b/client/internal.h
index 7f58e33..1aed874 100644
--- a/client/internal.h
+++ b/client/internal.h
@@ -6,7 +6,7 @@
* Copyright 2007-2008, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#ifndef CLIENT_INTERNAL_H
diff --git a/client/keytab.c b/client/keytab.c
index 7bec459..ed1bdb9 100644
--- a/client/keytab.c
+++ b/client/keytab.c
@@ -2,10 +2,10 @@
* Implementation of keytab handling for the wallet client.
*
* Written by Russ Allbery <eagle@eyrie.org>
- * Copyright 2007, 2008, 2010, 2013, 2014
+ * Copyright 2007-2008, 2010, 2013-2014
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/krb5.c b/client/krb5.c
index 345df64..f0c0ff1 100644
--- a/client/krb5.c
+++ b/client/krb5.c
@@ -6,10 +6,10 @@
* client.
*
* Written by Russ Allbery <eagle@eyrie.org>
- * Copyright 2007, 2008, 2010
+ * Copyright 2007-2008, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/options.c b/client/options.c
index f011b79..7b1f04e 100644
--- a/client/options.c
+++ b/client/options.c
@@ -9,7 +9,7 @@
* Copyright 2006-2008, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/remctl.c b/client/remctl.c
index d4cd09e..26d7e8f 100644
--- a/client/remctl.c
+++ b/client/remctl.c
@@ -5,7 +5,7 @@
* Copyright 2007, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/srvtab.c b/client/srvtab.c
index 045f56d..2b600c2 100644
--- a/client/srvtab.c
+++ b/client/srvtab.c
@@ -5,7 +5,7 @@
* Copyright 2007, 2008, 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/wallet-rekey.c b/client/wallet-rekey.c
index caab130..2aedf57 100644
--- a/client/wallet-rekey.c
+++ b/client/wallet-rekey.c
@@ -7,7 +7,7 @@
* Copyright 2010
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/wallet-rekey.pod b/client/wallet-rekey.pod
index e4c01b3..d76420f 100644
--- a/client/wallet-rekey.pod
+++ b/client/wallet-rekey.pod
@@ -1,6 +1,6 @@
=for stopwords
wallet-rekey rekey rekeying keytab -hv Heimdal remctl remctld PKINIT kinit
-appdefaults Allbery kadmin
+appdefaults Allbery kadmin SPDX-License-Identifier FSFAP
=head1 NAME
@@ -161,6 +161,8 @@ permitted in any medium without royalty provided the copyright notice and
this notice are preserved. This file is offered as-is, without any
warranty.
+SPDX-License-Identifier: FSFAP
+
=head1 SEE ALSO
kadmin(8), kinit(1), krb5.conf(5), remctl(1), remctld(8), wallet(1)
diff --git a/client/wallet.c b/client/wallet.c
index 5a80876..194f1f5 100644
--- a/client/wallet.c
+++ b/client/wallet.c
@@ -6,7 +6,7 @@
* Copyright 2006-2008, 2010, 2014
* The Board of Trustees of the Leland Stanford Junior University
*
- * See LICENSE for licensing terms.
+ * SPDX-License-Identifier: MIT
*/
#include <config.h>
diff --git a/client/wallet.pod b/client/wallet.pod
index 2033fec..63336db 100644
--- a/client/wallet.pod
+++ b/client/wallet.pod
@@ -2,6 +2,7 @@
-hv srvtab arg keytabs metadata keytab ACL PTS kinit klist remctl PKINIT
acl timestamp autocreate backend-specific setacl enctypes enctype ktadd
KDC appdefaults remctld Allbery uuencode getacl backend ACL's DES
+SPDX-License-Identifier FSFAP
=head1 NAME
@@ -487,14 +488,16 @@ Russ Allbery <eagle@eyrie.org>
=head1 COPYRIGHT AND LICENSE
-Copyright 2007, 2008, 2010, 2011, 2012, 2013 The Board of Trustees of the
-Leland Stanford Junior University
+Copyright 2007-2008, 2010-2013 The Board of Trustees of the Leland
+Stanford Junior University
Copying and distribution of this file, with or without modification, are
permitted in any medium without royalty provided the copyright notice and
this notice are preserved. This file is offered as-is, without any
warranty.
+SPDX-License-Identifier: FSFAP
+
=head1 SEE ALSO
kadmin(8), kinit(1), krb5.conf(5), remctl(1), remctld(8)
diff --git a/contrib/ad-keytab b/contrib/ad-keytab
index 836cda5..badcb8d 100755
--- a/contrib/ad-keytab
+++ b/contrib/ad-keytab
@@ -5,7 +5,7 @@
# Written by Bill MacAllister <whm@dropbox.com>
# Copyright 2016 Dropbox, Inc.
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Declarations
@@ -537,7 +537,8 @@ exit;
__END__
=for stopwords
-KDC LDAP MacAllister keytab keytabs msktutil ldapsearch
+KDC LDAP MacAllister keytab keytabs msktutil ldapsearch MERCHANTABILITY
+NONINFRINGEMENT sublicense SPDX-License-Identifier MIT
=head1 NAME
@@ -664,4 +665,28 @@ perldoc Wallet::Config.
Bill MacAllister <whm@dropbox.com>
+=head1 COPYRIGHT AND LICENSE
+
+Copyright 2016 Dropbox, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a
+copy of this software and associated documentation files (the "Software"),
+to deal in the Software without restriction, including without limitation
+the rights to use, copy, modify, merge, publish, distribute, sublicense,
+and/or sell copies of the Software, and to permit persons to whom the
+Software is furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+DEALINGS IN THE SOFTWARE.
+
+SPDX-License-Identifier: MIT
+
=cut
diff --git a/contrib/commerzbank/wallet-history b/contrib/commerzbank/wallet-history
index 9826057..0adc766 100755
--- a/contrib/commerzbank/wallet-history
+++ b/contrib/commerzbank/wallet-history
@@ -31,6 +31,9 @@
# perl wallet-history.pl ... (t.b.d.)...
#
#--------------------------------------------------------------------------------------------------------------
+#
+# SPDX-License-Identifier: MIT
+
# Version.
my $VERSION = "0.5";
diff --git a/contrib/convert-srvtab-db b/contrib/convert-srvtab-db
index e05b394..2801767 100755
--- a/contrib/convert-srvtab-db
+++ b/contrib/convert-srvtab-db
@@ -6,7 +6,7 @@
# Copyright 2008
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and site configuration
diff --git a/contrib/used-principals b/contrib/used-principals
index 7169f0b..c6cac9b 100755
--- a/contrib/used-principals
+++ b/contrib/used-principals
@@ -6,7 +6,7 @@
# Copyright 2008
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
require 5.006;
use strict;
diff --git a/contrib/wallet-contacts b/contrib/wallet-contacts
index 0c72c9c..6ad2292 100755
--- a/contrib/wallet-contacts
+++ b/contrib/wallet-contacts
@@ -6,7 +6,7 @@
# Copyright 2009, 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/contrib/wallet-rekey-periodic b/contrib/wallet-rekey-periodic
index c15d83f..1e22e1e 100755
--- a/contrib/wallet-rekey-periodic
+++ b/contrib/wallet-rekey-periodic
@@ -170,7 +170,7 @@ DOCS=<<__END_OF_DOCS__
=for stopwords
Allbery DES Heimdal hostname keytab keytabs ktutil rekey rekeyable
-rekeying wallet-rekey wallet-rekey-periodic
+rekeying wallet-rekey wallet-rekey-periodic SPDX-License-Identifier MIT
=head1 NAME
@@ -232,7 +232,7 @@ Russ Allbery <eagle@eyrie.org>
=head1 COPYRIGHT AND LICENSE
-Copyright 2013, 2014 The Board of Trustees of the Leland Stanford Junior
+Copyright 2013-2014 The Board of Trustees of the Leland Stanford Junior
University
Permission is hereby granted, free of charge, to any person obtaining a
@@ -253,6 +253,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=head1 SEE ALSO
ktutil(8), wallet(1), wallet-rekey(1)
@@ -260,3 +262,7 @@ ktutil(8), wallet(1), wallet-rekey(1)
=cut
__END_OF_DOCS__
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/contrib/wallet-summary b/contrib/wallet-summary
index ba224d0..8a12294 100755
--- a/contrib/wallet-summary
+++ b/contrib/wallet-summary
@@ -173,6 +173,7 @@ close REPORT;
=for stopwords
-hm keytab keytabs MERCHANTABILITY NONINFRINGEMENT sublicense Allbery
+SPDX-License-Identifier MIT
=head1 NAME
@@ -260,4 +261,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=cut
diff --git a/contrib/wallet-unknown-hosts b/contrib/wallet-unknown-hosts
index 50b5a04..adf7b27 100755
--- a/contrib/wallet-unknown-hosts
+++ b/contrib/wallet-unknown-hosts
@@ -190,7 +190,7 @@ if ($command eq 'check') {
=for stopwords
ACL API CNAME DNS IP env keytab keytabs timestamp MERCHANTABILITY
-NONINFRINGEMENT sublicense Allbery
+NONINFRINGEMENT sublicense Allbery SPDX-License-Identifier MIT
=head1 NAME
@@ -282,4 +282,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=cut
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/docs/design b/docs/design
index 0d71931..55707b2 100644
--- a/docs/design
+++ b/docs/design
@@ -372,10 +372,12 @@ Security Considerations
License
- Copyright 2007, 2008, 2013
+ Copyright 2007-2008, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/design-acl b/docs/design-acl
index 836c411..e0c8317 100644
--- a/docs/design-acl
+++ b/docs/design-acl
@@ -101,10 +101,12 @@ ACL Schemes
License
Copyright 2016 Russ Allbery <eagle@eyrie.org>
- Copyright 2006, 2007, 2008, 2013
+ Copyright 2006-2008, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/design-api b/docs/design-api
index 9a36e61..c4d3742 100644
--- a/docs/design-api
+++ b/docs/design-api
@@ -170,10 +170,12 @@ Registering New Implementations
License
- Copyright 2006, 2007, 2008, 2013
+ Copyright 2006-2008, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/netdb-role-api b/docs/netdb-role-api
index c90182a..35c7bc6 100644
--- a/docs/netdb-role-api
+++ b/docs/netdb-role-api
@@ -33,10 +33,12 @@ Wallet Issues
License
- Copyright 2006, 2007, 2013
+ Copyright 2006-2007, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/notes b/docs/notes
index 5a7d3bc..c3e529a 100644
--- a/docs/notes
+++ b/docs/notes
@@ -229,10 +229,12 @@ Client Issues
License
- Copyright 2006, 2007, 2008, 2013
+ Copyright 2006-2008, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/objects-and-schemes b/docs/objects-and-schemes
index 763a24b..cb42bd8 100644
--- a/docs/objects-and-schemes
+++ b/docs/objects-and-schemes
@@ -117,10 +117,12 @@ ACL Schemes
License
- Copyright 2012, 2013, 2014
+ Copyright 2012-2014
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/setup b/docs/setup
index 670cf57..bd0c5d2 100644
--- a/docs/setup
+++ b/docs/setup
@@ -88,10 +88,12 @@ Wallet Configuration
License
- Copyright 2007, 2008, 2010, 2012, 2013
+ Copyright 2007-2008, 2010, 2012-2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/docs/stanford-naming b/docs/stanford-naming
index cb05a23..b195686 100644
--- a/docs/stanford-naming
+++ b/docs/stanford-naming
@@ -351,10 +351,12 @@ ACL Naming
License
- Copyright 2008, 2009, 2010, 2011, 2013
+ Copyright 2008-2011, 2013
The Board of Trustees of the Leland Stanford Junior University
Copying and distribution of this file, with or without modification,
are permitted in any medium without royalty provided the copyright
notice and this notice are preserved. This file is offered as-is,
without any warranty.
+
+ SPDX-License-Identifier: FSFAP
diff --git a/examples/stanford.conf b/examples/stanford.conf
index b4cd65a..697342b 100644
--- a/examples/stanford.conf
+++ b/examples/stanford.conf
@@ -6,10 +6,10 @@
# of a naming policy check and default ACL rules.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2009, 2010, 2012, 2013
+# Copyright 2007-2010, 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
# default_owner and verify_name come from our policy module.
use Wallet::Policy::Stanford qw(default_owner verify_name);
diff --git a/perl/Build.PL b/perl/Build.PL
index 70c3972..79adf58 100644
--- a/perl/Build.PL
+++ b/perl/Build.PL
@@ -7,7 +7,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use 5.006;
use strict;
diff --git a/perl/create-ddl b/perl/create-ddl
index 51fa8ff..d31fdf4 100755
--- a/perl/create-ddl
+++ b/perl/create-ddl
@@ -6,7 +6,7 @@
# Copyright 2012, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
#############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL.pm b/perl/lib/Wallet/ACL.pm
index 312ce88..948b71c 100644
--- a/perl/lib/Wallet/ACL.pm
+++ b/perl/lib/Wallet/ACL.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2013, 2014, 2015
+# Copyright 2007-2008, 2010, 2013-2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/Base.pm b/perl/lib/Wallet/ACL/Base.pm
index e5e304d..320a731 100644
--- a/perl/lib/Wallet/ACL/Base.pm
+++ b/perl/lib/Wallet/ACL/Base.pm
@@ -5,7 +5,7 @@
# Copyright 2007, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/External.pm b/perl/lib/Wallet/ACL/External.pm
index fb4b61b..2285469 100644
--- a/perl/lib/Wallet/ACL/External.pm
+++ b/perl/lib/Wallet/ACL/External.pm
@@ -2,7 +2,7 @@
#
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/Krb5.pm b/perl/lib/Wallet/ACL/Krb5.pm
index 9764391..3309274 100644
--- a/perl/lib/Wallet/ACL/Krb5.pm
+++ b/perl/lib/Wallet/ACL/Krb5.pm
@@ -5,7 +5,7 @@
# Copyright 2007, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/Krb5/Regex.pm b/perl/lib/Wallet/ACL/Krb5/Regex.pm
index 39a71d3..be6c5e1 100644
--- a/perl/lib/Wallet/ACL/Krb5/Regex.pm
+++ b/perl/lib/Wallet/ACL/Krb5/Regex.pm
@@ -5,7 +5,7 @@
# Copyright 2007, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/LDAP/Attribute.pm b/perl/lib/Wallet/ACL/LDAP/Attribute.pm
index 7bb1c68..65e0208 100644
--- a/perl/lib/Wallet/ACL/LDAP/Attribute.pm
+++ b/perl/lib/Wallet/ACL/LDAP/Attribute.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2012, 2013, 2014
+# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm b/perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm
index 079dadb..5ebece6 100644
--- a/perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm
+++ b/perl/lib/Wallet/ACL/LDAP/Attribute/Root.pm
@@ -1,12 +1,11 @@
# Wallet::ACL::LDAP::Attribute::Root -- Wallet root instance LDAP ACL verifier
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Based on Wallet::ACL::NetDB::Root by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
# Copyright 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/Nested.pm b/perl/lib/Wallet/ACL/Nested.pm
index efaf5a9..a6b6655 100644
--- a/perl/lib/Wallet/ACL/Nested.pm
+++ b/perl/lib/Wallet/ACL/Nested.pm
@@ -5,7 +5,7 @@
# Copyright 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/NetDB.pm b/perl/lib/Wallet/ACL/NetDB.pm
index 8a170ba..c5fdc39 100644
--- a/perl/lib/Wallet/ACL/NetDB.pm
+++ b/perl/lib/Wallet/ACL/NetDB.pm
@@ -5,7 +5,7 @@
# Copyright 2007, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/ACL/NetDB/Root.pm b/perl/lib/Wallet/ACL/NetDB/Root.pm
index 8ae510d..2dd1562 100644
--- a/perl/lib/Wallet/ACL/NetDB/Root.pm
+++ b/perl/lib/Wallet/ACL/NetDB/Root.pm
@@ -5,7 +5,7 @@
# Copyright 2007, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Admin.pm b/perl/lib/Wallet/Admin.pm
index ccd0932..707f410 100644
--- a/perl/lib/Wallet/Admin.pm
+++ b/perl/lib/Wallet/Admin.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2008, 2009, 2010, 2011, 2012, 2013, 2014
+# Copyright 2008-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Config.pm b/perl/lib/Wallet/Config.pm
index 14731d3..60f0e10 100644
--- a/perl/lib/Wallet/Config.pm
+++ b/perl/lib/Wallet/Config.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016, 2018 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2013, 2014, 2015
+# Copyright 2007-2008, 2010, 2013-2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Config;
diff --git a/perl/lib/Wallet/Database.pm b/perl/lib/Wallet/Database.pm
index 2549d06..83b8dfc 100644
--- a/perl/lib/Wallet/Database.pm
+++ b/perl/lib/Wallet/Database.pm
@@ -7,10 +7,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2008, 2009, 2010, 2012, 2013, 2014
+# Copyright 2008-2010, 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Kadmin.pm b/perl/lib/Wallet/Kadmin.pm
index f46bd14..150c188 100644
--- a/perl/lib/Wallet/Kadmin.pm
+++ b/perl/lib/Wallet/Kadmin.pm
@@ -2,10 +2,10 @@
#
# Written by Jon Robertson <jonrober@stanford.edu>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2009, 2010, 2014
+# Copyright 2009-2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Kadmin/AD.pm b/perl/lib/Wallet/Kadmin/AD.pm
index 5bb662d..f2f86b9 100644
--- a/perl/lib/Wallet/Kadmin/AD.pm
+++ b/perl/lib/Wallet/Kadmin/AD.pm
@@ -2,11 +2,11 @@
#
# Written by Bill MacAllister <whm@dropbox.com>
# Copyright 2016, 2018 Russ Allbery <eagle@eyrie.org>
-# Copyright 2015, 2016 Dropbox, Inc.
-# Copyright 2007, 2008, 2009, 2010, 2014
+# Copyright 2015-2016 Dropbox, Inc.
+# Copyright 2007-2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Kadmin/Heimdal.pm b/perl/lib/Wallet/Kadmin/Heimdal.pm
index a8bc4dd..57013de 100644
--- a/perl/lib/Wallet/Kadmin/Heimdal.pm
+++ b/perl/lib/Wallet/Kadmin/Heimdal.pm
@@ -2,10 +2,10 @@
#
# Written by Jon Robertson <jonrober@stanford.edu>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2009, 2010, 2014
+# Copyright 2009-2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Kadmin/MIT.pm b/perl/lib/Wallet/Kadmin/MIT.pm
index b4143af..373d4cf 100644
--- a/perl/lib/Wallet/Kadmin/MIT.pm
+++ b/perl/lib/Wallet/Kadmin/MIT.pm
@@ -3,10 +3,10 @@
# Written by Russ Allbery <eagle@eyrie.org>
# Pulled into a module by Jon Robertson <jonrober@stanford.edu>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2009, 2010, 2014
+# Copyright 2007-2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/Base.pm b/perl/lib/Wallet/Object/Base.pm
index 0c88e8a..bf535e9 100644
--- a/perl/lib/Wallet/Object/Base.pm
+++ b/perl/lib/Wallet/Object/Base.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2011, 2014
+# Copyright 2007-2008, 2010-2011, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/Duo.pm b/perl/lib/Wallet/Object/Duo.pm
index 87212ba..1ec527e 100644
--- a/perl/lib/Wallet/Object/Duo.pm
+++ b/perl/lib/Wallet/Object/Duo.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2014, 2015
+# Copyright 2014-2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/File.pm b/perl/lib/Wallet/Object/File.pm
index 8811fd3..bef8981 100644
--- a/perl/lib/Wallet/Object/File.pm
+++ b/perl/lib/Wallet/Object/File.pm
@@ -5,7 +5,7 @@
# Copyright 2008, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/Keytab.pm b/perl/lib/Wallet/Object/Keytab.pm
index 21cea91..498e657 100644
--- a/perl/lib/Wallet/Object/Keytab.pm
+++ b/perl/lib/Wallet/Object/Keytab.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2009, 2010, 2013, 2014
+# Copyright 2007-2010, 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/Password.pm b/perl/lib/Wallet/Object/Password.pm
index 8218371..336aa9d 100644
--- a/perl/lib/Wallet/Object/Password.pm
+++ b/perl/lib/Wallet/Object/Password.pm
@@ -5,7 +5,7 @@
# Copyright 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Object/WAKeyring.pm b/perl/lib/Wallet/Object/WAKeyring.pm
index d763cc5..a64b376 100644
--- a/perl/lib/Wallet/Object/WAKeyring.pm
+++ b/perl/lib/Wallet/Object/WAKeyring.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2012, 2013, 2014
+# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Policy/Stanford.pm b/perl/lib/Wallet/Policy/Stanford.pm
index 6b1b007..2c761bb 100644
--- a/perl/lib/Wallet/Policy/Stanford.pm
+++ b/perl/lib/Wallet/Policy/Stanford.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2013, 2014, 2015
+# Copyright 2013-2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Report.pm b/perl/lib/Wallet/Report.pm
index 5c154a1..151a285 100644
--- a/perl/lib/Wallet/Report.pm
+++ b/perl/lib/Wallet/Report.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2008, 2009, 2010, 2013, 2014
+# Copyright 2008-2010, 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/lib/Wallet/Schema.pm b/perl/lib/Wallet/Schema.pm
index d535b5c..f75fda8 100644
--- a/perl/lib/Wallet/Schema.pm
+++ b/perl/lib/Wallet/Schema.pm
@@ -2,10 +2,10 @@
#
# Written by Jon Robertson <jonrober@stanford.edu>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2012, 2013, 2014
+# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema;
diff --git a/perl/lib/Wallet/Schema/Result/Acl.pm b/perl/lib/Wallet/Schema/Result/Acl.pm
index ed206dc..9a73b18 100644
--- a/perl/lib/Wallet/Schema/Result/Acl.pm
+++ b/perl/lib/Wallet/Schema/Result/Acl.pm
@@ -1,10 +1,10 @@
# Wallet schema for an ACL.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::Acl;
diff --git a/perl/lib/Wallet/Schema/Result/AclEntry.pm b/perl/lib/Wallet/Schema/Result/AclEntry.pm
index c696ba2..1737084 100644
--- a/perl/lib/Wallet/Schema/Result/AclEntry.pm
+++ b/perl/lib/Wallet/Schema/Result/AclEntry.pm
@@ -1,10 +1,10 @@
# Wallet schema for an entry in an ACL.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::AclEntry;
diff --git a/perl/lib/Wallet/Schema/Result/AclHistory.pm b/perl/lib/Wallet/Schema/Result/AclHistory.pm
index b519fd5..48aed49 100644
--- a/perl/lib/Wallet/Schema/Result/AclHistory.pm
+++ b/perl/lib/Wallet/Schema/Result/AclHistory.pm
@@ -1,10 +1,10 @@
# Wallet schema for ACL history.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013, 2014
+# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::AclHistory;
diff --git a/perl/lib/Wallet/Schema/Result/AclScheme.pm b/perl/lib/Wallet/Schema/Result/AclScheme.pm
index 982390c..abdd541 100644
--- a/perl/lib/Wallet/Schema/Result/AclScheme.pm
+++ b/perl/lib/Wallet/Schema/Result/AclScheme.pm
@@ -1,10 +1,10 @@
# Wallet schema for ACL scheme.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::AclScheme;
diff --git a/perl/lib/Wallet/Schema/Result/Duo.pm b/perl/lib/Wallet/Schema/Result/Duo.pm
index d392e29..def9dce 100644
--- a/perl/lib/Wallet/Schema/Result/Duo.pm
+++ b/perl/lib/Wallet/Schema/Result/Duo.pm
@@ -4,7 +4,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::Duo;
diff --git a/perl/lib/Wallet/Schema/Result/Flag.pm b/perl/lib/Wallet/Schema/Result/Flag.pm
index 0d5fb1c..4ed8dcb 100644
--- a/perl/lib/Wallet/Schema/Result/Flag.pm
+++ b/perl/lib/Wallet/Schema/Result/Flag.pm
@@ -1,10 +1,10 @@
# Wallet schema for object flags.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::Flag;
diff --git a/perl/lib/Wallet/Schema/Result/Object.pm b/perl/lib/Wallet/Schema/Result/Object.pm
index 8933070..b4bc46f 100644
--- a/perl/lib/Wallet/Schema/Result/Object.pm
+++ b/perl/lib/Wallet/Schema/Result/Object.pm
@@ -1,10 +1,10 @@
# Wallet schema for an object.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::Object;
diff --git a/perl/lib/Wallet/Schema/Result/ObjectHistory.pm b/perl/lib/Wallet/Schema/Result/ObjectHistory.pm
index eae2f89..c6c6225 100644
--- a/perl/lib/Wallet/Schema/Result/ObjectHistory.pm
+++ b/perl/lib/Wallet/Schema/Result/ObjectHistory.pm
@@ -1,10 +1,10 @@
# Wallet schema for object history.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013, 2014
+# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::ObjectHistory;
diff --git a/perl/lib/Wallet/Schema/Result/SyncTarget.pm b/perl/lib/Wallet/Schema/Result/SyncTarget.pm
index 388446c..ff6e3f3 100644
--- a/perl/lib/Wallet/Schema/Result/SyncTarget.pm
+++ b/perl/lib/Wallet/Schema/Result/SyncTarget.pm
@@ -1,10 +1,10 @@
# Wallet schema for synchronization targets.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::SyncTarget;
diff --git a/perl/lib/Wallet/Schema/Result/Type.pm b/perl/lib/Wallet/Schema/Result/Type.pm
index f191808..a9238e6 100644
--- a/perl/lib/Wallet/Schema/Result/Type.pm
+++ b/perl/lib/Wallet/Schema/Result/Type.pm
@@ -1,10 +1,10 @@
# Wallet schema for object types.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2012, 2013
+# Copyright 2012-2013
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Wallet::Schema::Result::Type;
diff --git a/perl/lib/Wallet/Server.pm b/perl/lib/Wallet/Server.pm
index ae65932..af0d8a8 100644
--- a/perl/lib/Wallet/Server.pm
+++ b/perl/lib/Wallet/Server.pm
@@ -2,10 +2,10 @@
#
# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2011, 2013, 2014
+# Copyright 2007-2008, 2010-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
##############################################################################
# Modules and declarations
diff --git a/perl/sql/Wallet-Schema-0.07-MySQL.sql b/perl/sql/Wallet-Schema-0.07-MySQL.sql
index 71a9bc6..ddb7ca3 100644
--- a/perl/sql/Wallet-Schema-0.07-MySQL.sql
+++ b/perl/sql/Wallet-Schema-0.07-MySQL.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::MySQL
-- Created on Fri Jan 25 14:12:02 2013
--
--- Copyright 2012, 2013
+-- Copyright 2012-2013
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
SET foreign_key_checks=0;
diff --git a/perl/sql/Wallet-Schema-0.07-SQLite.sql b/perl/sql/Wallet-Schema-0.07-SQLite.sql
index f14d168..0491ea7 100644
--- a/perl/sql/Wallet-Schema-0.07-SQLite.sql
+++ b/perl/sql/Wallet-Schema-0.07-SQLite.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::SQLite
-- Created on Fri Jan 25 14:12:02 2013
--
--- Copyright 2012, 2013
+-- Copyright 2012-2013
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
BEGIN TRANSACTION;
diff --git a/perl/sql/Wallet-Schema-0.08-MySQL.sql b/perl/sql/Wallet-Schema-0.08-MySQL.sql
index 2deca3c..eb56d0e 100644
--- a/perl/sql/Wallet-Schema-0.08-MySQL.sql
+++ b/perl/sql/Wallet-Schema-0.08-MySQL.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::MySQL
-- Created on Fri Jan 25 14:12:02 2013
--
--- Copyright 2012, 2013
+-- Copyright 2012-2013
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
SET foreign_key_checks=0;
diff --git a/perl/sql/Wallet-Schema-0.08-PostgreSQL.sql b/perl/sql/Wallet-Schema-0.08-PostgreSQL.sql
index 4347de8..db8ff98 100644
--- a/perl/sql/Wallet-Schema-0.08-PostgreSQL.sql
+++ b/perl/sql/Wallet-Schema-0.08-PostgreSQL.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::PostgreSQL
-- Created on Fri Jan 25 14:12:02 2013
--
--- Copyright 2012, 2013, 2014
+-- Copyright 2012-2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
--
-- Table: acl_history
diff --git a/perl/sql/Wallet-Schema-0.08-SQLite.sql b/perl/sql/Wallet-Schema-0.08-SQLite.sql
index f581a4c..4f7b1b3 100644
--- a/perl/sql/Wallet-Schema-0.08-SQLite.sql
+++ b/perl/sql/Wallet-Schema-0.08-SQLite.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::SQLite
-- Created on Fri Jan 25 14:12:02 2013
--
--- Copyright 2012, 2013
+-- Copyright 2012-2013
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
BEGIN TRANSACTION;
diff --git a/perl/sql/Wallet-Schema-0.09-MySQL.sql b/perl/sql/Wallet-Schema-0.09-MySQL.sql
index a9aa745..41e098f 100644
--- a/perl/sql/Wallet-Schema-0.09-MySQL.sql
+++ b/perl/sql/Wallet-Schema-0.09-MySQL.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::MySQL
-- Created on Tue Jul 15 17:41:01 2014
--
--- Copyright 2012, 2013, 2014
+-- Copyright 2012-2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
SET foreign_key_checks=0;
diff --git a/perl/sql/Wallet-Schema-0.09-PostgreSQL.sql b/perl/sql/Wallet-Schema-0.09-PostgreSQL.sql
index 67f4a1b..1bec9f7 100644
--- a/perl/sql/Wallet-Schema-0.09-PostgreSQL.sql
+++ b/perl/sql/Wallet-Schema-0.09-PostgreSQL.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::PostgreSQL
-- Created on Tue Jul 15 17:41:03 2014
--
--- Copyright 2012, 2013, 2014
+-- Copyright 2012-2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
--
diff --git a/perl/sql/Wallet-Schema-0.09-SQLite.sql b/perl/sql/Wallet-Schema-0.09-SQLite.sql
index 9ce9b08..e9977ef 100644
--- a/perl/sql/Wallet-Schema-0.09-SQLite.sql
+++ b/perl/sql/Wallet-Schema-0.09-SQLite.sql
@@ -2,27 +2,10 @@
-- Created by SQL::Translator::Producer::SQLite
-- Created on Tue Jul 15 17:41:02 2014
--
--- Copyright 2012, 2013, 2014
+-- Copyright 2012-2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
BEGIN TRANSACTION;
diff --git a/perl/sql/Wallet-Schema-0.10-MySQL.sql b/perl/sql/Wallet-Schema-0.10-MySQL.sql
index ba73062..982f127 100644
--- a/perl/sql/Wallet-Schema-0.10-MySQL.sql
+++ b/perl/sql/Wallet-Schema-0.10-MySQL.sql
@@ -5,24 +5,7 @@
-- Copyright 2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
SET foreign_key_checks=0;
diff --git a/perl/sql/Wallet-Schema-0.10-PostgreSQL.sql b/perl/sql/Wallet-Schema-0.10-PostgreSQL.sql
index d1658dd..8c76272 100644
--- a/perl/sql/Wallet-Schema-0.10-PostgreSQL.sql
+++ b/perl/sql/Wallet-Schema-0.10-PostgreSQL.sql
@@ -5,24 +5,7 @@
-- Copyright 2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
--
diff --git a/perl/sql/Wallet-Schema-0.10-SQLite.sql b/perl/sql/Wallet-Schema-0.10-SQLite.sql
index c13bc29..4f05164 100644
--- a/perl/sql/Wallet-Schema-0.10-SQLite.sql
+++ b/perl/sql/Wallet-Schema-0.10-SQLite.sql
@@ -5,24 +5,7 @@
-- Copyright 2014
-- The Board of Trustees of the Leland Stanford Junior University
--
--- Permission is hereby granted, free of charge, to any person obtaining a
--- copy of this software and associated documentation files (the
--- "Software"), to deal in the Software without restriction, including
--- without limitation the rights to use, copy, modify, merge, publish,
--- distribute, sublicense, and/or sell copies of the Software, and to
--- permit persons to whom the Software is furnished to do so, subject to
--- the following conditions:
---
--- The above copyright notice and this permission notice shall be included
--- in all copies or substantial portions of the Software.
---
--- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
--- OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
--- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
--- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
--- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
--- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
--- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+-- SPDX-License-Identifier: MIT
--
BEGIN TRANSACTION;
diff --git a/perl/t/data/acl-command b/perl/t/data/acl-command
index b7c3066..bdf106a 100755
--- a/perl/t/data/acl-command
+++ b/perl/t/data/acl-command
@@ -5,10 +5,9 @@
# failure, or reports an error based on whether the second argument is
# success, failure, or error.
#
-# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
set -e
diff --git a/perl/t/general/acl.t b/perl/t/general/acl.t
index 4de7493..c6e33f9 100755
--- a/perl/t/general/acl.t
+++ b/perl/t/general/acl.t
@@ -3,10 +3,10 @@
# Tests for the wallet ACL API.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2014
+# Copyright 2007-2008, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/general/admin.t b/perl/t/general/admin.t
index 17671b6..a204558 100755
--- a/perl/t/general/admin.t
+++ b/perl/t/general/admin.t
@@ -3,10 +3,10 @@
# Tests for wallet administrative interface.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2008, 2009, 2010, 2011, 2013, 2014
+# Copyright 2008-2011, 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/general/config.t b/perl/t/general/config.t
index bc200de..a0848ba 100755
--- a/perl/t/general/config.t
+++ b/perl/t/general/config.t
@@ -6,7 +6,7 @@
# Copyright 2008, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/general/init.t b/perl/t/general/init.t
index 58b9a4c..ddc4aa1 100755
--- a/perl/t/general/init.t
+++ b/perl/t/general/init.t
@@ -3,10 +3,10 @@
# Tests for database initialization.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2014
+# Copyright 2007-2008, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/general/report.t b/perl/t/general/report.t
index e47cdc6..8b491f5 100755
--- a/perl/t/general/report.t
+++ b/perl/t/general/report.t
@@ -3,10 +3,10 @@
# Tests for the wallet reporting interface.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2008, 2009, 2010, 2014
+# Copyright 2008-2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/general/server.t b/perl/t/general/server.t
index 8f4c16c..0794f15 100755
--- a/perl/t/general/server.t
+++ b/perl/t/general/server.t
@@ -3,10 +3,10 @@
# Tests for the wallet server API.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2011, 2012, 2013, 2014
+# Copyright 2007-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/lib/Util.pm b/perl/t/lib/Util.pm
index 187e483..c583373 100644
--- a/perl/t/lib/Util.pm
+++ b/perl/t/lib/Util.pm
@@ -1,10 +1,10 @@
# Utility class for wallet tests.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2014
+# Copyright 2007-2008, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
package Util;
require 5.006;
diff --git a/perl/t/object/base.t b/perl/t/object/base.t
index 8fedd64..2126ebf 100755
--- a/perl/t/object/base.t
+++ b/perl/t/object/base.t
@@ -3,10 +3,10 @@
# Tests for the basic object implementation.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2011, 2014
+# Copyright 2007-2008, 2011, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/duo-ldap.t b/perl/t/object/duo-ldap.t
index 8a00dbb..e2b5d5d 100644
--- a/perl/t/object/duo-ldap.t
+++ b/perl/t/object/duo-ldap.t
@@ -6,7 +6,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/duo-pam.t b/perl/t/object/duo-pam.t
index 047343e..f0c9e61 100644
--- a/perl/t/object/duo-pam.t
+++ b/perl/t/object/duo-pam.t
@@ -6,7 +6,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/duo-radius.t b/perl/t/object/duo-radius.t
index 55cbb9d..5532a68 100644
--- a/perl/t/object/duo-radius.t
+++ b/perl/t/object/duo-radius.t
@@ -6,7 +6,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/duo-rdp.t b/perl/t/object/duo-rdp.t
index 25060ac..52f0613 100644
--- a/perl/t/object/duo-rdp.t
+++ b/perl/t/object/duo-rdp.t
@@ -6,7 +6,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/duo.t b/perl/t/object/duo.t
index a975597..75b5834 100755
--- a/perl/t/object/duo.t
+++ b/perl/t/object/duo.t
@@ -6,7 +6,7 @@
# Copyright 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/file.t b/perl/t/object/file.t
index b7f295a..80173cd 100755
--- a/perl/t/object/file.t
+++ b/perl/t/object/file.t
@@ -6,7 +6,7 @@
# Copyright 2008, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/keytab.t b/perl/t/object/keytab.t
index 111b7d0..dfb96bd 100755
--- a/perl/t/object/keytab.t
+++ b/perl/t/object/keytab.t
@@ -3,10 +3,10 @@
# Tests for the keytab object implementation.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2009, 2010, 2013, 2014
+# Copyright 2007-2010, 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/password.t b/perl/t/object/password.t
index 306d82b..72a818c 100644
--- a/perl/t/object/password.t
+++ b/perl/t/object/password.t
@@ -7,7 +7,7 @@
# Copyright 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/object/wa-keyring.t b/perl/t/object/wa-keyring.t
index 4a3bd48..aa38e9c 100755
--- a/perl/t/object/wa-keyring.t
+++ b/perl/t/object/wa-keyring.t
@@ -3,10 +3,10 @@
# Tests for the WebAuth keyring object implementation.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2013, 2014
+# Copyright 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/policy/stanford.t b/perl/t/policy/stanford.t
index d2727c8..f7b2f16 100755
--- a/perl/t/policy/stanford.t
+++ b/perl/t/policy/stanford.t
@@ -7,10 +7,10 @@
# behavior at Stanford.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2013, 2014
+# Copyright 2013-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use 5.008;
use strict;
diff --git a/perl/t/util/kadmin.t b/perl/t/util/kadmin.t
index db94780..60a4933 100755
--- a/perl/t/util/kadmin.t
+++ b/perl/t/util/kadmin.t
@@ -3,10 +3,10 @@
# Tests for the kadmin object implementation.
#
# Written by Jon Robertson <jonrober@stanford.edu>
-# Copyright 2009, 2010, 2012, 2013, 2014
+# Copyright 2009-2010, 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/verifier/basic.t b/perl/t/verifier/basic.t
index be3c427..3ee71d6 100755
--- a/perl/t/verifier/basic.t
+++ b/perl/t/verifier/basic.t
@@ -3,10 +3,10 @@
# Tests for the basic wallet ACL verifiers.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010, 2014
+# Copyright 2007-2008, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/verifier/external.t b/perl/t/verifier/external.t
index d1438de..2b725bd 100755
--- a/perl/t/verifier/external.t
+++ b/perl/t/verifier/external.t
@@ -2,10 +2,9 @@
#
# Tests for the external wallet ACL verifier.
#
-# Written by Russ Allbery <eagle@eyrie.org>
# Copyright 2016 Russ Allbery <eagle@eyrie.org>
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/verifier/ldap-attr.t b/perl/t/verifier/ldap-attr.t
index 3665edb..321822d 100755
--- a/perl/t/verifier/ldap-attr.t
+++ b/perl/t/verifier/ldap-attr.t
@@ -10,7 +10,7 @@
# Copyright 2012-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/verifier/nested.t b/perl/t/verifier/nested.t
index ec7ce40..a975ea3 100755
--- a/perl/t/verifier/nested.t
+++ b/perl/t/verifier/nested.t
@@ -6,7 +6,7 @@
# Copyright 2015
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/perl/t/verifier/netdb.t b/perl/t/verifier/netdb.t
index 200fc9e..0f3e2d4 100755
--- a/perl/t/verifier/netdb.t
+++ b/perl/t/verifier/netdb.t
@@ -11,7 +11,7 @@
# Copyright 2008, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/server/keytab-backend.in b/server/keytab-backend.in
index a029e6c..6a7870a 100644
--- a/server/keytab-backend.in
+++ b/server/keytab-backend.in
@@ -152,7 +152,7 @@ __END__
=for stopwords
keytab-backend keytabs KDC keytab kadmin.local -norandkey ktadd remctld
auth Allbery rekeying MERCHANTABILITY NONINFRINGEMENT sublicense
-kadmin.local.
+kadmin.local. SPDX-License-Identifier MIT
=head1 NAME
@@ -215,8 +215,8 @@ Russ Allbery <eagle@eyrie.org>
=head1 COPYRIGHT AND LICENSE
-Copyright 2006, 2007, 2008, 2010, 2013 The Board of Trustees of the Leland
-Stanford Junior University
+Copyright 2006-2008, 2010, 2013 The Board of Trustees of the Leland Stanford
+Junior University
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -236,6 +236,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=head1 SEE ALSO
kadmin.local(8), remctld(8)
@@ -244,3 +246,7 @@ This program is part of the wallet system. The current version is
available from L<https://www.eyrie.org/~eagle/software/wallet/>.
=cut
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/server/wallet-admin.in b/server/wallet-admin.in
index c2d5bf8..4940c89 100644
--- a/server/wallet-admin.in
+++ b/server/wallet-admin.in
@@ -67,7 +67,7 @@ __END__
=for stopwords
metadata ACL hostname backend acl acls wildcard SQL Allbery verifier
-MERCHANTABILITY NONINFRINGEMENT sublicense
+MERCHANTABILITY NONINFRINGEMENT sublicense SPDX-License-Identifier MIT
=head1 NAME
@@ -145,8 +145,8 @@ Russ Allbery <eagle@eyrie.org>
=head1 COPYRIGHT AND LICENSE
-Copyright 2008, 2009, 2010, 2011, 2013 The Board of Trustees of the Leland
-Stanford Junior University
+Copyright 2008-2011, 2013 The Board of Trustees of the Leland Stanford Junior
+University
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -166,6 +166,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=head1 SEE ALSO
Wallet::Admin(3), Wallet::Config(3), wallet-backend(8)
@@ -174,3 +176,7 @@ This program is part of the wallet system. The current version is
available from L<https://www.eyrie.org/~eagle/software/wallet/>.
=cut
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/server/wallet-backend.in b/server/wallet-backend.in
index 4937b66..8e38460 100644
--- a/server/wallet-backend.in
+++ b/server/wallet-backend.in
@@ -347,8 +347,8 @@ __END__
=for stopwords
wallet-backend backend backend-specific remctld ACL acl timestamp getacl
-setacl metadata keytab keytabs enctypes enctype ktadd KDC Allbery
-autocreate MERCHANTABILITY NONINFRINGEMENT sublicense
+setacl metadata keytab keytabs enctypes enctype ktadd KDC Allbery autocreate
+MERCHANTABILITY NONINFRINGEMENT sublicense SPDX-License-Identifier MIT
=head1 NAME
@@ -665,8 +665,8 @@ Russ Allbery <eagle@eyrie.org>
=head1 COPYRIGHT AND LICENSE
-Copyright 2007, 2008, 2010, 2011, 2012, 2013 The Board of Trustees of the
-Leland Stanford Junior University
+Copyright 2007-2008, 2010-2013 The Board of Trustees of the Leland Stanford
+Junior University
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -686,6 +686,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=head1 SEE ALSO
Wallet::Server(3), remctld(8)
@@ -694,3 +696,7 @@ This program is part of the wallet system. The current version is
available from L<https://www.eyrie.org/~eagle/software/wallet/>.
=cut
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/server/wallet-report.in b/server/wallet-report.in
index 4c96e7e..292ba39 100644
--- a/server/wallet-report.in
+++ b/server/wallet-report.in
@@ -135,7 +135,8 @@ wallet-report - Wallet server reporting interface
=for stopwords
metadata ACL hostname backend acl acls wildcard SQL Allbery remctl
-MERCHANTABILITY NONINFRINGEMENT sublicense unstored
+MERCHANTABILITY NONINFRINGEMENT sublicense unstored SPDX-License-Identifier
+MIT
=head1 SYNOPSIS
@@ -330,8 +331,8 @@ Russ Allbery <eagle@eyrie.org>
Copyright 2016 Russ Allbery <eagle@eyrie.org>
-Copyright 2008, 2009, 2010, 2013, 2015 The Board of Trustees of the Leland
-Stanford Junior University
+Copyright 2008-2010, 2013, 2015 The Board of Trustees of the Leland Stanford
+Junior University
Permission is hereby granted, free of charge, to any person obtaining a
copy of this software and associated documentation files (the "Software"),
@@ -351,6 +352,8 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
DEALINGS IN THE SOFTWARE.
+SPDX-License-Identifier: MIT
+
=head1 SEE ALSO
Wallet::Config(3), Wallet::Report(3), wallet-backend(8)
@@ -359,3 +362,7 @@ This program is part of the wallet system. The current version is
available from L<https://www.eyrie.org/~eagle/software/wallet/>.
=cut
+
+# Local Variables:
+# copyright-at-end-flag: t
+# End:
diff --git a/tests/TESTS b/tests/TESTS
index a2c672e..81fe051 100644
--- a/tests/TESTS
+++ b/tests/TESTS
@@ -4,6 +4,7 @@ client/prompt
client/rekey
docs/pod
docs/pod-spelling
+docs/spdx-license-t
perl/minimum-version
perl/module-version
perl/strict
diff --git a/tests/client/basic-t.in b/tests/client/basic-t.in
index f9dc6dd..7634d73 100644
--- a/tests/client/basic-t.in
+++ b/tests/client/basic-t.in
@@ -7,7 +7,7 @@
# Copyright 2006-2008, 2010
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
# Load the test library.
. "$C_TAP_SOURCE/tap/libtap.sh"
diff --git a/tests/client/full-t.in b/tests/client/full-t.in
index 1ad486c..5f7406a 100644
--- a/tests/client/full-t.in
+++ b/tests/client/full-t.in
@@ -8,7 +8,7 @@
# Copyright 2008, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/tests/client/prompt-t.in b/tests/client/prompt-t.in
index d5e9f17..8c5ff9a 100644
--- a/tests/client/prompt-t.in
+++ b/tests/client/prompt-t.in
@@ -8,7 +8,7 @@
# Copyright 2008, 2010, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use warnings;
diff --git a/tests/client/rekey-t.in b/tests/client/rekey-t.in
index 2e95a4e..c2e507c 100644
--- a/tests/client/rekey-t.in
+++ b/tests/client/rekey-t.in
@@ -7,7 +7,7 @@
# Copyright 2006-2008, 2010
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
# Load the test library.
. "$C_TAP_SOURCE/tap/libtap.sh"
diff --git a/tests/data/cmd-fake b/tests/data/cmd-fake
index f889edd..4d2d8a1 100755
--- a/tests/data/cmd-fake
+++ b/tests/data/cmd-fake
@@ -4,10 +4,10 @@
# the client test suite. It doesn't test any of the wallet server code.
#
# Written by Russ Allbery <eagle@eyrie.org>
-# Copyright 2007, 2008, 2010
+# Copyright 2007-2008, 2010
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
command="$1"
shift
diff --git a/tests/docs/spdx-license-t b/tests/docs/spdx-license-t
new file mode 100755
index 0000000..e05e13f
--- /dev/null
+++ b/tests/docs/spdx-license-t
@@ -0,0 +1,133 @@
+#!/usr/bin/perl
+#
+# Check source files for SPDX-License-Identifier fields.
+#
+# Examine all source files in a distribution to check that they contain an
+# SPDX-License-Identifier field. This does not check the syntax or whether
+# the identifiers are valid.
+#
+# The canonical version of this file is maintained in the rra-c-util package,
+# which can be found at <https://www.eyrie.org/~eagle/software/rra-c-util/>.
+#
+# Copyright 2018 Russ Allbery <eagle@eyrie.org>
+#
+# Permission is hereby granted, free of charge, to any person obtaining a
+# copy of this software and associated documentation files (the "Software"),
+# to deal in the Software without restriction, including without limitation
+# the rights to use, copy, modify, merge, publish, distribute, sublicense,
+# and/or sell copies of the Software, and to permit persons to whom the
+# Software is furnished to do so, subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be included in
+# all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
+# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
+# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
+# DEALINGS IN THE SOFTWARE.
+#
+# SPDX-License-Identifier: MIT
+
+use 5.006;
+use strict;
+use warnings;
+
+use lib "$ENV{C_TAP_SOURCE}/tap/perl";
+
+use File::Basename qw(basename);
+use Test::More;
+use Test::RRA qw(skip_unless_automated);
+use Test::RRA::Automake qw(all_files automake_setup);
+
+# File name (the file without any directory component) and path patterns to
+# skip for this check.
+## no critic (RegularExpressions::ProhibitFixedStringMatches)
+my @IGNORE = (
+ qr{ \A LICENSE \z }xms, # Generated file with no license itself
+ qr{ \A (NEWS|THANKS|TODO) \z }xms, # Package license should be fine
+ qr{ \A README ( [.] .* )? \z }xms, # Package license should be fine
+ qr{ \A (Makefile|libtool) \z }xms, # Generated file
+ qr{ [.] output \z }xms, # Test data
+);
+my @IGNORE_PATHS = (
+ qr{ \A docs/metadata/ }xms, # Package license should be fine
+ qr{ \A docs/protocol[.](html|txt) \z }xms, # Generated by xml2rfc
+ qr{ \A m4/ (libtool|lt.*) [.] m4 \z }xms, # Files from Libtool
+ qr{ \A perl/Build \z }xms, # Perl build files
+ qr{ \A perl/MANIFEST \z }xms, # Perl build files
+ qr{ \A perl/MYMETA [.] }xms, # Perl build files
+ qr{ \A perl/blib/ }xms, # Perl build files
+ qr{ \A perl/cover_db/ }xms, # Perl test files
+ qr{ \A perl/_build }xms, # Perl build files
+ qr{ \A php/Makefile [.] global \z }xms, # Created by phpize
+ qr{ \A php/autom4te [.] cache/ }xms, # Created by phpize
+ qr{ \A php/acinclude [.] m4 \z }xms, # Created by phpize
+ qr{ \A php/build/ }xms, # Created by phpize
+ qr{ \A php/config [.] (guess|sub) \z }xms, # Created by phpize
+ qr{ \A php/configure [.] in \z }xms, # Created by phpize
+ qr{ \A php/ltmain [.] sh \z }xms, # Created by phpize
+ qr{ \A php/run-tests [.] php \z }xms, # Created by phpize
+ qr{ [.] l?a \z }xms, # Created by libtool
+);
+## use critic
+
+# Only run this test during automated testing, since failure doesn't indicate
+# any user-noticable flaw in the package itself.
+skip_unless_automated('SPDX identifier tests');
+
+# Set up Automake testing.
+automake_setup();
+
+# Check a single file for an occurrence of the string.
+#
+# $path - Path to the file
+#
+# Returns: undef
+sub check_file {
+ my ($path) = @_;
+ my $filename = basename($path);
+
+ # Ignore files in the whitelist, binary files, and files under 1KB. The
+ # latter can be rolled up into the overall project license and the license
+ # notice may be a substantial portion of the file size.
+ for my $pattern (@IGNORE) {
+ return if $filename =~ $pattern;
+ }
+ for my $pattern (@IGNORE_PATHS) {
+ return if $path =~ $pattern;
+ }
+ return if !-T $path;
+ return if -s $path < 1024;
+
+ # Scan the file.
+ my ($saw_spdx, $skip_spdx);
+ open(my $file, '<', $path) or BAIL_OUT("Cannot open $path: $!");
+ while (defined(my $line = <$file>)) {
+ if ($line =~ m{ Generated [ ] by [ ] libtool [ ] }xms) {
+ close($file) or BAIL_OUT("Cannot close $path: $!");
+ return;
+ }
+ if ($line =~ m{ \b SPDX-License-Identifier: \s+ \S+ }xms) {
+ $saw_spdx = 1;
+ last;
+ }
+ if ($line =~ m{ no \s SPDX-License-Identifier \s registered }xms) {
+ $skip_spdx = 1;
+ last;
+ }
+ }
+ close($file) or BAIL_OUT("Cannot close $path: $!");
+ ok($saw_spdx || $skip_spdx, $path);
+ return;
+}
+
+# Scan every file. We don't declare a plan since we skip a lot of files and
+# don't want to precalculate the file list.
+my @paths = all_files();
+for my $path (@paths) {
+ check_file($path);
+}
+done_testing();
diff --git a/tests/server/admin-t b/tests/server/admin-t
index 8fde012..4d6670b 100755
--- a/tests/server/admin-t
+++ b/tests/server/admin-t
@@ -7,7 +7,7 @@
# Copyright 2008-2011, 2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use Test::More tests => 42;
diff --git a/tests/server/backend-t b/tests/server/backend-t
index e8ea1ce..de59458 100755
--- a/tests/server/backend-t
+++ b/tests/server/backend-t
@@ -7,7 +7,7 @@
# Copyright 2006-2014
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use Test::More tests => 1311;
diff --git a/tests/server/keytab-t b/tests/server/keytab-t
index 00c6e92..5cf6788 100755
--- a/tests/server/keytab-t
+++ b/tests/server/keytab-t
@@ -7,7 +7,7 @@
# Copyright 2006-2007, 2010
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use vars qw($CONFIG $KADMIN $SYSLOG $TMP);
diff --git a/tests/server/report-t b/tests/server/report-t
index 2e0cef7..20382f0 100755
--- a/tests/server/report-t
+++ b/tests/server/report-t
@@ -7,7 +7,7 @@
# Copyright 2008-2010
# The Board of Trustees of the Leland Stanford Junior University
#
-# See LICENSE for licensing terms.
+# SPDX-License-Identifier: MIT
use strict;
use Test::More tests => 48;
diff --git a/tests/tap/perl/Test/RRA/Automake.pm b/tests/tap/perl/Test/RRA/Automake.pm
index 3ba5bcb..6c6e947 100644
--- a/tests/tap/perl/Test/RRA/Automake.pm
+++ b/tests/tap/perl/Test/RRA/Automake.pm
@@ -104,7 +104,7 @@ sub all_files {
my $file = $_;
my $path = $File::Find::name;
$path =~ s{ \A [.]/ }{}xms;
- if ($skip{$path} or $files_skip{$file} or $file =~ m{ [.] lo \z }xms) {
+ if ($skip{$path} || $files_skip{$file} || $file =~ m{ [.] lo \z }xms) {
$File::Find::prune = 1;
return;
}