/[smeserver]/rpms/e-smith-base/sme10/e-smith-base.spec
ViewVC logotype

Diff of /rpms/e-smith-base/sme10/e-smith-base.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

Revision 1.3 by unnilennium, Fri Mar 18 06:46:46 2016 UTC Revision 1.47 by jpp, Sat May 23 05:31:30 2020 UTC
# Line 1  Line 1 
1  # $Id: e-smith-base.spec,v 1.2 2016/02/04 23:19:17 vip-ire Exp $  # $Id: e-smith-base.spec,v 1.46 2020/05/17 16:19:53 chrissn 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 2  %define release 43
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: GPL  License: GPL
11  Group: Networking/Daemons  Group: Networking/Daemons
12  Source: %{name}-%{version}.tar.xz  Source: %{name}-%{version}.tar.xz
13    Patch0: e-smith-base-5.8.0-cpuspeed.patch
14    Patch1: e-smith-base-5.8.0-remove_obsolete_services.patch
15    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    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    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
 BuildArch: noarch  
44  Requires: pwauth  Requires: pwauth
45  Requires: e-smith-lib >= 2.2.0-2  Requires: e-smith-lib >= 2.2.0-2
46  Requires: server-manager-images, server-manager  Requires: server-manager-images, server-manager
# Line 21  Requires: e-smith-daemontools >= 1.7.1-0 Line 50  Requires: e-smith-daemontools >= 1.7.1-0
50  Requires: perl(Locale::gettext)  Requires: perl(Locale::gettext)
51  Requires: perl(Crypt::Cracklib)  Requires: perl(Crypt::Cracklib)
52  Requires: perl(Date::Manip)  Requires: perl(Date::Manip)
 Requires: perl(Data::UUID)  
53  Requires: perl(Net::IPv4Addr)  Requires: perl(Net::IPv4Addr)
54    Requires: perl(Digest::SHA1)
55  Requires: /usr/sbin/irqbalance  Requires: /usr/sbin/irqbalance
 Requires: /usr/sbin/cpuspeed  
56  Requires: /usr/sbin/smartd  Requires: /usr/sbin/smartd
57  Requires: dbus  Requires: dbus
58  Requires: acpid  Requires: acpid
# Line 34  Requires: vconfig Line 62  Requires: vconfig
62  Requires: e-smith-bootloader  Requires: e-smith-bootloader
63  Requires: mdadm  Requires: mdadm
64  Requires: pv  Requires: pv
65  Requires: pam_abl  Requires: dhcp
66  Requires: diald  Requires: diald
67  Requires: /usr/bin/passwd  Requires: /usr/bin/passwd
68  Requires: nss-pam-ldapd  Requires: nss-pam-ldapd
69    Requires: uuid-perl
70    Requires: kbd
71  Obsoletes: nss_ldap < 254  Obsoletes: nss_ldap < 254
72  Requires: cpu >= 1.4.3  Requires: cpu >= 1.4.3
73  Obsoletes: rlinetd, e-smith-mod_ssl  Obsoletes: rlinetd, e-smith-mod_ssl
74  Obsoletes: e-smith-serial-console  Obsoletes: e-smith-serial-console
75  Obsoletes: sshell  Obsoletes: sshell
76  Obsoletes: e-smith-rp-pppoe  Obsoletes: e-smith-rp-pppoe
 Obsoletes: perl-Data-UUID  
