1#!/bin/sh -eux
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2018-2024 Petr Vorel <[email protected]>
4
5# workaround for missing oldstable-updates repository
6# W: Failed to fetch http://deb.debian.org/debian/dists/oldstable-updates/main/binary-amd64/Packages
7grep -v oldstable-updates /etc/apt/sources.list > /tmp/sources.list && mv /tmp/sources.list /etc/apt/sources.list
8
9apt update
10
11# workaround for Ubuntu impish asking to interactively configure tzdata
12export DEBIAN_FRONTEND="noninteractive"
13
14apt="apt install -y --no-install-recommends"
15
16$apt \
17	acl-dev \
18	asciidoc \
19	asciidoctor \
20	autoconf \
21	automake \
22	build-essential \
23	debhelper \
24	devscripts \
25	clang \
26	gcc \
27	git \
28	iproute2 \
29	libacl1-dev \
30	libaio-dev \
31	libcap-dev \
32	libc6 \
33	libc6-dev \
34	libjson-perl \
35	libkeyutils-dev \
36	libmnl-dev \
37	libnuma-dev \
38	libselinux1-dev \
39	libsepol-dev \
40	libssl-dev \
41	libtirpc-dev \
42	linux-libc-dev \
43	lsb-release \
44	pkg-config
45
46$apt ruby-asciidoctor-pdf || true
47$apt asciidoc-dblatex || true
48
49df -hT
50