mirror of
https://github.com/grafana/grafana.git
synced 2025-01-27 00:37:04 -06:00
parent
5ecc12505f
commit
90b41e86f2
@ -2,3 +2,4 @@
|
||||
%_gpg_path /root/.gnupg
|
||||
%_gpg_name Grafana
|
||||
%_gpgbin /usr/bin/gpg
|
||||
%_gpg_sign_cmd_extra_args --batch --pinentry-mode loopback --passphrase-file /tmp/gpg-passphrase
|
||||
|
@ -1,12 +0,0 @@
|
||||
#!/usr/bin/expect -f
|
||||
# wrapper to make rpm --sign be non-interactive
|
||||
# passwd is 1st arg, file to sign is 2nd
|
||||
#send_user «$argv0 [lrange $argv 0 2]\n"
|
||||
#set files [lrange $argv 1 $argc ]
|
||||
|
||||
set password [lindex $argv 0]
|
||||
set files [lindex $argv 1]
|
||||
spawn rpm --addsign $files
|
||||
expect "Enter pass phrase:"
|
||||
send -- "$password\r"
|
||||
expect eof
|
@ -17,8 +17,9 @@ fi
|
||||
gpg --batch --allow-secret-key-import --import ~/private-repo/signing/private.key
|
||||
|
||||
cp ./scripts/build/rpmmacros ~/.rpmmacros
|
||||
echo "$GPG_KEY_PASSWORD" > /tmp/gpg-passphrase
|
||||
|
||||
for package in $_files; do
|
||||
[ -e "$package" ] || continue
|
||||
./scripts/build/sign_expect "$GPG_KEY_PASSWORD" "$package"
|
||||
rpm --addsign "$package"
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user