/[smecontribs]/rpms/smeserver-moodle/contribs7/smeserver-moodle-0.9.spec
ViewVC logotype

Contents of /rpms/smeserver-moodle/contribs7/smeserver-moodle-0.9.spec

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


Revision 1.6 - (show annotations) (download)
Sun Dec 23 21:41:07 2007 UTC (16 years, 4 months ago) by slords
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +0 -0 lines
FILE REMOVED
Import on branch contribs7 of package smeserver-moodle-1.0-4.el4.sme.src.rpm

1 Summary: smserver rpm to setup moodle, a course management system
2 %define name smeserver-moodle
3 Name: %{name}
4 %define version 0.9
5 %define release 2
6 Version: %{version}
7 Release: %{release}%{?dist}
8 License: GPL
9 URL: http://www.dungog.net/sme
10 Group: SMEserver/addon
11 Source: %{name}-%{version}.tar.gz
12 BuildArchitectures: noarch
13 BuildRoot: /var/tmp/%{name}-%{version}
14 Requires: e-smith-release >= 7.0
15 Requires: moodle
16 Requires: gd
17 BuildRequires: e-smith-devtools
18 AutoReqProv: no
19
20 %description
21 smserver rpm to setup moodle, a course management system
22
23 %changelog
24 * Mon Dec 11 2006 Stephen Noble <support@dungog.net>
25 - rpm %post events reordered, to enable clean install
26 - [0.9-2]
27
28 * Fri Dec 1 2006 Stephen Noble <support@dungog.net>
29 - initial release
30 - [0.9-1]
31
32 %prep
33 %setup
34
35 %build
36 #perl createlinks
37 mkdir -p root/etc/e-smith/db/accounts/defaults/moodle
38 echo "reserved" > root/etc/e-smith/db/accounts/defaults/moodle/type
39
40 mkdir -p root/etc/e-smith/db/configuration/defaults/moodle
41 echo "Online Learning" > root/etc/e-smith/db/configuration/defaults/moodle/Name
42 echo "global-pw-remote" > root/etc/e-smith/db/configuration/defaults/moodle/PublicAccess
43
44 %install
45 rm -rf $RPM_BUILD_ROOT
46 (cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT)
47 rm -f %{name}-%{version}-filelist
48 /sbin/e-smith/genfilelist $RPM_BUILD_ROOT > %{name}-%{version}-filelist
49 echo "%doc COPYING" >> %{name}-%{version}-filelist
50
51 %clean
52 cd ..
53 rm -rf %{name}-%{version}
54
55 %pre
56
57 %preun
58
59 %post
60 /etc/e-smith/events/actions/initialize-default-databases
61 /sbin/e-smith/expand-template /etc/e-smith/sql/init/80moodle.sql
62 /etc/rc.d/init.d/mysql.init start
63 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
64 /usr/local/bin/svc -h /service/httpd-e-smith
65 /sbin/e-smith/expand-template /etc/crontab
66
67 echo ""
68 echo "see www.dungog.net/sme/webapp.php"
69 echo "current settings, config show moodle ..."
70 /sbin/e-smith/config show moodle
71
72 %postun
73 #uninstall
74 if [ $1 = 0 ] ; then
75 /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
76 /usr/local/bin/svc -h /service/httpd-e-smith
77 /sbin/e-smith/expand-template /etc/crontab
78 fi
79
80 %files -f %{name}-%{version}-filelist
81 %defattr(-,root,root)
82

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