commit 5b5666f044a179acb2292cc59817b91eaaefee0a
Author: Jakub Bogusz <qbo...@pld-linux.org>
Date:   Wed Jun 7 20:18:14 2017 +0200

    - initial (standalone part of systemd functionality)

 elogind-link.patch |  11 +++
 elogind.spec       | 205 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 216 insertions(+)
---
diff --git a/elogind.spec b/elogind.spec
new file mode 100644
index 0000000..368d8bc
--- /dev/null
+++ b/elogind.spec
@@ -0,0 +1,205 @@
+Summary:       Elogind User, Seat and Session Manager
+Summary(pl.UTF-8):     Elogind - zarządca użytkowników, stanowisk i sesji
+Name:          elogind
+Version:       219.12
+Release:       1
+License:       LGPL v2.1+
+Group:         Daemons
+#Source0Download: https://github.com/wingo/elogind/releases
+Source0:       
https://github.com/wingo/elogind/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 00348e7a6a995ce918301d3dd64e01a6
+Patch0:                %{name}-link.patch
+URL:           https://github.com/wingo/elogind
+BuildRequires: acl-devel
+BuildRequires: autoconf >= 2.64
+BuildRequires: automake >= 1:1.11
+BuildRequires: dbus-devel >= 1.3.2
+BuildRequires: gcc >= 5:3.2
+BuildRequires: glib2-devel >= 1:2.22.0
+BuildRequires: gperf
+BuildRequires: gtk-doc >= 1.18
+BuildRequires: intltool >= 0.40.0
+BuildRequires: libapparmor-devel
+BuildRequires: libblkid-devel >= 2.24
+BuildRequires: libcap-devel
+BuildRequires: libseccomp-devel >= 1.0.0
+BuildRequires: libselinux-devel >= 2.1.9
+BuildRequires: libtool >= 2:2.2
+BuildRequires: libxslt-progs
+BuildRequires: pam-devel
+BuildRequires: pkgconfig
+BuildRequires: rpmbuild(macros) >= 1.673
+BuildRequires: udev-devel
+Requires:      %{name}-libs = %{version}-%{release}
+Conflicts:     systemd
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%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.  Elogind exposes this
+information via the standard org.freedesktop.login1 D-Bus interface,
+as well as through the file system using systemd's standard
+/run/systemd layout.  Elogind also provides "libelogind", which is a
+subset of the facilities offered by "libsystemd".
+
+%description -l pl.UTF-8
+Elogind to część "logind" z projektu systemd wydzielona jako
+samodzielny demon. Integruje się z PAM, aby znać listę użytkowników
+zalogowanych do systemu oraz wiedzieć, czy są zalogowani graficznie,
+na konsoli, czy zdalnie. Elogind udostępnia te informacje poprzez
+standardowy interfejs D-Bus org.freedesktop.login1, a także poprzez
+system plików, wykorzystując układ /run/systemd zgodny z systemd.
+Elogind dostarcza także bibliotekę libelogind, będącą podzbiorem
+funkcjonalności oferowanej przeez libsystemd.
+
+%package -n bash-completion-elogind
+Summary:       Bash completion for loginctl command
+Summary(pl.UTF-8):     Bashowe dopełnianie składni polecenia loginctl
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      bash-completion >= 2.0
+Conflicts:     bash-completion-systemd
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description -n bash-completion-elogind
+Bash completion for loginctl command.
+
+%description -n bash-completion-elogind -l pl.UTF-8
+Bashowe dopełnianie składni polecenia loginctl.
+
+%package -n zsh-completion-elogind
+Summary:       zsh completion for loginctl command
+Summary(pl.UTF-8):     Uzupełnianie parametrów w zsh dla polecenia loginctl
+Group:         Applications/Shells
+Requires:      %{name} = %{version}-%{release}
+Requires:      zsh
+Conflicts:     zsh-completion-systemd
+%if "%{_rpmversion}" >= "5"
+BuildArch:     noarch
+%endif
+
+%description -n zsh-completion-elogind
+zsh completion for loginctl command.
+
+%description -n zsh-completion-elogind -l pl.UTF-8
+Uzupełnianie parametrów w zsh dla polecenia loginctl.
+
+%package libs
+Summary:       Shared elogind library
+Summary(pl.UTF-8):     Biblioteka współdzielona elogind
+Group:         Libraries
+
+%description libs
+Shared elogind library.
+
+%description libs -l pl.UTF-8
+Biblioteka współdzielona elogind.
+
+%package devel
+Summary:       Header files for elogind library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki elogind
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for elogind library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki elogind.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+install -d docs
+%{__gtkdocize} --docdir docs --flavour no-tmpl
+%{__intltoolize}
+%{__libtoolize}
+%{__aclocal} -I m4
+%{__autoconf}
+%{__autoheader}
+%{__automake}
+%configure \
+       HALT=/sbin/halt \
+       KEXEC=/sbin/kexec \
+       REBOOT=/sbin/reboot \
+       --disable-silent-rules \
+       --enable-split-usr \
+       --with-pamlibdir=/%{_lib}/security
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libelogind.la \
+       $RPM_BUILD_ROOT/%{_lib}/security/*.la
+
+# provided by systemd-devel
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man3/sd-login.3 \
+       $RPM_BUILD_ROOT%{_mandir}/man3/sd_*.3
+# dead link to logind.service.8
+%{__rm} $RPM_BUILD_ROOT%{_mandir}/man8/logind.8
+
+# packaged as %doc
+%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/elogind
+
+%find_lang %{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
+%files -f %{name}.lang
+%defattr(644,root,root,755)
+%doc LICENSE.MIT NEWS README TODO 
src/libelogind/sd-bus/{DIFFERENCES,GVARIANT-SERIALIZATION,PORTING-DBUS1}
+%dir %{_sysconfdir}/elogind
+%config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/elogind/logind.conf
+/etc/dbus-1/system.d/org.freedesktop.login1.conf
+%config(noreplace) %verify(not md5 mtime size) /etc/pam.d/elogind-user
+/lib/udev/rules.d/70-power-switch.rules
+/lib/udev/rules.d/70-uaccess.rules
+/lib/udev/rules.d/71-seat.rules
+/lib/udev/rules.d/73-seat-late.rules
+%attr(755,root,root) /%{_lib}/security/pam_elogind.so
+%attr(755,root,root) %{_bindir}/loginctl
+%attr(755,root,root) %{_bindir}/systemd-inhibit
+%dir %{_libexecdir}/elogind
+%attr(755,root,root) %{_libexecdir}/elogind/elogind
+%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
+%{_datadir}/factory/etc/pam.d/other
+%{_datadir}/factory/etc/pam.d/system-auth
+%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
+%{_mandir}/man1/loginctl.1*
+%{_mandir}/man5/logind.conf.5*
+%{_mandir}/man5/logind.conf.d.5*
+%{_mandir}/man8/pam_elogind.8*
+
+%files -n bash-completion-elogind
+%defattr(644,root,root,755)
+%{bash_compdir}/loginctl
+
+%files -n zsh-completion-elogind
+%defattr(644,root,root,755)
+%{_datadir}/zsh/site-functions/_loginctl
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libelogind.so.*.*.*
+%attr(755,root,root) %ghost %{_libdir}/libelogind.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libelogind.so
+%{_includedir}/elogind
+%{_pkgconfigdir}/libelogind.pc
diff --git a/elogind-link.patch b/elogind-link.patch
new file mode 100644
index 0000000..e48529d
--- /dev/null
+++ b/elogind-link.patch
@@ -0,0 +1,11 @@
+--- elogind-219.12/Makefile.am.orig    2015-09-01 13:19:31.000000000 +0200
++++ elogind-219.12/Makefile.am 2017-06-07 18:02:28.097466054 +0200
+@@ -501,6 +501,8 @@
+ 
+ libelogind_shared_la_LIBADD = \
+       $(CAP_LIBS) \
++      $(SELINUX_LIBS) \
++      -lrt \
+       -lm
+ 
+ libelogind_shared_la_LDFLAGS = \
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/elogind.git/commitdiff/5b5666f044a179acb2292cc59817b91eaaefee0a

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to