diff options
author | root <root@rshg054.dnsready.net> | 2011-08-09 23:14:31 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2011-08-09 23:14:31 +0000 |
commit | a306c2530354c1c02351c4cc02eefa53c8d23eac (patch) | |
tree | 85f473f0abb92a80a4a400a7c07eed79d83880bd /community/systemd | |
parent | 5135b52f901206bbb365152084e82e92c120e0be (diff) |
Tue Aug 9 23:14:31 UTC 2011
Diffstat (limited to 'community/systemd')
-rw-r--r-- | community/systemd/PKGBUILD | 6 | ||||
-rw-r--r-- | community/systemd/systemd.install | 10 |
2 files changed, 9 insertions, 7 deletions
diff --git a/community/systemd/PKGBUILD b/community/systemd/PKGBUILD index 03f85a55d..aafaf1b5f 100644 --- a/community/systemd/PKGBUILD +++ b/community/systemd/PKGBUILD @@ -1,14 +1,14 @@ -# $Id: PKGBUILD 53341 2011-08-03 04:06:06Z dreisner $ +# $Id: PKGBUILD 53877 2011-08-09 02:05:40Z dreisner $ # Maintainer: Dave Reisner <dreisner@archlinux.org> pkgname=systemd pkgver=33 -pkgrel=1 +pkgrel=2 pkgdesc="Session and Startup manager" arch=('i686' 'x86_64') url="http://www.freedesktop.org/wiki/Software/systemd" license=('GPL2') -depends=('dbus-core' 'libcap' 'util-linux>=2.19' 'udev>=172') +depends=('dbus-core' 'kbd' 'libcap' 'util-linux>=2.19' 'udev>=172') makedepends=('docbook-xsl' 'libxslt' 'cryptsetup' 'gtk2' 'intltool' 'libnotify' 'gperf') optdepends=('cryptsetup: required for encrypted block devices' 'dbus-python: systemd-analyze' diff --git a/community/systemd/systemd.install b/community/systemd/systemd.install index 34f902276..04b29688a 100644 --- a/community/systemd/systemd.install +++ b/community/systemd/systemd.install @@ -1,7 +1,7 @@ #!/bin/sh checkgroups() { - if usr/bin/getent group lock >/dev/null; then + if ! usr/bin/getent group lock >/dev/null; then usr/sbin/groupadd -g 54 lock fi } @@ -13,7 +13,7 @@ sd_booted() { post_install() { checkgroups - if [ -f etc/machine-id ]; then + if [ ! -f etc/machine-id ]; then bin/systemd-machine-id-setup fi @@ -24,7 +24,7 @@ post_install() { post_upgrade() { checkgroups - if [ -f etc/machine-id ]; then + if [ ! -f etc/machine-id ]; then bin/systemd-machine-id-setup fi @@ -45,7 +45,9 @@ post_upgrade() { } post_remove() { - usr/bin/getent group lock >/dev/null && usr/sbin/groupdel lock + if usr/bin/getent group lock >/dev/null; then + usr/sbin/groupdel lock + fi } # vim:set ts=2 sw=2 et: |