| 
									
										
										
										
											2021-01-24 16:12:56 +03:00
										 |  |  | # Adapted from the Arch Linux systemd build script. | 
					
						
							|  |  |  | # Maintainer: Jack L. Frost <fbt@fleshless.org> | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  | pkgbase=systemd-libs | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | pkgname=('systemd-libs-systemd' 'systemd-libs-udev') | 
					
						
							| 
									
										
										
										
											2021-10-28 22:50:59 +03:00
										 |  |  | _tag='f1d37a5c491d85255e9996960dc2889a15022b78' # git rev-parse v${pkgver} | 
					
						
							| 
									
										
										
										
											2022-01-22 12:03:48 +03:00
										 |  |  | pkgver=250.3 | 
					
						
							| 
									
										
										
										
											2021-10-28 22:50:59 +03:00
										 |  |  | pkgrel=1 | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | arch=('x86_64') | 
					
						
							|  |  |  | url='https://www.github.com/systemd/systemd' | 
					
						
							|  |  |  | makedepends=('acl' 'cryptsetup' 'docbook-xsl' 'gperf' 'lz4' 'xz' 'pam' 'libelf' | 
					
						
							|  |  |  |              'intltool' 'iptables' 'kmod' 'libcap' 'libidn2' 'libgcrypt' | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |              'libmicrohttpd' 'libxcrypt' 'libxslt' 'util-linux' 'linux-api-headers' | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |              'python-lxml' 'quota-tools' 'shadow' 'gnu-efi-libs' 'git' | 
					
						
							|  |  |  |              'meson' 'libseccomp' 'pcre2' 'audit' 'kexec-tools' 'libxkbcommon' | 
					
						
							| 
									
										
										
										
											2021-10-28 22:50:59 +03:00
										 |  |  |              'bash-completion' 'p11-kit' 'python-jinja') | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | options=('strip') | 
					
						
							| 
									
										
										
										
											2021-10-28 22:50:59 +03:00
										 |  |  | #validpgpkeys=('63CDA1E5D3FC22B998D20DD6327F26951A015CC4'  # Lennart Poettering <lennart@poettering.net> | 
					
						
							|  |  |  | #              '5C251B5FC54EB2F80F407AAAC54CA336CFEB557E') # Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 
					
						
							|  |  |  | source=("git+https://github.com/systemd/systemd-stable#tag=${_tag}" | 
					
						
							|  |  |  |         "git+https://github.com/systemd/systemd#tag=v${pkgver%.*}" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:30:03 +03:00
										 |  |  |         '0001-Use-Arch-Linux-device-access-groups.patch') | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | _backports=( | 
					
						
							| 
									
										
										
										
											2021-10-28 22:50:59 +03:00
										 |  |  |   # coredumpctl: stop truncating information about coredump | 
					
						
							|  |  |  |   '473627e1c9fcdf8f819ced2bb79cb7e9ff598b0c' | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Revert "core: Check unit start rate limiting earlier" | 
					
						
							|  |  |  |   '4fa9d8f14523982482386d398d2b2669902f2098' | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | _reverts=( | 
					
						
							|  |  |  | ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | prepare() { | 
					
						
							| 
									
										
										
										
											2021-01-24 14:14:09 +03:00
										 |  |  |   cd "systemd-stable" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   # add upstream repository for cherry-picking | 
					
						
							|  |  |  |   git remote add -f upstream ../systemd | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   local _c | 
					
						
							|  |  |  |   for _c in "${_backports[@]}"; do | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     git log --oneline -1 "${_c}" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |     git cherry-pick -n "${_c}" | 
					
						
							|  |  |  |   done | 
					
						
							|  |  |  |   for _c in "${_reverts[@]}"; do | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     git log --oneline -1 "${_c}" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |     git revert -n "${_c}" | 
					
						
							|  |  |  |   done | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # Replace cdrom/dialout/tape groups with optical/uucp/storage | 
					
						
							|  |  |  |   patch -Np1 -i ../0001-Use-Arch-Linux-device-access-groups.patch | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | build() { | 
					
						
							|  |  |  |   local _timeservers=({0..3}.arch.pool.ntp.org) | 
					
						
							|  |  |  |   local _nameservers=( | 
					
						
							|  |  |  |     # We use these public name services, ordered by their | 
					
						
							|  |  |  |     # privacy policy (hopefully): | 
					
						
							|  |  |  |     #  * Cloudflare (https://1.1.1.1/) | 
					
						
							|  |  |  |     #  * Quad9 without filtering (https://www.quad9.net/) | 
					
						
							|  |  |  |     #  * Google (https://developers.google.com/speed/public-dns/) | 
					
						
							|  |  |  |     1.1.1.1 | 
					
						
							|  |  |  |     9.9.9.10 | 
					
						
							|  |  |  |     8.8.8.8 | 
					
						
							|  |  |  |     2606:4700:4700::1111 | 
					
						
							|  |  |  |     2620:fe::10 | 
					
						
							|  |  |  |     2001:4860:4860::8888 | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   local _meson_options=( | 
					
						
							|  |  |  |     -Dversion-tag="${pkgver}-${pkgrel}-arch" | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     -Dmode=release | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     -Dgnu-efi=true | 
					
						
							|  |  |  |     -Dima=false | 
					
						
							|  |  |  |     -Dlibidn2=true | 
					
						
							|  |  |  |     -Dlz4=true | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     -Dman=true | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     # We disable DNSSEC by default, it still causes trouble: | 
					
						
							|  |  |  |     # https://github.com/systemd/systemd/issues/10579 | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |     -Ddbuspolicydir=/usr/share/dbus-1/system.d | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     -Ddefault-dnssec=no | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |     -Ddefault-hierarchy=hybrid | 
					
						
							|  |  |  |     -Ddefault-kill-user-processes=false | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     -Ddefault-locale=C | 
					
						
							|  |  |  |     -Ddns-over-tls=openssl | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |     -Dfallback-hostname='archlinux' | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |     -Dnologin-path=/usr/bin/nologin | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |     -Dntp-servers="${_timeservers[*]}" | 
					
						
							|  |  |  |     -Ddns-servers="${_nameservers[*]}" | 
					
						
							|  |  |  |     -Drpmmacrosdir=no | 
					
						
							|  |  |  |     -Dsysvinit-path= | 
					
						
							|  |  |  |     -Dsysvrcnd-path= | 
					
						
							|  |  |  |   ) | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-24 14:14:09 +03:00
										 |  |  |   arch-meson "systemd-stable" build "${_meson_options[@]}" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   ninja -C build | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  | #check() { meson test -C build; } | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | package_systemd-libs-systemd() { | 
					
						
							|  |  |  |   pkgdesc='systemd client libraries' | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |   depends=('glibc' 'libcap' 'libgcrypt' 'lz4' 'xz' 'zstd') | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  |   license=('LGPL2.1') | 
					
						
							| 
									
										
										
										
											2021-01-24 16:06:25 +03:00
										 |  |  |   provides=('libsystemd' 'libsystemd.so' 'systemd-libs') | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |   conflicts=('libsystemd') | 
					
						
							|  |  |  |   replaces=('libsystemd') | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   DESTDIR="$srcdir/full-install" meson install -C build | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   install -d -m0755 "$pkgdir"/usr/lib | 
					
						
							| 
									
										
										
										
											2021-01-24 14:07:58 +03:00
										 |  |  |   cp --archive "$srcdir/full-install/usr/lib/"lib{nss,systemd}*.so* "$pkgdir/usr/lib/" | 
					
						
							| 
									
										
										
										
											2021-03-08 01:08:45 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   install -d -m0755 "$pkgdir"/usr/lib/include | 
					
						
							|  |  |  |   cp --archive "$srcdir/full-install/usr/include/systemd" "$pkgdir/usr/include/" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package_systemd-libs-udev() { | 
					
						
							|  |  |  |   pkgdesc="udev client libraries" | 
					
						
							|  |  |  |   depends=('glibc' 'libcap' 'libgcrypt' 'lz4' 'xz') | 
					
						
							|  |  |  |   license=('LGPL2.1') | 
					
						
							|  |  |  |   provides=('libudev' 'libudev.so') | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |   # udev libs | 
					
						
							|  |  |  |   install -d -m0755 "$pkgdir"/usr/lib | 
					
						
							|  |  |  |   cp --archive "$srcdir/full-install/usr/lib/"libudev* "$pkgdir/usr/lib/" | 
					
						
							| 
									
										
										
										
											2021-03-08 01:08:45 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  |   install -d -m0755 "$pkgdir"/usr/include | 
					
						
							|  |  |  |   cp --archive "$srcdir/full-install/usr/include/libudev.h" "$pkgdir/usr/include/" | 
					
						
							| 
									
										
										
										
											2019-03-25 09:12:36 +03:00
										 |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2019-03-25 09:30:03 +03:00
										 |  |  | sha1sums=('SKIP' | 
					
						
							|  |  |  |           'SKIP' | 
					
						
							| 
									
										
										
										
											2022-01-22 12:09:34 +03:00
										 |  |  |           'f21a39d961d1d1943aa02b4f9f276d01f74424ef') |