~jm-leddy/ubuntu/precise/trousers/reloadusers

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-06-04 11:20:17 UTC
  • Revision ID: james.westby@ubuntu.com-20070604112017-imc97jfa6vm15cac
Tags: 0.2.9.1-0ubuntu2
 * Beautify debian/rules.
 * Switch to dpatch.
 * Enable GTK GUI popup functionality.
 * Add "friendly name" for group.
 * Add debian/watch.
 * Add XS-Vcs-Bzr debian/control field.
 * Add an option to disable trousers init script.
 * Fix a loop bug on trousers init script.
 * Add udev rules for TPM devices.

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
        CFLAGS += -O2
12
12
endif
13
13
 
14
 
 
15
 
patch: patch-stamp
16
 
 
17
 
patch-stamp:
18
 
        dh_testdir
19
 
        @patches=debian/patches/*.diff; for i in $$patches; \
20
 
        do \
21
 
                echo "--- Applying $$i ---"; \
22
 
                patch -p1 < $$i; \
23
 
        done
24
 
        touch $@
25
 
 
26
 
unpatch:
27
 
        dh_testdir
28
 
        @if test -f patch-stamp; then \
29
 
        patches=debian/patches/*.diff; \
30
 
        for i in $$patches; \
31
 
        do \
32
 
                reversepatches="$$i $$reversepatches"; \
33
 
        done; \
34
 
        for i in $$reversepatches; \
35
 
        do \
36
 
                echo "--- Reversing $$i ---"; \
37
 
                patch -R -p1 < $$i; \
38
 
        done; \
39
 
        rm -f patch-stamp; \
40
 
        fi
41
 
 
42
 
configure: configure-stamp
43
 
 
44
 
configure-stamp: patch-stamp
 
14
include /usr/share/dpatch/dpatch.make
 
15
 
 
16
DESTDIR=$(CURDIR)/debian/tmp
 
17
 
 
18
 
 
19
configure: patch configure-stamp
 
20
 
 
21
configure-stamp:
45
22
        dh_testdir
46
23
        CC="$(CC)" CFLAGS="$(CFLAGS)" ./configure \
47
24
                --prefix=/usr \
48
 
                --with-gui=none
 
25
                --with-gui=gtk
49
26
        touch $@
50
27
 
51
 
clean:
 
28
clean: unpatch
52
29
        dh_testdir
53
30
        dh_testroot
54
31
        rm -f build configure-stamp config.log
55
32
        -$(MAKE) distclean
56
 
        -$(MAKE) -s -f debian/rules unpatch
57
33
        dh_clean
58
34
 
59
35
install: build
61
37
        dh_testroot
62
38
        dh_clean -k 
63
39
        dh_installdirs
64
 
        $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
65
 
        dh_install --sourcedir=debian/tmp -ptrousers
66
 
        dh_install --sourcedir=debian/tmp -plibtspi1
67
 
        dh_install --sourcedir=debian/tmp -plibtspi-dev
 
40
        
 
41
        $(MAKE) install DESTDIR=$(DESTDIR)
 
42
        
 
43
        install -m644 debian/45-trousers.rules debian/trousers/etc/udev/rules.d/
 
44
        
 
45
        dh_install
68
46
 
69
 
build: configure-stamp
 
47
build: configure
70
48
        $(MAKE)
71
49
        touch $@
72
50
 
78
56
        dh_installinit
79
57
        dh_installchangelogs ChangeLog
80
58
        dh_installdocs
81
 
        dh_installexamples
82
59
        dh_installman
83
60
        dh_link
84
61
        dh_strip