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 1 |
%define release 7 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %smerelease %{release} |
Release: %{release}%{?dist} |
8 |
Copyright: GPL |
License: GPL |
9 |
Group: Applications/Internet |
Group: Applications/Internet |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
11 |
Packager: %{_packager} |
#Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.patch |
12 |
|
#Patch2: smeserver-oats-2.0.3-db_httpd_templates-02.patch |
13 |
|
#Patch3: smeserver-oats-2.0.3-db_template-typo.patch |
14 |
|
#Patch4: smeserver-oats-2.0.3-db_source-template.patch |
15 |
|
Patch0: smeserver-oats-2.0.3-config-dates-updated.patch |
16 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
17 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
18 |
Requires: smeserver-release >= 7.0 |
Requires: smeserver-release >= 7.0 |
19 |
|
BuildRequires: e-smith-devtools |
20 |
AutoReqProv: no |
AutoReqProv: no |
21 |
%description |
%description |
22 |
%name is an implementation of oats (http://www.rustyparts.com/oats.php) |
%name is an implementation of oats (http://www.rustyparts.com/oats.php) |
23 |
on SME Server |
on SME Server |
24 |
|
|
25 |
%changelog |
%changelog |
26 |
|
* Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
27 |
|
- roll back patches for db and httpd templates |
28 |
|
- [2.0.3-7] |
29 |
|
|
30 |
|
* Sun Feb 03 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
31 |
|
- Dates brought up in config array |
32 |
|
- [2.0.3-6] |
33 |
|
|
34 |
|
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
35 |
|
- remove '-' from sv command in spec, add source path to sql |
36 |
|
- template |
37 |
|
- [2.0.3-5] |
38 |
|
|
39 |
|
* Sat Feb 02 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
40 |
|
- fix typo in db init template |
41 |
|
- [2.0.3-4] |
42 |
|
|
43 |
|
* Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
44 |
|
- fix typos and missing '""' quotes in templates. |
45 |
|
- [2.0.3-3] |
46 |
|
|
47 |
|
* Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
48 |
|
- changes to db, httpd templates and spec to bring up to package |
49 |
|
- modification guidelines |
50 |
|
- [2.0.3-2] |
51 |
|
|
52 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
53 |
- Name change to reflect SME rpm build naming |
- Name change to reflect SME rpm build naming |
54 |
- No fuinctional changes. Added gpg signature-key-> import at: |
- No fuinctional changes. Added gpg signature-key-> import at: |
67 |
%prep |
%prep |
68 |
|
|
69 |
%setup |
%setup |
70 |
|
%patch0 -p1 |
71 |
|
|
72 |
%build |
%build |
73 |
#perl createlinks |
#perl createlinks |
74 |
mkdir -p root/etc/e-smith/db/accounts/defaults/oats |
mkdir -p root/etc/e-smith/db/accounts/defaults/oats |
75 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type |
76 |
|
|
77 |
mkdir -p root/etc/e-smith/db/configuration/defaults/oats |
mkdir -p root/etc/e-smith/db/configuration/defaults/oats |
78 |
echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name |
echo "service" > root/etc/e-smith/db/configuration/defaults/oats/type |
79 |
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess |
echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name |
80 |
|
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess |
81 |
|
echo "enabled" > root/etc/e-smith/db/configuration/defaults/oats/status |
82 |
|
|
83 |
%install |
%install |
84 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
102 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
103 |
/etc/rc.d/init.d/mysql.init start |
/etc/rc.d/init.d/mysql.init start |
104 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
105 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/usr/bin/sv h /service/httpd-e-smith |
106 |
/bin/chown -R www:www /opt/oats |
/bin/chown -R www:www /opt/oats |
107 |
/bin/chown www:www /opt/oats/print |
/bin/chown www:www /opt/oats/print |
108 |
/bin/chmod 770 /opt/oats/print |
/bin/chmod 770 /opt/oats/print |
109 |
/bin/chown root:www /opt/oats/config/* |
/bin/chown root:www /opt/oats/config/* |
110 |
/bin/chmod 0440 /opt/oats/config/* |
/bin/chmod 0440 /opt/oats/config/* |
111 |
|
|
|
echo "------" |
|
|
echo "acenet-tech.org/sme/smecontrib.php" |
|
|
echo "For install instructions" |
|
|
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 |
|
|
117 |
%postun |
%postun |
118 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
119 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
120 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/usr/bin/sv h /service/httpd-e-smith |
121 |
fi |
fi |