1 |
slords |
1.1 |
Summary: oats Time/Project Management System for SME Server |
2 |
|
|
%define name smeserver-oats |
3 |
|
|
Name: %{name} |
4 |
|
|
%define version 2.0.3 |
5 |
fetcher |
1.6 |
%define release 3 |
6 |
slords |
1.1 |
Version: %{version} |
7 |
slords |
1.3 |
Release: %{release}%{?dist} |
8 |
slords |
1.2 |
License: GPL |
9 |
slords |
1.1 |
Group: Applications/Internet |
10 |
|
|
Source: %{name}-%{version}.tar.gz |
11 |
fetcher |
1.5 |
Patch1: smeserver-oats-2.0.3-db_httpd_templates-01.patch |
12 |
fetcher |
1.6 |
Patch2: smeserver-oats-2.0.3-db_httpd_templates-02.patch |
13 |
slords |
1.1 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
14 |
|
|
BuildArchitectures: noarch |
15 |
|
|
Requires: smeserver-release >= 7.0 |
16 |
slords |
1.4 |
BuildRequires: e-smith-devtools |
17 |
slords |
1.1 |
AutoReqProv: no |
18 |
|
|
%description |
19 |
|
|
%name is an implementation of oats (http://www.rustyparts.com/oats.php) |
20 |
|
|
on SME Server |
21 |
|
|
|
22 |
|
|
%changelog |
23 |
fetcher |
1.5 |
* Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
24 |
fetcher |
1.6 |
- fix typos and missing '""' quotes in templates. |
25 |
|
|
- [2.0.3-3] |
26 |
|
|
|
27 |
|
|
* Fri Feb 01 2008 Craig D. Jensen <craig.d.jensen@gmail.com> |
28 |
fetcher |
1.5 |
- changes to db, httpd templates and spec to bring up to package |
29 |
|
|
- modification guidelines |
30 |
|
|
- [2.0.3-2] |
31 |
|
|
|
32 |
slords |
1.1 |
* Fri Mar 02 2007 Craig D. Jensen <craig.d.jensen@gmail.com> |
33 |
|
|
- Name change to reflect SME rpm build naming |
34 |
|
|
- No fuinctional changes. Added gpg signature-key-> import at: |
35 |
|
|
- http://acenet-tech.org/sme/acenettech/RPM-GPG-KEY-cjensen |
36 |
|
|
- [2.0.3-1] |
37 |
|
|
|
38 |
|
|
* Sun Dec 17 2006 Craig D. Jensen <craig.d.jensen@gmail.com> |
39 |
|
|
- Changes to provide SME 7.0 compat |
40 |
|
|
- [2.0.3-1cdj] |
41 |
|
|
|
42 |
|
|
* Tue Mar 09 2004 Craig D. Jensen <cjensen@acenet-tech.org> |
43 |
|
|
- Initial release |
44 |
|
|
- [2.0.3-cdj] |
45 |
|
|
- Original version |
46 |
|
|
|
47 |
|
|
%prep |
48 |
|
|
|
49 |
|
|
%setup |
50 |
fetcher |
1.5 |
%patch1 -p1 |
51 |
fetcher |
1.6 |
%patch2 -p1 |
52 |
slords |
1.1 |
|
53 |
|
|
%build |
54 |
|
|
#perl createlinks |
55 |
fetcher |
1.5 |
mkdir -p root/etc/e-smith/db/accounts/defaults/oats |
56 |
|
|
echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type |
57 |
slords |
1.1 |
|
58 |
fetcher |
1.5 |
mkdir -p root/etc/e-smith/db/configuration/defaults/oats |
59 |
|
|
echo "service" > root/etc/e-smith/db/configuration/defaults/oats/type |
60 |
|
|
echo "Time Management" > root/etc/e-smith/db/configuration/defaults/oats/Name |
61 |
|
|
echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/oats/PublicAccess |
62 |
|
|
echo "enabled" > root/etc/e-smith/db/configuration/defaults/oats/status |
63 |
|
|
echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbName |
64 |
|
|
echo "oats" > root/etc/e-smith/db/configuration/defaults/oats/DbUser |
65 |
slords |
1.1 |
|
66 |
|
|
%install |
67 |
|
|
rm -rf $RPM_BUILD_ROOT |
68 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
69 |
|
|
rm -f %{name}-%{version}-filelist |
70 |
|
|
/sbin/e-smith/genfilelist \ |
71 |
|
|
$RPM_BUILD_ROOT \ |
72 |
|
|
> %{name}-%{version}-filelist |
73 |
|
|
|
74 |
|
|
%files -f %{name}-%{version}-filelist |
75 |
|
|
|
76 |
|
|
%defattr(-,root,root) |
77 |
|
|
|
78 |
|
|
%clean |
79 |
|
|
rm -rf $RPM_BUILD_ROOT |
80 |
|
|
|
81 |
|
|
%pre |
82 |
|
|
|
83 |
|
|
%post |
84 |
|
|
/etc/e-smith/events/actions/initialize-default-databases |
85 |
|
|
/sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql |
86 |
|
|
/etc/rc.d/init.d/mysql.init start |
87 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
88 |
fetcher |
1.5 |
/usr/bin/sv -h /service/httpd-e-smith |
89 |
slords |
1.1 |
/bin/chown -R www:www /opt/oats |
90 |
|
|
/bin/chown www:www /opt/oats/print |
91 |
|
|
/bin/chmod 770 /opt/oats/print |
92 |
|
|
/bin/chown root:www /opt/oats/config/* |
93 |
|
|
/bin/chmod 0440 /opt/oats/config/* |
94 |
|
|
|
95 |
|
|
echo "------" |
96 |
|
|
echo "acenet-tech.org/sme/smecontrib.php" |
97 |
|
|
echo "For install instructions" |
98 |
|
|
echo "------" |
99 |
|
|
echo "Settings to install: 'config show oats'" |
100 |
|
|
/sbin/e-smith/config show oats |
101 |
|
|
|
102 |
|
|
%preun |
103 |
|
|
|
104 |
|
|
%postun |
105 |
|
|
if [ $1 = 0 ] ; then |
106 |
|
|
/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
107 |
fetcher |
1.5 |
/usr/bin/sv -h /service/httpd-e-smith |
108 |
slords |
1.1 |
fi |