[arch-commits] Commit in systemd/trunk (PKGBUILD systemd.install)
Dave Reisner
dreisner at archlinux.org
Thu Nov 22 16:59:14 UTC 2012
Date: Thursday, November 22, 2012 @ 11:59:13
Author: dreisner
Revision: 171896
upgpkg: systemd 196-2
- add libmicrohttpd support (FS#32181)
- update optdeps for systemd-analyze (FS#32784)
- add fallback for setcap failure (FS#32493)
- add ZSH completion
- update bash completion symlinks
- run journalctl --update-catalog on post_upgrade/post_install
Modified:
systemd/trunk/PKGBUILD
systemd/trunk/systemd.install
-----------------+
PKGBUILD | 24 +++++++++++++++---------
systemd.install | 12 ++++++++++--
2 files changed, 25 insertions(+), 11 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2012-11-22 14:56:02 UTC (rev 171895)
+++ PKGBUILD 2012-11-22 16:59:13 UTC (rev 171896)
@@ -4,13 +4,13 @@
pkgbase=systemd
pkgname=('systemd' 'systemd-sysvcompat')
pkgver=196
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/systemd"
license=('GPL2' 'LGPL2.1' 'MIT')
makedepends=('acl' 'cryptsetup' 'dbus-core' 'docbook-xsl' 'gobject-introspection' 'gperf'
- 'gtk-doc' 'intltool' 'kmod' 'libcap' 'libgcrypt' 'libxslt' 'linux-api-headers'
- 'pam' 'python' 'quota-tools' 'xz')
+ 'gtk-doc' 'intltool' 'kmod' 'libcap' 'libgcrypt' 'libmicrohttpd' 'libxslt'
+ 'linux-api-headers' 'pam' 'python' 'quota-tools' 'xz')
options=('!libtool')
source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.xz"
'initcpio-hook-udev'
@@ -53,13 +53,13 @@
provides=("libsystemd=$pkgver" "systemd-tools=$pkgver" "udev=$pkgver")
replaces=('libsystemd' 'systemd-tools' 'udev')
conflicts=('libsystemd' 'systemd-tools' 'udev')
- optdepends=('initscripts: legacy support for /etc/rc.conf'
+ optdepends=('cryptsetup: required for encrypted block devices'
+ 'libmicrohttpd: systemd-journal-gatewayd'
+ 'quota-tools: kernel-level quota management'
'python: systemd library bindings'
'python2-cairo: systemd-analyze'
- 'python2-dbus: systemd-analyze'
- 'systemd-sysvcompat: symlink package to provide sysvinit binaries'
- 'cryptsetup: required for encrypted block devices'
- 'quota-tools: kernel-level quota management')
+ 'python2-gobject: systemd-analyze'
+ 'systemd-sysvcompat: symlink package to provide sysvinit binaries')
backup=(etc/dbus-1/system.d/org.freedesktop.systemd1.conf
etc/dbus-1/system.d/org.freedesktop.hostname1.conf
etc/dbus-1/system.d/org.freedesktop.login1.conf
@@ -82,11 +82,17 @@
# move bash-completion and symlink for *ctl's
install -Dm644 "$pkgdir/etc/bash_completion.d/systemd-bash-completion.sh" \
"$pkgdir/usr/share/bash-completion/completions/systemctl"
- for ctl in {login,journal,timedate,locale,hostname}ctl; do
+ for ctl in {login,journal,timedate,locale,hostname,systemd-coredump}ctl udevadm; do
ln -s systemctl "$pkgdir/usr/share/bash-completion/completions/$ctl"
done
rm -rf "$pkgdir/etc/bash_completion.d"
+ # zsh completion isn't installed as part of 196
+ # http://i.imgur.com/hMJgX.jpg
+ # TODO(dreisner): remove this for 197
+ install -Dm644 "$pkgname-$pkgver/shell-completion/systemd-zsh-completion.zsh" \
+ "$pkgdir/usr/share/zsh/site-functions/_systemd"
+
# don't write units to /etc by default -- we'll enable this on post_install
# as a sane default
rm "$pkgdir/etc/systemd/system/getty.target.wants/getty at tty1.service"
Modified: systemd.install
===================================================================
--- systemd.install 2012-11-22 14:56:02 UTC (rev 171895)
+++ systemd.install 2012-11-22 16:59:13 UTC (rev 171896)
@@ -4,13 +4,21 @@
[ -e sys/fs/cgroup/systemd ]
}
+add_privs() {
+ if ! setcap "$2" "$1" 2>/dev/null; then
+ echo "==> Warning: setcap failed, falling back to setuid root on /$1"
+ chmod u+s "$1"
+ fi
+}
+
post_common() {
systemd-machine-id-setup
+ add_privs usr/bin/systemd-detect-virt 'cap_dac_override,cap_sys_ptrace+ep'
+
udevadm hwdb --update
+ journalctl --update-catalog
- setcap cap_dac_override,cap_sys_ptrace+ep usr/bin/systemd-detect-virt
-
if sd_booted; then
systemctl --system daemon-reexec
fi
More information about the arch-commits
mailing list