/[smeserver]/rpms/e-smith-lib/sme9/e-smith-lib.spec
ViewVC logotype

Diff of /rpms/e-smith-lib/sme9/e-smith-lib.spec

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

Revision 1.9 by wellsi, Sun May 5 05:53:12 2013 UTC Revision 1.10 by wellsi, Tue May 7 15:02:51 2013 UTC
# Line 1  Line 1 
1  # $Id: e-smith-lib.spec,v 1.8 2013/03/09 22:31:57 slords Exp $  # $Id: e-smith-lib.spec,v 1.9 2013/05/05 05:53:12 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 7  %define release 8
8  Version: %{version}  Version: %{version}
9  Release: %{release}%{?dist}  Release: %{release}%{?dist}
10  License: Artistic  License: Artistic
# Line 14  Patch0: e-smith-lib-2.4.0-dont_use_kudzu Line 14  Patch0: e-smith-lib-2.4.0-dont_use_kudzu
14  Patch1: e-smith-lib-2.4.0-fix_bonding.patch  Patch1: e-smith-lib-2.4.0-fix_bonding.patch
15  Patch2: e-smith-lib-2.4.0-ipv4check.patch  Patch2: e-smith-lib-2.4.0-ipv4check.patch
16  Patch3: e-smith-lib-2.4.0-untaint_nic_names.patch  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)
# Line 31  Requires: pciutils Line 33  Requires: pciutils
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 prereq to enable removal of adding users in %pre [SME: 7547]
38    
39  * Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 2.4.0-7.sme  * Sat Mar 9 2013 Shad L. Lords <slords@mail.com> 2.4.0-7.sme
40  - Ensure group www exists before user [SME: 7319]  - Ensure group www exists before user [SME: 7319]
41    
# Line 770  e-smith server and gateway software - li Line 775  e-smith server and gateway software - li
775  %patch1 -p1  %patch1 -p1
776  %patch2 -p1  %patch2 -p1
777  %patch3 -p1  %patch3 -p1
778    %patch4 -p1
779    
780  %pre  %pre
 #--------------------------------------------------  
 # add admin, public and www user accounts  
 #--------------------------------------------------  
 /usr/sbin/groupadd \  
   -g 500 shared 2>/dev/null || :  
 /usr/sbin/groupadd \  
   -g 102 -o www 2>/dev/null || :  
 /usr/sbin/useradd \  
   -u 102 -g 102 -o -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 || :  
781    
 exit 0  
782    
783  %post  %post
784    


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