1 |
# $Id: e-smith-lib.spec,v 1.3 2016/07/18 07:52:44 unnilennium 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 3 |
%define release 16 |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: Artistic |
License: Artistic |
13 |
Group: Networking/Daemons |
Group: Networking/Daemons |
14 |
Source: %{name}-%{version}.tar.xz |
Source: %{name}-%{version}.tar.xz |
15 |
|
Patch0: e-smith-lib-2.6.0.bz9660.serviceControlSystemd.patch |
16 |
|
Patch1: e-smith-lib-2.6.0-mariadb.patch |
17 |
|
Patch2: e-smith-lib-2.6.0.bz9691.syslof.patch |
18 |
|
Patch3: e-smith-lib-2.6.0.bz9585.fix_startup_display.patch |
19 |
|
Patch4: e-smith-lib-2.6.0.bz9478.patch |
20 |
|
Patch5: e-smith-lib-2.6.0.bz10848.systemctl-reload-or-restart.patch |
21 |
|
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 |
38 |
Requires: perl(Net::IPv4Addr) >= 0.10 |
Requires: perl(Net::IPv4Addr) >= 0.10 |
39 |
Requires: perl(Taint::Util) |
Requires: perl(Taint::Util) |
40 |
Requires: pciutils |
Requires: pciutils |
41 |
Patch0: e-smith-lib-2.6.0.bz9660.serviceControlSystemd.patch |
|
|
Patch1: e-smith-lib-2.6.0-mariadb.patch |
|
42 |
%description |
%description |
43 |
e-smith server and gateway software - library module. |
e-smith server and gateway software - library module. |
44 |
|
|
45 |
%changelog |
%changelog |
46 |
|
* 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] |
48 |
|
fix network=>networking service is not restarted. |
49 |
|
|
50 |
|
* Thu Oct 28 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-15.sme |
51 |
|
- add support for service with instances [SME: 11723] |
52 |
|
|
53 |
|
* Mon Apr 19 2021 Jean-Philippe Pialasse <tests@pialasse.com> 2.6.0-14.sme |
54 |
|
- update copyright dates, and make it easier to change from spec file [SME: 11570] |
55 |
|
|
56 |
|
* Sat Jan 02 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-13.sme |
57 |
|
- partial revert of signals [SME: 11177] |
58 |
|
signal s not passed to runit services (dnscache*, qmail, qpsmtpd...) |
59 |
|
services handled by systemd crash if they do not have Restart=always defined |
60 |
|
|
61 |
|
* Fri Jan 01 2021 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-12.sme |
62 |
|
- add support for signals SIG* with systemd [SME: 11177] |
63 |
|
fix typo for reload-or-try-restart |
64 |
|
unsupervised services: really stop when disabled and start stopped enabled ones |
65 |
|
|
66 |
|
* Thu Nov 26 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-11.sme |
67 |
|
- remove error when sending sighup event [SME: 11177] |
68 |
|
|
69 |
|
* Tue Nov 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme |
70 |
|
- allow more systemctl controls [SME: 11177] |
71 |
|
convert unrecognized signals from service2adjust in events for systemd |
72 |
|
handle unsupervised services the same way supervised were in adjust-services |
73 |
|
- create e-smith-lib-event [SME: 11141] |
74 |
|
|
75 |
|
* Thu Dec 12 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme |
76 |
|
- add support for systemctl reload-or-restart, try-restart, enable -now [SME: 10848] |
77 |
|
|
78 |
|
* Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-8.sme |
79 |
|
- Revert prev change regarding tap_soft, as it's not needed [SME: 10445] |
80 |
|
|
81 |
|
* Mon Oct 23 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-7.sme |
82 |
|
- Skip tap_soft interfaces (eg SoftEther, code from Hsing-Foo Wang) |
83 |
|
[SME: 10445] |
84 |
|
|
85 |
|
* Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme |
86 |
|
- remove reference to smtpd in configuration.conf [SME: 9478] |
87 |
|
|
88 |
|
* Thu Aug 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme |
89 |
|
- fix console startup display [SME: 9352] |
90 |
|
|
91 |
|
* Sat Jul 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme |
92 |
|
- fix service name syslog to rsyslog [SME: 9691] |
93 |
|
|
94 |
* Mon Jul 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
* Mon Jul 18 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-3.sme |
95 |
- fix mysqld to mariadb [SME: 9438] |
- fix mysqld to mariadb [SME: 9438] |
96 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
876 |
%setup |
%setup |
877 |
%patch0 -p1 |
%patch0 -p1 |
878 |
%patch1 -p1 |
%patch1 -p1 |
879 |
|
%patch2 -p1 |
880 |
|
%patch3 -p1 |
881 |
|
%patch4 -p1 |
882 |
|
%patch5 -p1 |
883 |
|
%patch6 -p1 |
884 |
|
# creating an event that do nothing. db init is done every time by yum already. |
885 |
|
mkdir root/etc/e-smith/events/e-smith-lib-update |
886 |
|
%patch7 -p1 |
887 |
|
%patch8 -p1 |
888 |
|
%patch9 -p1 |
889 |
|
%patch10 -p1 |
890 |
|
|
891 |
%pre |
%pre |
892 |
|
|
899 |
mkdir -p root/etc/e-smith/events/$event |
mkdir -p root/etc/e-smith/events/$event |
900 |
done |
done |
901 |
perl createlinks |
perl createlinks |
902 |
|
find root/ -type f | xargs grep -l ____COPYYEARS____ | xargs sed -i -e 's/____COPYYEARS____/%{copykooz}/g' |
903 |
|
|
904 |
%install |
%install |
905 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |