1 |
# $Id: e-smith-base.spec,v 1.10 2016/04/11 19:04:48 vip-ire Exp $ |
# $Id: e-smith-base.spec,v 1.17 2016/05/12 17:10:46 vip-ire Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - base module |
Summary: e-smith server and gateway - base module |
4 |
%define name e-smith-base |
%define name e-smith-base |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 5.8.0 |
%define version 5.8.0 |
7 |
%define release 9 |
%define release 16 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
13 |
Patch0: e-smith-base-5.8.0-cpuspeed.patch |
Patch0: e-smith-base-5.8.0-cpuspeed.patch |
14 |
Patch1: e-smith-base-5.8.0-remove_obsolete_services.patch |
Patch1: e-smith-base-5.8.0-remove_obsolete_services.patch |
15 |
Patch2: e-smith-base-5.8.0-remove_ctrlaltdel.patch |
Patch2: e-smith-base-5.8.0-remove_ctrlaltdel.patch |
16 |
|
Patch3: e-smith-base-5.8.0-movese_services_to_systemd.patch |
17 |
|
Patch4: e-smith-base-5.8.0-LOCALE.patch |
18 |
|
Patch5: e-smith-base-5.8.0-install_on_every_reboot.patch |
19 |
|
Patch6: e-smith-base-5.8.0-PasswordSet.patch |
20 |
|
Patch7: e-smith-base-5.8.0-console_wrapper.patch |
21 |
|
Patch8: e-smith-base-5.8.0-postinstall.patch |
22 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
|
BuildArch: noarch |
|
23 |
Requires: pwauth |
Requires: pwauth |
24 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
25 |
Requires: server-manager-images, server-manager |
Requires: server-manager-images, server-manager |
63 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
64 |
|
|
65 |
%changelog |
%changelog |
66 |
|
* Sun May 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-16.sme |
67 |
|
- Allow bootstrap to start services after post-install configuration [SME: 9530] |
68 |
|
|
69 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-15.sme |
70 |
|
- Use a C wrapper for the console to replace perl-suid [SME: 9393] |
71 |
|
|
72 |
|
* Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-14.sme |
73 |
|
- fix password not asked after signal-event post-install [SME: 9445] |
74 |
|
|
75 |
|
* Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-13.sme |
76 |
|
- only start services on regular boot [SME: 9436] |
77 |
|
|
78 |
|
* Tue Apr 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-12.sme |
79 |
|
- fix getting locale for db configuration [SME: 9378] |
80 |
|
|
81 |
|
* Mon Apr 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-11.sme |
82 |
|
- rearange startup [SME: 9352] |
83 |
|
- let systemd handle following unsupervised services: |
84 |
|
- bootstrap-console, rsyslog, irqbalance, crond, acpid, smartd |
85 |
|
- disable from systemd services whith link in rc7.d |
86 |
|
- let bootstrap-console run at every reboot and handle surpevised services startup |
87 |
|
|
88 |
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-9.sme |
* Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-9.sme |
89 |
- Remove ctrlaltdel service entry [SME: 9437] |
- Remove ctrlaltdel service entry [SME: 9437] |
90 |
|
|
1840 |
%patch0 -p1 |
%patch0 -p1 |
1841 |
%patch1 -p1 |
%patch1 -p1 |
1842 |
%patch2 -p1 |
%patch2 -p1 |
1843 |
|
%patch3 -p1 |
1844 |
|
%patch4 -p1 |
1845 |
|
%patch5 -p1 |
1846 |
|
%patch6 -p1 |
1847 |
|
%patch7 -p1 |
1848 |
|
%patch8 -p1 |
1849 |
|
|
1850 |
|
|
1851 |
%pre |
%pre |
1852 |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
1866 |
|
|
1867 |
/sbin/e-smith/generate-lexicons |
/sbin/e-smith/generate-lexicons |
1868 |
|
|
1869 |
xgettext -L perl -o root/usr/share/locale/en_US/LC_MESSAGES/server-console.po root/sbin/e-smith/console |
xgettext -L perl -o root/usr/share/locale/en_US/LC_MESSAGES/server-console.po root/sbin/e-smith/console.pl |
1870 |
|
|
1871 |
perl createlinks |
perl createlinks |
1872 |
/sbin/e-smith/buildtests 10e-smith-base |
/sbin/e-smith/buildtests 10e-smith-base |
1873 |
|
|
1874 |
|
gcc -o root/sbin/e-smith/console console_wrapper.c |
1875 |
|
|
1876 |
%install |
%install |
1877 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
1878 |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |