File: rules

package info (click to toggle)
dotlrn 2.5.0%2Bdfsg2-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 109,504 kB
  • ctags: 21,125
  • sloc: tcl: 219,608; sql: 202,152; xml: 127,658; java: 7,268; php: 4,780; sh: 2,180; perl: 1,207; makefile: 110
file content (56 lines) | stat: -rwxr-xr-x 2,623 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

%:
	dh  $@

get-orig-source:
	if [ -d "../../tarballs" ]; then \
		uscan --download-current-version --force-download --rename --destdir ../../tarballs/ ; \
        else \
		uscan --download-current-version --force-download --rename ; \
	fi;

override_dh_installdebconf:
	cp debian/dotlrn.sh debian/dotlrn/etc/dotlrn/
 
	# Deleting extra licenses	
	rm debian/dotlrn/usr/share/dotlrn/license.txt
	rm debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/htmlarea/license.txt
	rm debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/xinha-nightly/license.txt
	rm debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/tinymce/jscripts/tiny_mce/license.txt
	rm debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/xinha-nightly/iconsets/Crystal/LICENSE

	# Deleting some unneeded files
	rm debian/dotlrn/var/log/aolserver4/dotlrn/log.txt
	rm debian/dotlrn/usr/share/dotlrn/packages/theme-selva/www/resources/Selva/default/images/.DS_Store
	rm debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/xinha-nightly/plugins/ImageManager/img/Thumbs.db

	# Fixing permissions
	find debian/dotlrn/usr -type f -exec chmod 0644 {} \;
	find debian/dotlrn/usr -type d -exec chmod 0755 {} \;
	find debian/dotlrn/usr -type f -name *.pl -exec chmod 0755 {} \;         # Perl scripts +x
	find debian/dotlrn/usr -type f -name *.sh -exec chmod 0755 {} \;         # Shell scripts +x
	chmod 0755 debian/dotlrn/etc/dotlrn/install/checkout.sh \
		debian/dotlrn/etc/dotlrn/install/post-checkout-script.sh \
		debian/dotlrn/usr/share/dotlrn/bin/create-tablespace.tcl \
		debian/dotlrn/usr/share/dotlrn/bin/restart-aolserver \
		debian/dotlrn/usr/share/dotlrn/bin/webspell \
		debian/dotlrn/usr/share/dotlrn/packages/acs-lang/bin/mygrep \
		debian/dotlrn/etc/dotlrn/dotlrn.sh \
		debian/dotlrn/etc/dotlrn/install/build-release.sh \
		debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/htmlarea/examples/2-areas.cgi \
		debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/htmlarea/examples/test.cgi \
		debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/htmlarea/plugins/SpellChecker/spell-check-logic.cgi \
		debian/dotlrn/usr/share/dotlrn/packages/acs-templating/www/resources/xinha-nightly/plugins/SpellChecker/spell-check-logic.cgi

	# Continue as normal... 
	dh_installdebconf	

override_dh_fixperms:
	dh_fixperms
	# config.tcl stores passwords!
	chmod o-rwx debian/dotlrn/etc/dotlrn/config.tcl