Hello community, here is the log from the commit of package policycoreutils for openSUSE:Factory checked in at 2012-12-19 11:51:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/policycoreutils (Old) and /work/SRC/openSUSE:Factory/.policycoreutils.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "policycoreutils", Maintainer is "[email protected]" Changes: -------- --- /work/SRC/openSUSE:Factory/policycoreutils/policycoreutils.changes 2012-12-07 14:49:05.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.policycoreutils.new/policycoreutils.changes 2012-12-19 11:51:43.000000000 +0100 @@ -1,0 +2,5 @@ +Tue Dec 11 15:11:12 UTC 2012 - [email protected] + +- added service unit for restorecond + +------------------------------------------------------------------- New: ---- restorecond.service ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ policycoreutils.spec ++++++ --- /var/tmp/diff_new_pack.WFLVT7/_old 2012-12-19 11:51:45.000000000 +0100 +++ /var/tmp/diff_new_pack.WFLVT7/_new 2012-12-19 11:51:45.000000000 +0100 @@ -38,6 +38,7 @@ Source6: selinux-polgengui.desktop Source7: selinux-polgengui.console Source8: policycoreutils_man_ru2.tar.bz2 +Source9: restorecond.service Patch1: policycoreutils-po.patch.bz2 Patch2: policycoreutils-gui.patch.bz2 Patch4: policycoreutils-initscript.patch @@ -57,6 +58,9 @@ BuildRequires: pam-devel BuildRequires: python-devel BuildRequires: update-desktop-files +%if 0%{?suse_version} > 1140 +BuildRequires: systemd +%endif Requires(pre): %insserv_prereq %fillup_prereq permissions Requires: audit-libs-python Requires: checkpolicy @@ -64,6 +68,7 @@ Requires: python-selinux Requires: rpm Requires: util-linux +%{?systemd_requires} Recommends: %{name}-lang %description @@ -115,6 +120,9 @@ make LSPP_PRIV=y DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" INITDIR="%{buildroot}%{_initddir}" install make -C sepolgen-%{sepolgen_ver} DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" install install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/system-config-selinux.png +%if 0%{?suse_version} > 1140 +install -D -m 0644 %SOURCE9 %{buildroot}/%{_unitdir}/restorecond.service +%endif install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/system-config-selinux install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/selinux-polgengui install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/security/console.apps/system-config-selinux @@ -293,6 +301,9 @@ %{_bindir}/semodule_link %{_bindir}/semodule_package %{_bindir}/semodule_unpackage +%if 0%{?suse_version} > 1140 +%{_unitdir}/restorecond.service +%endif %config(noreplace) %{_sysconfdir}/pam.d/run_init %config(noreplace) %{_sysconfdir}/sestatus.conf %attr(755,root,root) %{_initddir}/restorecond @@ -342,19 +353,33 @@ %files lang -f %{name}.lang +%pre +%if 0%{?suse_version} > 1140 +%service_add_pre restorecond.service +%endif + %post %fillup_and_insserv restorecond +%if 0%{?suse_version} > 1140 +%service_add_post restorecond.service +%endif %preun if [ "$1" -eq "0" ]; then %stop_on_removal restorecond %insserv_cleanup fi +%if 0%{?suse_version} > 1140 +%service_del_preun restorecond.service +%endif %postun if [ "$1" -ge "1" ]; then %restart_on_update restorecond %insserv_cleanup fi +%if 0%{?suse_version} > 1140 +%service_del_postun restorecond.service +%endif %changelog ++++++ restorecond.service ++++++ [Unit] Description=Restorecon maintaining path file context After=syslog.target ConditionPathExists=/etc/selinux/restorecond.conf [Service] Type=oneshot ExecStart=/usr/sbin/restorecond RemainAfterExit=yes [Install] WantedBy=multi-user.target -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
