--- rpms/e-smith-manager/sme10/e-smith-manager.spec 2020/06/27 18:28:04 1.34 +++ rpms/e-smith-manager/sme10/e-smith-manager.spec 2020/12/11 04:00:40 1.35 @@ -1,10 +1,10 @@ -# $Id: e-smith-manager.spec,v 1.33 2019/12/20 19:41:05 michel Exp $ +# $Id: e-smith-manager.spec,v 1.34 2020/06/27 18:28:04 jpp Exp $ Summary: e-smith manager navigation module %define name e-smith-manager Name: %{name} %define version 2.8.0 -%define release 31 +%define release 32 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -26,6 +26,7 @@ Patch12: e-smith-manager-2.8.0-bz10170-S Patch13: e-smith-manager-2.8.0-bz9591-iconspath.patch Patch14: e-smith-manager-2.8.0-bz9677_password_followsymlinks.patch Patch15: e-smith-manager-2.8.0-bz10967-remove-hardcoded-ports.patch +Patch16: e-smith-manager-2.8.0-bz11144-bz11110-systemd-update.patch BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot BuildRequires: e-smith-devtools @@ -39,6 +40,10 @@ Provides: server-manager AutoReqProv: no %changelog +* Thu Dec 10 2020 Jean-Philipe Pialasse 2.8.0-32.sme +- create -update event [SME: 11144] +- migrate httpd-admin to systemd [SME: 11110] + * Sat Jun 27 2020 Jean-Philipe Pialasse 2.8.0-31.sme - removing hardcoded ports [SME: 10967] @@ -784,6 +789,8 @@ This RPM contributes the navigation bars %patch13 -p1 %patch14 -p1 %patch15 -p1 +%patch16 -p1 +rm -rf root/var/service %build perl createlinks @@ -833,13 +840,6 @@ rm -f %{name}-%{version}-%{release}-file --file /etc/e-smith/web/common/cgi-bin/login 'attr(0755,root,root)' \ --file /etc/e-smith/web/common/cgi-bin/logout 'attr(0755,root,root)' \ --file /etc/e-smith/web/functions/wrapper 'attr(4750,root,admin)' \ - --dir /var/service/httpd-admin 'attr(01755,root,root)' \ - --file /var/service/httpd-admin/down 'attr(0644,root,root)' \ - --file /var/service/httpd-admin/run 'attr(0755,root,root)' \ - --dir /var/service/httpd-admin/log 'attr(0755,root,root)' \ - --dir /var/service/httpd-admin/log/supervise 'attr(0700,root,root)' \ - --dir /var/service/httpd-admin/supervise 'attr(0700,root,root)' \ - --file /var/service/httpd-admin/log/run 'attr(0755,root,root)' \ --dir /var/log/httpd-admin 'attr(0750,smelog,smelog)' \ > %{name}-%{version}-%{release}-filelist echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist @@ -848,6 +848,12 @@ echo "%doc COPYING" >> %{name}-%{version rm -rf $RPM_BUILD_ROOT %pre +if [ $1 -gt 1 ] ; then + if [ -e /var/service/httpd-admin/run ] ; then + /usr/bin/sv d httpd-admin + /usr/bin/sv d httpd-admin/log + fi +fi %preun %post find /etc/e-smith/web/panels/manager/cgi-bin/ -type f | \