~ubuntu-branches/debian/squeeze/asterisk-chan-capi/squeeze

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings
  • Date: 2007-03-07 01:58:53 UTC
  • mfrom: (3.1.3 feisty)
  • Revision ID: james.westby@ubuntu.com-20070307015853-yw0ov095k4fx2rza
Tags: 0.7.1-1.1
* Non-maintainer upload
* Protect calls to capi_cmsg2str and use of its buffer with a mutex.
  (Closes: #411293)

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
 
9
9
 
10
10
 
11
 
export PROC := $(shell dpkg-architecture -qDEB_HOST_ARCH)
 
11
export PROC := $(shell dpkg-architecture -qDEB_BUILD_GNU_CPU)
12
12
 
13
13
CFLAGS = -Wall -g
14
14
 
23
23
 
24
24
include /usr/share/dpatch/dpatch.make
25
25
 
26
 
configure: configure-stamp 
 
26
DEBVERSION:=$(shell head -n 1 debian/changelog \
 
27
                    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 
28
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
 
29
 
 
30
FILENAME := asterisk-chan-capi_$(UPVERSION).orig.tar.gz
 
31
URL := ftp://ftp.chan-capi.org/chan-capi/chan_capi-$(UPVERSION).tar.gz
 
32
 
 
33
configure: configure-stamp
27
34
configure-stamp:
28
35
        dh_testdir
29
36
        # Add here commands to configure the package.
33
40
 
34
41
build: patch build-stamp
35
42
 
36
 
build-stamp: configure-stamp 
 
43
build-stamp: configure-stamp
37
44
        dh_testdir
38
45
 
39
46
        # Add here commands to compile the package.
51
58
        # Add here commands to clean up after the build process.
52
59
        -$(MAKE) clean
53
60
 
54
 
        dh_clean 
 
61
        dh_clean
55
62
 
56
63
install: build
57
64
        dh_testdir
58
65
        dh_testroot
59
 
        dh_clean -k 
 
66
        dh_clean -k
60
67
        dh_installdirs
61
68
 
62
69
        # Add here commands to install the package into debian/chan-capi.
63
 
        $(MAKE) config install INSTALL_PREFIX=$(CURDIR)/debian/asterisk-chan-capi
 
70
        $(MAKE) install_config install INSTALL_PREFIX=$(CURDIR)/debian/asterisk-chan-capi
64
71
 
65
72
 
66
73
# Build architecture-independent files here.
71
78
binary-arch: build install
72
79
        dh_testdir
73
80
        dh_testroot
74
 
        dh_installchangelogs 
 
81
        dh_installchangelogs CHANGES
75
82
        dh_installdocs
76
83
        dh_installexamples
77
84
#       dh_install
78
85
#       dh_installmenu
79
 
#       dh_installdebconf       
 
86
#       dh_installdebconf
80
87
#       dh_installlogrotate
81
88
#       dh_installemacsen
82
89
#       dh_installpam
98
105
        dh_md5sums
99
106
        dh_builddeb
100
107
 
 
108
print-version:
 
109
        @@echo "Debian version:          $(DEBVERSION)"
 
110
        @@echo "Upstream version:        $(UPVERSION)"
 
111
 
 
112
get-orig-source:
 
113
        @@dh_testdir
 
114
        @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
 
115
        @@echo Downloading $(FILENAME) from $(URL) ...
 
116
        @@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
 
117
 
101
118
binary: binary-indep binary-arch
102
119
.PHONY: build clean binary-indep binary-arch binary install configure