1 |
# $Id: e-smith-base.spec,v 1.11 2016/04/11 19:41:29 vip-ire Exp $ |
# $Id: e-smith-base.spec,v 1.44 2019/11/22 14:51:52 jcrisp 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 10 |
%define release 41 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
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 |
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 |
|
Patch9: e-smith-base-5.8.0-fix_forward_field_display.patch |
23 |
|
Patch10: e-smith-base-5.8.0.bz9631.SetHostnameByHostnamectl.patch |
24 |
|
Patch11: e-smith-base-5.8.0.bz9398.DeprecatedRsyslogSyntax.patch |
25 |
|
Patch12: e-smith-base-5.8.0.bz9641.fix-startup-path.patch |
26 |
|
Patch13: e-smith-base-5.8.0-mariadb.patch |
27 |
|
Patch14: e-smith-base-5.8.0.bz9687.local-link.patch |
28 |
|
Patch15: e-smith-base-5.8.0-bz9688.skipredirect.patch |
29 |
|
Patch16: e-smith-base-5.8.0-bz9672.servicesystemd.patch |
30 |
|
Patch17: e-smith-base-5.8.0.bz9724.locale_sysconfig.patch |
31 |
|
Patch18: e-smith-base-5.8.0-allow_32bits_mask.patch |
32 |
|
Patch19: e-smith-base-5.8.0-ip_route_syntax.patch |
33 |
|
Patch20: e-smith-base-5.8.0.bz9550.fixconsolerestore.patch |
34 |
|
Patch21: e-smith-base-5.8.0.bz10121-moretranslationlinks.patch |
35 |
|
Patch22: e-smith-base-5.8.0.bz9478-move-smtpd-to-qpsmtpd.patch |
36 |
|
Patch23: e-smith-base-5.8.0-expand_route_bond0.patch |
37 |
|
Patch24: e-smith-base-5.8.0.bz10519.xinet-cleaning.patch |
38 |
|
Patch25: e-smith-base-5.8.0-modify-default-city.patch |
39 |
|
Patch26: e-smith-base-5.8.0.bz8876-set-system-name.patch |
40 |
|
Patch27: e-smith-base-5.8.0-bz9677-suid_wrapper.patch |
41 |
|
|
42 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
|
BuildArch: noarch |
|
43 |
Requires: pwauth |
Requires: pwauth |
44 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
45 |
Requires: server-manager-images, server-manager |
Requires: server-manager-images, server-manager |
66 |
Requires: /usr/bin/passwd |
Requires: /usr/bin/passwd |
67 |
Requires: nss-pam-ldapd |
Requires: nss-pam-ldapd |
68 |
Requires: uuid-perl |
Requires: uuid-perl |
69 |
|
Requires: kbd |
70 |
Obsoletes: nss_ldap < 254 |
Obsoletes: nss_ldap < 254 |
71 |
Requires: cpu >= 1.4.3 |
Requires: cpu >= 1.4.3 |
72 |
Obsoletes: rlinetd, e-smith-mod_ssl |
Obsoletes: rlinetd, e-smith-mod_ssl |
84 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
85 |
|
|
86 |
%changelog |
%changelog |
87 |
* Mon Apr 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-10.sme |
* Wed Dec 18 2019 Michel Begue <mab974@gmail.com> 5.8.0-41.sme |
88 |
|
- Add a link to manager C wrapper to execute userpassword's cgi to replace perl-suid [SME: 9677] |
89 |
|
|
90 |
|
* Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme |
91 |
|
- fix SystemName [SME: 8876] |
92 |
|
|
93 |
|
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-39.sme |
94 |
|
- modify the default city and company [SME: 10715] |
95 |
|
|
96 |
|
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-38.sme |
97 |
|
- cleaning xinetd.conf fragment out of the package [SME: 10219] |
98 |
|
|
99 |
|
* Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-37.sme |
100 |
|
- revert previous change - wrong package |
101 |
|
|
102 |
|
* Tue Nov 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-36.sme |
103 |
|
- added post transaction rule for ntp [SME: 10190] |
104 |
|
- thank you to Stefano Zamboni for this work |
105 |
|
|
106 |
|
* Thu May 4 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-35.sme |
107 |
|
- Expand route-bond0 when nic bonding is enabled [SME: 10272] |
108 |
|
|
109 |
|
* Sat Apr 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-34.sme |
110 |
|
- improve regex to catch local [SME: 9724] |
111 |
|
|
112 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-33.sme |
113 |
|
- change smtpd to qpsmtpd for default service access [SME: 9478] |
114 |
|
|
115 |
|
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-32.sme |
116 |
|
- add translation links for manager to most language variations we support [SME: 11121] |
117 |
|
|
118 |
|
* Fri Feb 17 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-31.sme |
119 |
|
- prevent restoration from being called on regular and post-upgrade reboot [SME: 9550] |
120 |
|
- console restoration can be launched again from console |
121 |
|
|
122 |
|
* Thu Feb 9 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-30.sme |
123 |
|
- Use ip route syntax to define routes to local network [SME: 10083] |
124 |
|
|
125 |
|
* Tue Sep 6 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-29.sme |
126 |
|
- Allow /32 masks on the external interface, in which case we don't |
127 |
|
check if the gateway is on the correct network) [SME: 9610] |
128 |
|
|
129 |
|
* Thu Aug 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-28.sme |
130 |
|
- fix config db locale property [SME: 9724] |
131 |
|
|
132 |
|
* Sat Jul 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-27.sme |
133 |
|
- adapt e-smith service command to systemd [SME: 9672] |
134 |
|
|
135 |
|
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-26.sme |
136 |
|
- add systemd skip redirect to e-smith-service [SME: 9688] |
137 |
|
|
138 |
|
* Thu Jul 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-25.sme |
139 |
|
- fix broken link /etc/init.d/supervise/local link [SME: 9687] |
140 |
|
|
141 |
|
* Mon Jul 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-22.sme |
142 |
|
- fix mysqld to mariadb [SME: 9438] |
143 |
|
|
144 |
|
* Sat Jul 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-21.sme |
145 |
|
- fix missing path to chkconfig [SME: 9641] |
146 |
|
|
147 |
|
* Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-20.sme |
148 |
|
- Fix deprecated syntax '*' in rsyslog [SME: 9398] |
149 |
|
- Added e-smith-base-5.8.0.bz9398.DeprecatedRsyslogSyntax.patch |
150 |
|
|
151 |
|
* Mon Jul 4 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-19.sme |
152 |
|
- Set the hostname by hostnamectl [SME: 9631] |
153 |
|
- Stefano Zamboni <zamboni@mind-at-work.it> |
154 |
|
|
155 |
|
* Sun Jun 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-18.sme |
156 |
|
- fix Lang and keyboard layout configured are not used [SME: 9539] |
157 |
|
|
158 |
|
* Thu Jun 2 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-17.sme |
159 |
|
- Fix display of email forward fields since smtpd entry has been merged |
160 |
|
qpsmtpd [SME: 9552] |
161 |
|
|
162 |
|
* Sun May 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-16.sme |
163 |
|
- Allow bootstrap to start services after post-install configuration [SME: 9530] |
164 |
|
|
165 |
|
* Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-15.sme |
166 |
|
- Use a C wrapper for the console to replace perl-suid [SME: 9393] |
167 |
|
|
168 |
|
* Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-14.sme |
169 |
|
- fix password not asked after signal-event post-install [SME: 9445] |
170 |
|
|
171 |
|
* Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-13.sme |
172 |
|
- only start services on regular boot [SME: 9436] |
173 |
|
|
174 |
|
* Tue Apr 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-12.sme |
175 |
|
- fix getting locale for db configuration [SME: 9378] |
176 |
|
|
177 |
|
* Mon Apr 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-11.sme |
178 |
- rearange startup [SME: 9352] |
- rearange startup [SME: 9352] |
179 |
- let systemd handle following unsupervised services: |
- let systemd handle following unsupervised services: |
180 |
- bootstrap-console, rsyslog, irqbalance, crond, acpid, smartd |
- bootstrap-console, rsyslog, irqbalance, crond, acpid, smartd |
1937 |
%patch1 -p1 |
%patch1 -p1 |
1938 |
%patch2 -p1 |
%patch2 -p1 |
1939 |
%patch3 -p1 |
%patch3 -p1 |
1940 |
|
%patch4 -p1 |
1941 |
|
%patch5 -p1 |
1942 |
|
%patch6 -p1 |
1943 |
|
%patch7 -p1 |
1944 |
|
%patch8 -p1 |
1945 |
|
%patch9 -p1 |
1946 |
|
%patch10 -p1 |
1947 |
|
%patch11 -p1 |
1948 |
|
%patch12 -p1 |
1949 |
|
%patch13 -p1 |
1950 |
|
%patch14 -p1 |
1951 |
|
%patch15 -p1 |
1952 |
|
%patch16 -p1 |
1953 |
|
%patch17 -p1 |
1954 |
|
%patch18 -p1 |
1955 |
|
%patch19 -p1 |
1956 |
|
%patch20 -p1 |
1957 |
|
%patch21 -p1 |
1958 |
|
%patch22 -p1 |
1959 |
|
%patch23 -p1 |
1960 |
|
%patch24 -p1 |
1961 |
|
%patch25 -p1 |
1962 |
|
%patch26 -p1 |
1963 |
|
%patch27 -p1 |
1964 |
|
|
1965 |
%pre |
%pre |
1966 |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
1967 |
'sme last system user marker' /tmp /bin/false |
'sme last system user marker' /tmp /bin/false |
1968 |
|
|
1969 |
%post |
%post |
1970 |
|
LEXICONS=$(find /etc/e-smith/locale/*/etc/e-smith/web/panels/password/cgi-bin/userpassword -type f) |
1971 |
|
|
1972 |
|
for lexicon in $LEXICONS |
1973 |
|
do |
1974 |
|
if [ -f $lexicon ] |
1975 |
|
then |
1976 |
|
cd $(dirname "$lexicon") |
1977 |
|
mv ./userpassword ../../../functions |
1978 |
|
fi |
1979 |
|
done |
1980 |
|
|
1981 |
|
|
1982 |
%build |
%build |
1983 |
|
|
1984 |
LEXICONS=$(find root/etc/e-smith/web/{functions,panels/password/cgi-bin} \ |
LEXICONS=$(find root/etc/e-smith/web/functions -type f | grep -v CVS) |
|
-type f | grep -v CVS) |
|
1985 |
|
|
1986 |
for lexicon in $LEXICONS |
for lexicon in $LEXICONS |
1987 |
do |
do |
1990 |
|
|
1991 |
/sbin/e-smith/generate-lexicons |
/sbin/e-smith/generate-lexicons |
1992 |
|
|
1993 |
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 |
1994 |
|
|
1995 |
perl createlinks |
perl createlinks |
1996 |
/sbin/e-smith/buildtests 10e-smith-base |
/sbin/e-smith/buildtests 10e-smith-base |
1997 |
|
|
1998 |
|
gcc -o root/sbin/e-smith/console console_wrapper.c |
1999 |
|
|
2000 |
|
# Force creation of potentially empty directories |
2001 |
|
mkdir -p root/etc/e-smith/web/panels/password/cgi-bin |
2002 |
|
ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/password/cgi-bin/userpassword |
2003 |
|
|
2004 |
%install |
%install |
2005 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
2006 |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |