Репозиторий Sisyphus
Последнее обновление: 18 ноября 2017 | Пакетов: 17921 | Посещений: 10391992
en ru br
Репозитории ALT

Группа :: Система/Настройка/Загрузка и инициализация
Пакет: systemd

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define _localstatedir %_var
%add_findreq_skiplist %_x11sysconfdir/xinit.d/*

%def_enable elfutils
%def_enable libcryptsetup
%def_enable logind
%def_enable vconsole
%def_enable quotacheck
%def_enable randomseed
%def_enable coredump
%def_enable gcrypt
%def_disable qrencode
%def_enable microhttpd
%def_enable gnutls
%def_enable libcurl
%def_enable libidn
%def_disable libidn2
%def_enable libiptc
%def_enable polkit
%def_enable efi
%def_enable networkd
%def_enable timesyncd
%def_enable resolve
%def_disable gnuefi
%def_enable utmp
%def_enable xz
%def_enable zlib
%def_enable bzip2
%def_enable lz4

%def_disable smack
%def_enable seccomp
%def_disable ima
%def_enable selinux
%def_disable apparmor

%define hierarchy hybrid

%def_enable sysusers
%def_disable ldconfig
%def_enable firstboot

%if_enabled sysusers
%def_enable ldconfig
%endif

%ifarch ia64 %ix86 ppc64 x86_64
%define mmap_min_addr 65536
%else
%define mmap_min_addr 32768
%endif

Name: systemd
# Epoch 1 is when systemd and journalctl are split.
# (Without it, we cannot specify the conflicts correctly
# for pkgs both from p7/t7 and Sisyphus
# so that older systemd from p7/t7 can be installed along with newer journalctl.)
Epoch: 1
Version: 235
Release: alt3
Summary: System and Session Manager
Url: https://www.freedesktop.org/wiki/Software/systemd
Group: System/Configuration/Boot and Init
License: LGPLv2.1+

Packager: Alexey Shabalin <shaba at altlinux.ru>

Source: %name-%version.tar
Source2: systemd-sysv-install
Source4: altlinux-openresolv.path
Source5: altlinux-openresolv.service
Source6: altlinux-libresolv.path
Source7: altlinux-libresolv.service
Source8: altlinux-clock-setup.service
Source14: systemd-user.pam
Source15: systemd-logind-launch
Source16: altlinux-kmsg-loglevel.service
Source17: altlinux-save-dmesg.service
Source18: altlinux-save-dmesg
Source19: udevd.init
Source20: udevd-final.init
Source21: 40-ignore-remove.rules
Source22: scsi_id.config
Source23: var-lock.mount
Source24: var-run.mount
Source25: udevd-final.service
Source27: altlinux-first_time.service
Source28: systemd-tmpfiles.filetrigger
Source30: 49-coredump-null.conf
Source31: 60-raw.rules
Source33: udev.filetrigger
# ALTLinux's default preset policy
Source34: 85-display-manager.preset
Source35: 90-default.preset
Source36: 99-default-disable.preset
Source37: 85-networkd.preset
Source38: 85-timesyncd.preset

# udev rule generator

Source41: rule_generator.functions
Source42: write_net_rules
Source43: 75-persistent-net-generator.rules
Source44: write_cd_rules
Source45: 75-cd-aliases-generator.rules

Patch1: %name-snapshot.patch
Patch2: %name-alt-patches.patch

# bash3 completions

Source51: hostnamectl-bash3
Source52: journalctl-bash3
Source53: localectl-bash3
Source54: loginctl-bash3
Source55: systemctl-bash3
Source56: systemd-analyze-bash3
Source57: coredumpctl-bash3
Source58: timedatectl-bash3
Source59: udevadm-bash3
Source60: bootctl-bash3
Source61: busctl-bash3
Source62: machinectl-bash3
Source63: systemd-delta-bash3
Source64: systemd-cat-bash3
Source65: systemd-cgls-bash3
Source66: systemd-cgtop-bash3
Source67: systemd-detect-virt-bash3

# simpleresolv

Source68: altlinux-simpleresolv.path
Source69: altlinux-simpleresolv.service

%define dbus_ver 1.4.6

BuildPreReq: rpm-build-xdg meson
BuildRequires: glibc-kernheaders
BuildRequires: intltool >= 0.40.0
BuildRequires: gperf
BuildRequires: libcap-devel libcap-utils
BuildRequires: libpam-devel
BuildRequires: libacl-devel acl
BuildRequires: xsltproc
BuildRequires: docbook-style-xsl docbook-dtds
BuildRequires: libdbus-devel >= %dbus_ver
%{?_enable_seccomp:BuildRequires: pkgconfig(libseccomp) >= 1.0.0}
%{?_enable_selinux:BuildRequires: pkgconfig(libselinux) >= 2.1.9}
%{?_enable_apparmor:BuildRequires: pkgconfig(libapparmor)}
%{?_enable_elfutils:BuildRequires: elfutils-devel >= 0.158}
BuildRequires: libaudit-devel
%{?_enable_xz:BuildRequires: pkgconfig(liblzma)}
%{?_enable_zlib:BuildRequires: pkgconfig(zlib)}
%{?_enable_bzip2:BuildRequires: bzlib-devel}
%{?_enable_lz4:BuildRequires: pkgconfig(liblz4)}
BuildRequires: libkmod-devel >= 15 kmod
BuildRequires: kexec-tools
BuildRequires: quota
BuildRequires: pkgconfig(blkid) >= 2.24
# temporarily lower libmount version check
# util-linux 2.27.1's configure.ac still claims to be 2.27.0, which breaks our version check
BuildRequires: libmount-devel >= 2.30
BuildRequires: pkgconfig(mount) >= 2.27
BuildRequires: pkgconfig(xkbcommon) >= 0.3.0
BuildRequires: libkeyutils-devel

%{?_enable_libcryptsetup:BuildRequires: libcryptsetup-devel >= 1.6.0}
%{?_enable_gcrypt:BuildRequires: libgcrypt-devel >= 1.4.5 libgpg-error-devel >= 1.12}
%{?_enable_qrencode:BuildRequires: libqrencode-devel}
%{?_enable_microhttpd:BuildRequires: pkgconfig(libmicrohttpd) >= 0.9.33}
%{?_enable_gnutls:BuildRequires: pkgconfig(gnutls) >= 3.1.4}
%{?_enable_libcurl:BuildRequires: pkgconfig(libcurl) >= 7.32.0}
%{?_enable_libidn:BuildRequires: pkgconfig(libidn)}
%{?_enable_libidn2:BuildRequires: pkgconfig(libidn2) >= 2.0.0}
%{?_enable_libiptc:BuildRequires: pkgconfig(libiptc)}
%{?_enable_polkit:BuildRequires: pkgconfig(polkit-gobject-1)}
%{?_enable_gnuefi:BuildRequires: gnu-efi}

# for make check

#BuildRequires: /proc
#BuildRequires: lz4

Requires: dbus >= %dbus_ver
Requires: udev = %EVR
Requires: filesystem >= 2.3.10-alt1
Requires: agetty
Requires: acl
Requires: util-linux >= 2.27.1
Requires: libidn >= 1.33-alt2

# Requires: selinux-policy >= 3.8.5

Requires: libsystemd-shared = %EVR
Requires: %name-utils = %EVR
Requires: %name-services = %EVR
Requires: pam_%name = %EVR
Requires: journalctl = %EVR

Requires: libnss-myhostname = %EVR

# /*bin/journalctl is in a subpackage.

# We want to be able to install a new journalctl and use the old (stable) systemd.
Conflicts: journalctl < %EVR

# Copy from SysVinit

PreReq: coreutils
Requires: /sbin/sulogin
Requires: sysvinit-utils

Obsoletes: systemd-units < 0:43-alt1
Provides: systemd-units = %EVR
Provides: syslogd-daemon
Provides: /sbin/systemctl
Provides: /bin/systemctl

%description
systemd is a system and session manager for Linux, compatible with
SysV and LSB init scripts. systemd provides aggressive parallelization
capabilities, uses socket and D-Bus activation for starting services,
offers on-demand starting of daemons, keeps track of processes using
Linux cgroups, supports snapshotting and restoring of the system
state, maintains mount and automount points and implements an
elaborate transactional dependency-based service control logic. It can
work as a drop-in replacement for sysvinit.

%package -n libsystemd-shared
Group: System/Libraries
Summary: Private Systemd Shared Library
Conflicts: systemd-services < %EVR
Conflicts: systemd < %EVR
Conflicts: journalctl < %EVR

%description -n libsystemd-shared
The libsystemd-shared private library for link as many binaries as possible with it,
to save storage space.

%package -n libsystemd
Group: System/Libraries
Summary: Systemd Library

Provides: libsystemd-daemon = %EVR
Provides: libsystemd-login = %EVR
Provides: libsystemd-id128 = %EVR
Provides: libsystemd-journal = %EVR

Obsoletes: libsystemd-daemon < %EVR
Obsoletes: libsystemd-login < %EVR
Obsoletes: libsystemd-id128 < %EVR
Obsoletes: libsystemd-journal < %EVR

%description -n libsystemd
The libsystemd library provides a reference implementation of various
APIs for new-style daemons, as implemented by the systemd init system.


%package -n libsystemd-devel
Group: Development/C
Summary: Development headers for systemd Library
License: LGPLv2+ and MIT

Requires: libsystemd = %EVR

Provides: libsystemd-daemon-devel = %EVR
Provides: libsystemd-journal-devel = %EVR
Provides: libsystemd-login-devel = %EVR
Provides: libsystemd-id128-devel = %EVR
Provides: systemd-devel = %EVR

Obsoletes: libsystemd-daemon-devel < %EVR
Obsoletes: libsystemd-journal-devel < %EVR
Obsoletes: libsystemd-login-devel < %EVR
Obsoletes: libsystemd-id128-devel < %EVR
Obsoletes: systemd-devel < %EVR

%description -n libsystemd-devel
The libsystemd library provides a reference implementation of various
APIs for new-style daemons, as implemented by the systemd init system.

%package -n libnss-systemd
Group: System/Libraries
Summary: nss-systemd providing UNIX user and group name resolution for dynamic users and groups
Requires(pre): chrooted >= 0.3.5-alt1 chrooted-resolv sed
Requires(postun): chrooted >= 0.3.5-alt1 sed

%description -n libnss-systemd
nss-systemd is a plug-in module for the GNU Name Service Switch (NSS) functionality of the
GNU C Library glibc, providing UNIX user and group name resolution for dynamic users and
groups allocated through the DynamicUser= option in systemd unit files.

This module also ensures that the root and nobody users and groups (i.e. the users/groups with the UIDs/GIDs
0 and 65534) remain resolvable at all times, even if they aren't listed in /etc/passwd or
/etc/group, or if these files are missing.

To activate the NSS module, add systemd to the lines starting with
passwd: and group: in /etc/nsswitch.conf.

passwd: files systemd
group: files systemd


%package -n libnss-myhostname
Group: System/Libraries
Summary: nss-myhostname provide hostname resolution for the locally configured system hostname
Requires(pre): chrooted >= 0.3.5-alt1 chrooted-resolv sed
Requires(postun): chrooted >= 0.3.5-alt1 sed

%description -n libnss-myhostname
nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
functionality of the GNU C Library (glibc) providing host name
resolution for the locally configured system hostname as returned by
gethostname(2). Various software relies on an always resolvable local
host name. When using dynamic hostnames this is usually achieved by
patching /etc/hosts at the same time as changing the host name. This
however is not ideal since it requires a writable /etc file system and
is fragile because the file might be edited by the administrator at
the same time. nss-myhostname simply returns all locally configure
public IP addresses, or -- if none are configured -- the IPv4 address
127.0.0.2 (wich is on the local loopback) and the IPv6 address ::1
(which is the local host) for whatever system hostname is configured
locally. Patching /etc/hosts is thus no longer necessary.

It is necessary to change "hosts" in /etc/nsswitch.conf to
hosts: files myhostname

%package -n libnss-mymachines
Group: System/Libraries
Summary: libnss-mymachines is plugin for local system host name resolution
Requires(pre): chrooted >= 0.3.5-alt1 chrooted-resolv sed
Requires(postun): chrooted >= 0.3.5-alt1 sed
Requires: dbus >= %dbus_ver
Requires: %name-services = %EVR

%description -n libnss-mymachines
nss-mymachines for automatically resolves the names
of all local registered containers to their respective IP addresses.

It is necessary to change "hosts" in /etc/nsswitch.conf to
hosts: files mymachines

%package -n libnss-resolve
Group: System/Libraries
Summary: nss-resolve is plugin for resolve hostnames via systemd-resolved
Requires(pre): chrooted >= 0.3.5-alt1 chrooted-resolv sed
Requires(postun): chrooted >= 0.3.5-alt1 sed
Requires: dbus >= %dbus_ver
Requires: %name-networkd = %EVR

%description -n libnss-resolve
NSS module "nss-resolve" has been added which can be used
instead of glibc's own "nss-dns" to resolve hostnames via
systemd-resolved. Hostnames, addresses and arbitrary RRs may
be resolved via systemd-resolved D-Bus APIs. In contrast to
the glibc internal resolver systemd-resolved is aware of
multi-homed system, and keeps DNS server and caches separate
and per-interface.

It is necessary to change "hosts" in /etc/nsswitch.conf to
hosts: files resolve

%package -n pam_%name
Group: System/Base
Summary: Register user sessions in the systemd login manager
Requires: dbus >= %dbus_ver
Conflicts: %name < 1:216-alt1

%description -n pam_%name
pam_systemd registers user sessions with the systemd login manager
systemd-logind.service, and hence the systemd control group hierarchy.

%package sysvinit
Group: System/Configuration/Boot and Init
Summary: systemd System V init tools
Requires: %name = %EVR
# Obsoletes: SysVinit
Provides: SysVinit = 2.88-alt0.1
#Obsoletes:      upstart
Conflicts: upstart
Conflicts: SysVinit
BuildArch: noarch

%description sysvinit
Drop-in replacement for the System V init tools of systemd.

%package utils
Group: System/Configuration/Boot and Init
Summary: systemd utils
PreReq: libsystemd-shared = %EVR
Conflicts: %name < %EVR

%description utils
This package contains utils from systemd:
- systemd-binfmt
- systemd-modules-load
- systemd-sysctl
- systemd-tmpfiles
- systemd-firstboot

%package services
Group: System/Configuration/Boot and Init
Summary: systemd services
Conflicts: %name < %EVR
Requires: pam_%name = %EVR
Requires: %name-utils = %EVR
Requires: libsystemd-shared = %EVR
Requires: dbus >= %dbus_ver
Conflicts: service <= 0.5.25-alt1
Conflicts: chkconfig <= 1.3.59-alt3

%description services
This package contains dbus services and utils from systemd:
- systemd-hostnamed and hostnamectl
- systemd-localed and localectl
- systemd-logind and loginctl
- systemd-machine and machinectl
- systemd-timedated and timedatectl

%package networkd
Group: System/Base
Summary: System service that manages networks
Conflicts: %name < 1:214-alt13
Requires: %name = %EVR
Requires: iproute2
Provides: network-config-subsystem

%description networkd
systemd-networkd is a system service that manages networks.
It detects and configures network devices as they appear,
as well as creating virtual network devices.

%package timesyncd
Group: System/Configuration/Other
Summary: Network Time Synchronization
Conflicts: %name < 1:214-alt13
Requires: %name-networkd = %EVR
Provides: ntp-client
Provides: ntp-server

%description timesyncd
systemd-timesyncd is a system service that may be used
to synchronize the local system clock with a Network Time Protocol Server.

%package container
Summary: Tools for containers and VMs
Group: System/Configuration/Other
Requires: %name = %EVR
#Requires: libnss-mymachines = %EVR
Provides: /lib/systemd/systemd-machined

%description container
Systemd tools to spawn and manage containers and virtual machines.

This package contains systemd-nspawn, machinectl, systemd-machined,
and systemd-importd.

%package analyze
Group: System/Configuration/Boot and Init
Summary: Analyze tool for systemd.
Requires: %name = %EVR

%description analyze
Analyze tool for systemd.

%package journal-gateway
Group: System/Servers
Summary: Journal Gateway Daemon
Requires: %name = %EVR

%description journal-gateway
This service provides access to the journal via HTTP and JSON.

%package -n journalctl
Group: System/Configuration/Boot and Init
Summary: Tool to query the journal from systemd.
Provides: /bin/journalctl
Provides: /sbin/journalctl
PreReq: libsystemd-shared = %EVR
# File conflict with the releases before splitting out journalctl.
# 0:208-alt3 was the first release when the pkg was split in Sisyphus.
# The split pkgs for p7/t7 have lesser releases, so they couldn't coexist
# with newer journalctl due to this conflict. But Epoch helps us:
# there will be split pkgs for p7/t7 with Epoch 1, and hecne
# this conflict declaration won't apply!
Conflicts: %name < 0:208-alt3

%description -n journalctl
Tool to query the journal from systemd.

%package coredump
Group: System/Servers
Summary: systemd-coredump and coredumpctl utils
Requires: %name = %EVR

%description coredump
systemd-coredump and coredumpctl utils.

%package stateless
Group: System/Servers
Summary: systems that boot up with an empty /etc directory
Requires: %name = %EVR

%description stateless
This package contains:
- systemd-sysusers util and unit
- ldconfig unit
- systemd-update-done unit

systemd-sysusers tool creates system users and groups in /etc/passwd and
/etc/group, based on static declarative system user/group
definitions in /lib/sysusers.d/. This is useful to
enable factory resets and volatile systems that boot up with
an empty /etc directory, and thus need system users and
groups created during early boot. systemd now also ships
with two default sysusers.d/ files for the most basic
users and groups systemd and the core operating system
require.

%package -n bash-completion-%name
Summary: Bash completion for systemd utils
Group: Shells
BuildArch: noarch
Requires: bash-completion
Requires: %name = %EVR
# Not to loose it on upgrades after the split.
Requires: bash-completion-journalctl = %EVR

%description -n bash-completion-%name
Bash completion for %name.

%package -n zsh-completion-%name
Summary: Zsh completion for systemd utils
Group: Shells
BuildArch: noarch
Requires: %name = %EVR
Requires: zsh-completion-journalctl = %EVR

%description -n zsh-completion-%name
Zsh completion for %name.

%package -n bash-completion-journalctl
Summary: Bash completion for journalctl from systemd
Group: Shells
BuildArch: noarch
Requires: bash-completion
Requires: journalctl = %EVR
Conflicts: journalctl < %EVR
# File conflict with the releases before splitting out journalctl.
# 0:208-alt3 was the first release when the pkg was split in Sisyphus.
Conflicts: bash-completion-%name < 0:208-alt3

%description -n bash-completion-journalctl
Bash completion for journalctl from systemd.

%package -n zsh-completion-journalctl
Summary: Zsh completion for journalctl from systemd
Group: Shells
BuildArch: noarch
Requires: journalctl = %EVR
Conflicts: zsh-completion-%name < 1:214-alt14

%description -n zsh-completion-journalctl
Zsh completion for journalctl from systemd

%package -n udev
Group: System/Configuration/Hardware
Summary: udev - an userspace implementation of devfs
License: GPLv2+
PreReq: shadow-utils dmsetup kmod >= 15 util-linux >= 2.27.1 losetup >= 2.19.1
PreReq: udev-rules = %EVR
PreReq: udev-hwdb = %EVR
PreReq: systemd-utils = %EVR
Provides: hotplug = 2004_09_23-alt18
Obsoletes: hotplug
Conflicts: systemd < %EVR
Conflicts: util-linux <= 2.22-alt2
Conflicts: DeviceKit

%description -n udev
Starting with the 2.5 kernel, all physical and virtual devices in a
system are visible to userspace in a hierarchal fashion through
sysfs. /sbin/hotplug provides a notification to userspace when any
device is added or removed from the system. Using these two features,
a userspace implementation of a dynamic /dev is now possible that can
provide a very flexible device naming policy

%package -n udev-extras
Summary: Extra rules and tools for udev
Group: System/Configuration/Hardware
License: GPLv2+
Requires: udev = %EVR

%description -n udev-extras
The udev-extras package contains an additional rules and tools
to create and identify devices

%package -n udev-rules
Summary: Rule files for udev
Group: System/Configuration/Hardware
License: GPLv2+
Provides: %_sysconfdir/udev/rules.d /lib/udev/rules.d
Conflicts: udev < %EVR
BuildArch: noarch

%description -n udev-rules
This package contains the default set of rule files used by udev,
which control names and permission of device files in /dev.  Rule
files which have corresponding symlinks in /lib/udev/initramfs-rules.d
are also used by the make-initrd package when creating initramfs images

%package -n udev-hwdb
Summary: Hardware database for udev
Group: System/Configuration/Hardware
License: GPLv2+
Provides: %_sysconfdir/udev/hwdb.d /lib/udev/hwdb.d
Conflicts: udev < %EVR
BuildArch: noarch

%description -n udev-hwdb
This package contains internal hardware database for udev.

%package -n udev-rule-generator-cdrom
Summary: CD rule generator for udev
Group: System/Configuration/Hardware
License: GPLv2+
BuildArch: noarch
PreReq: udev-rules = %EVR
PreReq: udev = %EVR
Provides: udev-rule-generator = %EVR
Obsoletes: udev-rule-generator < %EVR

%description -n udev-rule-generator-cdrom
This package contains CD rule generator for udev

%package -n udev-rule-generator-net
Summary: Net rule generator for udev
Group: System/Configuration/Hardware
License: GPLv2+
BuildArch: noarch
PreReq: udev-rules = %EVR
PreReq: udev = %EVR

%description -n udev-rule-generator-net
This package contains Net rule generator for udev

%package -n bash-completion-udev
Summary: Bash completion for udev utils
Group: Shells
BuildArch: noarch
Requires: bash-completion
Requires: udev = %EVR

%description -n bash-completion-udev
Bash completion for udev.

%package -n zsh-completion-udev
Summary: Zsh completion for udev utils
Group: Shells
BuildArch: noarch
Requires: udev = %EVR
Conflicts: zsh-completion-%name < 1:214-alt14

%description -n zsh-completion-udev
Zsh completion for udev.

%package -n libudev1
Summary: Shared library to access udev device information
Group: System/Libraries
License: LGPLv2.1+
Conflicts: libudev < 0:181-alt5

%description -n libudev1
This package provides shared library to access udev device information

%package -n libudev-devel
Summary: Libraries and headers for libudev
Group: Development/C
License: LGPLv2.1+
Requires: libudev1 = %EVR

%description -n libudev-devel
Shared library and headers for libudev

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build

%meson \
-Drootprefix="/" \
-Drootlibdir=/%_lib \
-Dpamlibdir=/%_lib/security \
-Dsplit-usr=true \
-Dsysvinit-path=%_initdir \
-Dsysvrcnd-path=%_sysconfdir/rc.d \
-Drc-local=%_sysconfdir/rc.d/rc.local \
-Ddebug-shell=/bin/bash \
-Dquotaon-path=/sbin/quotaon \
-Dquotacheck-path=/sbin/quotacheck \
-Dkill-path=/bin/kill \
-Dkmod-path=/bin/kmod \
-Dkexec-path=/sbin/kexec \
-Dsetcap-path=/sbin/setcap \
-Dsulogin-path=/sbin/sulogin \
-Dmount-path=/bin/mount \
-Dumount-path=/bin/umount \
-Dloadkeys-path=/bin/loadkeys \
-Dsetfont-path=/bin/setfont \
-Dtelinit-path=/sbin/telinit \
-Dsystem-uid-max=499 \
-Dsystem-gid-max=499 \
-Dtty-gid=5 \
%{?_enable_elfutils:-Delfutils=true} \
%{?_enable_xz:-Dxz=true} \
%{?_enable_zlib:-Dzlib=true} \
%{?_enable_bzip2:-Dbzip2=true} \
%{?_enable_lz4:-Dlz4=true} \
%{?_enable_libcryptsetup:-Dlibcryptsetup=true} \
%{?_enable_logind:-Dlogind=true} \
%{?_enable_vconsole:-Dvconsole=true} \
%{?_enable_quotacheck:-Dquotacheck=true} \
%{?_enable_randomseed:-Drandomseed=true} \
%{?_enable_coredump:-Dcoredump=true} \
%{?_enable_smack:-Dsmack=true} \
%{?_enable_gcrypt:-Dgcrypt=true} \
%{?_enable_qrencode:-Dqrencode=true} \
%{?_enable_microhttpd:-Dmicrohttpd=true} \
%{?_enable_gnutls:-Dgnutls=true} \
%{?_enable_libcurl:-Dlibcurl=true} \
%{?_enable_libidn:-Dlibidn=true} \
%{?_enable_libiptc:-Dlibiptc=true} \
%{?_enable_polkit:-Dpolkit=true} \
%{?_enable_efi:-Defi=true} \
%{?_enable_networkd:-Dnetworkd=true} \
%{?_enable_resolve:-Dresolve=true} \
-Ddns-servers="" \
%{?_enable_timesyncd:-Dtimesyncd=true} \
-Dntp-servers="" \
%{?_enable_sysusers:-Dsysusers=true} \
%{?_enable_ldconfig:-Dldconfig=true} \
%{?_enable_firstboot:-Dfirstboot=true} \
%{?_enable_gnuefi:-Dgnuefi=true} \
%{?_enable_seccomp:-Dseccomp=true} \
%{?_enable_ima:-Dima=true} \
%{?_enable_selinux:-Dselinux=true} \
%{?_enable_apparmor:-Dapparmor=true} \
%{?_enable_utmp:-Dutmp=true} \
-Ddefault-kill-user-processes=false \
-Ddefault-hierarchy=%hierarchy \
-Db_lto=true

%meson_build

%install
%meson_install


# remove .so file for the shared library, it's not supposed to be used

rm -f %buildroot/lib/systemd/libsystemd-shared.so
# remove systemd rpm macros
rm -f %buildroot/usr/lib/rpm/macros.d/macros.systemd

%find_lang %name

# Make sure these directories are properly owned

mkdir -p %buildroot%_unitdir/{basic,default,dbus,graphical,poweroff,rescue,reboot}.target.wants

install -m755 %SOURCE2 %buildroot/lib/systemd/systemd-sysv-install

ln -s rc-local.service %buildroot%_unitdir/local.service
install -m644 %SOURCE4 %buildroot%_unitdir/altlinux-openresolv.path
install -m644 %SOURCE5 %buildroot%_unitdir/altlinux-openresolv.service
install -m644 %SOURCE68 %buildroot%_unitdir/altlinux-simpleresolv.path
install -m644 %SOURCE69 %buildroot%_unitdir/altlinux-simpleresolv.service
ln -s ../altlinux-openresolv.path %buildroot%_unitdir/multi-user.target.wants
ln -s ../altlinux-simpleresolv.path %buildroot%_unitdir/multi-user.target.wants
install -m644 %SOURCE6 %buildroot%_unitdir/altlinux-libresolv.path
install -m644 %SOURCE7 %buildroot%_unitdir/altlinux-libresolv.service
ln -s ../altlinux-libresolv.path %buildroot%_unitdir/multi-user.target.wants
install -m644 %SOURCE8 %buildroot%_unitdir/altlinux-clock-setup.service
ln -s ../altlinux-clock-setup.service %buildroot%_unitdir/sysinit.target.wants
ln -s altlinux-clock-setup.service %buildroot%_unitdir/clock.service
install -m644 %SOURCE16 %buildroot%_unitdir/altlinux-kmsg-loglevel.service
ln -s ../altlinux-kmsg-loglevel.service %buildroot%_unitdir/sysinit.target.wants
install -m755 %SOURCE18 %buildroot/lib/systemd/altlinux-save-dmesg
install -m644 %SOURCE17 %buildroot%_unitdir/altlinux-save-dmesg.service
ln -s ../altlinux-save-dmesg.service %buildroot%_unitdir/basic.target.wants
install -m644 %SOURCE27 %buildroot%_unitdir/altlinux-first_time.service
ln -s ../altlinux-first_time.service %buildroot%_unitdir/basic.target.wants
ln -s systemd-random-seed.service %buildroot%_unitdir/random.service
ln -s systemd-reboot.service %buildroot%_unitdir/reboot.service
ln -s systemd-halt.service %buildroot%_unitdir/halt.service
ln -s systemd-tmpfiles-setup.service %buildroot%_unitdir/tmpfiles.service

# restore bind-mounts /var/run -> run and /var/lock -> /run/lock

# we don't have those directories symlinked
install -m644 %SOURCE23 %buildroot%_unitdir/var-lock.mount
install -m644 %SOURCE24 %buildroot%_unitdir/var-run.mount
ln -r -s %buildroot%_unitdir/var-lock.mount %buildroot%_unitdir/local-fs.target.wants
ln -r -s %buildroot%_unitdir/var-run.mount %buildroot%_unitdir/local-fs.target.wants

# turn off tmp.mount by default (ALT#29066)

rm -f %buildroot%_unitdir/tmp.mount
rm -f %buildroot%_unitdir/local-fs.target.wants/tmp.mount

install -m755 %SOURCE15 %buildroot/lib/systemd/systemd-logind-launch

find %buildroot \( -name '*.a' -o -name '*.la' \) -exec rm {} \;
mkdir -p %buildroot/{sbin,bin}
ln -r -s %buildroot/lib/systemd/systemd %buildroot/sbin/init
ln -r -s %buildroot/lib/systemd/systemd %buildroot/sbin/systemd
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/reboot
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/halt
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/poweroff
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/shutdown
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/telinit
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/runlevel

ln -r -s %buildroot/lib/systemd/systemd-{binfmt,modules-load,sysctl} %buildroot/sbin/
# for compatibility with older systemd pkgs which expected it at /sbin/:
ln -r -s %buildroot/bin/systemctl %buildroot/sbin/
ln -r -s %buildroot/bin/journalctl %buildroot/sbin/

rm -rf %buildroot%_docdir/systemd

# add defaults services

ln -r -s %buildroot%_unitdir/remote-fs.target %buildroot%_unitdir/multi-user.target.wants
ln -r -s %buildroot%_unitdir/machines.target %buildroot%_unitdir/multi-user.target.wants
ln -r -s %buildroot%_unitdir/systemd-quotacheck.service %buildroot%_unitdir/local-fs.target.wants
ln -r -s %buildroot%_unitdir/quotaon.service %buildroot%_unitdir/local-fs.target.wants

# create drop-in to prevent tty1 to be cleared

mkdir -p %buildroot%_unitdir/getty at tty1.service.d
cat > %buildroot%_unitdir/getty at tty1.service.d/noclear.conf << EOF
[Service]
# ensure tty1 isn't cleared
TTYVTDisallocate=no
EOF

# don't enable wall ask password service, it spams every console

rm -f %buildroot%_unitdir/multi-user.target.wants/systemd-ask-password-wall.path

# disable legacy services

ln -s /dev/null %buildroot%_unitdir/fbsetfont.service
ln -s /dev/null %buildroot%_unitdir/keytable.service
ln -s /dev/null %buildroot%_unitdir/killall.service
ln -s /dev/null %buildroot%_unitdir/single.service
ln -s /dev/null %buildroot%_unitdir/netfs.service

# Use mingetty as default

#%__subst 's,/sbin/agetty,/sbin/mingetty,'  %buildroot%_unitdir/getty at .service

# We create all wants links manually at installation time to make sure

# they are not owned and hence overriden by rpm after the used deleted
# them.
rm -r %buildroot%_sysconfdir/systemd/system/*.target.wants
rm -f %buildroot%_sysconfdir/systemd/system/display-manager.service

# And the default symlink we generate automatically based on inittab

rm -f %buildroot%_sysconfdir/systemd/system/default.target

# create modules.conf as a symlink to /etc/modules

mkdir -p %buildroot/lib/modules-load.d
mkdir -p %buildroot%_sysconfdir/modules-load.d
ln -r -s %buildroot%_sysconfdir/modules %buildroot%_sysconfdir/modules-load.d/modules.conf

# create /etc/sysctl.d/99-sysctl.conf as a symlink to /etc/sysctl.conf

mkdir -p %buildroot%_sysconfdir/sysctl.d
ln -r -s %buildroot%_sysconfdir/sysctl.conf %buildroot%_sysconfdir/sysctl.d/99-sysctl.conf

# Make sure directories in /var exist

mkdir -p %buildroot%_localstatedir/lib/systemd/coredump
mkdir -p %buildroot%_localstatedir/lib/systemd/catalog
mkdir -p %buildroot%_localstatedir/lib/systemd/backlight
mkdir -p %buildroot%_localstatedir/lib/systemd/rfkill
mkdir -p %buildroot%_localstatedir/lib/systemd/journal-upload
mkdir -p %buildroot%_logdir/journal
touch %buildroot%_localstatedir/lib/systemd/catalog/database
touch %buildroot%_sysconfdir/udev/hwdb.bin
touch %buildroot%_localstatedir/lib/systemd/random-seed
touch %buildroot%_localstatedir/lib/systemd/clock

# Add completion for bash3

mkdir -p %buildroot%_sysconfdir/bash_completion.d
rm -f %buildroot%_sysconfdir/bash_completion.d/*
rm -f %buildroot%_datadir/bash-completion/completions/*
install -m644 %SOURCE51 %buildroot%_sysconfdir/bash_completion.d/hostnamectl
install -m644 %SOURCE52 %buildroot%_sysconfdir/bash_completion.d/journalctl
install -m644 %SOURCE53 %buildroot%_sysconfdir/bash_completion.d/localectl
install -m644 %SOURCE54 %buildroot%_sysconfdir/bash_completion.d/loginctl
install -m644 %SOURCE55 %buildroot%_sysconfdir/bash_completion.d/systemctl
install -m644 %SOURCE56 %buildroot%_sysconfdir/bash_completion.d/systemd-analyze
install -m644 %SOURCE57 %buildroot%_sysconfdir/bash_completion.d/coredumpctl
install -m644 %SOURCE58 %buildroot%_sysconfdir/bash_completion.d/timedatectl
install -m644 %SOURCE59 %buildroot%_sysconfdir/bash_completion.d/udevadm
install -m644 %SOURCE60 %buildroot%_sysconfdir/bash_completion.d/bootctl
install -m644 %SOURCE61 %buildroot%_sysconfdir/bash_completion.d/busctl
install -m644 %SOURCE62 %buildroot%_sysconfdir/bash_completion.d/machinectl
install -m644 %SOURCE63 %buildroot%_sysconfdir/bash_completion.d/systemd-delta
install -m644 %SOURCE64 %buildroot%_sysconfdir/bash_completion.d/systemd-cat
install -m644 %SOURCE65 %buildroot%_sysconfdir/bash_completion.d/systemd-cgls
install -m644 %SOURCE66 %buildroot%_sysconfdir/bash_completion.d/systemd-cgtop
install -m644 %SOURCE67 %buildroot%_sysconfdir/bash_completion.d/systemd-detect-virt

# Create new-style configuration files so that we can ghost-own them

touch %buildroot%_sysconfdir/hostname
touch %buildroot%_sysconfdir/vconsole.conf
touch %buildroot%_sysconfdir/locale.conf
touch %buildroot%_sysconfdir/machine-info

# fix pam.d/systemd-user for ALTLinux

install -m644 %SOURCE14 %buildroot%_sysconfdir/pam.d/systemd-user

# Install ALTLinux default preset policy

mkdir -p %buildroot/lib/systemd/system-preset
mkdir -p %buildroot%_sysconfdir/systemd/system-preset
mkdir -p %buildroot/lib/systemd/user-preset
mkdir -p %buildroot%_sysconfdir/systemd/user-preset
mkdir -p %buildroot/usr/lib/systemd/user-preset
install -m 0644 %SOURCE34 %buildroot/lib/systemd/system-preset/
install -m 0644 %SOURCE35 %buildroot/lib/systemd/system-preset/
install -m 0644 %SOURCE36 %buildroot/lib/systemd/system-preset/
install -m 0644 %SOURCE37 %buildroot/lib/systemd/system-preset/
install -m 0644 %SOURCE38 %buildroot/lib/systemd/system-preset/

mkdir -p %buildroot%_sysconfdir/systemd/network

# The following services are currently installed by initscripts

#pushd %buildroot%_unitdir/graphical.target.wants && {
# rm -f display-manager.service
# rm -f dm.service
#popd
#}

# Set up the pager to make it generally more useful

mkdir -p %buildroot%_sysconfdir/profile.d
cat > %buildroot%_sysconfdir/profile.d/systemd.sh << EOF
export SYSTEMD_PAGER="/usr/bin/less -FR"
EOF
chmod 755 %buildroot%_sysconfdir/profile.d/systemd.sh

install -m644 %SOURCE30 %buildroot/lib/sysctl.d/49-coredump-null.conf
# rpm posttrans filetriggers
install -pD -m755 %SOURCE28 %buildroot%_rpmlibdir/systemd-tmpfiles.filetrigger
install -pD -m755 %SOURCE33 %buildroot%_rpmlibdir/udev.filetrigger

cat >>%buildroot/lib/sysctl.d/50-default.conf <<EOF
# Indicates the amount of address space which a user process will be
# restricted from mmaping.  Since kernel null dereference bugs could
# accidentally operate based on the information in the first couple of
# pages of memory userspace processes should not be allowed to write to
# them.  By default, this value in kernel is set to 0 and no protections
# will be enforced by the security module.  Setting this value to
# something >= 32k will allow the vast majority of applications to work
# correctly and provide defense in depth against future potential kernel
# bugs.  This value is somewhat architecture-dependent, though.
# Recommended default for x86_64 is 65536.
vm.mmap_min_addr = %mmap_min_addr
EOF

#######

# UDEV
#######
mkdir -p %buildroot%_initdir
install -p -m755 %SOURCE19 %buildroot%_initdir/udevd
install -p -m755 %SOURCE20 %buildroot%_initdir/udevd-final

ln -s systemd-udevd.service %buildroot%_unitdir/udevd.service
install -p -m644 %SOURCE25 %buildroot%_unitdir/udevd-final.service

# compatibility symlinks to udevd binary

ln -r -s %buildroot/lib/systemd/systemd-udevd %buildroot/lib/udev/udevd
ln -r -s %buildroot/lib/systemd/systemd-udevd %buildroot/sbin/udevd

install -p -m644 %SOURCE21 %buildroot/lib/udev/rules.d/40-ignore-remove.rules
install -p -m644 %SOURCE22 %buildroot%_sysconfdir/scsi_id.config

cat >>%buildroot%_sysconfdir/udev/udev.conf <<EOF
# Whether to mount a tmpfs filesystem to \$udev_root
udev_tmpfs="1"

# tmpfs options. Note that size shouldn't be less than several

# megabytes due to insane format of current udev database
# (in /dev/.udevdb)
tmpfs_options="size=5m"
EOF

# Install symlinks for rules which are needed in initramfs

mkdir -p %buildroot/lib/udev/initramfs-rules.d
for f in \
50-udev-default.rules \
60-persistent-storage.rules \
80-drivers.rules
do
ln -s ../rules.d/"$f" \
%buildroot/lib/udev/initramfs-rules.d/
done
# Create ghost files
touch %buildroot%_sysconfdir/udev/rules.d/70-persistent-net.rules
touch %buildroot%_sysconfdir/udev/rules.d/70-persistent-cd.rules
touch %buildroot%_sysconfdir/udev/hwdb.bin

# udev rule generator

install -p -m644 %SOURCE41 %buildroot/lib/udev/
install -p -m755 %SOURCE42 %buildroot/lib/udev/
install -p -m644 %SOURCE43 %buildroot/lib/udev/rules.d/
install -p -m755 %SOURCE44 %buildroot/lib/udev/
install -p -m644 %SOURCE45 %buildroot/lib/udev/rules.d/
ln -s /dev/null %buildroot%_sysconfdir/udev/rules.d/80-net-setup-link.rules


echo ".so man8/systemd-udevd.8" > %buildroot%_man8dir/udevd.8

install -p -m644 %SOURCE31 %buildroot%_sysconfdir/udev/rules.d/

%check
# %make check VERBOSE=1 || { cat test-suite.log; exit 1; }

%pre
%_sbindir/groupadd -r -f systemd-journal >/dev/null 2>&1 ||:

%post
/bin/systemctl daemon-reexec >/dev/null 2>&1 || :
/bin/journalctl --update-catalog >/dev/null 2>&1 || :

# Move old stuff around in /var/lib

[ -d %_localstatedir/lib/systemd/random-seed ] && rm -rf %_localstatedir/lib/systemd/random-seed >/dev/null 2>&1 || :
[ -e %_localstatedir/lib/random-seed ] && mv %_localstatedir/lib/random-seed %_localstatedir/lib/systemd/random-seed >/dev/null 2>&1 || :
[ -e %_localstatedir/lib/backlight ] && mv %_localstatedir/lib/backlight %_localstatedir/lib/systemd/backlight >/dev/null 2>&1 || :

/lib/systemd/systemd-random-seed save >/dev/null 2>&1 || :

# rm symlinks for network.service

[ -L %_sysconfdir/systemd/system/network.target.wants/network.service ] && rm -f %_sysconfdir/systemd/system/network.target.wants/network.service  >/dev/null 2>&1 || :
[ -L %_sysconfdir/systemd/system/multi-user.target.wants/network.service ] && rm -f %_sysconfdir/systemd/system/multi-user.target.wants/network.service  >/dev/null 2>&1 || :

# rm symlinks for prefdm.service

[ -L %_sysconfdir/systemd/system/graphical.target.wants/prefdm.service ] && rm -f %_sysconfdir/systemd/system/graphical.target.wants/prefdm.service  >/dev/null 2>&1 || :

if [ $1 -eq 1 ] ; then
    # create /var/log/journal only on initial installation
    mkdir -p %_logdir/journal
fi

# Make sure new journal files will be owned by the "systemd-journal" group

chgrp systemd-journal /run/log/journal/ /run/log/journal/`cat /etc/machine-id 2> /dev/null` %_logdir/journal/ %_logdir/journal/`cat /etc/machine-id 2> /dev/null` >/dev/null 2>&1 || :
chmod g+s  /run/log/journal/ /run/log/journal/`cat /etc/machine-id 2> /dev/null` %_logdir/journal/ %_logdir/journal/`cat /etc/machine-id 2> /dev/null` >/dev/null 2>&1 || :

# Apply ACL to the journal directory

/usr/bin/setfacl -Rnm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx %_logdir/journal/ >/dev/null 2>&1 || :

# remove obsolete systemd-readahead file and services symlink

rm -f /.readahead > /dev/null 2>&1 || :
[ -L %_sysconfdir/systemd/system/default.target.wants/systemd-readahead-collect.service ] && rm -f %_sysconfdir/systemd/system/default.target.wants/systemd-readahead-collect.service
[ -L %_sysconfdir/systemd/system/default.target.wants/systemd-readahead-replay.service ] && rm -f %_sysconfdir/systemd/system/default.target.wants/systemd-readahead-replay.service
[ -L %_sysconfdir/systemd/system/system-update.target.wants/systemd-readahead-drop.service ] && rm -f %_sysconfdir/systemd/system/system-update.target.wants/systemd-readahead-drop.service


if [ $1 -eq 1 ] ; then
       # Enable the services we install by default
       /bin/systemctl preset-all >/dev/null 2>&1 || :
fi

%postun
if [ $1 -ge 1 ] ; then
/bin/systemctl daemon-reload > /dev/null 2>&1 || :
fi

%preun
if [ $1 -eq 0 ] ; then
       /bin/systemctl disable \
               remote-fs.target \
               getty at .service \
               serial-getty at .service \
               console-getty.service \
               debug-shell.service \
                >/dev/null 2>&1 || :

       rm -f /etc/systemd/system/default.target > /dev/null 2>&1 || :
fi

%post utils
/sbin/systemd-machine-id-setup >/dev/null 2>&1 || :

%if_enabled networkd
%pre networkd
%_sbindir/groupadd -r -f systemd-network >/dev/null 2>&1 ||:
%_sbindir/useradd -g systemd-network -c 'systemd Network Management' \
   -d /var/empty -s /dev/null -r -l -M systemd-network >/dev/null 2>&1 ||:

%_sbindir/groupadd -r -f systemd-resolve >/dev/null 2>&1 ||:
%_sbindir/useradd -g systemd-resolve -c 'systemd Resolver' \
   -d /var/empty -s /dev/null -r -l -M systemd-resolve >/dev/null 2>&1 ||:

%post networkd
if [ $1 -eq 1 ] ; then
       # Enable the services we install by default
       /bin/systemctl preset \
               systemd-networkd.service \
               systemd-networkd-wait-online.service \
               systemd-resolved.service \
                >/dev/null 2>&1 || :
fi

%preun networkd
if [ $1 -eq 0 ] ; then
       /bin/systemctl disable \
               systemd-networkd.service \
               systemd-networkd-wait-online.service \
               systemd-resolved.service \
                >/dev/null 2>&1 || :
fi
%endif

%if_enabled coredump
%pre coredump
%_sbindir/groupadd -r -f systemd-coredump >/dev/null 2>&1 ||:
%_sbindir/useradd -g systemd-coredump -c 'systemd Core Dumper' \
   -d /var/empty -s /dev/null -r -l -M systemd-coredump >/dev/null 2>&1 ||:
%endif

%if_enabled timesyncd
%pre timesyncd
%_sbindir/groupadd -r -f systemd-timesync >/dev/null 2>&1 ||:
%_sbindir/useradd -g systemd-timesync -c 'systemd Time Synchronization' \
   -d /var/empty -s /dev/null -r -l -M systemd-timesync >/dev/null 2>&1 ||:

%post timesyncd
if [ $1 -eq 1 ] ; then
       # Enable the services we install by default
       /bin/systemctl preset \
               systemd-timesyncd.service \
                >/dev/null 2>&1 || :
fi

%preun timesyncd
if [ $1 -eq 0 ] ; then
       /bin/systemctl disable \
               systemd-timesyncd.service \
                >/dev/null 2>&1 || :
fi
%endif

%post -n libnss-systemd
if [ -f /etc/nsswitch.conf ] ; then
           grep -E -q '^(passwd|group):.* systemd' /etc/nsswitch.conf ||
           sed -i.rpmorig -r -e '
               s/^(passwd|group):(.*)/\1: \2 systemd/
               ' /etc/nsswitch.conf >/dev/null 2>&1 || :
fi
update_chrooted all

%postun -n libnss-systemd
if [ "$1" = "0" ]; then
       if [ -f /etc/nsswitch.conf ] ; then
               sed -i.rpmorig -e '
                       /^(passwd|group):/ !b
                       s/[[:blank:]]\+systemd\>//
                       ' /etc/nsswitch.conf >/dev/null 2>&1 || :
       fi
fi
update_chrooted all

%post -n libnss-myhostname
if [ -f /etc/nsswitch.conf ] ; then
       grep -v -E -q '^hosts:.* myhostname' /etc/nsswitch.conf &&
       sed -i.rpmorig -e '
               /^hosts:/ !b
               /\<myhostname\>/ b
               s/[[:blank:]]*$/ myhostname/
               ' /etc/nsswitch.conf >/dev/null 2>&1 || :
fi
update_chrooted all

%postun -n libnss-myhostname
if [ "$1" = "0" ]; then
       if [ -f /etc/nsswitch.conf ] ; then
               sed -i.rpmorig -e '
                       /^hosts:/ !b
                       s/[[:blank:]]\+myhostname\>//
                       ' /etc/nsswitch.conf >/dev/null 2>&1 || :
       fi
fi
update_chrooted all

%post -n libnss-mymachines
if [ -f /etc/nsswitch.conf ] ; then
       sed -i.rpmorig -e '
               /^hosts:/ !b
               /\<mymachines\>/ b
               s/[[:blank:]]*$/ mymachines/
               ' /etc/nsswitch.conf >/dev/null 2>&1 || :

       sed -i.rpmorig -e '
               /^passwd:/ !b
               /\<mymachines\>/ b
               s/[[:blank:]]*$/ mymachines/
               ' /etc/nsswitch.conf >/dev/null 2>&1 || :

       sed -i.rpmorig -e '
               /^group:/ !b
               /\<mymachines\>/ b
               s/[[:blank:]]*$/ mymachines/
               ' /etc/nsswitch.conf >/dev/null 2>&1 || :
fi
update_chrooted all

%postun -n libnss-mymachines
if [ "$1" = "0" ]; then
       if [ -f /etc/nsswitch.conf ] ; then
               sed -i.rpmorig -e '
                       /^hosts:/ !b
                       s/[[:blank:]]\+mymachines\>//
                       ' /etc/nsswitch.conf >/dev/null 2>&1 || :

               sed -i.rpmorig -e '
                       /^passwd:/ !b
                       s/[[:blank:]]\+mymachines\>//
                       ' /etc/nsswitch.conf >/dev/null 2>&1 || :

               sed -i.rpmorig -e '
                       /^group:/ !b
                       s/[[:blank:]]\+mymachines\>//
                       ' /etc/nsswitch.conf >/dev/null 2>&1 || :
       fi
fi
update_chrooted all

%if_enabled microhttpd
%pre journal-gateway
%_sbindir/groupadd -r -f systemd-journal-gateway ||:
%_sbindir/useradd -g systemd-journal-gateway -c 'Journal Gateway' \
   -d %_logdir/journal -s /dev/null -r -l systemd-journal-gateway >/dev/null 2>&1 ||:

%_sbindir/groupadd -r -f systemd-journal-remote ||:
%_sbindir/useradd -g systemd-journal-remote -c 'Journal Remote' \
   -d %_logdir/journal/remote -s /dev/null -r -l systemd-journal-remote >/dev/null 2>&1 ||:

%if_enabled libcurl
%_sbindir/groupadd -r -f systemd-journal-upload ||:
%_sbindir/useradd -g systemd-journal-upload -G systemd-journal -c 'Journal Upload' \
   -d %_logdir/journal/upload -s /dev/null -r -l systemd-journal-upload >/dev/null 2>&1 ||:
%endif

%post journal-gateway
%post_service systemd-journal-gatewayd
%post_service systemd-journal-remote
%if_enabled libcurl
%post_service systemd-journal-upload
%endif

%preun journal-gateway
%preun_service systemd-journal-gatewayd
%preun_service systemd-journal-remote
%if_enabled libcurl
%preun_service systemd-journal-upload
%endif

%endif

%pre -n udev
%_sbindir/groupadd -r -f cdrom >/dev/null 2>&1 ||:
%_sbindir/groupadd -r -f tape >/dev/null 2>&1 ||:
%_sbindir/groupadd -r -f dialout >/dev/null 2>&1 ||:
%_sbindir/groupadd -r -f input >/dev/null 2>&1 ||:
%_sbindir/groupadd -r -f video >/dev/null 2>&1 ||:

%post -n udev
%post_service udevd
if [ $1 -eq 1 ]; then
/sbin/chkconfig --add udevd-final
fi
/sbin/udevadm hwdb --update >/dev/null 2>&1 || :

%preun -n udev
%preun_service udevd
if [ $1 -eq 0 ]; then
/sbin/chkconfig --del udevd-final
fi

%triggerin -n udev -- udev-rule-generator-cdrom
/sbin/chkconfig udevd-final on

%triggerin -n udev -- udev-rule-generator-net
/sbin/chkconfig udevd-final on

%files -f %name.lang
%dir %_sysconfdir/systemd/system
%dir %_sysconfdir/systemd/user

%_sysconfdir/profile.d/systemd.sh


%_tmpfilesdir/systemd-nologin.conf
%_tmpfilesdir/systemd.conf
%_tmpfilesdir/journal-nocow.conf

%_xdgconfigdir/%name
%_x11sysconfdir/xinit.d/50-systemd-user.sh

%config(noreplace) %_sysconfdir/systemd/journald.conf
%config(noreplace) %_sysconfdir/systemd/system.conf
%config(noreplace) %_sysconfdir/systemd/user.conf
%_datadir/dbus-1/system.d/org.freedesktop.systemd1.conf

/sbin/systemctl
/bin/systemctl
/sbin/systemd
/sbin/systemd-ask-password
/bin/systemd-inhibit

/bin/systemd-notify
/sbin/systemd-tty-ask-password-agent
%_bindir/bootctl
%_bindir/busctl
%_bindir/systemd-socket-activate
%_bindir/systemd-cat
%_bindir/systemd-cgls
%_bindir/systemd-cgtop
%_bindir/systemd-delta
%_bindir/systemd-detect-virt
%_bindir/systemd-mount
%_bindir/systemd-umount
%_bindir/systemd-path
%_bindir/systemd-run
%_bindir/systemd-stdio-bridge
/lib/systemd/systemd
/lib/systemd/systemd-ac-power
/lib/systemd/systemd-cgroups-agent
/lib/systemd/systemd-dissect
%if_enabled libcryptsetup
/lib/systemd/systemd-cryptsetup
/lib/systemd/systemd-veritysetup
%_man5dir/crypttab*
%_mandir/*/*cryptsetup*
%_man8dir/systemd-veritysetup*
%endif
/lib/systemd/systemd-fsck
/lib/systemd/systemd-hibernate-resume
/lib/systemd/systemd-initctl
/lib/systemd/systemd-journald
/lib/systemd/systemd-quotacheck
/lib/systemd/systemd-random-seed
/lib/systemd/systemd-remount-fs
/lib/systemd/systemd-reply-password
/lib/systemd/systemd-rfkill
/lib/systemd/systemd-shutdown
/lib/systemd/systemd-sleep
/lib/systemd/systemd-socket-proxyd
/lib/systemd/systemd-update-done
/lib/systemd/systemd-update-utmp
/lib/systemd/systemd-user-sessions
/lib/systemd/systemd-vconsole-setup
/lib/systemd/systemd-volatile-root
/lib/systemd/altlinux-save-dmesg
/lib/systemd/systemd-sysv-install
/lib/systemd/systemd-sulogin-shell

