~ubuntu-branches/debian/wheezy/ecryptfs-utils/wheezy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): William Lima
  • Date: 2007-05-09 16:21:23 UTC
  • Revision ID: james.westby@ubuntu.com-20070509162123-k8b5b32fb44bpbwh
Tags: 15-0ubuntu1
* Initial release.
* Repackaged upstream tarball without debian directory.
* As noted in README.Debian-source, the files build-arch-stamp,
  build-indep-stamp, config.status, config.log and libtool have
  been removed to avoid problems.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
#export DH_VERBOSE=1
 
4
 
 
5
package = ecryptfs-utils
 
6
 
 
7
CC = gcc
 
8
CFLAGS = -g -Wall
 
9
 
 
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
11
        CFLAGS += -O2
 
12
endif
 
13
 
 
14
include /usr/share/dpatch/dpatch.make
 
15
 
 
16
DESTDIR=$(CURDIR)/debian/tmp
 
17
 
 
18
 
 
19
configure: patch configure-stamp
 
20
 
 
21
configure-stamp:
 
22
        dh_testdir
 
23
        CC="$(CC)" CFLAGS="$(CFLAGS)" ./configure \
 
24
                --prefix=/usr \
 
25
                --libdir=\$${exec_prefix}/lib \
 
26
                --mandir=\$${prefix}/share/man \
 
27
                --disable-opencryptoki \
 
28
                --disable-tspi \
 
29
                --disable-gui \
 
30
                --with-pamdir=/lib/security
 
31
        touch $@
 
32
 
 
33
clean: unpatch
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        rm -f build configure-stamp config.log
 
37
        -$(MAKE) distclean
 
38
        dh_clean 
 
39
 
 
40
install: build
 
41
        dh_testdir
 
42
        dh_testroot
 
43
        dh_clean -k
 
44
        dh_installdirs
 
45
        
 
46
        $(MAKE) install DESTDIR=$(DESTDIR)
 
47
        
 
48
        dh_install
 
49
 
 
50
build: configure
 
51
        $(MAKE)
 
52
        touch $@
 
53
 
 
54
binary-indep: build install
 
55
 
 
56
binary-arch: build install
 
57
        dh_testdir
 
58
        dh_testroot
 
59
        dh_installchangelogs
 
60
        dh_installdocs
 
61
        dh_installman
 
62
        dh_link
 
63
        dh_strip
 
64
        dh_compress
 
65
        dh_fixperms
 
66
        dh_makeshlibs
 
67
        dh_installdeb
 
68
        dh_shlibdeps -l debian/libecryptfs0/usr/lib -L libecryptfs0
 
69
        dh_gencontrol
 
70
        dh_md5sums
 
71
        dh_builddeb
 
72
 
 
73
binary: binary-indep binary-arch
 
74
 
 
75
.PHONY: build clean binary-indep binary-arch binary install configure patch unpatch