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

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

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

Revision 1.18 by jpp, Wed Nov 23 22:07:12 2022 UTC Revision 1.19 by trevorb, Wed Jun 28 08:24:32 2023 UTC
# Line 1  Line 1 
1  # $Id: e-smith-lib.spec,v 1.17 2021/10/28 04:13:03 jpp Exp $  # $Id: e-smith-lib.spec,v 1.18 2022/11/23 22:07:12 jpp Exp $
2    
3  %define copykooz 2013-2021  %define copykooz 2013-2021
4    
# Line 6  Summary: e-smith server and gateway - li Line 6  Summary: e-smith server and gateway - li
6  %define name e-smith-lib  %define name e-smith-lib
7  Name: %{name}  Name: %{name}
8  %define version 2.6.0  %define version 2.6.0
9  %define release 16  %define release 17
10  Version: %{version}  Version: %{version}
11  Release: %{release}%{?dist}  Release: %{release}%{?dist}
12  License: Artistic  License: Artistic
# Line 29  BuildArchitectures: noarch Line 29  BuildArchitectures: noarch
29  BuildRequires: e-smith-devtools >= 1.6.3-01  BuildRequires: e-smith-devtools >= 1.6.3-01
30  Obsoletes: %{name}-Tai64n  Obsoletes: %{name}-Tai64n
31  Obsoletes: whiptail  Obsoletes: whiptail
 Requires(pre): e-smith  
32  Requires: dialog  Requires: dialog
33  Requires: perl, perl(Text::Template)  Requires: perl, perl(Text::Template)
34  Requires: perl(Time::HiRes), perl(MIME::Base64)  Requires: perl(Time::HiRes), perl(MIME::Base64)
# Line 43  Requires: pciutils Line 42  Requires: pciutils
42  e-smith server and gateway software - library module.  e-smith server and gateway software - library module.
43    
44  %changelog  %changelog
45    * Wed Jun 28 2023 Trevor Batley <trevor@batley.id.au> 2.6.0-17.sme
46    - add in user and group adds from e-smith package [SME: 12369]
47    
48  * Wed Nov 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-16.sme  * Wed Nov 23 2022 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-16.sme
49  - allow call to systemctl aliases in etc [SME: 12194]  - allow call to systemctl aliases in etc [SME: 12194]
50    fix network=>networking service is not restarted.    fix network=>networking service is not restarted.
# Line 889  mkdir root/etc/e-smith/events/e-smith-li Line 891  mkdir root/etc/e-smith/events/e-smith-li
891  %patch10 -p1  %patch10 -p1
892    
893  %pre  %pre
894    #--------------------------------------------------
895    # add admin, public and www user accounts
896    #--------------------------------------------------
897    /usr/sbin/groupadd \
898      -g 500 shared 2>/dev/null || :
899    /usr/sbin/groupadd \
900      -g 102 -o www 2>/dev/null || :
901    /usr/sbin/useradd \
902      -u 102 -g 102 -o -c 'SME Server web server' -d /home/e-smith \
903      -G shared -M -s /bin/false www  || :
904    /usr/sbin/groupadd \
905      -g 102 -o apache 2>/dev/null || :
906    /usr/sbin/useradd \
907      -u 102 -g 102 -o -c 'Apache' -d /var/www \
908      -M -s /sbin/nologin apache  || :
909    /usr/sbin/groupadd \
910      -g 101 -o admin 2>/dev/null || :
911    /usr/sbin/useradd \
912      -u 101 -g 101 -c 'SME Server administrator' -d /home/e-smith \
913      -G shared,root,www -M -s /sbin/e-smith/console admin  || :
914    /usr/sbin/groupadd \
915      -g 103 -o public 2>/dev/null || :
916    /usr/sbin/useradd \
917      -u 103 -g 103 -c 'SME Server guest' -d /home/e-smith \
918      -G shared -M -s /bin/false public  || :
919    /usr/sbin/groupadd \
920      -g 1002 -o smelog 2>/dev/null || :
921    /usr/sbin/useradd \
922      -u 1002 -g 1002 -c 'SME Server log user' -d /var/log/smelog \
923      -M -s /bin/false smelog  || :
924    
925  %post  %post
926    


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