File: rules

package info (click to toggle)
moodle 1.6.3-2%2Betch3
  • links: PTS
  • area: main
  • in suites: etch
  • size: 37,172 kB
  • ctags: 51,688
  • sloc: php: 231,916; sql: 5,631; xml: 2,688; sh: 1,185; perl: 638; makefile: 48; pascal: 36
file content (72 lines) | stat: -rwxr-xr-x 2,083 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/dpatch/dpatch.make

build:

clean: clean1 unpatch
clean1:
	dh_testdir
	dh_testroot

	dh_clean 

install: patch-stamp
	dh_testdir
	dh_testroot
	dh_clean -k 
	dh_installdirs

# Build architecture-dependent files here.
binary-arch: install
# We have nothing to do by default.

# Build architecture-independent files here.
binary-indep: install
	dh_testdir
	dh_testroot
	dh_installchangelogs
	dh_installdocs
	dh_install
	dh_installcron
	
	rm debian/moodle/usr/share/moodle/lib/adodb/license.txt
	rm debian/moodle/usr/share/moodle/lib/adodb/adodb-xmlschema-0.0.1-snap20030511/LICENSE
	rm debian/moodle/usr/share/moodle/iplookup/ipatlas/COPYING
	rm debian/moodle/usr/share/moodle/lib/phpmailer/LICENSE
	rm debian/moodle/usr/share/moodle/lib/smarty/COPYING.lib
	rm debian/moodle/usr/share/moodle/lib/editor/htmlarea/license.txt
	rm debian/moodle/usr/share/moodle/lib/editor/tinymce/jscripts/tiny_mce/license.txt
	rm debian/moodle/usr/share/moodle/lib/bennu/LICENSE.txt
	# Remove unused plugin for CVE-2008-5153/MSA-09-0005 
	rm -R debian/moodle/usr/share/moodle/lib/editor/htmlarea/plugins/SpellChecker 

	find debian/moodle/usr -type f -exec chmod 644 {} \;
	find debian/moodle/usr -type d -exec chmod 755 {} \;
	chmod 755 debian/moodle/usr/share/moodle/mod/chat/chatd.php
	rm debian/moodle/usr/share/moodle/mod/chat/chatd.php
	chmod 755 debian/moodle/usr/share/moodle/mod/wiki/ewiki/fragments/mkhuge
	chmod 755 debian/moodle/usr/share/moodle/filter/algebra/algebra2tex.pl
	chmod 755 debian/moodle/usr/share/moodle/admin/process_email.php
	rm -f debian/moodle/usr/share/moodle/filter/tex/*mimetex*
	rm -f debian/moodle/usr/share/moodle/admin/delete.php


	dh_installdebconf	
	dh_link
	dh_compress
	dh_fixperms

	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch clean1