~wb-munzinger/+junk/ocfs2-tools

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jeremy Lainé
  • Date: 2009-07-06 07:26:30 UTC
  • mfrom: (1.1.7 upstream) (0.1.5 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090706072630-59335sl51k3rvu74
Tags: 1.4.2-1
* New upstream release (Closes: #535471).
* Drop patch for limits.h, included upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
 
3
 
# Uncomment this to turn on verbose mode.
4
 
# export DH_VERBOSE=1
5
 
 
6
 
include /usr/share/quilt/quilt.make
7
 
 
8
 
configure: patch configure-stamp
9
 
configure-stamp:
10
 
        dh_testdir
11
 
        ./configure --disable-debug \
12
 
                                --enable-dynamic-ctl \
13
 
                                --enable-dynamic-fsck \
14
 
                                --prefix=/usr \
15
 
                                --exec-prefix=/usr \
16
 
                                --mandir=/usr/share/man
17
 
        touch $@
18
 
 
19
 
build: configure build-stamp
20
 
build-stamp:
21
 
        dh_testdir
22
 
        $(MAKE)
23
 
        touch $@
24
 
 
25
 
install: build
26
 
        dh_testdir
27
 
        dh_testroot
28
 
        dh_clean -k
29
 
 
30
 
        $(MAKE) install DESTDIR=`pwd`/debian/tmp/
31
 
 
32
 
# Install manual stuff
33
 
 
 
2
include /usr/share/cdbs/1/rules/debhelper.mk
 
3
include /usr/share/cdbs/1/class/autotools.mk
 
4
 
 
5
DEB_CONFIGURE_EXTRA_FLAGS = --disable-debug \
 
6
        --enable-dynamic-ctl \
 
7
        --enable-dynamic-fsck
 
8
DEB_INSTALL_EXAMPLES_ocfs2-tools = documentation/samples/cluster.conf
 
9
 
 
10
common-install-arch::
34
11
        cp -f vendor/common/o2cb.init debian/ocfs2-tools.o2cb.init
35
 
        cp -f vendor/common/o2cb.sysconfig debian/ocfs2-tools.o2cb.default
36
12
        cp -f vendor/common/ocfs2.init debian/ocfs2-tools.ocfs2.init
37
13
 
38
 
        dh_install --sourcedir=debian/tmp --list-missing
39
 
        dh_installinit --name=o2cb  --no-restart-on-upgrade -- start 60 S . start 6 0 6 .
40
 
        dh_installinit --name=ocfs2 --no-restart-on-upgrade -- start 65 S . start 2 0 6 .
41
 
        dh_installdocs
42
 
        dh_installexamples documentation/samples/cluster.conf
43
 
        dh_installchangelogs
44
 
 
45
 
binary-arch: install
46
 
        dh_testdir
47
 
        dh_testroot
48
 
        dh_strip 
49
 
        dh_compress
50
 
        dh_installdebconf
51
 
        dh_fixperms
52
 
        dh_makeshlibs
53
 
        dh_shlibdeps
54
 
        dh_pysupport
55
 
        dh_installdeb
56
 
        dh_gencontrol
57
 
        dh_md5sums
58
 
        dh_builddeb
59
 
 
60
 
binary-indep:
61
 
# do nothing
62
 
 
63
 
binary: binary-arch binary-indep
64
 
 
65
 
clean: unpatch
66
 
        dh_testdir
67
 
        dh_testroot
68
 
        dh_clean
69
 
        rm -rf debian/patches/log/ .pc
70
 
        rm -f *-stamp debian/ocfs2-tools.o2cb.* debian/ocfs2-tools.ocfs2.*
71
 
        rm -f vendor/common/ocfs2-tools.spec
72
 
        rm -f ocfs2console/ocfs2interface/*so
73
 
        $(MAKE) distclean
74
 
        debconf-updatepo
 
14
binary-install/ocfs2-tools::
 
15
        dh_installinit -p$(cdbs_curpkg) --name=o2cb --no-restart-on-upgrade -- start 60 S . start 6 0 6 . 
 
16
        dh_installinit -p$(cdbs_curpkg) --name=ocfs2 --no-restart-on-upgrade -- start 65 S . start 2 0 6 .
 
17
 
 
18
binary-install/ocfs2console::
 
19
        dh_pysupport -p$(cdbs_curpkg)
 
20
 
 
21
clean::
 
22
        rm -f debian/ocfs2-tools.o2cb.*
 
23
        rm -f vendor/common/ocfs2-tools.spec-generic
 
24
        rm -f ocfs2console/ocfs2interface/*.so ocfs2console/ocfs2interface/confdefs.py