aboutsummaryrefslogtreecommitdiffstats
path: root/chapter8/systemd.sh
blob: a9c81723787c327ad540023ddb6c1b24413a0fbf (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
set -e

sed '177,222 d' -i src/resolve/meson.build &&
sed -i 's/GROUP="render"/GROUP="video"/' rules.d/50-udev-default.rules.in &&

mkdir -v build
cd build || exit 1

ln -sfv /bin/true /usr/bin/xsltproc
ln -sfv /bin/true /usr/bin/rsync

LANG=en_US.UTF-8 \
meson --prefix=/usr \
      --sysconfdir=/etc \
      --localstatedir=/var \
      -Dblkid=true \
      -Dbuildtype=release \
      -Ddefault-dnssec=no \
      -Dfirstboot=false \
      -Dinstall-tests=false \
      -Dkmod-path=/bin/kmod \
      -Dldconfig=false \
      -Dmount-path=/bin/mount \
      -Drootprefix= \
      -Drootlibdir=/lib \
      -Dsplit-usr=true \
      -Dsulogin-path=/sbin/sulogin \
      -Dsysusers=false \
      -Dumount-path=/bin/umount \
      -Db_lto=false \
      -Drpmmacrosdir=no \
      -Dhomed=false \
      -Duserdb=false \
      -Dman=false \
      -Dmode=release \
      -Ddocdir=/usr/share/doc/systemd-"${VERSION}" \
      .. &&

rm -v /usr/bin/rsync
rm -v /usr/bin/xsltproc

LANG=en_US.UTF-8 ninja &&

LANG=en_US.UTF-8 ninja install &&
tar -xvf ../../systemd-man-pages-"247"-2.tar.xz \
    --strip-components=1 -C /usr/share/man &&
rm -rfv /usr/lib/pam.d &&
systemd-machine-id-setup &&
systemctl preset-all &&
systemctl disable systemd-time-wait-sync.service