%dir /lib/environment.d
/lib/environment.d/99-environment.conf
%_mandir/man[58]/*environment*

%dir %_unitdir
%_unitdir/*

%if_enabled networkd
%exclude %_unitdir/*networkd*
%exclude %_unitdir/*resolv*
%exclude %_unitdir/*/*resolv*
%endif
%if_enabled timesyncd
%exclude %_unitdir/*timesyncd*
%endif
%if_enabled microhttpd
%exclude %_unitdir/systemd-journal-gatewayd*
%endif
%if_enabled libcurl
%exclude %_unitdir/systemd-journal-upload*
%endif
%if_enabled coredump
%exclude %_unitdir/systemd-coredump*
%exclude %_unitdir/*/systemd-coredump*
%endif

%exclude %_unitdir/*udev*
%exclude %_unitdir/*/*udev*

%exclude %_unitdir/*.machine1.*
%exclude %_unitdir/*.import1.*
%exclude %_unitdir/systemd-machined.service
%exclude %_unitdir/systemd-importd.service
%exclude %_unitdir/machine.slice
%exclude %_unitdir/machines.target
%exclude %_unitdir/*/machines.target
%exclude %_unitdir/var-lib-machines.mount
%exclude %_unitdir/*/var-lib-machines.mount
%exclude %_unitdir/systemd-nspawn at .service
%exclude %_unitdir/*/systemd-sysusers.service
%exclude %_unitdir/systemd-sysusers.service

