1 |
# $Id: e-smith-lib.spec,v 1.1 2013/01/25 16:28:41 slords Exp $ |
# $Id: e-smith-lib.spec,v 1.16 2014/02/03 05:27:21 wellsi Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - library module |
Summary: e-smith server and gateway - library module |
4 |
%define name e-smith-lib |
%define name e-smith-lib |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 2.4.0 |
%define version 2.4.0 |
7 |
%define release 2 |
%define release 13 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: Artistic |
License: Artistic |
11 |
Group: Networking/Daemons |
Group: Networking/Daemons |
12 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
13 |
Patch0: e-smith-lib-2.4.0-dont_use_kudzu_to_probe_nics.patch |
Patch0: e-smith-lib-2.4.0-dont_use_kudzu_to_probe_nics.patch |
14 |
|
Patch1: e-smith-lib-2.4.0-fix_bonding.patch |
15 |
|
Patch2: e-smith-lib-2.4.0-ipv4check.patch |
16 |
|
Patch3: e-smith-lib-2.4.0-untaint_nic_names.patch |
17 |
|
Patch4: e-smith-lib-2.4.0-CreateSystemUser.patch |
18 |
|
Patch5: e-smith-lib-2.4.0-consoleUTF8.patch |
19 |
|
Patch6: e-smith-lib-2.4.0-return_nic_name_in_adapters_list.patch |
20 |
|
Patch7: e-smith-lib-2.4.0-remove_interface_swap.patch |
21 |
|
Patch8: e-smith-lib-2.4.0-SMEServerCopyright.patch |
22 |
|
Patch9: e-smith-lib-2.4.0-textboxLicenseFile.patch |
23 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
24 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
25 |
BuildRequires: e-smith-devtools >= 1.6.3-01 |
BuildRequires: e-smith-devtools >= 1.6.3-01 |
26 |
Obsoletes: %{name}-Tai64n |
Obsoletes: %{name}-Tai64n |
27 |
Obsoletes: whiptail |
Obsoletes: whiptail |
28 |
|
Requires(pre): e-smith |
29 |
Requires: dialog |
Requires: dialog |
30 |
Requires: perl, perl(Text::Template) |
Requires: perl, perl(Text::Template) |
31 |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
38 |
e-smith server and gateway software - library module. |
e-smith server and gateway software - library module. |
39 |
|
|
40 |
%changelog |
%changelog |
41 |
|
* Sun Mar 16 2014 Ian Wells <esmith@wellsi.com> 2.4.0-13.sme |
42 |
|
- Add textbox() to console.pm, getLicenseFile to util.pm [SME: 8264] |
43 |
|
|
44 |
|
* Sun Feb 2 2014 Ian Wells <esmith@wellsi.com> 2.4.0-12.sme |
45 |
|
- Update frame header and footer [SME: 8183] |
46 |
|
|
47 |
|
* Sat Nov 30 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-11.sme |
48 |
|
- Remove the "swap interface" feature [SME: 7993] |
49 |
|
|
50 |
|
* Sat Nov 30 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-10.sme |
51 |
|
- Return nic names in probeAdapters so we can drop HWAddress [SME: 7991] |
52 |
|
|
53 |
|
* Sat May 25 2013 Ian Wells <esmith@wellsi.com> 2.4.0-9.sme |
54 |
|
- Correctly display accented letters in the console [SME: 7591] |
55 |
|
by Filippo Carletti |
56 |
|
|
57 |
|
* Sun May 05 2013 Ian Wells <esmith@wellsi.com> 2.4.0-8.sme |
58 |
|
- Add e-smith as a Requires(pre) and remove adding users in %pre |
59 |
|
- Fix uid and gid to be the same in create-system-user [SME: 7547] |
60 |
|
|
61 |
|
* Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 2.4.0-7.sme |
62 |
|
- Ensure group www exists before user [SME: 7319] |
63 |
|
|
64 |
|
* Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 2.4.0-6.sme |
65 |
|
- Fix pre script to make www and apache the same [SME: 7319] |
66 |
|
|
67 |
|
* Tue Mar 5 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
68 |
|
- Untaint variable in probeAdapters() [SME: 7416] |
69 |
|
|
70 |
|
* Thu Feb 28 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
71 |
|
- Improve error checking in isValidIP [SME: 7410] |
72 |
|
|
73 |
|
* Sun Feb 24 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-3.sme |
74 |
|
- Fix MAC detection for bond slaves [SME: 3596] |
75 |
|
|
76 |
* Thu Jan 31 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2.sme |
* Thu Jan 31 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2.sme |
77 |
- Stop using kudzu for NIC detection [SME: 3596] |
- Stop using kudzu for NIC detection [SME: 3596] |
78 |
|
|
79 |
* Fri Jan 25 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
* Fri Jan 25 2013 Shad L. Lords <slords@mail.com> 2.4.0-1.sme |
80 |
- Bump version in prep for SME9 |
- Bump version in prep for SME9 |
81 |
|
- Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223] |
82 |
|
|
83 |
* Mon Oct 11 2010 Shad L. Lords <slords@mail.com> 2.2.0-7.sme |
* Mon Oct 11 2010 Shad L. Lords <slords@mail.com> 2.2.0-7.sme |
84 |
- Serialize configure_peers to prevent errors [SME: 5831] |
- Serialize configure_peers to prevent errors [SME: 5831] |
794 |
%prep |
%prep |
795 |
%setup |
%setup |
796 |
%patch0 -p1 |
%patch0 -p1 |
797 |
|
%patch1 -p1 |
798 |
|
%patch2 -p1 |
799 |
|
%patch3 -p1 |
800 |
|
%patch4 -p1 |
801 |
|
%patch5 -p1 |
802 |
|
%patch6 -p1 |
803 |
|
%patch7 -p1 |
804 |
|
%patch8 -p1 |
805 |
|
%patch9 -p1 |
806 |
|
|
807 |
%pre |
%pre |
|
#-------------------------------------------------- |
|
|
# add admin, public and www user accounts |
|
|
#-------------------------------------------------- |
|
|
/usr/sbin/groupadd \ |
|
|
-g 500 shared 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 102 -c 'e-smith web server' -d /home/e-smith \ |
|
|
-G shared -M -s /bin/false www 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 101 -c 'e-smith administrator' -d /home/e-smith \ |
|
|
-G shared,root,www -M -s /sbin/e-smith/console admin 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 103 -c 'e-smith guest' -d /home/e-smith \ |
|
|
-G shared -M -s /bin/false public 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 1002 -c 'sme log user' -d /var/log/smelog \ |
|
|
-M -s /bin/false smelog 2>/dev/null || : |
|
808 |
|
|
|
exit 0 |
|
809 |
|
|
810 |
%post |
%post |
811 |
|
|