1 |
# $Id: e-smith-lib.spec,v 1.11 2020/11/17 16:48:09 jpp Exp $ |
# $Id: e-smith-lib.spec,v 1.18 2022/11/23 22:07:12 jpp Exp $ |
2 |
|
|
3 |
|
%define copykooz 2013-2021 |
4 |
|
|
5 |
Summary: e-smith server and gateway - library module |
Summary: e-smith server and gateway - library module |
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 11 |
%define release 17 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Artistic |
License: Artistic |
19 |
Patch4: e-smith-lib-2.6.0.bz9478.patch |
Patch4: e-smith-lib-2.6.0.bz9478.patch |
20 |
Patch5: e-smith-lib-2.6.0.bz10848.systemctl-reload-or-restart.patch |
Patch5: e-smith-lib-2.6.0.bz10848.systemctl-reload-or-restart.patch |
21 |
Patch6: e-smith-lib-2.6.0-bz11177-systemd.patch |
Patch6: e-smith-lib-2.6.0-bz11177-systemd.patch |
22 |
|
Patch7: e-smith-lib-2.6.0-bz11177-signals.patch |
23 |
|
Patch8: e-smith-lib-2.6.0-bz11570-copyrights.patch |
24 |
|
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 |
53 |
|
- add support for service with instances [SME: 11723] |
54 |
|
|
55 |
|
* Mon Apr 19 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
56 |
|
- update copyright dates, and make it easier to change from spec file [SME: 11570] |
57 |
|
|
58 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
59 |
|
- partial revert of signals [SME: 11177] |
60 |
|
signal s not passed to runit services (dnscache*, qmail, qpsmtpd...) |
61 |
|
services handled by systemd crash if they do not have Restart=always defined |
62 |
|
|
63 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
64 |
|
- add support for signals SIG* with systemd [SME: 11177] |
65 |
|
fix typo for reload-or-try-restart |
66 |
|
unsupervised services: really stop when disabled and start stopped enabled ones |
67 |
|
|
68 |
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
69 |
- remove error when sending sighup event [SME: 11177] |
- remove error when sending sighup event [SME: 11177] |
70 |
|
|
885 |
%patch6 -p1 |
%patch6 -p1 |
886 |
# creating an event that do nothing. db init is done every time by yum already. |
# creating an event that do nothing. db init is done every time by yum already. |
887 |
mkdir root/etc/e-smith/events/e-smith-lib-update |
mkdir root/etc/e-smith/events/e-smith-lib-update |
888 |
|
%patch7 -p1 |
889 |
|
%patch8 -p1 |
890 |
|
%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 |
|
|
930 |
mkdir -p root/etc/e-smith/events/$event |
mkdir -p root/etc/e-smith/events/$event |
931 |
done |
done |
932 |
perl createlinks |
perl createlinks |
933 |
|
find root/ -type f | xargs grep -l ____COPYYEARS____ | xargs sed -i -e 's/____COPYYEARS____/%{copykooz}/g' |
934 |
|
|
935 |
%install |
%install |
936 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |