summaryrefslogtreecommitdiffstats
path: root/config/chroot_local-hooks/59-libdvd-pkg
blob: 4c8d817bad89d62da6f1d1444a2fde482838e15a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -e
set -u
set -x

echo "Installing libdvd-pkg"

apt-get --yes install libdvd-pkg
dpkg-reconfigure libdvd-pkg

# Create and install fake libdvd-pkg package
local tmp
tmp="$(mktemp -d)"
apt-get install --yes equivs

LIBDVD_PKG_VERSION=$(dpkg-query -s libdvd-pkg | grep Version | cut -d ' ' -f2 )

cat > "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control" << EOF
Section: multimedia
Priority: optional
Homepage: https://tails.boum.org/
Standards-Version: 3.6.2

Package: libdvd-pkg-${LIBDVD_PKG_VERSION}
Maintainer: Tails developers <amnesia@boum.org>
Provides: libdvd-pkg
Architecture: all
Description: (Fake) libdvd-pkg package
 Provide placeholder to keep libdvdcss2 happy.
EOF

cd "${tmp}"
equivs-build "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}.control"
dpkg -i "${tmp}/libdvd-pkg-${LIBDVD_PKG_VERSION}_1.0_all.deb"
cd -
rm -R "${tmp}"