make-signatures.pl: LEDE => OpenWrt
authorJo-Philipp Wich <jo@mein.io>
Fri, 31 Jan 2020 21:05:47 +0000 (22:05 +0100)
committerJo-Philipp Wich <jo@mein.io>
Fri, 6 Mar 2020 11:28:41 +0000 (12:28 +0100)
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
make-signatures.pl

index dc6c3c34f83dbb2bc5303d0c4129e4119fe853fe..5c35d217377a28b22f8fd0308eea62077f63e0d9 100755 (executable)
@@ -8,7 +8,7 @@ use POSIX qw(mktime strftime setlocale LC_COLLATE);
 
 setlocale(LC_COLLATE, "en_US.UTF-8");
 
-my $page = 'https://lede-project.org/docs/user-guide/signatures';
+my $page = 'https://openwrt.org/docs/guide-user/security/signatures';
 
 my @keytypes = (
        undef,
@@ -99,8 +99,8 @@ sub format_download {
        my $ts = strftime '%F %T %z', gmtime $mtime;
 
        return sprintf
-               "[[https://git.lede-project.org/?p=keyring.git;a=history;f=%s|Last change: %s]] | " .
-               "[[https://git.lede-project.org/?p=keyring.git;a=blob_plain;f=%s|Download]]\n"  ,
+               "[[https://git.openwrt.org/?p=keyring.git;a=history;f=%s|Last change: %s]] | " .
+               "[[https://git.openwrt.org/?p=keyring.git;a=blob_plain;f=%s|Download]]\n"       ,
                $key->{filename}, $ts, $key->{filename};
 }
 
@@ -166,7 +166,9 @@ if (open KEYS, '-|', qw(find gpg/ -type f -name *.asc -print)) {
 
                        $data{filename} = $file;
                        $data{is_system_key} =
+                               (index($data{email}, 'openwrt.org') >= 0) ||
                                (index($data{email}, 'lede-project.org') >= 0) ||
+                               (index($data{email}, 'lists.openwrt.org') >= 0) ||
                                (index($data{email}, 'lists.infradead.org') >= 0);
 
                        push @pubkeys, \%data;