~ubuntu-branches/ubuntu/natty/moodle/natty

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Tomasz Muras
  • Date: 2010-10-30 12:19:28 UTC
  • mfrom: (1.1.12 upstream) (3.1.10 squeeze)
  • Revision ID: james.westby@ubuntu.com-20101030121928-qzobi6mctpnk4dif
Tags: 1.9.9.dfsg2-2
* Added Romanian translation
* Updated Japanese translation (closes: #596820)
* Backporting security fixes from Moodle 1.9.10 (closes: #601384)
   - Updated embedded CAS to 1.1.3
   - Added patch for MDL-24523:
     clean_text() not filtering text in markdown format
   - Added patch for MDL-24810 and upgraded customized HTML Purifier to 4.2.0 
   - Added patch for MDL-24258:
     students can delete their forum posts later than $CFG->maxeditingtime 
     under certain conditions
   - Added patch for MDL-23377:
     Can't delete quiz attempts in course without enrolled students

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- makefile -*-
3
 
# Sample debian/rules that uses debhelper.
4
 
# GNU copyright 1997 to 1999 by Joey Hess.
 
2
# debian/rules for Moodle package.
 
3
# Copyright 2010 Tomasz Muras <tomasz@muras.eu>
5
4
 
6
5
# Uncomment this to turn on verbose mode.
7
 
#export DH_VERBOSE=1
8
 
 
9
 
include /usr/share/dpatch/dpatch.make
10
 
 
11
 
build:
12
 
 
13
 
clean: clean1 unpatch
14
 
clean1:
15
 
        dh_testdir
16
 
        dh_testroot
17
 
 
18
 
        dh_clean 
19
 
 
20
 
install: patch-stamp
21
 
        dh_testdir
22
 
        dh_testroot
23
 
        dh_prep
24
 
        dh_installdirs
25
 
 
26
 
        dh_install -pmoodle debian/update-notifier/moodle-reconfigure-required_fqdn-check usr/share/moodle/update-notifier
27
 
        dh_install -pmoodle debian/update-notifier/moodle-reconfigure-required_mysql-server usr/share/moodle/update-notifier
28
 
        dh_install -pmoodle debian/update-notifier/moodle-reconfigure-required_postgresql usr/share/moodle/update-notifier
29
 
 
30
 
# Build architecture-dependent files here.
31
 
binary-arch: install
32
 
# We have nothing to do by default.
33
 
 
34
 
# Build architecture-independent files here.
35
 
binary-indep: install
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_installchangelogs
39
 
        dh_installdocs
40
 
        dh_install
41
 
        dh_installcron
42
 
        
 
6
export DH_VERBOSE=1
 
7
 
 
8
export SHELL = /bin/bash
 
9
 
 
10
VERSION := $(shell head -1 debian/changelog | sed 's/.*(//;s/).*//')
 
11
UPSTREAM   := $(shell head -1 debian/changelog | sed 's/.*(//;s/-.?*).*//')
 
12
MAINTAINER := $(shell grep ^Maintainer: debian/control | sed 's/^Maintainer: //')
 
13
 
 
14
binary:
 
15
        dh binary-indep --before dh_lintian
 
16
        #remove unnecessary licence files
 
17
#       rm debian/moodle/usr/share/moodle/COPYING.txt
43
18
        rm debian/moodle/usr/share/moodle/lib/adodb/license.txt
44
19
        rm debian/moodle/usr/share/moodle/lib/editor/htmlarea/license.txt
45
20
        rm debian/moodle/usr/share/moodle/lib/editor/tinymce/jscripts/tiny_mce/license.txt
50
25
        rm debian/moodle/usr/share/moodle/lib/smarty/COPYING.lib
51
26
        rm debian/moodle/usr/share/moodle/lib/pear/HTTP/WebDAV/COPYING
52
27
        rm debian/moodle/usr/share/moodle/lib/pear/HTTP/WebDAV/LICENSE
53
 
 
 
28
        rm debian/moodle/usr/share/moodle/filter/mediaplugin/flvplayer.README.txt
 
29
        
 
30
        #remove unnecessary files
 
31
        rm debian/moodle/usr/share/moodle/filter/tex/*mimetex*
 
32
        rm debian/moodle/usr/share/moodle/search/.cvsignore
 
33
        rm debian/moodle/usr/share/moodle/mod/chat/chatd.php
 
34
        
 
35
        #fix permissions
54
36
        find debian/moodle/usr -type f -exec chmod 644 {} \;
55
37
        find debian/moodle/usr -type d -exec chmod 755 {} \;
56
 
        chmod 755 debian/moodle/usr/share/moodle/mod/chat/chatd.php
57
38
        chmod 755 debian/moodle/usr/share/moodle/admin/mailout-debugger.php
58
 
        rm debian/moodle/usr/share/moodle/mod/chat/chatd.php
59
39
        chmod 755 debian/moodle/usr/share/moodle/mod/wiki/ewiki/fragments/mkhuge
60
40
        chmod 755 debian/moodle/usr/share/moodle/filter/algebra/algebra2tex.pl
61
41
        chmod 755 debian/moodle/usr/share/moodle/admin/process_email.php
62
 
        rm debian/moodle/usr/share/moodle/filter/tex/*mimetex*
63
 
        rm debian/moodle/usr/share/moodle/admin/delete.php
64
 
        rm debian/moodle/usr/share/moodle/mod/wiki/ewiki/fragments/mkhuge
65
 
        rm debian/moodle/usr/share/moodle/search/.cvsignore
66
 
        rm -rf debian/moodle/usr/share/moodle/lib/editor/htmlarea/plugins/SpellChecker
67
 
 
68
 
        rm -rf debian/moodle/usr/share/moodle/lib/smarty
69
 
 
70
 
        dh_lintian
71
 
        dh_installdebconf
72
 
        dh_link
73
 
        dh_compress
74
 
        dh_fixperms
75
 
 
76
 
        dh_installdeb
77
 
        dh_gencontrol
78
 
        dh_md5sums
79
 
        dh_builddeb -- -Z bzip2
80
 
 
81
 
binary: binary-indep binary-arch
82
 
.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1
 
42
        
 
43
        #un-bundle libraries
 
44
        rm -r debian/moodle/usr/share/moodle/lib/smarty
 
45
        rm -r debian/moodle/usr/share/moodle/lib/yui
 
46
        rm -r debian/moodle/usr/share/moodle/lib/magpie
 
47
        rm -r debian/moodle/usr/share/moodle/lib/fpdf/font
 
48
        rm  debian/moodle/usr/share/moodle/lib/fpdf/fpdf.php
 
49
        rm -r debian/moodle/usr/share/moodle/lib/pclzip
 
50
        rm debian/moodle/usr/share/moodle/lib/snoopy/*
 
51
        
 
52
        #Remove whole mediaplugin filter as it contains flash file without the source
 
53
        #Without that flash file, the plugin is rather useless
 
54
        #but we keep it because it breaks Moodle if it's removed fully
 
55
        #rm -r debian/moodle/usr/share/moodle/filter/mediaplugin/flvplayer.swf
 
56
        #rm -r debian/moodle/usr/share/moodle/filter/mediaplugin/mp3player.swf
 
57
        
 
58
        #Remove non-free swf files (would need to go to contrib)
 
59
        rm debian/moodle/usr/share/moodle/lib/flashdetect/flashupgrade.swf
 
60
        rm debian/moodle/usr/share/moodle/lib/swfobject/flashupgrade.swf
 
61
        rm debian/moodle/usr/share/moodle/lib/mp3player/mp3player.swf
 
62
        
 
63
        #this one is just deleted
 
64
        rm debian/moodle/usr/share/moodle/lib/soap/nusoap.php
 
65
        
 
66
        #removing file from previous version of CAS
 
67
        rm debian/moodle/usr/share/moodle/auth/cas/CAS/CAS/PGTStorage/pgt-db.php
 
68
        dh binary-indep --remaining
 
69
        
 
70
%:
 
71
        dh $@