Knowledge Base

Preserving for the future: Shell scripts, AoC, and more

yummirror-fedora-cisco-openh264-39-x86_64.conf (Source)

# vim: syntax=sh
# startdate: 2023-12-13-4 22:28 for fc39x-ks.cfg kickstart to be able to access this locally
# usage:
#    time sudo YUMMIRROR_CONF=/etc/installed/coprmirror/yummirror-fedora-cisco-openh264-39-x86_64.conf /etc/installed/coprmirror/yummirror.sh
# improve:
#    this can probably be replaced with a shell script that loops through maybe a manual list of fedora release numbers, and then generates the inurl,workdir and then runs yummirror with env vars instead of various .conf files.
logfile=~/log/coprmirror.$( date "+%FT%H%M%S" ).log
# if we leave yum vars in inurl, it will be interpreted by whatever system is running the yummirror task, and not by a pretend version of the desired OS.
#inurl='https://codecs.fedoraproject.org/openh264/$releasever/$basearch/os/'
inurl='https://codecs.fedoraproject.org/openh264/39/x86_64/os/'
workdir=/mnt/mirror/fedora-cisco-openh264/39/x86_64/os/
thisuser=copruser
VERBOSE=1
DEBUG=1
# skip .src.rpms
include_sources=no
# resign is not implemented anyways
resign_repo=no
# because gpgkey is just a file: for a basic fedora signing key that is already here, just leave it undefined so yummirror will skip it.
#gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch