/[smecontribs]/rpms/smeserver-oats/contribs7/smeserver-oats-2.0.3.spec
ViewVC logotype

Contents of /rpms/smeserver-oats/contribs7/smeserver-oats-2.0.3.spec

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.5 - (show annotations) (download)
Sat Feb 2 01:25:21 2008 UTC (16 years, 3 months ago) by fetcher
Branch: MAIN
Changes since 1.4: +19 -8 lines
db httpd template update to package mod guidelines

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 %define release 2
6 Version: %{version}
7 Release: %{release}%{?dist}
8 License: GPL
9 Group: Applications/Internet
10 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
13 BuildArchitectures: noarch
14 Requires: smeserver-release >= 7.0
15 BuildRequires: e-smith-devtools
16 AutoReqProv: no
17 %description
18 %name is an implementation of oats (http://www.rustyparts.com/oats.php)
19 on SME Server
20
21 %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>
28 - Name change to reflect SME rpm build naming
29 - No fuinctional changes. Added gpg signature-key-> import at:
30 - http://acenet-tech.org/sme/acenettech/RPM-GPG-KEY-cjensen
31 - [2.0.3-1]
32
33 * Sun Dec 17 2006 Craig D. Jensen <craig.d.jensen@gmail.com>
34 - Changes to provide SME 7.0 compat
35 - [2.0.3-1cdj]
36
37 * Tue Mar 09 2004 Craig D. Jensen <cjensen@acenet-tech.org>
38 - Initial release
39 - [2.0.3-cdj]
40 - Original version
41
42 %prep
43
44 %setup
45 %patch1 -p1
46
47 %build
48 #perl createlinks
49 mkdir -p root/etc/e-smith/db/accounts/defaults/oats
50 echo "reserved" > root/etc/e-smith/db/accounts/defaults/oats/type
51
52 mkdir -p root/etc/e-smith/db/configuration/defaults/oats
53 echo "service" > root/etc/e-smith/db/configuration/defaults/oats/type
54 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
61 rm -rf $RPM_BUILD_ROOT
62 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
63 rm -f %{name}-%{version}-filelist
64 /sbin/e-smith/genfilelist \
65 $RPM_BUILD_ROOT \
66 > %{name}-%{version}-filelist
67
68 %files -f %{name}-%{version}-filelist
69
70 %defattr(-,root,root)
71
72 %clean
73 rm -rf $RPM_BUILD_ROOT
74
75 %pre
76
77 %post
78 /etc/e-smith/events/actions/initialize-default-databases
79 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80oats.sql
80 /etc/rc.d/init.d/mysql.init start
81 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
82 /usr/bin/sv -h /service/httpd-e-smith
83 /bin/chown -R www:www /opt/oats
84 /bin/chown www:www /opt/oats/print
85 /bin/chmod 770 /opt/oats/print
86 /bin/chown root:www /opt/oats/config/*
87 /bin/chmod 0440 /opt/oats/config/*
88
89 echo "------"
90 echo "acenet-tech.org/sme/smecontrib.php"
91 echo "For install instructions"
92 echo "------"
93 echo "Settings to install: 'config show oats'"
94 /sbin/e-smith/config show oats
95
96 %preun
97
98 %postun
99 if [ $1 = 0 ] ; then
100 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
101 /usr/bin/sv -h /service/httpd-e-smith
102 fi

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed