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 17 |
%define release 16 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Artistic |
License: Artistic |
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 |
32 |
|
Requires(pre): e-smith |
33 |
Requires: dialog |
Requires: dialog |
34 |
Requires: perl, perl(Text::Template) |
Requires: perl, perl(Text::Template) |
35 |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
Requires: perl(Time::HiRes), perl(MIME::Base64) |
43 |
e-smith server and gateway software - library module. |
e-smith server and gateway software - library module. |
44 |
|
|
45 |
%changelog |
%changelog |
|
* Wed Jun 28 2023 Trevor Batley <trevor@batley.id.au> 2.6.0-17.sme |
|
|
- add in user and group adds from e-smith package [SME: 12369] |
|
|
|
|
46 |
* 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 |
47 |
- allow call to systemctl aliases in etc [SME: 12194] |
- allow call to systemctl aliases in etc [SME: 12194] |
48 |
fix network=>networking service is not restarted. |
fix network=>networking service is not restarted. |
889 |
%patch10 -p1 |
%patch10 -p1 |
890 |
|
|
891 |
%pre |
%pre |
892 |
#-------------------------------------------------- |
|
|
# 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 'SME Server web server' -d /home/e-smith \ |
|
|
-G shared -M -s /bin/false www || : |
|
|
/usr/sbin/groupadd \ |
|
|
-g 102 -o apache 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 102 -g 102 -o -c 'Apache' -d /var/www \ |
|
|
-M -s /sbin/nologin apache || : |
|
|
/usr/sbin/groupadd \ |
|
|
-g 101 -o admin 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 101 -g 101 -c 'SME Server administrator' -d /home/e-smith \ |
|
|
-G shared,root,www -M -s /sbin/e-smith/console admin || : |
|
|
/usr/sbin/groupadd \ |
|
|
-g 103 -o public 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 103 -g 103 -c 'SME Server guest' -d /home/e-smith \ |
|
|
-G shared -M -s /bin/false public || : |
|
|
/usr/sbin/groupadd \ |
|
|
-g 1002 -o smelog 2>/dev/null || : |
|
|
/usr/sbin/useradd \ |
|
|
-u 1002 -g 1002 -c 'SME Server log user' -d /var/log/smelog \ |
|
|
-M -s /bin/false smelog || : |
|
893 |
|
|
894 |
%post |
%post |
895 |
|
|