1 |
# $Id: e-smith-lib.spec,v 1.24 2010/10/11 22:27:51 slords Exp $ |
# $Id: e-smith-lib.spec,v 1.10 2013/05/07 15:02:51 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 1 |
%define release 8 |
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 |
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 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
19 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
20 |
BuildRequires: e-smith-devtools >= 1.6.3-01 |
BuildRequires: e-smith-devtools >= 1.6.3-01 |
21 |
Obsoletes: %{name}-Tai64n |
Obsoletes: %{name}-Tai64n |
22 |
Obsoletes: whiptail |
Obsoletes: whiptail |
23 |
|
Requires(pre): e-smith |
24 |
Requires: dialog |
Requires: dialog |
25 |
Requires: perl, perl(Text::Template) |
Requires: perl, perl(Text::Template) |
26 |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
27 |
Requires: perl(Authen::PAM), perl(I18N::AcceptLanguage) |
Requires: perl(Authen::PAM), perl(I18N::AcceptLanguage) |
28 |
Requires: perl(I18N::LangTags) >= 0.27 |
Requires: perl(I18N::LangTags) >= 0.27 |
29 |
Requires: perl(Net::IPv4Addr) >= 0.10 |
Requires: perl(Net::IPv4Addr) >= 0.10 |
30 |
|
Requires: pciutils |
31 |
|
|
32 |
%description |
%description |
33 |
e-smith server and gateway software - library module. |
e-smith server and gateway software - library module. |
34 |
|
|
35 |
%changelog |
%changelog |
36 |
|
* Sun May 05 2013 Ian Wells <esmith@wellsi.com> 2.4.0-8.sme |
37 |
|
- Add e-smith as a Requires(pre) and remove adding users in %pre |
38 |
|
- Fix uid and gid to be the same in create-system-user [SME: 7547] |
39 |
|
|
40 |
|
* Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 2.4.0-7.sme |
41 |
|
- Ensure group www exists before user [SME: 7319] |
42 |
|
|
43 |
|
* Wed Mar 6 2013 Shad L. Lords <slords@mail.com> 2.4.0-6.sme |
44 |
|
- Fix pre script to make www and apache the same [SME: 7319] |
45 |
|
|
46 |
|
* Tue Mar 5 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-5.sme |
47 |
|
- Untaint variable in probeAdapters() [SME: 7416] |
48 |
|
|
49 |
|
* Thu Feb 28 2013 Ian Wells <esmith@wellsi.com> 2.4.0-4.sme |
50 |
|
- Improve error checking in isValidIP [SME: 7410] |
51 |
|
|
52 |
|
* Sun Feb 24 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-3.sme |
53 |
|
- Fix MAC detection for bond slaves [SME: 3596] |
54 |
|
|
55 |
|
* Thu Jan 31 2013 Daniel Berteaud <daniel@firewall-services.com> 2.4.0-2.sme |
56 |
|
- Stop using kudzu for NIC detection [SME: 3596] |
57 |
|
|
58 |
* 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 |
59 |
- Bump version in prep for SME9 |
- Bump version in prep for SME9 |
60 |
|
- Perl module rpms moved to /usr/share/perl5/vendor_perl [SME: 7223] |
61 |
|
|
62 |
* 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 |
63 |
- Serialize configure_peers to prevent errors [SME: 5831] |
- Serialize configure_peers to prevent errors [SME: 5831] |
772 |
|
|
773 |
%prep |
%prep |
774 |
%setup |
%setup |
775 |
|
%patch0 -p1 |
776 |
|
%patch1 -p1 |
777 |
|
%patch2 -p1 |
778 |
|
%patch3 -p1 |
779 |
|
%patch4 -p1 |
780 |
|
|
781 |
%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 || : |
|
782 |
|
|
|
exit 0 |
|
783 |
|
|
784 |
%post |
%post |
785 |
|
|