%_man1dir/bootctl.*
%_man1dir/busctl.*
%_man1dir/systemctl.*
%_mandir/*/systemd-ask-password*
%_man1dir/systemd-cat.*
%_man1dir/systemd-cgls.*
%_man1dir/systemd-cgtop.*
%_man1dir/systemd-delta.*
%_man1dir/systemd-detect-virt.*
%_man1dir/systemd-inhibit.*
%_man1dir/systemd-mount.*
%_man1dir/systemd-umount.*
%_man1dir/systemd-notify.*
%_man1dir/systemd-path.*
%_man1dir/systemd-run.*
%_man1dir/systemd-socket-activate.*
%_mandir/*/systemd-tty-ask-password*
%_man1dir/systemd.*
%_mandir/*/*journald*
%_man5dir/localtime*
%_man5dir/os-release*
%_man5dir/*sleep.conf*
%_man5dir/*system.conf*
%_man5dir/*user.conf*
%_man5dir/systemd.automount*
%_man5dir/systemd.exec*
%_man5dir/systemd.kill*
%_man5dir/systemd.mount*
%_man5dir/systemd.path*
%_man5dir/systemd.preset*
%_man5dir/systemd.resource-control*
%_man5dir/systemd.scope*
%_man5dir/systemd.service*
%_man5dir/systemd.slice*
%_man5dir/systemd.socket*
%_man5dir/systemd.swap*
%_man5dir/systemd.target*
%_man5dir/systemd.timer*
%_man5dir/systemd.unit*
%_mandir/*/*vconsole*

