2 |
%define name smeserver-oats |
%define name smeserver-oats |
3 |
Name: %{name} |
Name: %{name} |
4 |
%define version 2.0.3 |
%define version 2.0.3 |
5 |
%define release 4 |
%define release 5 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
11 |
Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.patch |
Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.patch |
12 |
Patch2: smeserver-oats-2.0.3-db_httpd_templates-02.patch |
Patch2: smeserver-oats-2.0.3-db_httpd_templates-02.patch |
13 |
Patch3: smeserver-oats-2.0.3-db_template-typo.patch |
Patch3: smeserver-oats-2.0.3-db_template-typo.patch |
14 |
|
Patch4: smeserver-oats-2.0.3-db_source-template.patch |
15 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
Requires: smeserver-release >= 7.0 |
Requires: smeserver-release >= 7.0 |
22 |
on SME Server |
on SME Server |
23 |
|
|
24 |
%changelog |
%changelog |
25 |
|
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com |
26 |
|
- remove '-' from sv command in spec, add source path to sql |
27 |
|
- template |
28 |
|
- [2.0.3-5] |
29 |
|
|
30 |
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
31 |
- fix typo in db init template |
- fix typo in db init template |
32 |
- [2.0.3-4] |
- [2.0.3-4] |
61 |
%patch1 -p1 |
%patch1 -p1 |
62 |
%patch2 -p1 |
%patch2 -p1 |
63 |
%patch3 -p1 |
%patch3 -p1 |
64 |
|
%patch4 -p1 |
65 |
|
|
66 |
%build |
%build |
67 |
#perl createlinks |
#perl createlinks |
98 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
99 |
/etc/rc.d/init.d/mysql.init start |
/etc/rc.d/init.d/mysql.init start |
100 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
101 |
/usr/bin/sv -h /service/httpd-e-smith |
/usr/bin/sv h /service/httpd-e-smith |
102 |
/bin/chown -R www:www /opt/oats |
/bin/chown -R www:www /opt/oats |
103 |
/bin/chown www:www /opt/oats/print |
/bin/chown www:www /opt/oats/print |
104 |
/bin/chmod 770 /opt/oats/print |
/bin/chmod 770 /opt/oats/print |
105 |
/bin/chown root:www /opt/oats/config/* |
/bin/chown root:www /opt/oats/config/* |
106 |
/bin/chmod 0440 /opt/oats/config/* |
/bin/chmod 0440 /opt/oats/config/* |
107 |
|
|
108 |
echo "------" |
#echo "------" |
109 |
echo "acenet-tech.org/sme/smecontrib.php" |
#echo "acenet-tech.org/sme/smecontrib.php" |
110 |
echo "For install instructions" |
#echo "For install instructions" |
111 |
echo "------" |
#echo "------" |
112 |
echo "Settings to install: 'config show oats'" |
echo "Settings to install: 'config show oats'" |
113 |
/sbin/e-smith/config show oats |
/sbin/e-smith/config show oats |
114 |
|
|