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 2 |
6 |
Version: %{version} |
Version: %{version} |
7 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
8 |
License: GPL |
License: GPL |
9 |
Group: Applications/Internet |
Group: Applications/Internet |
10 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
11 |
|
Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.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 |
19 |
on SME Server |
on SME Server |
20 |
|
|
21 |
%changelog |
%changelog |
22 |
|
* Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
23 |
|
- changes to db, httpd templates and spec to bring up to package |
24 |
|
- modification guidelines |
25 |
|
- [2.0.3-2] |
26 |
|
|
27 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
28 |
- Name change to reflect SME rpm build naming |
- Name change to reflect SME rpm build naming |
29 |
- No fuinctional changes. Added gpg signature-key-> import at: |
- No fuinctional changes. Added gpg signature-key-> import at: |
42 |
%prep |
%prep |
43 |
|
|
44 |
%setup |
%setup |
45 |
|
%patch1 -p1 |
46 |
|
|
47 |
%build |
%build |
48 |
#perl createlinks |
#perl createlinks |
49 |
mkdir -p root/etc/e-smith/db/accounts/defaults/oats |
mkdir -p root/etc/e-smith/db/accounts/defaults/oats |
50 |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type |
echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type |
51 |
|
|
52 |
mkdir -p root/etc/e-smith/db/configuration/defaults/oats |
mkdir -p root/etc/e-smith/db/configuration/defaults/oats |
53 |
echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name |
echo "service" > root/etc/e-smith/db/configuration/defaults/oats/type |
54 |
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 |
55 |
|
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess |
56 |
|
echo "enabled" > root/etc/e-smith/db/configuration/defaults/oats/status |
57 |
|
echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbName |
58 |
|
echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbUser |
59 |
|
|
60 |
%install |
%install |
61 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
79 |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
80 |
/etc/rc.d/init.d/mysql.init start |
/etc/rc.d/init.d/mysql.init start |
81 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
82 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/usr/bin/sv -h /service/httpd-e-smith |
83 |
/bin/chown -R www:www /opt/oats |
/bin/chown -R www:www /opt/oats |
84 |
/bin/chown www:www /opt/oats/print |
/bin/chown www:www /opt/oats/print |
85 |
/bin/chmod 770 /opt/oats/print |
/bin/chmod 770 /opt/oats/print |
98 |
%postun |
%postun |
99 |
if [ $1 = 0 ] ; then |
if [ $1 = 0 ] ; then |
100 |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
101 |
/usr/local/bin/svc -h /service/httpd-e-smith |
/usr/bin/sv -h /service/httpd-e-smith |
102 |
fi |
fi |