%_man8dir/systemd-debug-generator*
%_man8dir/systemd-fsck*
%_man8dir/systemd-fstab-generator*
%_man8dir/systemd-getty-generator*
%_man8dir/systemd-gpt-auto-generator*
%_man8dir/systemd-sysv-generator*
%_man8dir/systemd-hibernate*
%_man8dir/*sleep*
%_man8dir/systemd-initctl*
%_man8dir/systemd-kexec*
%_man8dir/systemd-quota*
%_man8dir/systemd-random-seed*
%_man8dir/systemd-remount*
%_man8dir/systemd-rfkill*
%_man8dir/systemd-socket-proxyd*
%_man8dir/systemd-suspend*
%_man8dir/systemd-system-update-generator*
%_man8dir/systemd-update-utmp*
%_man8dir/systemd-user-sessions*
%_man8dir/systemd-update-done*
%_man8dir/systemd-halt*
%_man8dir/systemd-reboot*
%_man8dir/systemd-shutdown*
%_man8dir/systemd-poweroff*
%_man8dir/systemd-volatile-root*

%exclude %_mandir/*/*sysusers*
%exclude %_datadir/factory
%exclude %_tmpfilesdir/etc.conf

/usr/lib/systemd
/lib/systemd/system-generators

%dir /lib/systemd/system-preset
/lib/systemd/system-preset/85-display-manager.preset
/lib/systemd/system-preset/90-default.preset
/lib/systemd/system-preset/90-systemd.preset
/lib/systemd/system-preset/99-default-disable.preset


