updated on Wed Jan 11 08:01:35 UTC 2012
[aur-mirror.git] / systemd-quiet / PKGBUILD
blob3cf32df6176b295e51a9ae5ffdf951584ede1f71
1 # $Id$
2 # Maintainer: Dave Reisner <dreisner@archlinux.org>
4 pkgname=systemd-quiet
5 _pkgname=systemd
6 pkgver=37
7 pkgrel=1
8 pkgdesc="Session and Startup manager"
9 arch=('i686' 'x86_64')
10 url="http://www.freedesktop.org/wiki/Software/systemd"
11 license=('GPL2')
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'
16             'gtk2: systemadm'
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')
22 groups=('systemd')
23 options=('!libtool' '!strip')
24 conflicts=('systemd')
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
32         etc/systemd/user.conf
33         etc/systemd/systemd-logind.conf)
34 install=systemd.install
35 source=("http://www.freedesktop.org/software/${_pkgname}/${_pkgname}-${pkgver}.tar.bz2"
36         "os-release"
37         "systemctl-completion.patch"
38         # Quiet patches
39         "no-plymouth.patch"
40         "fastboot.patch")
41 md5sums=('1435f23be79c8c38d1121c6b150510f3'
42          '752636def0db3c03f121f8b4f44a63cd'
43          '8682322fb31cf10ca7a21a958892a226'
44          'cd0637d840e68ac157a4fd6fd788cf65'
45          '4277e8ba1b1b01767ed94f45e126e6ec')
47 build() {
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
62   # fix bash completion
63   patch -Np1 < "$srcdir"/systemctl-completion.patch
65   ./configure --prefix=/usr \
66               --sysconfdir=/etc \
67               --libexecdir=/usr/lib/systemd \
68               --libdir=/usr/lib \
69               --localstatedir=/var \
70               --with-rootdir= \
71               --with-rootlibdir=/lib \
72               --disable-audit
74   make
76   # fix .so links in manpages
77   sed -i 's|\.so halt\.8|.so systemd.halt.8|' man/{halt,poweroff}.8
80 package() {
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"
95   done