1 |
%define name smeserver-domains |
2 |
%define version 1.4 |
3 |
%define release 6 |
4 |
Summary: SMEserver rpm for domain pseudonyms |
5 |
Name: %{name} |
6 |
Version: %{version} |
7 |
Release: %{release} |
8 |
License: GNU GPL version 2 |
9 |
URL: http://www.contribs.org |
10 |
Distribution: SME Server |
11 |
Group: SMEServer/addon |
12 |
Source: %{name}-%{version}.tar.gz |
13 |
Patch0: smeserver-domains-1.4-Update-Panels-for-Server-Manager2.patch |
14 |
Patch1: smeserver-domains-1.4-Add-Update-event-to-createlinks.patch |
15 |
Patch2: smeserver-domains-1.4-bz10950-path.patch |
16 |
Patch3: smeserver-domains-1.4-Add-class-to-div-for-AdminLTE.patch |
17 |
Patch4: smeserver-domains-1.4-Hide-SM2-code-as-not-complete.patch |
18 |
|
19 |
Packager: Stephen Noble <stephen@dungog.net> |
20 |
BuildRoot: /var/tmp/%{name}-%{version} |
21 |
BuildArchitectures: noarch |
22 |
BuildRequires: e-smith-devtools |
23 |
Requires: e-smith-release >= 8 |
24 |
AutoReqProv: no |
25 |
|
26 |
%description |
27 |
SMEserver rpm for more advanced domain controls |
28 |
|
29 |
%changelog |
30 |
* Mon Mar 04 2024 Brian Read <brianr@koozali.org> 1.4-6.sme |
31 |
- Hide SM2 code as not complete [SME: 12497] |
32 |
|
33 |
* Fri Jan 07 2022 Brian Read <brianr@bjsystems.co.uk> 1.4-5.sme |
34 |
- Add-class-to-div-for-AdminLTE [SME: 11836] |
35 |
|
36 |
* Mon May 31 2021 Jean-Philippe Pialasse <tests@pialasse.com> 1.4-4.sme |
37 |
- fix missing PATH and some log warning [SME: 10950] |
38 |
|
39 |
* Thu Mar 25 2021 Brian Read <brianr@bjsystems.co.uk> 1.4-3.sme |
40 |
- Add Update event to createlinks [SME: 10950] |
41 |
|
42 |
* Thu Mar 25 2021 BogusDateBot |
43 |
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, |
44 |
by assuming the date is correct and changing the weekday. |
45 |
|
46 |
* Wed Jul 22 2020 Brian Read <brianr@bjsystems.co.uk> 1.4-2.sme |
47 |
- Update for Server-Manager2 panels[SME:10950 ] |
48 |
|
49 |
* Thu Apr 28 2016 John Crisp <jcrisp@safeandsoundit.co.uk> 0-1.4-1.sme |
50 |
- First import to smecontribs |
51 |
|
52 |
* Tue Oct 31 2006 Stephen Noble <support@dungog.net> |
53 |
- warning added to setup remote MailServer before delegating to them |
54 |
- [1.2-2] |
55 |
|
56 |
* Sun Aug 20 2006 Stephen Noble <stephen@dungog.net> |
57 |
- initial release |
58 |
- [1.2-1] |
59 |
|
60 |
|
61 |
%prep |
62 |
%setup |
63 |
%patch0 -p1 |
64 |
%patch1 -p1 |
65 |
%patch2 -p1 |
66 |
%patch3 -p1 |
67 |
%patch4 -p1 |
68 |
|
69 |
%build |
70 |
perl createlinks |
71 |
|
72 |
|
73 |
%install |
74 |
rm -rf $RPM_BUILD_ROOT |
75 |
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
76 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist |
77 |
echo "%doc " >> %{name}-%{version}-filelist |
78 |
|
79 |
%clean |
80 |
cd .. |
81 |
rm -rf %{name}-%{version} |
82 |
|
83 |
%pre |
84 |
%preun |
85 |
%post |
86 |
#new installs |
87 |
if [ $1 = 1 ] ; then |
88 |
/bin/touch /home/e-smith/db/dungog |
89 |
fi |
90 |
|
91 |
if (systemctl list-unit-files |grep smanager) then |
92 |
echo "Smanager restart in spec file" |
93 |
/sbin/e-smith/signal-event smanager-refresh; |
94 |
fi |
95 |
|
96 |
|
97 |
|
98 |
%postun |
99 |
#uninstalls |
100 |
|
101 |
#&upgrades |
102 |
|
103 |
|
104 |
%files -f %{name}-%{version}-filelist |
105 |
%defattr(-,root,root) |