summaryrefslogtreecommitdiffstats
path: root/mkallrepo
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-02-15 11:01:41 +0100
committerRemi Collet <remi@php.net>2022-02-15 11:01:41 +0100
commitaa54d84b3f942d69ef67c8341237ba1d62392211 (patch)
tree3a096d929e0c175141858477d1b414c07b024bbc /mkallrepo
parent1cc0ab69aeac26aa71609c948028dbf2266a4af3 (diff)
all keys moved in same folder
Diffstat (limited to 'mkallrepo')
-rwxr-xr-xmkallrepo48
1 files changed, 13 insertions, 35 deletions
diff --git a/mkallrepo b/mkallrepo
index 8c2d1ee..dd695fd 100755
--- a/mkallrepo
+++ b/mkallrepo
@@ -2,16 +2,14 @@
TMPSIG=$(mktemp)
TMPLNK=$(mktemp)
-TMPSIG1=$(mktemp -t XXXXXXXX.2000)
-TMPSIG3=$(mktemp -t XXXXXXXX.2018)
-TMPSIG4=$(mktemp -t XXXXXXXX.2019)
-TMPSIG2020=$(mktemp -t XXXXXXXX.2020)
+TMPSIG2000=$(mktemp -t XXXXXXXX.2000)
+TMPSIG2018=$(mktemp -t XXXXXXXX.2018)
TMPSIG2021=$(mktemp -t XXXXXXXX.2021)
TMPSIG2022=$(mktemp -t XXXXXXXX.2022)
cd /home/rpmbuild/site/rpms
-for dep in fedora/{33,34,35,36}/*/{i386,x86_64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
+for dep in fedora/{34,35,36}/*/{i386,x86_64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
do
[[ $dep =~ /modular ]] && continue
[[ $dep =~ /debug-modular ]] && continue
@@ -39,15 +37,9 @@ if [ -s $TMPSIG ]; then
echo "À signer:"; sort < $TMPSIG
# old
- grep el7 $TMPSIG > $TMPSIG1
+ grep el7 $TMPSIG > $TMPSIG2000
# 2018
- grep el8 $TMPSIG > $TMPSIG3
- # 2019
- grep fc30 $TMPSIG > $TMPSIG4
- grep fc31 $TMPSIG >> $TMPSIG4
- # 2020
- grep fc32 $TMPSIG > $TMPSIG2020
- grep fc33 $TMPSIG >> $TMPSIG2020
+ grep el8 $TMPSIG > $TMPSIG2018
# 2021
grep fc34 $TMPSIG > $TMPSIG2021
grep fc35 $TMPSIG >> $TMPSIG2021
@@ -65,35 +57,21 @@ if [ -s $TMPSIG ]; then
fi
if [ -s $TMPSIG2021 ]; then
echo "== Signature des $(cat $TMPSIG2021 | wc -l) nouveaux RPM (2021) =="
- if rpmsign --define '_gpg_path /home/remi/.gnupg2021' --define "_gpg_name B1ABF71E14C9D74897E198A8B19527F1478F8947" --addsign $(cat $TMPSIG2021)
+ if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name B1ABF71E14C9D74897E198A8B19527F1478F8947" --addsign $(cat $TMPSIG2021)
then echo done.
else exit 1
fi
fi
- if [ -s $TMPSIG2020 ]; then
- echo "== Signature des $(cat $TMPSIG2020 | wc -l) nouveaux RPM (2020) =="
- if rpmsign --define '_gpg_path /home/remi/.gnupg2020' --define "_gpg_name 34C10BDBCC6F1B252E50BA1A0714919E4C21A808" --addsign $(cat $TMPSIG2020)
+ if [ -s $TMPSIG2018 ]; then
+ echo "== Signature des $(cat $TMPSIG2018 | wc -l) nouveaux RPM (2018) =="
+ if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 6B38FEA7231F87F52B9CA9D8555097595F11735A" --addsign $(cat $TMPSIG2018)
then echo done.
else exit 1
fi
fi
- if [ -s $TMPSIG4 ]; then
- echo "== Signature des $(cat $TMPSIG4 | wc -l) nouveaux RPM (2019) =="
- if rpmsign --define '_gpg_path /home/remi/.gnupg2019' --define "_gpg_name 5F136145BF10369B7685D8DE503666CCBBAE6F1B" --addsign $(cat $TMPSIG4)
- then echo done.
- else exit 1
- fi
- fi
- if [ -s $TMPSIG3 ]; then
- echo "== Signature des $(cat $TMPSIG3 | wc -l) nouveaux RPM (2018) =="
- if rpmsign --define '_gpg_path /home/remi/.gnupg2018' --define "_gpg_name 6B38FEA7231F87F52B9CA9D8555097595F11735A" --addsign $(cat $TMPSIG3)
- then echo done.
- else exit 1
- fi
- fi
- if [ -s $TMPSIG1 ]; then
- echo "== Signature des $(cat $TMPSIG1 | wc -l) nouveaux RPM (old) =="
- if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 1EE04CCE88A4AE4AA29A5DF5004E6F4700F97F56" --addsign $(cat $TMPSIG1)
+ if [ -s $TMPSIG2000 ]; then
+ echo "== Signature des $(cat $TMPSIG2000 | wc -l) nouveaux RPM (old) =="
+ if rpmsign --define '_gpg_path /home/remi/.gnupgrpm' --define "_gpg_name 1EE04CCE88A4AE4AA29A5DF5004E6F4700F97F56" --addsign $(cat $TMPSIG2000)
then echo done.
else exit 1
fi
@@ -116,7 +94,7 @@ then echo "== Création des liens (noarch) =="
else echo "Rien à lier."
fi
-for dep in SRPMS fedora/{33,34,35,36}/*/{i386,x86_64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
+for dep in SRPMS fedora/{34,35,36}/*/{i386,x86_64} enterprise/{7,8,9}/*/{i386,x86_64,armhfp,aarch64}
do
[[ $dep =~ /modular ]] && continue
[[ $dep =~ /debug-modular ]] && continue