2 |
%define name smeserver-oats |
%define name smeserver-oats |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 0.0.1 |
%define version 0.0.1 |
5 |
%define release 1 |
%define release 2 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: SMEserver/addon |
Group: SMEserver/addon |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
11 |
|
Patch0: smeserver-oats-0.0.1-administrators.patch |
12 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
13 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
14 |
Requires: smeserver-release >= 7.0 |
Requires: smeserver-release >= 7.0 |
20 |
on SME Server |
on SME Server |
21 |
|
|
22 |
%changelog |
%changelog |
23 |
|
* Sat Feb 23 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
24 |
|
- Administrators array added to the defaults.php templates. This |
25 |
|
- adds the 'admin' link and associated config page to the interface. |
26 |
|
- [0.0.1-2] |
27 |
|
|
28 |
* Fri Feb 08 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
* Fri Feb 08 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
29 |
- Complete re-write to separate this with the package 'oats' |
- Complete re-write to separate this with the package 'oats' |
30 |
- These two now install as do other SME Contribs. Initial Release. |
- These two now install as do other SME Contribs. Initial Release. |
33 |
%prep |
%prep |
34 |
|
|
35 |
%setup |
%setup |
36 |
#%patch0 -p1 |
%patch0 -p1 |
37 |
|
|
38 |
%build |
%build |
39 |
#perl createlinks |
#perl createlinks |
76 |
/sbin/e-smith/expand-template /opt/oats/config/defaults.php |
/sbin/e-smith/expand-template /opt/oats/config/defaults.php |
77 |
/usr/bin/sv h /service/httpd-e-smith |
/usr/bin/sv h /service/httpd-e-smith |
78 |
|
|
|
echo "Settings: 'config show oats'" |
|
|
|
|
79 |
%preun |
%preun |
80 |
|
|
81 |
%postun |
%postun |
83 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
84 |
/usr/bin/sv h /service/httpd-e-smith |
/usr/bin/sv h /service/httpd-e-smith |
85 |
fi |
fi |
86 |
echo "To remove the DB issue 'mysqladmin drop oats' then 'y' to confirm" |
# Not good for yum multi-package installs ;-) so i removed the line below |
87 |
|
#echo "To remove the DB issue 'mysqladmin drop oats' then 'y' to confirm" |