~ubuntu-branches/ubuntu/lucid/wpasupplicant/lucid-updates

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kyle McMartin
  • Date: 2005-02-15 00:51:28 UTC
  • Revision ID: james.westby@ubuntu.com-20050215005128-4cnlxpp3vc3synqq
Tags: 0.3.8-1
* New upstream release.
* This release fixes a crash due to a buffer overflow, caused by
  a missing validation step on EAPOL-Key frames. Receiving malformed
  frames trigger the crash. More information available in the notes:
  http://lists.shmoo.com/pipermail/hostap/2005-February/009465.html
* Fix some badness with the init script. Missed the -B option
  to daemonize wpa_supplicant... pidfile is not currently being used
  as it requires modifying wpa_supplicant.
* patches/
  - 12_ipw_open_aps (closes: #295143)
    + merge patch against driver_ipw to fix association with
      open access points.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
include /usr/share/dpatch/dpatch.make
 
7
 
 
8
PACKAGE=wpasupplicant
 
9
 
 
10
DEB_HOST_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
11
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
12
 
 
13
CFLAGS  = -Wall -g
 
14
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
 
15
  CFLAGS += -O0
 
16
else
 
17
  CFLAGS += -O2
 
18
endif
 
19
 
 
20
build: patch
 
21
        dh_testdir
 
22
        $(MAKE)
 
23
        touch build-stamp
 
24
 
 
25
clean: unpatch
 
26
        dh_testdir
 
27
        dh_testroot
 
28
        -rm -rf build-stamp install-stamp .config debian/tmp
 
29
        $(MAKE) clean
 
30
        dh_clean
 
31
 
 
32
install: install-stamp
 
33
install-stamp: build-stamp
 
34
        dh_testdir
 
35
        dh_testroot
 
36
        dh_clean -k
 
37
        dh_installdirs
 
38
        mkdir -p debian/tmp/etc/init.d
 
39
        mkdir -p debian/tmp/etc/default
 
40
        mkdir -p debian/tmp/usr/sbin
 
41
        mkdir -p debian/tmp/usr/share/doc/wpasupplicant/examples
 
42
        install -p wpa_cli wpa_passphrase wpa_supplicant \
 
43
                        debian/tmp/usr/sbin
 
44
        install -p wpa_supplicant.conf debian/tmp/usr/share/doc/wpasupplicant/examples
 
45
        install -p debian/init.d/wpasupplicant debian/tmp/etc/init.d
 
46
        install -p debian/default/wpasupplicant debian/tmp/etc/default
 
47
        chmod 755 debian/tmp/etc/init.d/wpasupplicant
 
48
        chmod 644 debian/tmp/usr/share/doc/wpasupplicant/examples/wpa_supplicant.conf
 
49
        dh_install
 
50
        touch install-stamp
 
51
 
 
52
binary-arch: build install
 
53
        dh_testdir
 
54
        dh_testroot
 
55
        dh_link
 
56
        dh_installmenu
 
57
        dh_installchangelogs ChangeLog
 
58
        dh_installdocs README
 
59
        dh_installman \
 
60
          debian/wpa_cli.1 debian/wpa_passphrase.1 debian/wpa_supplicant.1
 
61
        dh_strip  
 
62
        dh_compress
 
63
        dh_fixperms
 
64
        dh_installdeb 
 
65
        dh_shlibdeps
 
66
        dh_gencontrol
 
67
        dh_md5sums
 
68
        dh_builddeb
 
69
 
 
70
binary: binary-arch
 
71
.PHONY: build clean binary-arch binary