77  BuildRequires: perl, perl(Test::Inline) >= 0.12  BuildRequires: perl, perl(Test::Inline) >= 0.12
78  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
79  BuildRequires: gettext  BuildRequires: gettext
# Line 56  AutoReqProv: no Line 85  AutoReqProv: no
85  e-smith server and gateway software - base module.  e-smith server and gateway software - base module.
86    
87  %changelog  %changelog
88    * Sat May 23 2020 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-43.sme
89    - enable smartd for existing installation [SME: 5890]
90    
91    * Sun May 17 2020 Chris Sansom-Ninnes <chris@sansom.ninnes.net> 5.8.0-42.sme
92    - Enable smartd by default [SME: 5890]
93    - Credit to Chris Burnat
94    
95    * Wed Dec 18 2019 Michel Begue <mab974@gmail.com> 5.8.0-41.sme
96    - Add a link to manager C wrapper to execute userpassword's cgi to replace perl-suid [SME: 9677]
97    
98    * Fri Nov 22 2019 John Crisp <jcrisp@safeandsoundit.co.uk> 5.8.0-40.sme
99    - fix SystemName [SME: 8876]
100    
101    * Tue Jan 22 2019 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-39.sme
102    - modify the default city and company [SME: 10715]
103    
104    * Tue Feb 13 2018 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-38.sme
105    - cleaning xinetd.conf fragment out of the package [SME: 10219]
106    
107    * Wed Nov 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-37.sme
108    - revert previous change - wrong package
109    
110    * Tue Nov 14 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-36.sme
111    - added post transaction rule for ntp [SME: 10190]
112    - thank you to Stefano Zamboni for this work
113    
114    * Thu May 4 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-35.sme
115    - Expand route-bond0 when nic bonding is enabled [SME: 10272]
116    
117    * Sat Apr 15 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-34.sme
118    - improve regex to catch local [SME: 9724]
119    
120    * Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-33.sme
121    - change smtpd to qpsmtpd for default service access [SME: 9478]
122    
123    * Mon Feb 27 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-32.sme
124    - add translation links for manager to most language variations we support [SME: 11121]
125    
126    * Fri Feb 17 2017 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-31.sme
127    - prevent restoration from being called on regular and post-upgrade reboot [SME: 9550]
128    - console restoration can be launched again from console
129    
130    * Thu Feb 9 2017 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-30.sme
131    - Use ip route syntax to define routes to local network [SME: 10083]
132    
133    * Tue Sep 6 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-29.sme
134    - Allow /32 masks on the external interface, in which case we don't
135      check if the gateway is on the correct network) [SME: 9610]
136    
137    * Thu Aug 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-28.sme
138    - fix config db locale property [SME: 9724]
139    
140    * Sat Jul 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-27.sme
141    - adapt e-smith service command to systemd [SME: 9672]
142    
143    * Fri Jul 22 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-26.sme
144    - add systemd skip redirect to e-smith-service  [SME: 9688]
145    
146    * Thu Jul 21 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-25.sme
147    - fix broken link /etc/init.d/supervise/local link [SME: 9687]
148    
149    * Mon Jul 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-22.sme
150    - fix mysqld to mariadb  [SME: 9438]
151    
152    * Sat Jul 16 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-21.sme
153    - fix missing path to chkconfig [SME: 9641]
154    
155    * Thu Jul 14 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-20.sme
156    - Fix deprecated syntax '*' in rsyslog [SME: 9398]
157    - Added e-smith-base-5.8.0.bz9398.DeprecatedRsyslogSyntax.patch
158    
159    * Mon Jul 4 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 5.8.0-19.sme
160    - Set the hostname by hostnamectl [SME: 9631]
161    - Stefano Zamboni <zamboni@mind-at-work.it>
162    
163    * Sun Jun 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-18.sme
164    - fix Lang and keyboard layout configured are not used [SME: 9539]
165    
166    * Thu Jun 2 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-17.sme
167    - Fix display of email forward fields since smtpd entry has been merged
168      qpsmtpd [SME: 9552]
169    
170    * Sun May 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-16.sme
171    - Allow bootstrap to start services after post-install configuration [SME: 9530]
172    
173    * Thu May 12 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-15.sme
174    - Use a C wrapper for the console to replace perl-suid [SME: 9393]
175    
176    * Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-14.sme
177    - fix password not asked after signal-event post-install [SME: 9445]
178    
179    * Wed Apr 13 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-13.sme
180    - only start services on regular boot  [SME: 9436]
181    
182    * Tue Apr 12 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-12.sme
183    - fix getting locale for db configuration  [SME: 9378]
184    
185    * Mon Apr 11 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-11.sme
186    - rearange startup [SME: 9352]
187    - let systemd handle following unsupervised services:
188    - bootstrap-console, rsyslog, irqbalance, crond, acpid, smartd
189    - disable from systemd services whith link in rc7.d
190    - let bootstrap-console run at every reboot and handle surpevised services startup
191    
192    * Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-9.sme
193    - Remove ctrlaltdel service entry [SME: 9437]
194    
195    * Mon Apr 11 2016 Daniel Berteaud <daniel@firewall-services.com> 5.8.0-8.sme
196    - Remove obsolete services [SME: 9420]
197    
198    * Tue Mar 29 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-7.sme
199    - added requires dhcp [SME: 9392]
200    
201    * Wed Mar 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-6.sme
202    - add Requires perl(Digest::SHA1) for console [SME: 9372]
203    
204    * Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-5.sme
205    - fix conflict  perl-Data-UUID vs uuid-perl [SME: 9344]
206    
207    * Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-3.sme
208    - remove cpuspeed Requires and support [SME: 9337]
209    - remove pam_abl Requires [SME: 9341]
210    
211  * Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-2.sme  * Fri Mar 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 5.8.0-2.sme
212  - Remove Requires: hal [SME: 9342]  - Remove Requires: hal [SME: 9342]
213  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
# Line 1091  e-smith server and gateway software - ba Line 1243  e-smith server and gateway software - ba
1243  * Fri Jun 9 2006 Gavin Weight <gweight@gmail.com> 4.16.0-24  * Fri Jun 9 2006 Gavin Weight <gweight@gmail.com> 4.16.0-24
1244  - Remove lines for creating symlink to statusreport from spec file. [SME: 450]  - Remove lines for creating symlink to statusreport from spec file. [SME: 450]
1245    
1246  * Mon Jun 6 2006 Gordon Rowell <gordonr@gormand.com.au> 4.16.0-23  * Tue Jun 6 2006 Gordon Rowell <gordonr@gormand.com.au> 4.16.0-23
1247  - Allow for admin account when locking null passwords, and perform  - Allow for admin account when locking null passwords, and perform
1248    check in post-upgrade so that the password screen will be presented    check in post-upgrade so that the password screen will be presented
1249    after the reboot [SME: 1529]    after the reboot [SME: 1529]
1250    
1251  * Mon Jun 6 2006 Gordon Rowell <gordonr@gormand.com.au> 4.16.0-22  * Tue Jun 6 2006 Gordon Rowell <gordonr@gormand.com.au> 4.16.0-22
1252  - Correct argument ordering in last change [SME: 790, SME: 1541]  - Correct argument ordering in last change [SME: 790, SME: 1541]
1253    
1254  * Sun May 28 2006 Charlie Brady <charlie_brady@mitel.com> 4.16.0-21  * Sun May 28 2006 Charlie Brady <charlie_brady@mitel.com> 4.16.0-21
# Line 1288  e-smith server and gateway software - ba Line 1440  e-smith server and gateway software - ba
1440  * Sat Feb 11 2006 Shad L. Lords <slords@mail.com> 4.15.8-50  * Sat Feb 11 2006 Shad L. Lords <slords@mail.com> 4.15.8-50
1441  - Run kudzu -q from inittab [SME: 727]  - Run kudzu -q from inittab [SME: 727]
1442    
1443  * Tue Feb 9 2006 Charlie Brady <charlie_brady@mitel.com> 4.15.8-49  * Thu Feb 9 2006 Charlie Brady <charlie_brady@mitel.com> 4.15.8-49
1444  - Make bootp support optional, defaulting to 'deny'. [SME: 660]  - Make bootp support optional, defaulting to 'deny'. [SME: 660]
1445    
1446  * Thu Feb 9 2006 Gavin Weight <gweight@gmail.com> 4.15.8-48  * Thu Feb 9 2006 Gavin Weight <gweight@gmail.com> 4.15.8-48
# Line 1376  e-smith server and gateway software - ba Line 1528  e-smith server and gateway software - ba
1528  - Don't add obsolete ipsec net-pf aliases to modprobe.conf, and  - Don't add obsolete ipsec net-pf aliases to modprobe.conf, and
1529    remove them if found. [SME: 390]    remove them if found. [SME: 390]
1530    
1531  * Sun Jan 2 2006 Charlie Brady <charlieb@e-smith.com> 4.15.8-23  * Mon Jan 2 2006 Charlie Brady <charlieb@e-smith.com> 4.15.8-23
1532  - Use regexp as well as cracklib to check admin password in console.  - Use regexp as well as cracklib to check admin password in console.
1533    [SME: 335]    [SME: 335]
1534    
# Line 1789  e-smith server and gateway software - ba Line 1941  e-smith server and gateway software - ba
1941    
1942  %prep  %prep
1943  %setup  %setup
1944    %patch0 -p1
1945    %patch1 -p1
1946    %patch2 -p1
1947    %patch3 -p1
1948    %patch4 -p1
1949    %patch5 -p1
1950    %patch6 -p1
1951    %patch7 -p1
1952    %patch8 -p1
1953    %patch9 -p1
1954    %patch10 -p1
1955    %patch11 -p1
1956    %patch12 -p1
1957    %patch13 -p1
1958    %patch14 -p1
1959    %patch15 -p1
1960    %patch16 -p1
1961    %patch17 -p1
1962    %patch18 -p1
1963    %patch19 -p1
1964    %patch20 -p1
1965    %patch21 -p1
1966    %patch22 -p1
1967    %patch23 -p1
1968    %patch24 -p1
1969    %patch25 -p1
1970    %patch26 -p1
1971    %patch27 -p1
1972    %patch28 -p1
1973    
1974  %pre  %pre
1975  /sbin/e-smith/create-system-user smelastsys 2999 \  /sbin/e-smith/create-system-user smelastsys 2999 \
1976      'sme last system user marker' /tmp /bin/false      'sme last system user marker' /tmp /bin/false
1977    
1978  %post  %post
1979    LEXICONS=$(find /etc/e-smith/locale/*/etc/e-smith/web/panels/password/cgi-bin/userpassword -type f)
1980    
1981    for lexicon in $LEXICONS
1982    do
1983        if [ -f $lexicon ]
1984        then
1985            cd $(dirname "$lexicon")
1986            mv ./userpassword ../../../functions
1987        fi
1988    done
1989    
1990    
1991  %build  %build
1992    
1993  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)  
1994    
1995  for lexicon in $LEXICONS  for lexicon in $LEXICONS
1996  do  do
# Line 1808  done Line 1999  done
1999    
2000  /sbin/e-smith/generate-lexicons  /sbin/e-smith/generate-lexicons
2001    
2002  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
2003    
2004  perl createlinks  perl createlinks
2005  /sbin/e-smith/buildtests 10e-smith-base  /sbin/e-smith/buildtests 10e-smith-base
2006    
2007    gcc -o root/sbin/e-smith/console console_wrapper.c
2008    
2009    # Force creation of potentially empty directories
2010    mkdir -p root/etc/e-smith/web/panels/password/cgi-bin
2011    ln -s ../../../functions/wrapper root/etc/e-smith/web/panels/password/cgi-bin/userpassword
2012    
2013  %install  %install
2014  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
2015  mkdir -p $RPM_BUILD_ROOT/etc/selinux  mkdir -p $RPM_BUILD_ROOT/etc/selinux


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed