Package elogind: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 | Name: elogind Version: 241.2 Release: alt1 Summary: The systemd project's "logind", extracted to a standalone package Group: System/Configuration/Boot and Init License: GPL-2.0 and LGPL-2.1 URL: https://github.com/elogind/elogind Packager: Alexey Gladkov <legion@altlinux.ru> Source0: %name-%version.tar Source1: elogind-dbus-helper Source2: elogind.init Source3: elogind.sysconfig Source4: pam_elogind.control Source5: libelogind-preload.control Patch0: elogind-dbus-activation-helper.patch Patch1: elogind-dbus-socket-detection.patch Conflicts: ConsoleKit2 Conflicts: ConsoleKit2-x11 Conflicts: systemd Conflicts: systemd-services Requires: lib%name = %version-%release BuildRequires: meson BuildRequires: ninja-build BuildRequires: gperf BuildRequires: xsltproc BuildRequires: docbook-xsl BuildRequires: libacl-devel BuildRequires: libaudit-devel BuildRequires: libblkid-devel BuildRequires: libcap-devel BuildRequires: libkeyutils-devel BuildRequires: libmount-devel BuildRequires: libpam0-devel BuildRequires: libpolkit-devel BuildRequires: libseccomp-devel BuildRequires: libselinux-devel BuildRequires: libudev-devel %define _unpackaged_files_terminate_build 1 %description Elogind is the systemd project's "logind", extracted out to be a standalone daemon. It integrates with PAM to know the set of users that are logged in to a system and whether they are logged in graphically, on the console, or remotely. %package -n lib%name Summary: The %name library Group: System/Libraries %description -n lib%name This library provides access to %name session management. %package -n lib%name-devel Summary: Development libraries for elogind Group: Development/C Obsoletes: elogind-devel Provides: elogind-devel = %version-%release %description -n lib%name-devel Header and Library files for doing development with the elogind. %package -n lib%name-devel-docs Summary: Development documentation for elogind Group: Development/C Conflicts: libsystemd-devel %description -n lib%name-devel-docs Development documentation for elogind. %package -n lib%name-devel-static Summary: Development static libraries for elogind Group: Development/C Obsoletes: elogind-devel-static Provides: elogind-devel-static = %version-%release %description -n lib%name-devel-static Header and Static Library files for doing development with the elogind. %package -n bash-completion-%name Summary: Bash completion for %name utils Group: Shells BuildArch: noarch Requires: bash-completion Requires: %name = %version-%release %description -n bash-completion-%name Bash completion for %name. %prep %setup %patch0 -p1 %patch1 -p1 %build %meson \ -Drootlibdir=/%_lib \ -Dpamlibdir=/%_lib/security \ -Dcgroup-controller=%name \ -Ddefault-hierarchy=hybrid \ -Ddefault-kill-user-processes=false \ -Dtty-gid=5 \ -Dsystem-uid-max=499 \ -Dsystem-gid-max=499 \ -Dsplit-usr=true \ -Dman=true \ -Dutmp=true \ -Dpolkit=true \ -Dacl=true \ -Daudit=true \ -Dpam=true \ -Dselinux=true \ -Dsmack=true \ -Dhalt-path=/sbin/halt \ -Dreboot-path=/sbin/reboot \ -Dstatic-libelogind=pic \ -Dtests=false \ # %meson_build %install %meson_install %find_lang %name rm -rf -- \ %buildroot/%_datadir/zsh \ %buildroot/%_datadir/factory \ %buildroot/%_datadir/doc # rule in the udev-rules rm -f -- %buildroot/lib/udev/rules.d/70-power-switch.rules install -m755 -pD %SOURCE1 %buildroot/lib/%name/elogind-dbus-helper install -m755 -pD %SOURCE2 %buildroot/%_initdir/elogind install -m644 -pD %SOURCE3 %buildroot/%_sysconfdir/sysconfig/elogind install -m755 -pD %SOURCE4 %buildroot/%_controldir/pam_elogind install -m755 -pD %SOURCE5 %buildroot/%_controldir/libelogind-preload for f in %buildroot/lib/udev/rules.d/*.rules; do n="${f##*/}" mv -f -- "$f" "${f%%/*}/${n%%%%-*}-elogind-${n#*-}" done for f in \ %_bindir/busctl /bin/loginctl \ %_man1dir/busctl.1 %_man1dir/loginctl.1 %_man5dir/logind.conf.5 \ ; do n="${f##*/}" d="${f%%/*}" mv -f -- "%buildroot/$f" "%buildroot/$d/e$n" ln -s -- "e$n" "%buildroot/$f" sed -i \ -e "s#/$n#/e$n#g" \ %buildroot/lib/udev/rules.d/*.rules done sed -i \ -e '/^complete -F _loginctl loginctl/a \ complete -F _loginctl eloginctl' \ %buildroot/%_datadir/bash-completion/completions/loginctl ln -s loginctl %buildroot/%_datadir/bash-completion/completions/eloginctl %pre %pre_control pam_elogind %pre_control libelogind-preload %post %post_control -s enabled pam_elogind %post_control -s enabled libelogind-preload %preun if [ "$1" = 0 ]; then %post_control -s disabled pam_elogind %post_control -s disabled libelogind-preload fi %files -f %name.lang %config(noreplace) %_sysconfdir/%name/logind.conf %config(noreplace) %_sysconfdir/pam.d/elogind-user %config(noreplace) %_sysconfdir/sysconfig/elogind %config %_controldir/pam_elogind %config %_controldir/libelogind-preload %_initdir/elogind /bin/elogind-inhibit /bin/loginctl /bin/eloginctl %_bindir/busctl %_bindir/ebusctl /lib/%name /lib/udev/rules.d/*.rules /%_lib/security/pam_elogind.so %_datadir/dbus-1/system-services/org.freedesktop.login1.service %_datadir/dbus-1/system.d/org.freedesktop.login1.conf %_datadir/polkit-1/actions/org.freedesktop.login1.policy %_man1dir/* %_man5dir/* %_man7dir/* %_man8dir/* %files -n lib%name /%_lib/*.so.* %files -n lib%name-devel %_includedir/%name /%_lib/*.so %_pkgconfigdir/libelogind.pc %files -n lib%name-devel-static /%_lib/*.a %files -n lib%name-devel-docs %_man3dir/* %files -n bash-completion-%name %_datadir/bash-completion/completions/* %changelog * Wed Apr 03 2019 Alexey Gladkov <legion@altlinux.ru> 241.2-alt1 - New version (241.2). * Sat Feb 23 2019 Alexey Gladkov <legion@altlinux.ru> 239.3-alt4 - elogind requires libelogind. * Sun Jan 13 2019 Alexey Gladkov <legion@altlinux.ru> 239.3-alt3 - Rename packages according policy; - Add smack support; - Add control for pam_elogind and libelogind preload; - Disable /run/systemd/system creation. * Mon Jan 07 2019 Alexey Gladkov <legion@altlinux.ru> 239.3-alt2 - Add sysv init-script; - Add bash-completion sub-package; - Make dbus activation optional; - Rename some files to reduce conflicts; - Increase compatibility with systemd-logind. * Wed Jan 02 2019 Alexey Gladkov <legion@altlinux.ru> 239.3-alt1 - New version (239.3). * Thu Mar 22 2018 Alexey Gladkov <legion@altlinux.ru> 235.3-alt1 - First build. |