1 |
# $Id: e-smith-lib.spec,v 1.16 2021/04/20 03:25:45 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 |
|
|
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 15 |
%define release 17 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Artistic |
License: Artistic |
22 |
Patch7: e-smith-lib-2.6.0-bz11177-signals.patch |
Patch7: e-smith-lib-2.6.0-bz11177-signals.patch |
23 |
Patch8: e-smith-lib-2.6.0-bz11570-copyrights.patch |
Patch8: e-smith-lib-2.6.0-bz11570-copyrights.patch |
24 |
Patch9: e-smith-lib-2.6.0-bz11723.patch |
Patch9: e-smith-lib-2.6.0-bz11723.patch |
25 |
|
Patch10: e-smith-lib-2.6.0-bz12194-allowSystemctlAliases.patch |
26 |
|
|
27 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
28 |
BuildArchitectures: noarch |
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) |
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 |
49 |
|
- allow call to systemctl aliases in etc [SME: 12194] |
50 |
|
fix network=>networking service is not restarted. |
51 |
|
|
52 |
* Thu Oct 28 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
* Thu Oct 28 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
53 |
- add support for service with instances [SME: 11723] |
- add support for service with instances [SME: 11723] |
54 |
|
|
888 |
%patch7 -p1 |
%patch7 -p1 |
889 |
%patch8 -p1 |
%patch8 -p1 |
890 |
%patch9 -p1 |
%patch9 -p1 |
891 |
|
%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 |
|
|