~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: 2006-09-30 00:15:44 UTC
  • mfrom: (2.1.2 edgy)
  • Revision ID: james.westby@ubuntu.com-20060930001544-t2jjhvc00rnikdw0
Tags: 0.5.9-2
* Fix postinst by moving chgrp and chmod to build-time
* Cleanup debian/rules

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
 
4
 
PACKAGE = cgiirc
5
 
 
6
 
 
7
 
include /usr/share/dpatch/dpatch.make
8
 
 
9
 
 
10
 
build: patch
 
3
build: 
11
4
        dh_testdir
12
5
        cc -g -O2 -Wall -o client.cgi client.c
13
6
        chmod +x docs/*.pl
14
7
 
15
 
clean: clean1 unpatch
16
 
clean1:
 
8
clean:
17
9
        dh_testdir
18
10
        dh_testroot
19
11
        rm -rf client.cgi
20
 
        rm -rf inst-tmp
21
12
        dh_clean
22
13
 
 
14
DESTDIR = debian/cgiirc
23
15
install: build
24
16
        dh_testdir
25
17
        dh_testroot
26
18
        dh_clean -k
27
 
 
28
 
        mkdir -p inst-tmp/images inst-tmp/doc
29
 
        # Grrrr, dh_install can't rename.
30
 
        cp -p debian/images.index.html inst-tmp/images/index.html
31
 
        mkdir -p inst-tmp/cgi-bin
32
 
        cp -a interfaces inst-tmp/cgi-bin/
33
 
        rm -rf inst-tmp/cgi-bin/interfaces/interface-make
34
 
        dpatch cat-all \
35
 
                | sed -e 's,^debian/patches/,,' \
36
 
                >inst-tmp/doc/README.patches
37
19
        
38
20
        dh_install
39
21
        dh_link usr/share/cgiirc/images \
40
22
                var/www/cgiirc/images
41
 
        #dh_link etc/cgiirc/cgiirc.config \
42
 
        #       usr/lib/cgi-bin/cgiirc/cgiirc.config
43
 
        #dh_link usr/share/cgiirc/viewconnects.pl \
44
 
        #       usr/sbin/cgiirc-viewconnects
45
 
        #dh_link usr/share/cgiirc/decode.pl \
46
 
        #       usr/bin/cgiirc-decode
 
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
47
27
 
48
28
binary-indep:
49
29
        # Nothing
56
36
                README \
57
37
                docs/TODO \
58
38
                docs/*.html \
59
 
                debian/README.Debian \
60
 
                inst-tmp/doc/README.patches
 
39
                debian/README.Debian
61
40
        dh_installexamples -a \
62
41
                cgiirc.config* \
63
42
                ipaccess* \
64
43
                docs/identd.xinetd
65
44
        dh_strip -a
66
45
        dh_compress -a
67
 
        dh_fixperms -a
 
46
        dh_fixperms -a -X /etc/cgiirc
68
47
        dh_installdeb -a
69
48
        dh_perl -a
70
49
        dh_shlibdeps -a
76
55
binary: binary-indep binary-arch
77
56
 
78
57
 
79
 
.PHONY: binary binary-arch binary-indep clean clean1 build patch unpatch
 
58
.PHONY: binary binary-arch binary-indep clean build