~ubuntu-branches/ubuntu/gutsy/vlock/gutsy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Alexander Wirt
  • Date: 2006-07-19 20:26:23 UTC
  • mfrom: (2.1.1 edgy)
  • Revision ID: james.westby@ubuntu.com-20060719202623-o4b72z63j2ktngv3
Tags: 1.3-10
* Add a patch from Guido Guenther that adds better checking for the return
  code of correct_password() (Closes: #364081)
* Add a patch Daniel Kahn Gillmor thats stats the PAM Session only after
  pressing enter. That prevents some problems with some exclusive-access PAM
  modules like opensc (Closes: #318507)
* Include common-auth in the pam file (Closes: #265297)
* Depend on libpam-modules (Closes: #55834) 
* Bump standards version

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# Sample debian/rules that uses debhelper.
3
 
# GNU copyright 1997 to 1999 by Joey Hess.
4
2
 
5
3
# Uncomment this to turn on verbose mode.
6
 
export DH_VERBOSE=1
 
4
#export DH_VERBOSE=1
7
5
 
8
6
# This is the debhelper compatability version to use.
9
 
export DH_COMPAT=2
 
7
export DH_COMPAT=4
10
8
 
11
9
build: build-stamp
12
10
build-stamp:
13
11
        dh_testdir
14
12
 
15
13
        # Add here commands to compile the package.
16
 
        $(MAKE) vlock vlock.man
 
14
        $(MAKE) vlock
17
15
        cat vlock.spec | awk 'BEGIN {a=0; b=0} /^%changelog/ {a=1} /^%/ {if (a>1) {a=0}} {if (a>1) {print} else if (a==1) {a++}}' > debian/upstream.changelog
18
16
        cp vlock.pamd debian/vlock.pam
19
17
 
24
22
        dh_testroot
25
23
        rm -f build-stamp install-stamp
26
24
 
27
 
        # Add here commands to clean up after the build process.
28
25
        -$(MAKE) clean
29
 
        -rm debian/vlock.pam debian/upstream.changelog
 
26
        rm -f debian/vlock.pam debian/upstream.changelog
 
27
        rm -f vlock.man
30
28
 
31
29
        dh_clean
32
30
 
36
34
        dh_clean -k
37
35
        dh_installdirs
38
36
 
39
 
        # Add here commands to install the package into debian/tmp.
40
 
        install -s vlock debian/vlock/usr/bin/vlock
 
37
        dh_install vlock /usr/bin
 
38
        install -m 644 debian/vlock.override debian/vlock/usr/share/lintian/overrides/vlock
41
39
 
42
40
        touch install-stamp
43
41
 
47
45
 
48
46
# Build architecture-dependent files here.
49
47
binary-arch: build install
50
 
#       dh_testversion
51
48
        dh_testdir
52
49
        dh_testroot
53
 
#       dh_installdebconf       
54
50
        dh_installdocs README
55
51
        dh_installexamples
56
52
        dh_installmenu
57
 
#       dh_installemacsen
58
53
        dh_installpam
59
 
#       dh_installinit
60
54
        dh_installcron
61
55
        dh_installmanpages
62
56
        dh_installinfo
63
 
#       dh_undocumented
64
57
        dh_installchangelogs debian/upstream.changelog
65
58
        dh_link
66
59
        dh_strip
67
60
        dh_compress
68
61
        dh_fixperms
69
62
        # You may want to make some executables suid here.
70
 
        chown root.shadow debian/vlock/usr/bin/vlock
 
63
        chown root:shadow debian/vlock/usr/bin/vlock
71
64
        chmod 2755 debian/vlock/usr/bin/vlock
72
 
#       dh_suidregister
73
 
#       dh_makeshlibs
74
65
        dh_installdeb
75
 
#       dh_perl
76
66
        dh_shlibdeps
77
67
        dh_gencontrol
78
68
        dh_md5sums