[arch-commits] Commit in systemd/trunk (PKGBUILD)
Dave Reisner
dreisner at archlinux.org
Tue Sep 22 18:39:42 UTC 2015
Date: Tuesday, September 22, 2015 @ 20:39:42
Author: dreisner
Revision: 247075
upgpkg: systemd 226-2
- avoid mv'ing things in package functions
as a side effect, nss libs are moved to libsystemd
Modified:
systemd/trunk/PKGBUILD
----------+
PKGBUILD | 23 ++++++++++-------------
1 file changed, 10 insertions(+), 13 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2015-09-22 18:36:44 UTC (rev 247074)
+++ PKGBUILD 2015-09-22 18:39:42 UTC (rev 247075)
@@ -4,7 +4,7 @@
pkgbase=systemd
pkgname=('systemd' 'libsystemd' 'systemd-sysvcompat')
pkgver=226
-pkgrel=1
+pkgrel=2
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/systemd"
makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam'
@@ -129,17 +129,11 @@
# ship default policy to leave services disabled
echo 'disable *' >"$pkgdir"/usr/lib/systemd/system-preset/99-default.preset
- ### split out manpages for sysvcompat
- rm -rf "$srcdir/_sysvcompat"
- install -dm755 "$srcdir"/_sysvcompat/usr/share/man/man8/
- mv "$pkgdir"/usr/share/man/man8/{telinit,halt,reboot,poweroff,runlevel,shutdown}.8 \
- "$srcdir"/_sysvcompat/usr/share/man/man8
+ ### manpages shipped with systemd-sysvcompat
+ rm "$pkgdir"/usr/share/man/man8/{telinit,halt,reboot,poweroff,runlevel,shutdown}.8
- ### split off runtime libraries
- rm -rf "$srcdir/_libsystemd"
- install -dm755 "$srcdir"/_libsystemd/usr/lib
- cd "$srcdir"/_libsystemd
- mv "$pkgdir"/usr/lib/lib{systemd,udev}*.so* usr/lib
+ ### runtime libraries shipped with libsystemd
+ rm "$pkgdir"/usr/lib/lib{systemd,udev}*.so*
# add example bootctl configuration
install -Dm644 "$srcdir/arch.conf" "$pkgdir"/usr/share/systemd/bootctl/arch.conf
@@ -154,7 +148,7 @@
provides=('libsystemd.so' 'libsystemd-daemon.so' 'libsystemd-id128.so'
'libsystemd-journal.so' 'libsystemd-login.so' 'libudev.so')
- mv "$srcdir/_libsystemd"/* "$pkgdir"
+ make -C "$pkgbase" DESTDIR="$pkgdir" install-libLTLIBRARIES
}
package_systemd-sysvcompat() {
@@ -164,7 +158,10 @@
conflicts=('sysvinit')
depends=('systemd')
- mv "$srcdir/_sysvcompat"/* "$pkgdir"
+ install -dm755 "$pkgdir"/usr/share/man/man8
+ cp -d --no-preserve=ownership,timestamp \
+ "$pkgbase"/man/{telinit,halt,reboot,poweroff,runlevel,shutdown}.8 \
+ "$pkgdir"/usr/share/man/man8
install -dm755 "$pkgdir/usr/bin"
for tool in runlevel reboot shutdown poweroff halt telinit; do
More information about the arch-commits
mailing list