1 |
jpp |
1.5 |
# $Id: smeserver-centos2sme.spec,v 1.4 2020/04/17 21:36:48 jpp Exp $ |
2 |
jpp |
1.1 |
# Authority: unnilennium |
3 |
|
|
# Name: Jean-Philippe Pialasse |
4 |
|
|
|
5 |
|
|
Summary: smeserver-centos2sme |
6 |
|
|
%define name smeserver-centos2sme |
7 |
|
|
%define version 6.9.1 |
8 |
|
|
# version number CentosMajorVersion.SMEmajorVersion.RPMversion |
9 |
jpp |
1.5 |
%define release 9 |
10 |
jpp |
1.1 |
Name: %{name} |
11 |
|
|
Version: %{version} |
12 |
|
|
Release: %{release}%{?dist} |
13 |
|
|
License: GPL |
14 |
|
|
Group: Applications/System |
15 |
|
|
Source: %{name}-%{version}.tgz |
16 |
|
|
Patch0: smeserver-centos2sme-6.9.1-bz10535-fix-path.patch |
17 |
|
|
Patch1: smeserver-centos2sme-6.9.1-bz10535-improvements.patch |
18 |
jpp |
1.2 |
Patch2: smeserver-centos2sme-6.9.1-firstSME10.patch |
19 |
jpp |
1.3 |
Patch3: smeserver-centos2sme-6.9.1-SME10-2.patch |
20 |
jpp |
1.5 |
Patch4: smeserver-centos2sme-6.9.1-secondSME10.patch |
21 |
jpp |
1.2 |
|
22 |
jpp |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
23 |
|
|
BuildArch: noarch |
24 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
jpp |
1.3 |
Requires: centos-release >= 7 |
26 |
jpp |
1.1 |
|
27 |
|
|
%description |
28 |
|
|
Package to help transform a centos box into a Koozali SME Server. |
29 |
|
|
Just run /usr/bin/centos2sme ; answer the few question and sit back while your base install of centos is morphed into a SME Server. |
30 |
|
|
Do not use on a machine with user data present or with extra packages already installed. |
31 |
|
|
%prep |
32 |
|
|
%setup |
33 |
|
|
%patch0 -p1 |
34 |
|
|
%patch1 -p1 |
35 |
jpp |
1.3 |
%patch2 -p1 |
36 |
jpp |
1.4 |
%patch3 -p1 |
37 |
jpp |
1.5 |
%patch4 -p1 |
38 |
jpp |
1.1 |
|
39 |
|
|
%build |
40 |
|
|
# /usr/bin/perl createlinks |
41 |
|
|
|
42 |
|
|
%install |
43 |
|
|
/bin/rm -rf $RPM_BUILD_ROOT |
44 |
|
|
(cd root ; /usr/bin/find . -depth -print | /bin/cpio -dump $RPM_BUILD_ROOT) |
45 |
|
|
/bin/rm -f %{name}-%{version}-filelist |
46 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
47 |
|
|
--file /usr/bin/centos2sme '%attr(0755,root,root)' \ |
48 |
|
|
> %{name}-%{version}-filelist |
49 |
|
|
cat %{name}-%{version}-filelist |
50 |
|
|
%files -f %{name}-%{version}-filelist |
51 |
|
|
%defattr(-,root,root,-) |
52 |
|
|
|
53 |
|
|
%clean |
54 |
|
|
rm -rf $RPM_BUILD_ROOT |
55 |
|
|
|
56 |
|
|
%post |
57 |
|
|
touch /etc/hosts.deny_ssh |
58 |
|
|
|
59 |
|
|
%changelog |
60 |
jpp |
1.5 |
* Sat Mar 20 2021 Jean-Philippe Pialasse <tests@pialasse.com> 6.9.1-9.sme |
61 |
|
|
- use systemctl when needed [SME: 10850] |
62 |
|
|
- fix issue with sshd not reloading and locking user [SME: 10850] |
63 |
|
|
- remove rpm -e dhcp-common |
64 |
|
|
|
65 |
jpp |
1.4 |
* Fri Apr 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-8.sme |
66 |
|
|
- improve script |
67 |
|
|
- TODO: *some deps are forced, might be added as dep for e-smith-base |
68 |
|
|
*some packages conflicting like nm and firewalld are removed should be done via e-smith-base |
69 |
|
|
|
70 |
jpp |
1.3 |
* Fri Apr 17 2020 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-7.sme |
71 |
|
|
- fix Requires, improve script |
72 |
|
|
|
73 |
jpp |
1.2 |
* Sun Dec 15 2019 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-6.sme |
74 |
|
|
- first build for SME10 |
75 |
|
|
|
76 |
jpp |
1.1 |
* Mon Mar 12 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-5.sme |
77 |
|
|
- few improvements and bug fixes see patch improvements |
78 |
|
|
|
79 |
|
|
* Sat Mar 10 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-4.sme |
80 |
|
|
- fix execution permission on /usr/bin/centos2sme [SME: 10535] |
81 |
|
|
- added warning at the begining of script to check for working network interface |
82 |
|
|
- added warning at end of script to add a SSH key before the reboot |
83 |
|
|
- added full path to signal-event in the last messages |
84 |
|
|
- set path after first packages installation. |
85 |
|
|
|
86 |
|
|
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-3.sme |
87 |
|
|
- fix bad dependencies to smeserver release and formagick [SME: 10535] |
88 |
|
|
- added requirement for centos-release between 6 and 7. |
89 |
|
|
|
90 |
|
|
* Fri Mar 09 2018 Jean-Philipe Pialasse <tests@pialasse.com> 6.9.1-2.sme |
91 |
|
|
- initial version [SME: 10533] |
92 |
|
|
|