/lib/udev/rules.d/70-uaccess.rules
/lib/udev/rules.d/71-seat.rules
/lib/udev/rules.d/73-seat-late.rules
/lib/udev/rules.d/90-vconsole.rules
/lib/udev/rules.d/99-systemd.rules
%_man7dir/*
%exclude %_man7dir/hwdb*
%exclude %_man7dir/udev*

%dir %_datadir/systemd
%_datadir/systemd/kbd-model-map
%_datadir/systemd/language-fallback-map
%_datadir/dbus-1/system-services/org.freedesktop.systemd1.service
%_datadir/dbus-1/services/org.freedesktop.systemd1.service

%if_enabled polkit
%_datadir/polkit-1/actions/org.freedesktop.systemd1.policy
%endif

%ghost %dir %_logdir/journal
%dir %_localstatedir/lib/systemd
%dir %_localstatedir/lib/systemd/catalog
%ghost %_localstatedir/lib/systemd/catalog/database
%ghost %_localstatedir/lib/systemd/random-seed
%ghost %_localstatedir/lib/systemd/clock

# %%_docdir/systemd

%doc DISTRO_PORTING LICENSE.LGPL2.1 README NEWS TODO
%_logdir/README
# may be need adapt for ALTLinux?
%exclude /usr/lib/kernel
%exclude %_bindir/kernel-install
%exclude %_man8dir/kernel-install.*

%files -n libsystemd-shared
/lib/systemd/libsystemd-shared-%version.so

%files -n libsystemd
/%_lib/*.so.*
%exclude /%_lib/*udev*.so.*
%exclude /%_lib/libnss*

%files -n libsystemd-devel
/%_lib/*.so
%exclude /%_lib/*udev*.so
%_pkgconfigdir/*.pc
%exclude %_pkgconfigdir/*udev*.pc
%_datadir/pkgconfig/systemd.pc
%_includedir/systemd
%doc LICENSE.LGPL2.1
%_man3dir/*
%exclude %_man3dir/udev*
%exclude %_man3dir/libudev*

%files -n libnss-systemd
/%_lib/libnss_systemd.so.*
%_man8dir/*nss?systemd.*

%files -n libnss-myhostname
/%_lib/libnss_myhostname.so.*
%_man8dir/*myhostname.*

%files -n libnss-mymachines
/%_lib/libnss_mymachines.so.*
%_man8dir/*mymachines.*

%files -n libnss-resolve
/%_lib/libnss_resolve.so.*
%_man8dir/*nss*resolve*

%files -n pam_%name
%config %_sysconfdir/pam.d/systemd-user
/%_lib/security/pam_systemd.so
%_man8dir/pam_systemd*

%files sysvinit
/sbin/init
/sbin/reboot
/sbin/halt
/sbin/poweroff
/sbin/shutdown
/sbin/telinit
/sbin/runlevel
%_man1dir/init*
%_man8dir/halt*
%_man8dir/reboot*
%_man8dir/shutdown*
%_man8dir/poweroff*
%_man8dir/telinit*
%_man8dir/runlevel*
%_initdir/README

%files utils
%dir /lib/systemd

/bin/systemd-escape
%_mandir/*/*escape*

