1 |
# $Id: e-smith-base.spec,v 1.29 2016/07/22 09:50:56 unnilennium 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 27 |
%define release 41 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
27 |
Patch14: e-smith-base-5.8.0.bz9687.local-link.patch |
Patch14: e-smith-base-5.8.0.bz9687.local-link.patch |
28 |
Patch15: e-smith-base-5.8.0-bz9688.skipredirect.patch |
Patch15: e-smith-base-5.8.0-bz9688.skipredirect.patch |
29 |
Patch16: e-smith-base-5.8.0-bz9672.servicesystemd.patch |
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 |
43 |
Requires: pwauth |
Requires: pwauth |
44 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
84 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
85 |
|
|
86 |
%changelog |
%changelog |
87 |
|
* 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 |
* 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] |
- adapt e-smith service command to systemd [SME: 9672] |
134 |
|
|
1950 |
%patch14 -p1 |
%patch14 -p1 |
1951 |
%patch15 -p1 |
%patch15 -p1 |
1952 |
%patch16 -p1 |
%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 |
1997 |
|
|
1998 |
gcc -o root/sbin/e-smith/console console_wrapper.c |
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 |