~ubuntu-branches/ubuntu/karmic/cgiirc/karmic-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Damián Viano
  • Date: 2007-05-16 22:44:37 UTC
  • Revision ID: james.westby@ubuntu.com-20070516224437-9m7uxtdzejpruivt
Tags: 0.5.9-3
* Cleaned up some of the leftovers of the images/ directory move trusting
  fully on the /images/ alias given by policy 11.5.3 (Closes: #423688)
* Changes recommended by the draft webapp policy
  + Moved index.html to /usr/share/cgiirc/www
  + Moved modules and interfaces to /usr/share/cgiirc adding
    - debian/patches/01_modules_location.dpatch
    - debian/patches/02_interfaces_location.dpatch
* Removed pointless restrictions on /etc/cgiirc

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
build: 
 
3
include /usr/share/dpatch/dpatch.make
 
4
 
 
5
build: patch
4
6
        dh_testdir
5
7
        cc -g -O2 -Wall -o client.cgi client.c
6
8
        chmod +x docs/*.pl
7
9
 
8
 
clean:
 
10
clean: unpatch
9
11
        dh_testdir
10
12
        dh_testroot
11
13
        rm -rf client.cgi
18
20
        dh_clean -k
19
21
        
20
22
        dh_install
21
 
        dh_link usr/share/cgiirc/images \
 
23
#       dh_link usr/share/images/cgiirc \
22
24
                var/www/cgiirc/images
23
 
        rm -rf ${DESTDIR}/usr/lib/cgi-bin/cgiirc/interfaces/interface-make
24
 
        chgrp -R www-data ${DESTDIR}/etc/cgiirc
25
 
        chmod -R g=rX,o= ${DESTDIR}/etc/cgiirc
26
 
        chmod g+s ${DESTDIR}/etc/cgiirc
 
25
        rm -rf ${DESTDIR}/usr/share/cgiirc/interfaces/interface-make
27
26
 
28
27
binary-indep:
29
28
        # Nothing
45
44
        dh_compress -a
46
45
        dh_fixperms -a -X /etc/cgiirc
47
46
        dh_installdeb -a
48
 
        dh_perl -a
 
47
        dh_perl -a /usr/share/cgiirc
49
48
        dh_shlibdeps -a
50
49
        dh_gencontrol -a
51
50
        dh_md5sums -a
55
54
binary: binary-indep binary-arch
56
55
 
57
56
 
58
 
.PHONY: binary binary-arch binary-indep clean build
 
57
.PHONY: binary binary-arch binary-indep clean build patch unpatch