~ubuntu-branches/ubuntu/precise/xbill/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Paul Wise, Vincent Legout, Paul Wise
  • Date: 2011-05-09 16:26:06 UTC
  • mfrom: (3.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20110509162606-ejwwcg3ne3ay88gp
Tags: 2.1-8
* Team upload.

[ Vincent Legout ]
* debian/copyright:
  - Use 'Copyright (C)' instead of '(C)'
  - Refer to GPL-2, not GPL
* debian/postrm: Use true instead of /bin/true
* Switch to the new source package formats 3.0:
  - Remove patching/unpatching code in debian/rules
* 03_fix_ftbfs_binutils_gold.diff: Fix FTBFS with binutils-gold
  (Closes: #556690) (LP: #756222)

[ Paul Wise ]
* Fix the homepage URLs
* Clean up extra whitespace, patch headers and other cruft
* Add misc:Depends to Depends in case it is used by debhelper
* Drop conflicts on suidmanager, which was removed before sarge
* Switch to debhelper 7 dh minimal rules file
* Now compliant with policy 3.9.2, update Standards-Version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
# If compilation fails with:
4
 
# /bin/sh: -c: line 1: syntax error near unexpected token `done'
5
 
# then edit /usr/lib/X11/config/Imake.rules and add the ; to line 2329:
6
 
#     set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi; \@@\
7
 
 
8
 
include /usr/share/quilt/quilt.make
9
 
 
10
 
export DH_VERBOSE=1
11
3
DEB=debian/tmp
12
4
SCORES=$(DEB)/var/games/xbill.scores.default
13
5
 
14
 
build:  patch build-stamp
15
 
 
16
 
build-stamp:
17
 
        dh_testdir
18
 
        # gtk and setgid requires score-wrapper program
19
 
        #./configure --prefix=/usr --enable-gtk
20
 
        ./configure --prefix=/usr --bindir=\$${prefix}/games \
21
 
                --disable-gtk --disable-motif --enable-athena
22
 
        $(MAKE) LOCAL_LDFLAGS=-s
23
 
        touch build-stamp
24
 
 
25
 
clean: unpatch
26
 
        dh_testdir
27
 
        dh_testroot
28
 
        rm -f build-stamp
29
 
        [ ! -f Makefile ] || $(MAKE) -i clean
30
 
        [ ! -f Makefile ] || $(MAKE) -i distclean
31
 
        dh_clean
32
 
 
33
 
binary-indep:   build
34
 
 
35
 
binary-arch:    build
36
 
        dh_testdir
37
 
        dh_testroot
38
 
        dh_clean
39
 
 
40
 
        DESTDIR=$(DEB) make install
41
 
        dh_install
42
 
 
43
 
        dh_installdocs README*
44
 
        dh_installmenu
45
 
        dh_desktop
46
 
        dh_installchangelogs ChangeLog
47
 
        dh_compress
 
6
%:
 
7
        dh $@ --parallel
 
8
 
 
9
override_dh_auto_configure:
 
10
        dh_auto_configure -- --bindir=\$${prefix}/games --disable-gtk --disable-motif --enable-athena
 
11
 
 
12
override_dh_fixperms:
48
13
        dh_fixperms
49
14
        chown root:games $(CURDIR)/debian/xbill/usr/games/xbill
50
15
        chown root:games $(CURDIR)/debian/xbill/var/games/xbill.scores.default
51
16
        chmod 2755 $(CURDIR)/debian/xbill/usr/games/xbill
52
17
        chmod 0664 $(CURDIR)/debian/xbill/var/games/xbill.scores.default
53
 
        dh_strip
54
 
        dh_installdeb
55
 
        dh_shlibdeps
56
 
        dh_gencontrol
57
 
        dh_md5sums
58
 
        dh_builddeb
59
 
 
60
 
binary: binary-indep binary-arch
61
 
.PHONY: build clean binary-indep binary-arch binary