summarylogtreecommitdiffstats
path: root/PKGBUILD
diff options
context:
space:
mode:
authorRanieri Althoff2019-11-19 17:03:47 -0300
committerRanieri Althoff2019-11-19 17:03:47 -0300
commitd1ba5e4676a8c3d6d060b93465c842c589768190 (patch)
treeec2e3fb5a0d8e165be00592c8b5f00a95b97adc4 /PKGBUILD
parenta69a62d288e81cbd10c47f8b361c2e59d8a2b82d (diff)
downloadaur-d1ba5e4676a8c3d6d060b93465c842c589768190.tar.gz
systemd-light 243.162-2
- fixes packaging issues with alternative dependencies - fixes .SRCINFO
Diffstat (limited to 'PKGBUILD')
-rw-r--r--PKGBUILD58
1 files changed, 30 insertions, 28 deletions
diff --git a/PKGBUILD b/PKGBUILD
index 2baa2386dd6..5fc433604eb 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,7 +33,7 @@ pkgname=('systemd-light' 'systemd-light-libs')
# Can be from either systemd or systemd-stable
_commit='e51d9bf9e5ac5a6618c175cd9b5cfdc6733cd5d1'
pkgver=243.162
-pkgrel=1
+pkgrel=2
arch=('x86_64')
url='https://www.github.com/systemd/systemd'
makedepends=('acl' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf'
@@ -278,31 +278,33 @@ package_systemd-light() {
etc/udev/udev.conf)
install=systemd.install
- if [ "$_backlight" != "system" -a "$_backlight" != "none" ]; then
- optdepends+=("${_backlight}: replacement for systemd-backlight")
- fi
-
- if [ "$_bootloader" != "system" -a "$_bootloader" != "none" ]; then
- optdepends+=("${_bootloader}: replacement for bootctl")
- fi
-
- if [ "$_network" = "systemd" ]; then
- backup+=(etc/systemd/networkd.conf)
- elif [ "$_network" != "none" ]; then
- optdepends+=("${_network}: replacement for systemd-networkd")
- fi
-
- if [ "$_resolver" = "systemd" ]; then
- backup+=(etc/systemd/resolved.conf)
- elif [ "$_resolver" != "none" ]; then
- optdepends+=("${_resolver}: replacement for systemd-resolved")
- fi
-
- if [ "$_timesync" = "systemd" ]; then
- backup+=(etc/systemd/timesyncd.conf)
- elif [ "$_timesync" != "none" ]; then
- optdepends+=("${_resolver}: replacement for systemd-timesyncd")
- fi
+ case "$_backlight" in
+ "systemd"|"none") ;;
+ *) optdepends+=("${_backlight}: replacement for systemd-backlight");;
+ esac
+
+ case "$_bootloader" in
+ "systemd"|"none") ;;
+ *) optdepends+=("${_bootloader}: replacement for bootctl");;
+ esac
+
+ case "$_network" in
+ "systemd") backup+=(etc/systemd/networkd.conf);;
+ "none") ;;
+ *) optdepends+=("${_network}: replacement for systemd-networkd");;
+ esac
+
+ case "$_resolver" in
+ "systemd") backup+=(etc/systemd/resolved.conf);;
+ "none") ;;
+ *) optdepends+=("${_resolver}: replacement for systemd-resolved");;
+ esac
+
+ case "$_timesync" in
+ "systemd") backup+=(etc/systemd/timesyncd.conf);;
+ "none") ;;
+ *) optdepends+=("${_timesync}: replacement for systemd-timesyncd");;
+ esac
for opt in seccomp selinux smack; do
if [ "$(bool_opt "$opt" "${_security[@]}")" = "true" ]; then
@@ -329,10 +331,10 @@ package_systemd-light() {
rm "$pkgdir"/usr/bin/{halt,init,poweroff,reboot,runlevel,shutdown,telinit}
# files shipped with systemd-resolvconf
- rm "$pkgdir"/usr/{bin/resolvconf,share/man/man1/resolvconf.1}
+ rm -f "$pkgdir"/usr/{bin/resolvconf,share/man/man1/resolvconf.1}
# avoid a potential conflict with [core]/filesystem
- rm "$pkgdir"/usr/share/factory/etc/{issue,nsswitch.conf}
+ rm -f "$pkgdir"/usr/share/factory/etc/{issue,nsswitch.conf}
sed -i -e '/^C \/etc\/nsswitch\.conf/d' \
-e '/^C \/etc\/issue/d' "$pkgdir"/usr/lib/tmpfiles.d/etc.conf