1 |
# $Id: e-smith-base.spec,v 1.20 2016/06/12 06:55:15 unnilennium Exp $ |
# $Id: e-smith-base.spec,v 1.47 2020/05/23 05:31:30 jpp 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 19 |
%define release 44 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
21 |
Patch8: e-smith-base-5.8.0-postinstall.patch |
Patch8: e-smith-base-5.8.0-postinstall.patch |
22 |
Patch9: e-smith-base-5.8.0-fix_forward_field_display.patch |
Patch9: e-smith-base-5.8.0-fix_forward_field_display.patch |
23 |
Patch10: e-smith-base-5.8.0.bz9631.SetHostnameByHostnamectl.patch |
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 |
|
Patch28: e-smith-base-5.8.0-enable_smartd.patch |
42 |
|
Patch29: e-smith-base-5.8.0.bz8156.wildcard-certificate-and-subjaltname.patch |
43 |
|
|
44 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
45 |
Requires: pwauth |
Requires: pwauth |
46 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
86 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
87 |
|
|
88 |
%changelog |
%changelog |
89 |
|
* Sun May 24 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-44.sme |
90 |
|
- wildcard self-signed certificate [SME: 8156] |
91 |
|
* ip in self-signed certificate |
92 |
|
* subject altname in self-signed certificate |
93 |
|
* ability to define Country code and State using |
94 |
|
modSSL{Country} and modSSL{State} properties |
95 |
|
* /etc/openssl.conf is used now and templated for self-signed certificate |
96 |
|
|
97 |
|
* Sat May 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-43.sme |
98 |
|
- enable smartd for existing installation [SME: 5890] |
99 |
|
|
100 |
|
* Sun May 17 2020 Chris Sansom-Ninnes <chris@sansom.ninnes.net> 5.8.0-42.sme |
101 |
|
- Enable smartd by default [SME: 5890] |
102 |
|
- Credit to Chris Burnat |
103 |
|
|
104 |
|
* Wed Dec 18 2019 Michel Begue <mab974@gmail.com> 5.8.0-41.sme |
105 |
|
- Add a link to manager C wrapper to execute userpassword's cgi to replace perl-suid [SME: 9677] |
106 |
|
|
107 |
|
* Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme |
108 |
|
- fix SystemName [SME: 8876] |
109 |
|
|
110 |
|
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-39.sme |
111 |
|
- modify the default city and company [SME: 10715] |
112 |
|
|
113 |
|
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-38.sme |
114 |
|
- cleaning xinetd.conf fragment out of the package [SME: 10219] |
115 |
|
|
116 |
|
* Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-37.sme |
117 |
|
- revert previous change - wrong package |
118 |
|
|
119 |
|
* Tue Nov 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-36.sme |
120 |
|
- added post transaction rule for ntp [SME: 10190] |
121 |
|
- thank you to Stefano Zamboni for this work |
122 |
|
|
123 |
|
* Thu May 4 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-35.sme |
124 |
|
- Expand route-bond0 when nic bonding is enabled [SME: 10272] |
125 |
|
|
126 |
|
* Sat Apr 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-34.sme |
127 |
|
- improve regex to catch local [SME: 9724] |
128 |
|
|
129 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-33.sme |
130 |
|
- change smtpd to qpsmtpd for default service access [SME: 9478] |
131 |
|
|
132 |
|
* Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-32.sme |
133 |
|
- add translation links for manager to most language variations we support [SME: 11121] |
134 |
|
|
135 |
|
* Fri Feb 17 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-31.sme |
136 |
|
- prevent restoration from being called on regular and post-upgrade reboot [SME: 9550] |
137 |
|
- console restoration can be launched again from console |
138 |
|
|
139 |
|
* Thu Feb 9 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-30.sme |
140 |
|
- Use ip route syntax to define routes to local network [SME: 10083] |
141 |
|
|
142 |
|
* Tue Sep 6 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-29.sme |
143 |
|
- Allow /32 masks on the external interface, in which case we don't |
144 |
|
check if the gateway is on the correct network) [SME: 9610] |
145 |
|
|
146 |
|
* Thu Aug 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-28.sme |
147 |
|
- fix config db locale property [SME: 9724] |
148 |
|
|
149 |
|
* Sat Jul 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-27.sme |
150 |
|
- adapt e-smith service command to systemd [SME: 9672] |
151 |
|
|
152 |
|
* Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-26.sme |
153 |
|
- add systemd skip redirect to e-smith-service [SME: 9688] |
154 |
|
|
155 |
|
* Thu Jul 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-25.sme |
156 |
|
- fix broken link /etc/init.d/supervise/local link [SME: 9687] |
157 |
|
|
158 |
|
* Mon Jul 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-22.sme |
159 |
|
- fix mysqld to mariadb [SME: 9438] |
160 |
|
|
161 |
|
* Sat Jul 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-21.sme |
162 |
|
- fix missing path to chkconfig [SME: 9641] |
163 |
|
|
164 |
|
* Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-20.sme |
165 |
|
- Fix deprecated syntax '*' in rsyslog [SME: 9398] |
166 |
|
- Added e-smith-base-5.8.0.bz9398.DeprecatedRsyslogSyntax.patch |
167 |
|
|
168 |
* Mon Jul 4 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-19.sme |
* Mon Jul 4 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-19.sme |
169 |
- Set the hostname by hostnamectl [SME: 9631] |
- Set the hostname by hostnamectl [SME: 9631] |
170 |
- Stefano Zamboni <zamboni@mind-at-work.it> |
- Stefano Zamboni <zamboni@mind-at-work.it> |
1961 |
%patch8 -p1 |
%patch8 -p1 |
1962 |
%patch9 -p1 |
%patch9 -p1 |
1963 |
%patch10 -p1 |
%patch10 -p1 |
1964 |
|
%patch11 -p1 |
1965 |
|
%patch12 -p1 |
1966 |
|
%patch13 -p1 |
1967 |
|
%patch14 -p1 |
1968 |
|
%patch15 -p1 |
1969 |
|
%patch16 -p1 |
1970 |
|
%patch17 -p1 |
1971 |
|
%patch18 -p1 |
1972 |
|
%patch19 -p1 |
1973 |
|
%patch20 -p1 |
1974 |
|
%patch21 -p1 |
1975 |
|
%patch22 -p1 |
1976 |
|
%patch23 -p1 |
1977 |
|
%patch24 -p1 |
1978 |
|
%patch25 -p1 |
1979 |
|
%patch26 -p1 |
1980 |
|
%patch27 -p1 |
1981 |
|
%patch28 -p1 |
1982 |
|
%patch29 -p1 |
1983 |
|
|
1984 |
%pre |
%pre |
1985 |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
1986 |
'sme last system user marker' /tmp /bin/false |
'sme last system user marker' /tmp /bin/false |
1987 |
|
|
1988 |
%post |
%post |
1989 |
|
LEXICONS=$(find /etc/e-smith/locale/*/etc/e-smith/web/panels/password/cgi-bin/userpassword -type f) |
1990 |
|
|
1991 |
|
for lexicon in $LEXICONS |
1992 |
|
do |
1993 |
|
if [ -f $lexicon ] |
1994 |
|
then |
1995 |
|
cd $(dirname "$lexicon") |
1996 |
|
mv ./userpassword ../../../functions |
1997 |
|
fi |
1998 |
|
done |
1999 |
|
|
2000 |
|
|
2001 |
%build |
%build |
2002 |
|
|
2003 |
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) |
|
2004 |
|
|
2005 |
for lexicon in $LEXICONS |
for lexicon in $LEXICONS |
2006 |
do |
do |
2016 |
|
|
2017 |
gcc -o root/sbin/e-smith/console console_wrapper.c |
gcc -o root/sbin/e-smith/console console_wrapper.c |
2018 |
|
|
2019 |
|
# Force creation of potentially empty directories |
2020 |
|
mkdir -p root/etc/e-smith/web/panels/password/cgi-bin |
2021 |
|
ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/password/cgi-bin/userpassword |
2022 |
|
|
2023 |
%install |
%install |
2024 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
2025 |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |