1 |
# $Id: e-smith-base.spec,v 1.35 2017/02/27 23:32:32 unnilennium Exp $ |
# $Id: e-smith-base.spec,v 1.45 2019/12/20 19:38:15 michel 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 33 |
%define release 42 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
33 |
Patch20: e-smith-base-5.8.0.bz9550.fixconsolerestore.patch |
Patch20: e-smith-base-5.8.0.bz9550.fixconsolerestore.patch |
34 |
Patch21: e-smith-base-5.8.0.bz10121-moretranslationlinks.patch |
Patch21: e-smith-base-5.8.0.bz10121-moretranslationlinks.patch |
35 |
Patch22: e-smith-base-5.8.0.bz9478-move-smtpd-to-qpsmtpd.patch |
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 |
|
|
43 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
44 |
Requires: pwauth |
Requires: pwauth |
85 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
86 |
|
|
87 |
%changelog |
%changelog |
88 |
|
* Sun May 17 2020 Chris Sansom-Ninnes <chris@sansom.ninnes.net> 5.8.0-42.sme |
89 |
|
- Enable smartd by default [SME: 5890] |
90 |
|
- Credit to Chris Burnat |
91 |
|
|
92 |
|
* Wed Dec 18 2019 Michel Begue <mab974@gmail.com> 5.8.0-41.sme |
93 |
|
- Add a link to manager C wrapper to execute userpassword's cgi to replace perl-suid [SME: 9677] |
94 |
|
|
95 |
|
* Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme |
96 |
|
- fix SystemName [SME: 8876] |
97 |
|
|
98 |
|
* Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-39.sme |
99 |
|
- modify the default city and company [SME: 10715] |
100 |
|
|
101 |
|
* Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-38.sme |
102 |
|
- cleaning xinetd.conf fragment out of the package [SME: 10219] |
103 |
|
|
104 |
|
* Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-37.sme |
105 |
|
- revert previous change - wrong package |
106 |
|
|
107 |
|
* Tue Nov 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-36.sme |
108 |
|
- added post transaction rule for ntp [SME: 10190] |
109 |
|
- thank you to Stefano Zamboni for this work |
110 |
|
|
111 |
|
* Thu May 4 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-35.sme |
112 |
|
- Expand route-bond0 when nic bonding is enabled [SME: 10272] |
113 |
|
|
114 |
|
* Sat Apr 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-34.sme |
115 |
|
- improve regex to catch local [SME: 9724] |
116 |
|
|
117 |
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-33.sme |
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-33.sme |
118 |
- change smtpd to qpsmtpd for default service access [SME: 9478] |
- change smtpd to qpsmtpd for default service access [SME: 9478] |
119 |
|
|
1961 |
%patch20 -p1 |
%patch20 -p1 |
1962 |
%patch21 -p1 |
%patch21 -p1 |
1963 |
%patch22 -p1 |
%patch22 -p1 |
1964 |
|
%patch23 -p1 |
1965 |
|
%patch24 -p1 |
1966 |
|
%patch25 -p1 |
1967 |
|
%patch26 -p1 |
1968 |
|
%patch27 -p1 |
1969 |
|
%patch28 -p1 |
1970 |
|
|
1971 |
%pre |
%pre |
1972 |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
1973 |
'sme last system user marker' /tmp /bin/false |
'sme last system user marker' /tmp /bin/false |
1974 |
|
|
1975 |
%post |
%post |
1976 |
|
LEXICONS=$(find /etc/e-smith/locale/*/etc/e-smith/web/panels/password/cgi-bin/userpassword -type f) |
1977 |
|
|
1978 |
|
for lexicon in $LEXICONS |
1979 |
|
do |
1980 |
|
if [ -f $lexicon ] |
1981 |
|
then |
1982 |
|
cd $(dirname "$lexicon") |
1983 |
|
mv ./userpassword ../../../functions |
1984 |
|
fi |
1985 |
|
done |
1986 |
|
|
1987 |
|
|
1988 |
%build |
%build |
1989 |
|
|
1990 |
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) |
|
1991 |
|
|
1992 |
for lexicon in $LEXICONS |
for lexicon in $LEXICONS |
1993 |
do |
do |
2003 |
|
|
2004 |
gcc -o root/sbin/e-smith/console console_wrapper.c |
gcc -o root/sbin/e-smith/console console_wrapper.c |
2005 |
|
|
2006 |
|
# Force creation of potentially empty directories |
2007 |
|
mkdir -p root/etc/e-smith/web/panels/password/cgi-bin |
2008 |
|
ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/password/cgi-bin/userpassword |
2009 |
|
|
2010 |
%install |
%install |
2011 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
2012 |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |
mkdir -p $RPM_BUILD_ROOT/etc/selinux |