Mark ENOLINK and EMULTIHOP as optional
[iolib.git] / install-repo.bash
blobbb39e233501fbb4b05efdad249c8a9c86ce74059
1 #!/bin/bash
3 set -o pipefail # trace ERR through pipes
4 set -o errtrace # trace ERR through 'time command' and other functions
5 set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
6 set -o errexit ## set -e : exit the script if any statement returns a non-true return value
7 set -o xtrace # print commands as they are executed
9 ARCH=amd64
10 case "$1" in
11 allegro | *32 ) ARCH=i386 ;;
12 esac
14 KEYFILE=/etc/apt/keyrings/obs-sionescu.key
15 cat > /etc/apt/sources.list.d/libfixposix.list <<EOF
16 deb [signed-by=${KEYFILE}] http://download.opensuse.org/repositories/home:/sionescu/Ubuntu_Jammy/ ./
17 EOF
19 cat > /etc/apt/preferences.d/libfixposix <<EOF
20 Package: libfixposix*
21 Pin: origin download.opensuse.org
22 Pin-Priority: 1001
23 EOF
25 mkdir -vp /etc/apt/keyrings/
26 curl https://download.opensuse.org/repositories/home:/sionescu/Ubuntu_Jammy/Release.key | sudo tee "${KEYFILE}"
28 apt-get update -qq
30 apt-get -y install libfixposix4:${ARCH} libfixposix-dev:${ARCH}
32 dpkg -L libfixposix4 libfixposix-dev