1 |
|
# $Id: e-smith-base.spec,v 1.95 2010/06/11 13:21:14 filippocarletti 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 4.18.1 |
%define version 5.2.0 |
7 |
%define release 20 |
%define release 26 |
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.gz |
Source: %{name}-%{version}.tar.gz |
13 |
Patch1: e-smith-base-4.18.1-fixgettext.patch |
Patch1: e-smith-base-5.2.0-sambaRole.patch |
14 |
Patch2: e-smith-base-4.18.1-deleteorder.patch |
Patch2: e-smith-base-5.2.0-smartd40.patch |
15 |
Patch3: e-smith-base-4.18.1-insertmode.patch |
Patch3: e-smith-base-5.2.0-usbRev70drive.patch |
16 |
Patch4: e-smith-base-4.18.1-freebusy.patch |
Patch4: e-smith-base-5.2.0-FixLabelArray.patch |
17 |
Patch5: e-smith-base-4.18.1-frames.patch |
Patch5: e-smith-base-5.2.0-straysymlink.patch |
18 |
Patch6: e-smith-base-4.18.1-quitconsole.patch |
Patch6: e-smith-base-5.2.0-nonetworkdrivers.patch |
19 |
Patch7: e-smith-base-4.18.1-freebusy.patch2 |
Patch7: e-smith-base-5.2.0-checkIPOverlap.patch |
20 |
Patch8: e-smith-base-4.18.1-dateManip.patch |
Patch8: e-smith-base-5.2.0-adapter-translation-fixes.patch |
21 |
Patch9: e-smith-base-4.18.1-ethernetlist.patch |
Patch9: e-smith-base-5.2.0-FixLocale_External.patch |
22 |
Patch10: e-smith-base-4.18.1-add2general.patch |
Patch10: e-smith-base-5.2.0-perform_restore-hal.patch |
23 |
Patch11: e-smith-base-4.18.1-get_raid_details_cciss.patch |
Patch11: e-smith-base-5.2.0-generate-2048-bits-keys.patch |
24 |
Patch12: e-smith-base-4.18.1-RevertInvalidLocaleReversion.patch |
Patch12: e-smith-base-5.2.0-perform_backup-hal.patch |
25 |
Patch13: e-smith-base-4.18.1-FixAndMoveRESET_PASSWORD_TITLE.patch |
Patch13: e-smith-base-5.2.0-hwaddress.patch |
26 |
Patch14: e-smith-base-4.18.1-removeInvalidEntryTag.patch |
Patch14: e-smith-base-5.2.0-sha1.patch |
27 |
Patch15: e-smith-base-4.18.1-fixPASSWORD_VERIFY_ERROR.patch |
Patch15: e-smith-base-5.2.0-fix-template-expansion-error.patch |
28 |
Patch16: e-smith-base-4.18.1-fixPASSWORD_VERIFY_NEW.patch |
Patch16: e-smith-base-5.2.0-gettext.patch |
29 |
|
Patch17: e-smith-base-5.2.0-remove-freebusy-references.patch |
30 |
|
Patch18: e-smith-base-5.2.0-no-nic.patch |
31 |
|
Patch19: e-smith-base-5.2.0-fix-local-nic-string-in-console.patch |
32 |
|
Patch20: e-smith-base-5.2.0-freebusy-user-modify-fix.patch |
33 |
|
Patch21: e-smith-base-5.2.0-condrestart.patch |
34 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
35 |
Requires: mod_auth_external |
Requires: mod_auth_external |
36 |
Requires: e-smith-lib >= 1.18.0-19 |
Requires: e-smith-lib >= 2.2.0-2 |
37 |
Requires: server-manager-images, server-manager |
Requires: server-manager-images, server-manager |
38 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
39 |
Requires: initscripts >= 6.67-1es17 |
Requires: initscripts >= 6.67-1es17 |
46 |
Requires: /usr/sbin/irqbalance |
Requires: /usr/sbin/irqbalance |
47 |
Requires: /usr/sbin/cpuspeed |
Requires: /usr/sbin/cpuspeed |
48 |
Requires: /sbin/microcode_ctl |
Requires: /sbin/microcode_ctl |
49 |
|
Requires: /usr/sbin/smartd |
50 |
Requires: dbus |
Requires: dbus |
51 |
Requires: hal |
Requires: hal |
52 |
Requires: acpid |
Requires: acpid |
61 |
Obsoletes: e-smith-serial-console |
Obsoletes: e-smith-serial-console |
62 |
Obsoletes: sshell |
Obsoletes: sshell |
63 |
Obsoletes: e-smith-rp-pppoe |
Obsoletes: e-smith-rp-pppoe |
|
%if "%{?rhel}" == "5" |
|
64 |
Obsoletes: perl-Data-UUID |
Obsoletes: perl-Data-UUID |
|
%endif |
|
65 |
BuildRequires: perl, perl(Test::Inline) >= 0.12 |
BuildRequires: perl, perl(Test::Inline) >= 0.12 |
66 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
67 |
BuildRequires: gettext |
BuildRequires: gettext |
76 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
77 |
|
|
78 |
%changelog |
%changelog |
79 |
|
* Mon Jul 19 2010 Charlie Brady <charlie_brady@mitel.com> 5.2.0-26.sme |
80 |
|
- Don't exit 99 from e-smith-service script when called with 'condrestart' |
81 |
|
and service is disabled. [SME: 5830] |
82 |
|
|
83 |
|
* Fri Jun 11 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-25.sme |
84 |
|
- FreeBusy patch fix (save account changes) [SME: 5941] |
85 |
|
|
86 |
|
* Fri Jun 11 2010 Ian Wells <esmith@wellsi.com> 5.2.0-24.sme |
87 |
|
- Remove checkMaxUsers patch due to regression. [SME: 5537] |
88 |
|
|
89 |
|
* Tue Jun 8 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-23.sme |
90 |
|
- Fix translation of local nic string in console [SME: 5571] |
91 |
|
|
92 |
|
* Sun Jun 6 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-22.sme |
93 |
|
- Handle no network interface scenario in console [SME: 6023] |
94 |
|
|
95 |
|
* Sat Jun 5 2010 Ian Wells <esmith@wellsi.com> 5.2.0-21.sme |
96 |
|
- Remove checkMaxUsers(). [SME: 5537] |
97 |
|
|
98 |
|
* Mon May 10 2010 John H. Bennett III <bennettj@johnbennettservices.com> 5.2.0-20.sme |
99 |
|
- Patch that will remove all FreeBusy references from e-smith-base. [SME: 5941] |
100 |
|
|
101 |
|
* Wed Mar 3 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-19.sme |
102 |
|
- Restate smartd dependency. [SME: 5814] |
103 |
|
|
104 |
|
* Mon Mar 1 2010 Shad L. Lords <slords@mail.com> 5.2.0-18.sme |
105 |
|
- Fix gettext errors in WAN/LAN subnet error message [SME: 5501] |
106 |
|
|
107 |
|
* Sun Feb 14 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-17.sme |
108 |
|
- Really fix template expansion error [SME: 4528] |
109 |
|
|
110 |
|
* Sun Feb 14 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-16.sme |
111 |
|
- Fix template expansion error [SME: 4528] |
112 |
|
|
113 |
|
* Mon Feb 8 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-15.sme |
114 |
|
- Improve security by using SHA1 algorithm for certificate signing [SME: 5737] |
115 |
|
|
116 |
|
* Fri Feb 5 2010 Stephen Noble <support@dungog.net> 5.2.0-14.sme |
117 |
|
- Fix eth? swapping [SME: 4528] |
118 |
|
|
119 |
|
* Sun Jan 31 2010 Stephen Noble <support@dungog.net> 5.2.0-13.sme |
120 |
|
- Fix console backup from removable media [SME: 4809] |
121 |
|
|
122 |
|
* Sat Jan 30 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-12.sme |
123 |
|
- Bump certificate encryption from 1024 bits to 2048 bits [SME: 5735] |
124 |
|
|
125 |
|
* Thu Jan 14 2010 Filippo Carletti <filippo.carletti@gmail.com> 5.2.0-11.sme |
126 |
|
- Fix console restore from removable media (Federico Simoncelli) [SME: 4809] |
127 |
|
|
128 |
|
* Mon Nov 23 2009 Gavin Weight <gweight@gmail.com> 5.2.0-10.sme |
129 |
|
- Add a dummy call so xgettext can pull translated $ifName in console configuration pages. [SME: 5571] |
130 |
|
|
131 |
|
* Fri Nov 6 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-9.sme |
132 |
|
- Translate $ifName in console configuration pages [SME: 5571] |
133 |
|
|
134 |
|
* Sat Oct 24 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-8.sme |
135 |
|
- Prevent IP conflicts between local and external interface in server gateway mode [SME: 5501] |
136 |
|
|
137 |
|
* Tue Oct 20 2009 Filippo Carletti <filippo.carletti@gmail.com> 5.2.0-7.sme |
138 |
|
- Clean up: remove unused nonetworkdrivers [SME: 5521] |
139 |
|
|
140 |
|
* Sat Jun 6 2009 Shad L. Lords <slords@mail.com> 5.2.0-6.sme |
141 |
|
- Clean up stray symlinks in /lib/modules before depmod [SME: 5336] |
142 |
|
|
143 |
|
* Mon May 18 2009 Gavin Weight <gweight@gmail.com> 5.2.0-5.sme |
144 |
|
- Allow for different mdadm output formats for DeviceSize. [SME: 5230] |
145 |
|
|
146 |
|
* Sat Feb 14 2009 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-4.sme |
147 |
|
- Auto-mount USB REV70-drive as usbdisk [SME: 5006] |
148 |
|
|
149 |
|
* Sat Oct 25 2008 Stephen Noble <support@dungog.net> 5.2.0-3.sme |
150 |
|
- create service link for smartd [SME: 1445] |
151 |
|
|
152 |
|
* Mon Oct 13 2008 Shad L. Lords <slords@mail.com> 5.2.0-2.sme |
153 |
|
- Add patch to support multiple samba roles [SME: 4172] |
154 |
|
|
155 |
|
* Tue Oct 7 2008 Shad L. Lords <slords@mail.com> 5.2.0-1.sme |
156 |
|
- Roll new stream to separate sme7/sme8 trees [SME: 4633] |
157 |
|
|
158 |
|
* Tue Sep 23 2008 Stephen Noble <support@dungog.net> 4.19.0-6 |
159 |
|
- Add locale tags for email in review panel [SME: 4267] |
160 |
|
|
161 |
|
* Sat Sep 20 2008 Shad L. Lords <slords@mail.com> 4.19.0-5 |
162 |
|
- Correct gettext type during build process [SME: 570] |
163 |
|
|
164 |
|
* Mon Sep 15 2008 Shad L. Lords <slords@mail.com> 4.19.0-4 |
165 |
|
- Fix screen corruption in console [SME: 4155] |
166 |
|
|
167 |
|
* Sat Sep 13 2008 Shad L. Lords <slords@mail.com> 4.19.0-3 |
168 |
|
- Fix detection of xen instance against newer kernels [SME: 4555] |
169 |
|
|
170 |
|
* Thu Aug 28 2008 Jonathan Martens <smeserver-contribs@snetram.nl> 4.19.0-2 |
171 |
|
- Fixed warnings generated during build process [SME: 570] |
172 |
|
|
173 |
|
* Wed Aug 20 2008 Shad L. Lords <slords@mail.com> 4.19.0-1 |
174 |
|
- Roll new dev stream. |
175 |
|
|
176 |
|
* Sun Aug 17 2008 Gavin Weight <gweight@gmail.com> 4.18.1-22 |
177 |
|
- Add gettext to creating backup file title for localization. [SME: 4467] |
178 |
|
|
179 |
|
* Mon Aug 11 2008 Charlie Brady <charlie_brady@mitel.com> 4.18.1-21 |
180 |
|
- Fix race condition in VPN ip-down handling which could cause loss of |
181 |
|
LAN connectivity. [SME: 4405] |
182 |
|
|
183 |
* Sat Aug 9 2008 Shad L. Lords <slords@mail.com> 4.18.1-20 |
* Sat Aug 9 2008 Shad L. Lords <slords@mail.com> 4.18.1-20 |
184 |
- Remove requires for whiptail. No longer needed [SME: 4491] |
- Remove requires for whiptail. No longer needed [SME: 4491] |
185 |
|
|
1376 |
%setup |
%setup |
1377 |
%patch1 -p1 |
%patch1 -p1 |
1378 |
%patch2 -p1 |
%patch2 -p1 |
|
%if "%{?rhel}" == "5" |
|
1379 |
%patch3 -p1 |
%patch3 -p1 |
|
%endif |
|
1380 |
%patch4 -p1 |
%patch4 -p1 |
1381 |
%patch5 -p1 |
%patch5 -p1 |
1382 |
%patch6 -p1 |
%patch6 -p1 |
1390 |
%patch14 -p1 |
%patch14 -p1 |
1391 |
%patch15 -p1 |
%patch15 -p1 |
1392 |
%patch16 -p1 |
%patch16 -p1 |
1393 |
|
%patch17 -p1 |
1394 |
|
%patch18 -p1 |
1395 |
|
%patch19 -p1 |
1396 |
|
%patch20 -p1 |
1397 |
|
%patch21 -p1 |
1398 |
|
|
1399 |
%pre |
%pre |
1400 |
if [ -d /etc/e-smith/locale/fr-ca -a ! -L /etc/e-smith/locale/fr-ca ] |
if [ -d /etc/e-smith/locale/fr-ca -a ! -L /etc/e-smith/locale/fr-ca ] |
1459 |
mkdir -p root/etc/rc.d/rc1.d |
mkdir -p root/etc/rc.d/rc1.d |
1460 |
|
|
1461 |
mkdir -p root/usr/share/locale/en_US/LC_MESSAGES |
mkdir -p root/usr/share/locale/en_US/LC_MESSAGES |
1462 |
xgettext -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 |
1463 |
|
|
1464 |
mkdir -p root/etc/e-smith/locale |
mkdir -p root/etc/e-smith/locale |
1465 |
# Make the fr-ca link in %pre to ease upgrades |
# Make the fr-ca link in %pre to ease upgrades |
1504 |
mkdir -p root/etc/e-smith/events/local |
mkdir -p root/etc/e-smith/events/local |
1505 |
mkdir -p root/etc/e-smith/events/user-modify-admin |
mkdir -p root/etc/e-smith/events/user-modify-admin |
1506 |
mkdir -p root/home/e-smith/db |
mkdir -p root/home/e-smith/db |
|
touch root/home/e-smith/db/configuration |
|
1507 |
|
|
1508 |
mkdir -p root/etc/e-smith/pam |
mkdir -p root/etc/e-smith/pam |
1509 |
mkdir -p root/home/e-smith/ssl.key |
mkdir -p root/home/e-smith/ssl.key |
1515 |
for file in %{dbfiles} |
for file in %{dbfiles} |
1516 |
do |
do |
1517 |
mkdir -p root/etc/e-smith/db/$file/{defaults,migrate,force} |
mkdir -p root/etc/e-smith/db/$file/{defaults,migrate,force} |
|
# Create ghost file for rpm |
|
|
touch root/home/e-smith/db/$file |
|
1518 |
done |
done |
1519 |
|
|
1520 |
mkdir -p root/etc/tcprules |
mkdir -p root/etc/tcprules |