/sbin/systemd-tmpfiles
%_mandir/*/*tmpfiles*
%_rpmlibdir/systemd-tmpfiles.filetrigger
%_tmpfilesdir/legacy.conf
%_tmpfilesdir/x11.conf
%_tmpfilesdir/tmp.conf
%_tmpfilesdir/var.conf
%_tmpfilesdir/home.conf

/lib/systemd/systemd-binfmt
/sbin/systemd-binfmt
%_mandir/*/*binfmt*

/lib/systemd/systemd-modules-load
%_sysconfdir/modules-load.d/modules.conf
/sbin/systemd-modules-load
%_mandir/*/*modules-load*

/lib/systemd/systemd-sysctl
/sbin/systemd-sysctl
%config(noreplace) %_sysconfdir/sysctl.d/99-sysctl.conf
/lib/sysctl.d/50-default.conf
/lib/sysctl.d/49-coredump-null.conf
%_mandir/*/*sysctl*

/lib/systemd/systemd-backlight
%_mandir/*/*backlight*
%ghost %dir %_localstatedir/lib/systemd/backlight

/sbin/systemd-machine-id-setup
%_man8dir/systemd-machine-id-*

%if_enabled firstboot
/sbin/systemd-firstboot
%_man8dir/systemd-firstboot.*
%endif

%ghost %config(noreplace) %_sysconfdir/machine-info
%ghost %config(noreplace) %_sysconfdir/hostname
%ghost %config(noreplace) %_sysconfdir/vconsole.conf
%ghost %config(noreplace) %_sysconfdir/locale.conf

%files services
%dir %_sysconfdir/systemd
%config(noreplace) %_sysconfdir/systemd/logind.conf
%_datadir/dbus-1/system.d/org.freedesktop.*.conf
%exclude %_datadir/dbus-1/system.d/org.freedesktop.systemd1.conf
%exclude %_datadir/dbus-1/system.d/org.freedesktop.resolve1.conf
%exclude %_datadir/dbus-1/system.d/org.freedesktop.network1.conf
%exclude %_datadir/dbus-1/system.d/org.freedesktop.machine1.conf
%exclude %_datadir/dbus-1/system.d/org.freedesktop.import1.conf
%_datadir/dbus-1/system-services/org.freedesktop.*.service
%exclude %_datadir/dbus-1/system-services/org.freedesktop.systemd1.service
%exclude %_datadir/dbus-1/system-services/org.freedesktop.resolve1.service
%exclude %_datadir/dbus-1/system-services/org.freedesktop.network1.service
%exclude %_datadir/dbus-1/system-services/org.freedesktop.machine1.service
%exclude %_datadir/dbus-1/system-services/org.freedesktop.import1.service
%if_enabled polkit
%_datadir/polkit-1/actions/*.policy
%exclude %_datadir/polkit-1/actions/org.freedesktop.systemd1.policy
%exclude %_datadir/polkit-1/actions/org.freedesktop.import1.policy
%exclude %_datadir/polkit-1/actions/org.freedesktop.machine1.policy
%endif


/bin/loginctl
/lib/systemd/systemd-logind
/lib/systemd/systemd-logind-launch
%_bindir/hostnamectl
/lib/systemd/systemd-hostnamed
%_bindir/localectl
/lib/systemd/systemd-localed
%_bindir/timedatectl
/lib/systemd/systemd-timedated

%_mandir/*/*login*
%exclude %_man3dir/*
%_mandir/*/*hostname*
%exclude %_man8dir/*myhostname*
%exclude %_man8dir/*mymachines*
%_mandir/*/*locale*
%_mandir/*/*timedate*

%if_enabled networkd
%files networkd
/bin/networkctl
%dir %_sysconfdir/systemd/network
%config(noreplace) %_sysconfdir/systemd/resolved.conf
%config(noreplace) %_sysconfdir/systemd/system/dbus-org.freedesktop.resolve1.service
%config(noreplace) %_sysconfdir/systemd/system/dbus-org.freedesktop.network1.service
%_datadir/dbus-1/system.d/org.freedesktop.resolve1.conf
%_datadir/dbus-1/system.d/org.freedesktop.network1.conf
%_datadir/dbus-1/system-services/org.freedesktop.resolve1.service
%_datadir/dbus-1/system-services/org.freedesktop.network1.service
%if_enabled polkit
%_datadir/polkit-1/rules.d/systemd-networkd.rules
%endif
/lib/systemd/system-preset/85-networkd.preset
/lib/systemd/systemd-networkd
/lib/systemd/systemd-networkd-wait-online
/lib/systemd/systemd-resolved
/lib/systemd/resolv.conf
/lib/modprobe.d/systemd.conf
%_bindir/systemd-resolve
%_tmpfilesdir/systemd-network.conf
%_unitdir/systemd-networkd.*
%_unitdir/systemd-resolved.*
%_unitdir/systemd-networkd-wait-online.*
%_unitdir/altlinux-libresolv*
%_unitdir/altlinux-openresolv*
%_unitdir/altlinux-simpleresolv*
%_unitdir/*/*resolv*
/lib/systemd/network/80-container-host0.network
%_mandir/*/*network*
%_mandir/*/*netdev*
%_mandir/*/*resolved*
%_man1dir/systemd-resolve.*
%_man5dir/dnssec-trust-anchors.d.*
%_man5dir/systemd.negative.*
%_man5dir/systemd.positive.*
%endif

%files container
%_datadir/dbus-1/system.d/org.freedesktop.machine1.conf
%_datadir/dbus-1/system.d/org.freedesktop.import1.conf
/bin/machinectl
%_bindir/systemd-nspawn
/lib/systemd/import-pubring.gpg
%_tmpfilesdir/systemd-nspawn.conf
%_unitdir/*.machine1.*
%_unitdir/*.import1.*
%_unitdir/systemd-machined.service
%_unitdir/systemd-importd.service
%_unitdir/machine.slice
%_unitdir/machines.target
%_unitdir/*/machines.target
%_unitdir/var-lib-machines.mount
%_unitdir/*/var-lib-machines.mount
%_unitdir/systemd-nspawn at .service
/lib/systemd/systemd-machined
/lib/systemd/systemd-export
/lib/systemd/systemd-import
/lib/systemd/systemd-importd
/lib/systemd/systemd-pull
/lib/systemd/network/80-container-ve.network
/lib/systemd/network/80-container-vz.network
%_datadir/dbus-1/system-services/org.freedesktop.machine1.service
%_datadir/dbus-1/system-services/org.freedesktop.import1.service
%if_enabled polkit
%_datadir/polkit-1/actions/org.freedesktop.import1.policy
%_datadir/polkit-1/actions/org.freedesktop.machine1.policy
%endif
%_mandir/*/*nspawn*
%_mandir/*/*machine*
%exclude %_man3dir/*machine*
%_man8dir/systemd-importd.*
%exclude %_man8dir/*mymachines.*
%exclude %_man8dir/systemd-machine-id-*

%if_enabled timesyncd
%files timesyncd
%config(noreplace) %_sysconfdir/systemd/timesyncd.conf
/lib/systemd/system-preset/85-timesyncd.preset
/lib/systemd/systemd-timesyncd
%_unitdir/systemd-timesyncd.service
%_mandir/*/*timesyncd*
%endif

