2 # Maintainer: Dave Reisner <dreisner@archlinux.org>
8 pkgdesc="Session and Startup manager"
10 url="http://www.freedesktop.org/wiki/Software/systemd"
12 depends=('dbus-core' 'kbd' 'libcap' 'util-linux>=2.19' 'udev>=172')
13 makedepends=('gperf' 'cryptsetup' 'gtk2' 'intltool' 'libnotify')
14 optdepends=('cryptsetup: required for encrypted block devices'
15 'dbus-python: systemd-analyze'
17 'initscripts: legacy support for hostname and vconsole setup'
18 'initscripts-systemd: native boot and initialization scripts'
19 'libnotify: systemadm'
20 'python2-cairo: systemd-analyze'
21 'systemd-arch-units: collection of native unit files for Arch daemon/init scripts')
23 options=('!libtool' '!strip')
25 provides=("systemd=${pkgver}")
26 backup=(etc/dbus-1/system.d/org.freedesktop.systemd1.conf
27 etc/dbus-1/system.d/org.freedesktop.hostname1.conf
28 etc/dbus-1/system.d/org.freedesktop.login1.conf
29 etc/dbus-1/system.d/org.freedesktop.locale1.conf
30 etc/dbus-1/system.d/org.freedesktop.timedate1.conf
31 etc/systemd/system.conf
33 etc/systemd/systemd-logind.conf)
34 install=systemd.install
35 source=("http://www.freedesktop.org/software/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2"
37 "systemctl-completion.patch"
41 md5sums=('1435f23be79c8c38d1121c6b150510f3'
42 '752636def0db3c03f121f8b4f44a63cd'
43 '8682322fb31cf10ca7a21a958892a226'
44 'cd0637d840e68ac157a4fd6fd788cf65'
45 '4277e8ba1b1b01767ed94f45e126e6ec')
48 cd "${srcdir}/${_pkgname}-${pkgver}"
50 # Do not switch on show_status unconditionally when plymouth is running
51 # systemd's Verbosity can be enabled using systemd.show_status=1
52 # or compiling plymouth with --enable-systemd-integration
53 patch -Np1 -i ${srcdir}/no-plymouth.patch
54 # Enable fastboot kernel parameter to skip fsck
55 patch -Np1 -i ${srcdir}/fastboot.patch
57 # Don't unset locale in getty
58 # https://bugzilla.redhat.com/show_bug.cgi?id=663900
59 sed -i -e '/^Environ.*LANG/s/^/#/' \
60 -e '/^ExecStart/s/agetty/& -8/' units/getty@.service.m4
63 patch -Np1 < "$srcdir"/systemctl-completion.patch
65 ./configure --prefix=/usr \
67 --libexecdir=/usr/lib/systemd \
69 --localstatedir=/var \
71 --with-rootlibdir=/lib \
76 # fix .so links in manpages
77 sed -i 's|\.so halt\.8|.so systemd.halt.8|' man/{halt,poweroff}.8
81 cd "${srcdir}/${_pkgname}-${pkgver}"
83 make DESTDIR="${pkgdir}" install
85 install -Dm644 "${srcdir}/os-release" "${pkgdir}/etc/os-release"
86 printf "d /run/console 755 root root\n" > "${pkgdir}/usr/lib/tmpfiles.d/console.conf"
88 # fix systemd-analyze for python2
89 sed -i '1s/python$/python2/' "${pkgdir}/usr/bin/systemd-analyze"
91 # rename man pages to avoid conflicts with sysvinit
92 cd "${pkgdir}/usr/share/man/man8"
93 for manpage in telinit halt reboot poweroff runlevel shutdown; do
94 mv {,systemd.}"$manpage.8"