source: moodle/trunk/fuentes/debian/rules @ 1347

Last change on this file since 1347 was 1331, checked in by jrpelegrina, 4 years ago

Updated to moodle 3.0.3

  • Property svn:executable set to *
File size: 3.4 KB
Line 
1#!/usr/bin/make -f
2# debian/rules for Moodle package.
3# Copyright 2010 Tomasz Muras <tomasz@muras.eu>
4
5# Uncomment this to turn on verbose mode.
6#export DH_VERBOSE=1
7
8export SHELL = /bin/bash
9
10VERSION    := $(shell head -1 debian/changelog | sed 's/.*(//;s/).*//')
11UPSTREAM   := $(shell head -1 debian/changelog | sed 's/.*(//;s/-.?*).*//')
12MAINTAINER := $(shell grep ^Maintainer: debian/control | sed 's/^Maintainer: //')
13
14%:
15        dh $@
16
17override_dh_lintian:
18        # remove unnecessary license and copyright files
19        rm debian/moodle/usr/share/moodle/lib/bennu/COPYRIGHT.txt
20        rm debian/moodle/usr/share/moodle/lib/bennu/LICENSE.txt
21        rm debian/moodle/usr/share/moodle/lib/phpmailer/LICENSE
22        rm debian/moodle/usr/share/moodle/lib/minify/LICENSE.txt
23        rm debian/moodle/usr/share/moodle/lib/tcpdf/LICENSE.TXT
24        rm debian/moodle/usr/share/moodle/lib/xhprof/LICENSE
25        rm debian/moodle/usr/share/moodle/lib/editor/tinymce/tiny_mce/3.5.11/license.txt
26        rm debian/moodle/usr/share/moodle/lib/editor/atto/yui/src/rangy/js/license.txt
27        rm debian/moodle/usr/share/moodle/lib/tcpdf/fonts/freefont-20120503/COPYING
28        rm debian/moodle/usr/share/moodle/lib/yui/license.txt
29        rm debian/moodle/usr/share/moodle/lib/google/LICENSE
30        rm debian/moodle/usr/share/moodle/lib/jquery/MIT-LICENSE.txt
31        rm debian/moodle/usr/share/moodle/lib/markdown/License.md
32        rm debian/moodle/usr/share/moodle/pix/f/FileTypesIcons-LICENSE.txt
33        rm debian/moodle/usr/share/moodle/pix/f/Oxygen-LICENSE.txt
34        rm debian/moodle/usr/share/moodle/lib/htmlpurifier/LICENSE
35        rm debian/moodle/usr/share/moodle/lib/lessphp/LICENSE
36        rm debian/moodle/usr/share/moodle/lib/mustache/LICENSE
37        rm debian/moodle/usr/share/moodle/lib/requirejs/LICENSE
38        rm debian/moodle/usr/share/moodle/mod/assign/feedback/editpdf/fpdi/LICENSE
39       
40        # remove unnecessary files
41        rm debian/moodle/usr/share/moodle/mod/chat/chatd.php
42       
43        #remove more unnecessary files (still found in moodle-2.7.11)
44        find debian/moodle -type f -name .cvsignore -delete
45       
46        # remove files with missing source
47        rm debian/moodle/usr/share/moodle/filter/tex/*mimetex*
48        rm debian/moodle/usr/share/moodle/lib/flowplayer/*
49        rmdir debian/moodle/usr/share/moodle/lib/flowplayer
50       
51        # fix permissions
52        find debian/moodle/usr -type f -exec chmod 644 {} \;
53        find debian/moodle/usr -type d -exec chmod 755 {} \;
54        chmod 755 debian/moodle/usr/share/moodle/admin/mailout-debugger.php
55        chmod 755 debian/moodle/usr/share/moodle/filter/algebra/algebra2tex.pl
56        chmod 755 debian/moodle/usr/share/moodle/admin/process_email.php
57       
58        # remove libraries which depend upon non-free stuff
59        cd debian/moodle/usr/share/moodle/lib && rm -r phpexcel
60       
61        # un-bundle libraries (symlinks created later via debian/links)
62        rm debian/moodle/usr/share/moodle/lib/phpmailer/class.{phpmailer,smtp}.php
63        rm -r debian/moodle/usr/share/moodle/lib/adodb
64        rm -r debian/moodle/usr/share/moodle/lib/htmlpurifier/{HTMLPurifier,HTMLPurifier.php,HTMLPurifier.safe-includes.php}
65        rm -r debian/moodle/usr/share/moodle/lib/tcpdf
66        rm -r debian/moodle/usr/share/moodle/auth/cas/CAS/{CAS.php,CAS}
67       
68        # set dir permissions
69        chown www-data:www-data debian/moodle/var/lib/moodle
70        chmod 0750 debian/moodle/var/lib/moodle
71       
72        dh_lintian
73
74override_dh_builddeb:
75        dh_builddeb
76
77
78#
79# tar zxf moodle_3.0.3.orig.tar.gz
80# rm -rf moodle-3.0.3+dfsg
81# mv moodle moodle-3.0.3+dfsg
82#
83dfsg:
84        rm lib/tcpdf/include/sRGB.icc lib/flowplayer/flowplayer.audio-3.2.11.swf
85        rm -r lib/phpexcel/PHPExcel/Shared/OLE*
86
87# tar zcf moodle_3.0.3+dfsg.orig.tar.gz moodle-3.0.3+dfsg
88
Note: See TracBrowser for help on using the repository browser.