summaryrefslogtreecommitdiff
path: root/libre/systemd
diff options
context:
space:
mode:
authorAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-01-12 17:58:38 -0300
committerAndré Fabian Silva Delgado <emulatorman@parabola.nu>2017-01-13 02:18:15 -0300
commit2113286be68aaf4a2f0423911758409b60d4e3c2 (patch)
tree959c5a79f76b88023a62e95b1d3350f86dd1ab2e /libre/systemd
parent59714ff2ee04eea48ab6b6fcb9ccc4de0088d0ec (diff)
downloadabslibre-2113286be68aaf4a2f0423911758409b60d4e3c2.tar.gz
abslibre-2113286be68aaf4a2f0423911758409b60d4e3c2.tar.bz2
abslibre-2113286be68aaf4a2f0423911758409b60d4e3c2.zip
systemd-232-7.parabola1: implement pacman hooks 'systemd-sysusers.hook' and 'systemd-tmpfiles.hook'
Diffstat (limited to 'libre/systemd')
-rw-r--r--libre/systemd/PKGBUILD8
-rw-r--r--libre/systemd/systemd-sysusers.hook11
-rw-r--r--libre/systemd/systemd-tmpfiles.hook11
3 files changed, 29 insertions, 1 deletions
diff --git a/libre/systemd/PKGBUILD b/libre/systemd/PKGBUILD
index 48d383d73..faea533e0 100644
--- a/libre/systemd/PKGBUILD
+++ b/libre/systemd/PKGBUILD
@@ -7,7 +7,7 @@ pkgbase=systemd
pkgname=('systemd' 'libsystemd' 'systemd-sysvcompat'
'libsystemd-standalone' 'libudev' 'nss-myhostname' 'nss-mymachines' 'nss-resolve')
pkgver=232
-pkgrel=6.parabola1
+pkgrel=7.parabola1
arch=('i686' 'x86_64' 'armv7h')
url="https://www.github.com/systemd/systemd"
makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'
@@ -24,6 +24,8 @@ source=("git://github.com/systemd/systemd.git#tag=v$pkgver"
'parabola.conf'
'loader.conf'
'systemd-user.pam'
+ 'systemd-sysusers.hook'
+ 'systemd-tmpfiles.hook'
'udev-hwdb.hook'
'0001-disable-RestrictAddressFamilies-on-i686.patch'
'0001-Revert-nspawn-try-to-bind-mount-resolved-s-resolv.co.patch'
@@ -42,6 +44,8 @@ sha512sums=('SKIP'
'70b3f1d6aaa9cd4b6b34055a587554770c34194100b17b2ef3aaf4f16f68da0865f6b3ae443b3252d395e80efabd412b763259ffb76c902b60e23b6b522e3cc8'
'6c6f579644ea2ebb6b46ee274ab15110718b0de40def8c30173ba8480b045d403f2aedd15b50ad9b96453f4ad56920d1350ff76563755bb9a80b10fa7f64f1d9'
'b90c99d768dc2a4f020ba854edf45ccf1b86a09d2f66e475de21fe589ff7e32c33ef4aa0876d7f1864491488fd7edb2682fc0d68e83a6d4890a0778dc2d6fe19'
+ '9d27d97f172a503f5b7044480a0b9ccc0c4ed5dbb2eb3b2b1aa929332c3bcfe38ef0c0310b6566f23b34f9c05b77035221164a7ab7677784c4a54664f12fca22'
+ '0f4efddd25256e09c42b953caeee4b93eb49ecc6eaebf02e616b4dcbfdac9860c3d8a3d1a106325b2ebc4dbc6e08ac46702abcb67a06737227ccb052aaa2a067'
'888ab01bc6e09beb08d7126472c34c9e1aa35ea34e62a09e900ae34c93b1de2fcc988586efd8d0dc962393974f45c77b206d59a86cf53e370f061bf9a1b1a862'
'89f9b2d3918c679ce4f76c2b10dc7fcb7e04f1925a5f92542f06891de2a123a91df7eb67fd4ce71506a8132f5440b3560b7bb667e1c1813944b115c1dfe35e3f'
'b993a42c5534582631f7b379d54f6abc37e3aaa56ecf869a6d86ff14ae5a52628f4e447b6a30751bc1c14c30cec63a5c6d0aa268362d235ed477b639cac3a219'
@@ -255,6 +259,8 @@ package_systemd() {
install -Dm644 "$srcdir/loader.conf" "$pkgdir"/usr/share/systemd/bootctl/loader.conf
install -Dm644 "$srcdir/splash-parabola.bmp" "$pkgdir"/usr/share/systemd/bootctl/splash-parabola.bmp
+ install -Dm644 "$srcdir/systemd-sysusers.hook" "$pkgdir/usr/share/libalpm/hooks/systemd-sysusers.hook"
+ install -Dm644 "$srcdir/systemd-tmpfiles.hook" "$pkgdir/usr/share/libalpm/hooks/systemd-tmpfiles.hook"
install -Dm644 "$srcdir/udev-hwdb.hook" "$pkgdir/usr/share/libalpm/hooks/udev-hwdb.hook"
# overwrite the systemd-user PAM configuration with our own
diff --git a/libre/systemd/systemd-sysusers.hook b/libre/systemd/systemd-sysusers.hook
new file mode 100644
index 000000000..b0888d7cf
--- /dev/null
+++ b/libre/systemd/systemd-sysusers.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/sysusers.d/*.conf
+
+[Action]
+Description = Updating system user accounts...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-sysusers "/$f" ; done'
+NeedsTargets
diff --git a/libre/systemd/systemd-tmpfiles.hook b/libre/systemd/systemd-tmpfiles.hook
new file mode 100644
index 000000000..a2c5e3ef0
--- /dev/null
+++ b/libre/systemd/systemd-tmpfiles.hook
@@ -0,0 +1,11 @@
+[Trigger]
+Type = File
+Operation = Install
+Operation = Upgrade
+Target = usr/lib/tmpfiles.d/*.conf
+
+[Action]
+Description = Creating temporary files...
+When = PostTransaction
+Exec = /bin/sh -c 'while read -r f; do /usr/bin/systemd-tmpfiles --create "/$f"; done'
+NeedsTargets