~ubuntu-branches/ubuntu/precise/stunnel4/precise-security

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Julien Lemoine
  • Date: 2005-04-20 21:07:50 UTC
  • mfrom: (1.1.1 upstream) (2.1.1 hoary)
  • Revision ID: james.westby@ubuntu.com-20050420210750-0vk5fj5vh75o4d00
Tags: 2:4.090-1
* New upstream release
* include better stunnel3 compability script from upstream, options 
  like -cd can now be use instead of -c -d ...
  (closes: #305259)
* Added depends on perl-modules to allow use of stunnel3 compatibilty script

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
 
6
6
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
7
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
 
 
9
 
CFLAGS = -Wall -g
 
8
PROXY_CONNECT        = debian/connect-proxy_dunbar.patch
 
9
CFLAGS               = -Wall -g
10
10
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
11
11
  CFLAGS += -O0
12
12
else
16
16
build: build-stamp
17
17
build-stamp:
18
18
        dh_testdir
 
19
#       cat $(PROXY_CONNECT) | patch -p1
 
20
#       touch patched
19
21
        CFLAGS="$(CFLAGS)" ./configure --prefix=/usr                    \
20
22
          --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE)     \
21
23
          --localstatedir=/var --enable-ssllib-cs                       \
22
 
          --with-cert-dir=/etc/ssl/certs --with-pem-dir=/etc/ssl/certs
 
24
          --with-cert-dir=/etc/ssl/certs --with-pem-dir=/etc/ssl/certs  \
 
25
          --enable-ipv6
23
26
        cd src; $(MAKE)
24
27
        cd doc; $(MAKE)
25
28
        touch build-stamp
27
30
clean:
28
31
        dh_testdir
29
32
        dh_testroot
 
33
#       if test -f patched; then cat $(PROXY_CONNECT) | patch -p1 -R; fi
30
34
        rm -rf build-stamp config.cache stunnel.rnd src/stunnel.exe     \
31
35
          doc/stunnel4.8 config.log config.status src/stunnel src/.libs \
32
36
          src/*.o src/*.lo src/*.la src/Makefile doc/Makefile           \
33
37
          tools/Makefile tools/stunnel.conf-sample tools/stunnel.init   \
34
 
          Makefile libtool
 
38
          Makefile libtool patched src/.deps src/stunnel3 
35
39
        -$(MAKE) clean
36
40
        -$(MAKE) distclean
37
41
        dh_clean
50
54
        cp doc/stunnel.8 doc/stunnel4.8
51
55
        mv $(CURDIR)/debian/stunnel4/usr/sbin/stunnel                   \
52
56
          $(CURDIR)/debian/stunnel4/usr/sbin/stunnel4
 
57
        mv $(CURDIR)/debian/stunnel4/usr/sbin/stunnel3                  \
 
58
          $(CURDIR)/debian/stunnel4/usr/sbin/stunnel
53
59
        mv $(CURDIR)/debian/stunnel4/usr/share/doc/stunnel/*            \
54
60
          $(CURDIR)/debian/stunnel4/usr/share/doc/stunnel4
55
61
        rm -rf $(CURDIR)/debian/stunnel4/usr/share/doc/stunnel
67
73
        dh_installchangelogs
68
74
        dh_installinit -- defaults
69
75
        dh_installppp --name=0stunnel4
 
76
        dh_installlogrotate
70
77
        dh_link
71
78
        dh_strip
72
79
        dh_compress