/[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.4 by unnilennium, Mon Jul 18 07:53:38 2016 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.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 17
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
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 24  Requires: perl(I18N::LangTags) >= 0.27 Line 37  Requires: perl(I18N::LangTags) >= 0.27
37  Requires: perl(Net::IPv4Addr) >= 0.10  Requires: perl(Net::IPv4Addr) >= 0.10
38  Requires: perl(Taint::Util)  Requires: perl(Taint::Util)
39  Requires: pciutils  Requires: pciutils
40  Patch0: e-smith-lib-2.6.0.bz9660.serviceControlSystemd.patch  
 Patch1: e-smith-lib-2.6.0-mariadb.patch  
41  %description  %description
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
69    - remove error when sending sighup event [SME: 11177]
70    
71    * Tue Nov 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-10.sme
72    - allow more systemctl controls [SME: 11177]
73      convert unrecognized signals from service2adjust in events for systemd
74      handle unsupervised services the same way supervised were in adjust-services
75    - create e-smith-lib-event [SME: 11141]
76      
77    * Thu Dec 12 2019 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-9.sme
78    - add support for systemctl reload-or-restart, try-restart, enable -now  [SME: 10848]
79    
80    * Wed Oct 25 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-8.sme
81    - Revert prev change regarding tap_soft, as it's not needed [SME: 10445]
82    
83    * Mon Oct 23 2017 Daniel Berteaud <daniel@firewall-services.com> 2.6.0-7.sme
84    - Skip tap_soft interfaces (eg SoftEther, code from Hsing-Foo Wang)
85      [SME: 10445]
86    
87    * Wed Apr 12 2017 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-6.sme
88    - remove reference to smtpd in configuration.conf [SME: 9478]
89    
90    * Thu Aug 04 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-5.sme
91    - fix console startup display [SME: 9352]
92    
93    * Sat Jul 23 2016 Jean-Philipe Pialasse <tests@pialasse.com> 2.6.0-4.sme
94    - fix service name  syslog to rsyslog [SME: 9691]
95    
96  * 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
97  - fix mysqld to mariadb [SME: 9438]  - fix mysqld to mariadb [SME: 9438]
98  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,  - Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
# Line 815  e-smith server and gateway software - li Line 878  e-smith server and gateway software - li
878  %setup  %setup
879  %patch0 -p1  %patch0 -p1
880  %patch1 -p1  %patch1 -p1
881    %patch2 -p1
882    %patch3 -p1
883    %patch4 -p1
884    %patch5 -p1
885    %patch6 -p1
886    # 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
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    
# Line 827  do Line 930  do
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


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