%files analyze
%_bindir/systemd-analyze
%_man1dir/systemd-analyze.*

%if_enabled microhttpd
%files journal-gateway
%dir %attr(2755,systemd-journal-remote,systemd-journal-remote) %_logdir/journal/remote
%config(noreplace) %_sysconfdir/systemd/journal-remote.conf
%dir %attr(0755,systemd-journal-upload,systemd-journal-upload) %_var/lib/systemd/journal-upload
/lib/systemd/systemd-journal-gatewayd
/lib/systemd/systemd-journal-remote
%_unitdir/systemd-journal-gatewayd.*
%_datadir/systemd/gatewayd
%_man8dir/systemd-journal-gatewayd.*
%_man8dir/systemd-journal-remote.*
%_man5dir/journal-remote.conf.*
%_man5dir/journal-upload.conf.*

%if_enabled sysusers
/lib/sysusers.d/systemd-remote.conf
%endif

%if_enabled libcurl
%config(noreplace) %_sysconfdir/systemd/journal-upload.conf
/lib/systemd/systemd-journal-upload
%_unitdir/systemd-journal-upload.service
%_man8dir/systemd-journal-upload*
%endif
%endif

%if_enabled coredump
%files coredump
%config(noreplace) %_sysconfdir/systemd/coredump.conf
/lib/systemd/systemd-coredump
%_bindir/*coredumpctl
/lib/sysctl.d/50-coredump.conf
%_unitdir/systemd-coredump*
%_unitdir/*/systemd-coredump*
%_man1dir/*coredumpctl.*
%_man5dir/coredump.conf.*
%_man8dir/systemd-coredump*
%dir %_localstatedir/lib/systemd/coredump
%endif

%if_enabled sysusers
%files stateless
/sbin/systemd-sysusers
%dir /lib/sysusers.d
%dir %_datadir/factory
%_datadir/factory/*
%_unitdir/systemd-sysusers.service
%_unitdir/sysinit.target.wants/systemd-sysusers.service
/lib/sysusers.d/systemd.conf
/lib/sysusers.d/basic.conf
%_tmpfilesdir/etc.conf
%_mandir/*/*sysusers*

%if_enabled ldconfig
%_unitdir/ldconfig.service
%_unitdir/sysinit.target.wants/ldconfig.service
%endif #ldconfig
%endif #sysuser

%files -n bash-completion-%name
%_sysconfdir/bash_completion.d/*
%exclude %_sysconfdir/bash_completion.d/udevadm
%exclude %_sysconfdir/bash_completion.d/journalctl

%files -n zsh-completion-%name
%_datadir/zsh/site-functions/*
%exclude %_datadir/zsh/site-functions/_udevadm
%exclude %_datadir/zsh/site-functions/_journalctl

%files -n journalctl
/bin/journalctl
/sbin/journalctl
%_man1dir/journalctl.*

%files -n bash-completion-journalctl
%_sysconfdir/bash_completion.d/journalctl

%files -n zsh-completion-journalctl
%_datadir/zsh/site-functions/_journalctl

%files -n bash-completion-udev
%_sysconfdir/bash_completion.d/udevadm
#%_datadir/bash-completion/completions/udevadm

%files -n zsh-completion-udev
%_datadir/zsh/site-functions/_udevadm

%files -n libudev1
/%_lib/libudev.so.*

%files -n libudev-devel
%_includedir/libudev.h
/%_lib/libudev.so
%_pkgconfigdir/libudev.pc
%_datadir/pkgconfig/udev.pc
%_man3dir/udev*
%_man3dir/libudev*

%files -n udev
%doc README TODO NEWS LICENSE.GPL2
%dir %_sysconfdir/udev
%config(noreplace) %_sysconfdir/udev/*.conf
%ghost %_sysconfdir/udev/hwdb.bin
%config(noreplace) %_sysconfdir/scsi_id.config
%_initdir/udev*
%_unitdir/*udev*
%_unitdir/*/*udev*
%dir /lib/udev
%dir /lib/systemd/network
/lib/systemd/network/*.link
/lib/udev/udevd
/lib/udev/ata_id
/lib/udev/cdrom_id
/lib/udev/mtd_probe
/lib/udev/scsi_id
/sbin/udevadm
/sbin/udevd
/sbin/systemd-hwdb
/lib/systemd/systemd-udevd
%_rpmlibdir/udev.filetrigger
%_mandir/*/*udev*
%_mandir/*/*hwdb*
%_mandir/*/*link*
%_man5dir/systemd.device*
%exclude %_man3dir/*

%files -n udev-extras
/lib/udev/v4l_id
/lib/udev/collect
/lib/udev/rules.d/78-sound-card.rules

%files -n udev-rules
%dir %_sysconfdir/udev/rules.d
%config(noreplace) %_sysconfdir/udev/rules.d/*
/lib/udev/initramfs-rules.d
/lib/udev/rules.d
# rule-generator
/lib/udev/rule_generator.functions

%exclude %_sysconfdir/udev/rules.d/70-persistent-*.rules
%exclude %_sysconfdir/udev/rules.d/80-net-setup-link.rules
%exclude /lib/udev/rules.d/75-*-generator.rules
# extras
%exclude /lib/udev/rules.d/78-sound-card.rules
# systemd
%exclude /lib/udev/rules.d/70-uaccess.rules
%exclude /lib/udev/rules.d/71-seat.rules
%exclude /lib/udev/rules.d/73-seat-late.rules
%exclude /lib/udev/rules.d/90-vconsole.rules
%exclude /lib/udev/rules.d/99-systemd.rules

%files -n udev-hwdb
%dir %_sysconfdir/udev/hwdb.d
/lib/udev/hwdb.d

%files -n udev-rule-generator-cdrom
%config(noreplace,missingok) %verify(not md5 size mtime) %ghost %_sysconfdir/udev/rules.d/70-persistent-cd.rules
/lib/udev/rules.d/75-cd-aliases-generator.rules
/lib/udev/write_cd_rules

%files -n udev-rule-generator-net
%config(noreplace,missingok) %verify(not md5 size mtime) %ghost %_sysconfdir/udev/rules.d/70-persistent-net.rules
%_sysconfdir/udev/rules.d/80-net-setup-link.rules
/lib/udev/rules.d/75-persistent-net-generator.rules
/lib/udev/write_net_rules

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin