~ubuntu-branches/ubuntu/raring/webcalendar/raring

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Rafael Laboissiere
  • Date: 2009-06-09 06:26:24 UTC
  • mfrom: (18.2.3 karmic)
  • Revision ID: james.westby@ubuntu.com-20090609062624-9n9xea2ftpipmg38
Tags: 1.2.0+dfsg-4
* debian/patches/06_send-reminder-paths.diff: Adjust patch to help
  translate.php to find the translation files under /etc/webcalendar.
  Thanks to Dale and Cheryl Schroeder for the help on debugging this
  (really, closes: #531312).
* debian/patches/16_no-blink-public-access-title.diff: New patch for
  avoiding the blinking title when changing the Public Access title in
  English-US.txt

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
# This is the debhelper compatibility version to use.
9
9
# export DH_COMPAT=2
10
10
 
11
 
 
12
 
 
13
 
configure: patch-stamp configure-stamp
 
11
include /usr/share/quilt/quilt.make
 
12
 
 
13
debdir = $(CURDIR)/debian/webcalendar
 
14
etcdir = $(debdir)/etc/webcalendar
 
15
shrdir = $(debdir)/usr/share/webcalendar
 
16
incdir = $(shrdir)/www/includes
 
17
 
 
18
VERSION = ${shell perl -ne '/\((.*)\+.*\)/; print $$1; last' < debian/changelog}
 
19
DIRNAME = WebCalendar-$(VERSION)
 
20
TARBALL = $(DIRNAME).tar.gz
 
21
CAPTCHA = includes/classes/captcha
 
22
TTFONT = DejaVuSans-Bold-Numbers-Letters.ttf
 
23
 
 
24
configure: patch configure-stamp
14
25
 
15
26
configure-stamp:
16
27
        dh_testdir
17
28
        # Add here commands to configure the package.
18
29
        touch configure-stamp
19
30
        chmod +x debian/tools/dbconfig_oldconf.sh
20
 
 
 
31
        uudecode -o $(CAPTCHA)/$(TTFONT) debian/$(TTFONT).uu
21
32
 
22
33
build: build-stamp
23
34
 
24
35
build-stamp: configure
25
36
        dh_testdir
26
37
        html2text -nobs docs/WebCalendar-SysAdmin.html | grep -v '^<?xml' >  README
27
 
        html2text -nobs docs/WebCalendar-Database.html >> README
28
38
        touch build-stamp
29
39
 
30
40
clean: clean-patched unpatch
35
45
        rm -f build-stamp configure-stamp
36
46
        rm -f README
37
47
        debconf-updatepo
 
48
        rm -f $(CAPTCHA)/$(TTFONT)
38
49
        dh_clean
39
50
 
40
 
patch: patch-stamp
41
 
patch-stamp:
42
 
        dpatch apply-all
43
 
        touch patch-stamp
44
 
 
45
 
unpatch:
46
 
        dpatch deapply-all
47
 
        rm -rf patch-stamp debian/patched
48
 
 
49
51
install: build
50
52
        dh_testdir
51
53
        dh_testroot
52
54
        dh_clean -k
53
55
        dh_installdirs
54
56
        dh_install
55
 
 
56
 
        # Add here commands to install the package into debian/webcalendar.
57
 
        #$(MAKE) install DESTDIR=$(CURDIR)/debian/webcalendar
58
 
 
 
57
        # Some of the translation files are wrongly set as executables
 
58
        # in the upstream tarball
 
59
        chmod -x $(etcdir)/translations/*
 
60
        # PHP scripts starting with the #! should be executable
 
61
        chmod +x $(shrdir)/tools/reload_remotes.php
 
62
        # Extra license should not be included in the package
 
63
        # (cf Policy Manual, section 12.5)
 
64
        rm -f $(incdir)/classes/phpmailer/LICENSE
 
65
        # Fix permission of JavaScript and PHP file, which should not be
 
66
        #  executables
 
67
        chmod -x $(incdir)/js/weekHover.js $(incdir)/common_admin_pref.php
 
68
        # Link prototype.js againt the version provided by libjs-protoype
 
69
        ln -fs /usr/share/javascript/prototype/prototype.js $(incdir)/js
59
70
 
60
71
# Build architecture-independent files here.
61
72
binary-indep: build install
66
77
        dh_installchangelogs
67
78
        dh_installcron
68
79
        dh_link
 
80
        dh_lintian
69
81
        dh_compress
70
82
        dh_fixperms
71
83
        dh_installdeb
79
91
binary-arch: build install
80
92
 
81
93
binary: binary-indep binary-arch
82
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
94
 
 
95
get-orig-source:
 
96
        wget http://qa.debian.org/watch/sf.php/webcalendar/$(TARBALL)
 
97
        tar xfz $(TARBALL)
 
98
        rm $(DIRNAME)/$(CAPTCHA)/COLLEGE.ttf
 
99
        tar cfz webcalendar_$(VERSION)+dfsg.orig.tar.gz $(DIRNAME)
 
100
        rm -rf $(TARBALL) $(DIRNAME)
 
101
 
 
102
.PHONY: build clean binary-indep binary-arch binary install configure get-orig-source