1 |
# $Id: e-smith-base.spec,v 1.1 2013/01/31 16:28:58 slords Exp $ |
# $Id: e-smith-base.spec,v 1.35 2013/05/19 16:01:25 wellsi 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.4.0 |
%define version 5.4.0 |
7 |
%define release 2 |
%define release 34 |
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.4.0-runlevel_4.patch |
Patch0: e-smith-base-5.4.0-runlevel_4.patch |
14 |
|
Patch1: e-smith-base-5.4.0-local_event.patch |
15 |
|
Patch2: e-smith-base-5.4.0-noapmd.patch |
16 |
|
Patch3: e-smith-base-5.4.0-rsysloglink.patch |
17 |
|
Patch4: e-smith-base-5.4.0-optimize_user_modify_unix.patch |
18 |
|
Patch5: e-smith-base-5.4.0-user_modify_in_bootstrap.patch |
19 |
|
Patch6: e-smith-base-5.4.0-pppoeMlimit.patch |
20 |
|
Patch7: e-smith-base-5.4.0-microcode.patch |
21 |
|
Patch8: e-smith-base-5.4.0-PostUpgradeRestore.patch |
22 |
|
Patch9: e-smith-base-5.4.0-inittab.patch |
23 |
|
Patch10: e-smith-base-5.4.0-pwauth.patch |
24 |
|
Patch11: e-smith-base-5.4.0-uidgid.patch |
25 |
|
Patch12: e-smith-base-5.4.0-fixwww.patch |
26 |
|
Patch13: e-smith-base-5.4.0-SystemName.patch |
27 |
|
Patch14: e-smith-base-5.4.0-existing_hwaddr.patch |
28 |
|
Patch15: e-smith-base-5.4.0-remove_syslogd_templates.patch |
29 |
|
Patch16: e-smith-base-5.4.0-rsyslog_templates.patch |
30 |
|
Patch17: e-smith-base-5.4.0-rsyslog_db.patch |
31 |
|
Patch18: e-smith-base-5.4.0-rsyslog.conf.patch |
32 |
|
Patch19: e-smith-base-5.4.0-rate_limit.patch |
33 |
|
Patch20: e-smith-base-5.4.0-no_modprobe.patch |
34 |
|
Patch21: e-smith-base-5.4.0-more_rsyslog.patch |
35 |
|
Patch22: e-smith-base-5.4.0-ConsoleBackupText.patch |
36 |
|
Patch23: e-smith-base-5.4.0-NICBonding.patch |
37 |
|
Patch24: e-smith-base-5.4.0-rename_pam_ldap_conf.patch |
38 |
|
Patch25: e-smith-base-5.4.0-fix_bash-in_run_pppoe_conf.patch |
39 |
|
Patch26: e-smith-base-5.4.0-StartService.patch |
40 |
|
Patch27: e-smith-base-5.4.0-rcesmith-removal.patch |
41 |
|
Patch28: e-smith-base-5.4.0-add_template_to_ssl.pem.patch |
42 |
|
Patch29: e-smith-base-5.4.0-init-accounts.patch |
43 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
44 |
Requires: mod_auth_external |
BuildArch: noarch |
45 |
|
Requires: pwauth |
46 |
Requires: e-smith-lib >= 2.2.0-2 |
Requires: e-smith-lib >= 2.2.0-2 |
47 |
Requires: server-manager-images, server-manager |
Requires: server-manager-images, server-manager |
48 |
Requires: e-smith-formmagick >= 1.4.0-12 |
Requires: e-smith-formmagick >= 1.4.0-12 |
67 |
Requires: mdadm |
Requires: mdadm |
68 |
Requires: pv |
Requires: pv |
69 |
Requires: pam_abl |
Requires: pam_abl |
70 |
Requires: nss_ldap |
Requires: diald |
71 |
|
Requires: /usr/bin/passwd |
72 |
|
Requires: nss-pam-ldapd |
73 |
|
Obsoletes: nss_ldap < 254 |
74 |
Requires: cpu >= 1.4.3 |
Requires: cpu >= 1.4.3 |
75 |
Obsoletes: rlinetd, e-smith-mod_ssl |
Obsoletes: rlinetd, e-smith-mod_ssl |
76 |
Obsoletes: e-smith-serial-console |
Obsoletes: e-smith-serial-console |
80 |
BuildRequires: perl, perl(Test::Inline) >= 0.12 |
BuildRequires: perl, perl(Test::Inline) >= 0.12 |
81 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
82 |
BuildRequires: gettext |
BuildRequires: gettext |
|
%ifarch i386 |
|
|
Requires: apmd |
|
|
%endif |
|
83 |
|
|
84 |
%define dbfiles accounts configuration domains hosts networks |
%define dbfiles accounts configuration domains hosts networks |
85 |
AutoReqProv: no |
AutoReqProv: no |
88 |
e-smith server and gateway software - base module. |
e-smith server and gateway software - base module. |
89 |
|
|
90 |
%changelog |
%changelog |
91 |
|
* Sun May 19 2013 Ian Wells <esmith@wellsi.com> 5.4.0-34.sme |
92 |
|
- Remove redundant parts of init-accounts [SME: 3550] |
93 |
|
|
94 |
|
* Sat May 18 2013 chris burnat <devlist@burnat.com> 5.4.0-33.sme |
95 |
|
- Add_template_to_ssl.pem, codes by JP Pialasse [SME: 7601] |
96 |
|
|
97 |
|
* Tue May 07 2013 Ian Wells <esmith@wellsi.com> 5.4.0-32.sme |
98 |
|
- Require diald [SME: 7279] |
99 |
|
|
100 |
|
* Mon May 06 2013 Ian Wells <esmith@wellsi.com> 5.4.0-31.sme |
101 |
|
- Removal of rc.e-smith now functionality is in e-smith-service [SME: 7267] |
102 |
|
|
103 |
|
* Sun May 05 2013 Ian Wells <esmith@wellsi.com> 5.4.0-30.sme |
104 |
|
- Revert last change. [SME: 7227] |
105 |
|
|
106 |
|
* Sat May 04 2013 Ian Wells <esmith@wellsi.com> 5.4.0-29.sme |
107 |
|
- Suppress template text from /etc/inittab [SME: 7227] |
108 |
|
|
109 |
|
* Mon Apr 22 2013 Ian Wells <esmith@wellsi.com> 5.4.0-28.sme |
110 |
|
- Replacement of rc.e-smith by moving code into e-smith-service [SME: 7267] |
111 |
|
|
112 |
|
* Mon Apr 21 2013 chris burnat <devlist@burnat.com> 5.4.0-27.sme |
113 |
|
- Fix the way '.' works in bash [SME: 7532] |
114 |
|
|
115 |
|
* Fri Mar 22 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-26.sme |
116 |
|
- rename /etc/ldap.conf to /etc/pam_ldap.conf (and same for .secret) [SME: 7289] |
117 |
|
|
118 |
|
* Sat Mar 16 2013 Ian Wells <esmith@wellsi.com> 5.4.0-25.sme |
119 |
|
- Always define InternalInterface NICBonding [SME: 7498] |
120 |
|
|
121 |
|
* Sat Mar 16 2013 Terry Fage <trex1512@yahoo.com.au> 5.4.0-24.sme |
122 |
|
- In the console refer to removable media instead of USB disk [SME: 7414] |
123 |
|
|
124 |
|
* Sat Mar 16 2013 Shad L. Lords <slords@mail.com> 5.4.0-23.sme |
125 |
|
- Fix a few more syslog => rsyslog items [SME: 7221] |
126 |
|
|
127 |
|
* Sat Mar 16 2013 Shad L. Lords <slords@mail.com> 5.4.0-22.sme |
128 |
|
- Remove modprobe stuff [SME: 7261] |
129 |
|
|
130 |
|
* Sat Mar 16 2013 Shad L. Lords <slords@mail.com> 5.4.0-21.sme |
131 |
|
- Don't be as agressive on rate limiting [SME: 7470] |
132 |
|
|
133 |
|
* Sat Mar 16 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-20.sme |
134 |
|
- Change syslog templates to rsyslog [SME: 7221] |
135 |
|
|
136 |
|
* Fri Mar 15 2013 Ian Wells <esmith@wellsi.com> 5.4.0-19.sme |
137 |
|
- Ensure existing_hwaddr is always initialized [SME: 7471] |
138 |
|
|
139 |
|
* Thu Mar 14 2013 Ian Wells <esmith@wellsi.com> 5.4.0-18.sme |
140 |
|
- Change System Name from mitel-networks-server to sme-server [SME: 7485] |
141 |
|
|
142 |
|
* Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 5.4.0-17.sme |
143 |
|
- Fix user www creation in init-accounts [SME: 7319] |
144 |
|
|
145 |
|
* Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 5.4.0-16.sme |
146 |
|
- Update package and path for pwauth [SME: 7319] |
147 |
|
- Update init-accounts to set uid/gid correctly for pwauth |
148 |
|
|
149 |
|
* Thu Feb 28 2013 Shad L. Lords <slords@mail.com> 5.4.0-15.sme |
150 |
|
- Remove fragments in inittab that are no longer needed [SME: 7227] |
151 |
|
|
152 |
|
* Mon Feb 25 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-14.sme |
153 |
|
- Post-upgrades not fired after restore from console [SME: 7390] |
154 |
|
|
155 |
|
* Sat Feb 23 2013 Ian Wells <esmith@wellsi.com> 5.4.0-13.sme |
156 |
|
- Remove microcode_ctl service as now udev-driven [SME: 7397] |
157 |
|
|
158 |
|
* Thu Feb 21 2013 Ian Wells <esmith@wellsi.com> 5.4.0-12.sme |
159 |
|
- Increase memory limit for pppoe to 100Mb matching SME8 solution [SME: 7391] |
160 |
|
|
161 |
|
* Thu Feb 21 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-11.sme |
162 |
|
- Optimize user-modify-unix script and link it in bootstrap-ldap-save [SME: 7387] |
163 |
|
|
164 |
|
* Tue Feb 19 2013 Shad L. Lords <slords@mail.com> 5.4.0-10.sme |
165 |
|
- Add /usr/bin/passwd as a required package [SME: 7350] |
166 |
|
|
167 |
|
* Sat Feb 9 2013 Ian Wells <esmith@wellsi.com> 5.4.0-9.sme |
168 |
|
- Update symlink to not conflict with /etc/init.d [SME: 7322] |
169 |
|
|
170 |
|
* Thu Feb 7 2013 Ian Wells <esmith@wellsi.com> 5.4.0-8.sme |
171 |
|
- Add symbolic links from rsyslog to syslog to start the |
172 |
|
the transition from syslog to rsyslog [SME: 7322] |
173 |
|
|
174 |
|
* Wed Feb 6 2013 Shad L. Lords <slords@mail.com> 5.4.0-7.sme |
175 |
|
- Remove apmd service and change package to noarch [SME: 7312] |
176 |
|
|
177 |
|
* Sun Feb 3 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-6.sme |
178 |
|
- Add a daemontools service to run signal-event local [SME: 7230] |
179 |
|
|
180 |
|
* Sat Feb 2 2013 Shad L. Lords <slords@mail.com> 5.4.0-5.sme |
181 |
|
- Obsolete nss_ldap so upgrades work [SME: 7273] |
182 |
|
|
183 |
|
* Sat Feb 2 2013 Shad L. Lords <slords@mail.com> 5.4.0-4.sme |
184 |
|
- Helps to spell requirements correctly |
185 |
|
|
186 |
|
* Sat Feb 2 2013 Shad L. Lords <slords@mail.com> 5.4.0-3.sme |
187 |
|
- Change nss_ldap to nss-pam-ldapd [SME: 7272] |
188 |
|
|
189 |
* Thu Jan 31 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-2.sme |
* Thu Jan 31 2013 Daniel Berteaud <daniel@firewall-services.com> 5.4.0-2.sme |
190 |
- Change default runlevel to 4 [SME: 7266] |
- Change default runlevel to 4 [SME: 7266] |
191 |
|
|
1619 |
%prep |
%prep |
1620 |
%setup |
%setup |
1621 |
%patch0 -p1 |
%patch0 -p1 |
1622 |
|
%patch1 -p1 |
1623 |
|
%patch2 -p1 |
1624 |
|
%patch3 -p1 |
1625 |
|
%patch4 -p1 |
1626 |
|
%patch5 -p1 |
1627 |
|
%patch6 -p1 |
1628 |
|
%patch7 -p1 |
1629 |
|
%patch8 -p1 |
1630 |
|
%patch9 -p1 |
1631 |
|
%patch10 -p1 |
1632 |
|
%patch11 -p1 |
1633 |
|
%patch12 -p1 |
1634 |
|
%patch13 -p1 |
1635 |
|
%patch14 -p1 |
1636 |
|
%patch15 -p1 |
1637 |
|
%patch16 -p1 |
1638 |
|
%patch17 -p1 |
1639 |
|
%patch18 -p1 |
1640 |
|
%patch19 -p1 |
1641 |
|
%patch20 -p1 |
1642 |
|
%patch21 -p1 |
1643 |
|
%patch22 -p1 |
1644 |
|
%patch23 -p1 |
1645 |
|
%patch24 -p1 |
1646 |
|
%patch25 -p1 |
1647 |
|
%patch26 -p1 |
1648 |
|
%patch27 -p1 |
1649 |
|
%patch28 -p1 |
1650 |
|
%patch29 -p1 |
1651 |
|
|
1652 |
|
# We cannot remove an empy files or folders with a patch, see [SME: 7289] |
1653 |
|
# We remove this because it contains an empty template-begin file |
1654 |
|
rm -rf root/etc/e-smith/templates/etc/ldap.secret/ |
1655 |
|
|
1656 |
%pre |
%pre |
|
/sbin/e-smith/create-system-user smelog 1002 \ |
|
|
'smelog log user' /var/log/smelog /bin/false |
|
1657 |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
/sbin/e-smith/create-system-user smelastsys 2999 \ |
1658 |
'sme last system user marker' /tmp /bin/false |
'sme last system user marker' /tmp /bin/false |
1659 |
|
|
1661 |
|
|
1662 |
%build |
%build |
1663 |
|
|
|
%if "%_build_arch" == "i386" |
|
|
echo "enabled" > root/etc/e-smith/db/configuration/defaults/apmd/status |
|
|
%else |
|
|
echo "disabled" > root/etc/e-smith/db/configuration/defaults/apmd/status |
|
|
%endif |
|
|
|
|
1664 |
LEXICONS=$(find root/etc/e-smith/web/{functions,panels/password/cgi-bin} \ |
LEXICONS=$(find root/etc/e-smith/web/{functions,panels/password/cgi-bin} \ |
1665 |
-type f | grep -v CVS) |
-type f | grep -v CVS) |
1666 |
|
|
1728 |
--dir /var/service/ippp/log/supervise 'attr(0700,root,root)' \ |
--dir /var/service/ippp/log/supervise 'attr(0700,root,root)' \ |
1729 |
--dir /var/log/ippp 'attr(2750,smelog,smelog)' \ |
--dir /var/log/ippp 'attr(2750,smelog,smelog)' \ |
1730 |
--dir /etc/e-smith/skel/user/.ssh 'attr(0700,root,root)' \ |
--dir /etc/e-smith/skel/user/.ssh 'attr(0700,root,root)' \ |
1731 |
|
--file /var/service/local/run 'attr(0750,root,root)' \ |
1732 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
1733 |
|
|
1734 |
mkdir -p $RPM_BUILD_ROOT/home/e-smith/db |
mkdir -p $RPM_BUILD_ROOT/home/e-smith/db |