~ubuntu-branches/ubuntu/precise/conserver/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jörgen Hägg
  • Date: 2011-05-15 10:58:00 UTC
  • mfrom: (1.1.8 upstream)
  • Revision ID: james.westby@ubuntu.com-20110515105800-c18byqa1lfzoiz5t
Tags: 8.1.18-1
* new upstream version
* updated default config files (closes: #603055) 

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 by Joey Hess.
4
 
#
5
 
# This version is for a hypothetical package that builds an
6
 
# architecture-dependant package, as well as an architecture-independent
7
 
# package.
8
 
 
9
 
# Uncomment this to turn on verbose mode. 
10
 
#export DH_VERBOSE=1
11
2
 
12
3
client = conserver-client
13
4
clientd = debian/$(client)
14
5
server = conserver-server
15
6
serverd = debian/$(server)
16
7
 
17
 
configure: configure-stamp
18
 
configure-stamp:
19
 
        dh_testdir
20
 
        # Add here commands to configure the package.
21
 
        ./configure --sysconfdir=/etc/conserver \
 
8
%:
 
9
        dh $@
 
10
 
 
11
override_dh_auto_configure:
 
12
        ./configure \
 
13
                --verbose \
 
14
                --sysconfdir=/etc/conserver \
22
15
                --with-openssl \
23
16
                --with-pam \
24
17
                --with-regex \
30
23
                --with-pidfile=/var/run/conserver.pid \
31
24
                --with-libwrap \
32
25
                --with-64bit
33
 
        touch configure-stamp
34
 
 
35
 
build: configure-stamp build-stamp
36
 
build-stamp:
37
 
        dh_testdir
38
 
 
39
 
        # Add here commands to compile the package.
40
 
        $(MAKE)
41
 
 
42
 
        touch build-stamp
43
 
 
44
 
clean:
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        rm -f build-stamp configure-stamp
48
 
        rm -f config.log config.cache config.status
49
 
 
50
 
        # Add here commands to clean up after the build process.
51
 
        [ ! -f Makefile ] || $(MAKE) distclean
52
 
 
53
 
        debconf-updatepo
54
 
 
55
 
        dh_clean
56
 
 
57
 
install: DH_OPTIONS=
58
 
install: build
59
 
        dh_testdir
60
 
        dh_testroot
61
 
        dh_clean -k
62
 
        dh_installdirs
63
 
 
64
 
        # Add here commands to install the package into debian/conserver.
65
 
        # $(MAKE) install prefix=$(CURDIR)/debian/conserver/usr \
66
 
        #       etcprefix=$(CURDIR)/debian/conserver
67
 
        install -d $(serverd)/usr/sbin
68
 
        install -m 0755 conserver/conserver $(serverd)/usr/sbin
69
 
        install -d $(serverd)/etc/conserver
70
 
 
71
 
        install -d $(serverd)/usr/lib/$(server)
72
 
        install -m 0755 conserver/convert $(serverd)/usr/lib/$(server)
73
 
 
74
 
        install -m 0644 debian/default.cf $(serverd)/etc/conserver/conserver.cf
75
 
 
76
 
        install -d $(serverd)/usr/share/man/man5
77
 
        install -m 0644 conserver.cf/conserver.cf.man \
78
 
                $(serverd)/usr/share/man/man5/conserver.cf.5
79
 
        install -m 0644 conserver.cf/conserver.passwd.man \
80
 
                $(serverd)/usr/share/man/man5/conserver.passwd.5
81
 
 
82
 
        install -d $(clientd)/etc/conserver
83
 
        install -m 0644 debian/console.cf $(clientd)/etc/conserver/console.cf
84
 
        install -d $(clientd)/usr/bin
85
 
        install -m 0755 console/console $(clientd)/usr/bin/console
86
 
        install -d $(clientd)/usr/share/man/man1
87
 
        install -m 0644 console/console.man \
88
 
                $(clientd)/usr/share/man/man1/console.1
89
 
 
90
 
# Build architecture-independent files here.
91
 
# Pass -i to all debhelper commands in this target to reduce clutter.
92
 
binary-indep: DH_OPTIONS=-i
93
 
binary-indep: build install
94
 
 
95
 
# Build architecture-dependent files here.
96
 
# Pass -a to all debhelper commands in this target to reduce clutter.
97
 
binary-arch: DH_OPTIONS=-a
98
 
binary-arch: build install
99
 
        dh_testdir
100
 
        dh_testroot
101
 
        dh_installdebconf
102
 
        dh_installdocs
103
 
        dh_installexamples
104
 
#       dh_installmenu
105
 
#       dh_installemacsen
106
 
#       dh_installpam
107
 
        dh_installinit
108
 
#       dh_installcron
109
 
        dh_installman
110
 
#       dh_installinfo
111
 
        dh_installlogrotate
112
 
#       dh_undocumented
113
 
        dh_installchangelogs CHANGES
114
 
        dh_strip
115
 
#       dh_link
116
 
        dh_compress
117
 
        dh_fixperms
118
 
#       dh_suidregister
119
 
        dh_installdeb
120
 
#       dh_makeshlibs
121
 
#       dh_perl
122
 
        dh_shlibdeps
123
 
        dh_gencontrol
124
 
        dh_md5sums
125
 
        dh_builddeb
126
 
 
127
 
binary: binary-indep binary-arch
128
 
.PHONY: build clean binary-indep binary-arch binary install configure
 
26
 
 
27
override_dh_installman:
 
28
        dh_installman --language=C
 
29
 
 
30
override_dh_installcron override_dh_pysupport override_dh_perl override_dh_ucf: