~ubuntu-branches/ubuntu/maverick/openssl/maverick

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Kurt Roeckx
  • Date: 2006-05-15 16:00:58 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060515160058-pn9osix02x46r0iy
Tags: 0.9.8b-2
* Don't call gcc with -mcpu on i386, we already use -march, so no need for
  -mtune either.
* Always make all directories when building something:
  - The engines directory didn't get build for the static directory, so
    where missing in libcrypo.a
  - The apps directory didn't always get build, so we didn't have an openssl
    and a small part of the regression tests failed.
* Make the package fail to build if the regression tests fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
#       perl util/ssldir.pl /usr/lib/ssl
34
34
#       chmod +x debian/libtool
35
35
        ./Configure no-shared $(CONFARGS) debian-$(DEB_HOST_ARCH)
36
 
        make -f Makefile DIRS="crypto ssl" all
37
 
        -make test
 
36
        make -f Makefile all
 
37
        make test
38
38
        mv libcrypto.a libcrypto.static
39
39
        mv libssl.a libssl.static
40
 
        make -f Makefile DIRS="crypto ssl" clean
 
40
        make -f Makefile clean
41
41
        test -z "$(OPTS)" || for opt in $(OPTS); \
42
42
        do \
43
43
                set -xe; \
44
44
                ./Configure shared $(CONFARGS) debian-$(DEB_HOST_ARCH)-$$opt; \
45
 
                make -f Makefile DIRS="crypto ssl" all; \
46
 
                make test || /bin/true; \
 
45
                make -f Makefile all; \
 
46
                make test; \
47
47
                mkdir -p $$opt; \
48
48
                mv libcrypto.so* libssl.so* $$opt/; \
49
 
                make -f Makefile DIRS="crypto ssl" clean; \
 
49
                make -f Makefile clean; \
50
50
        done
51
51
        ./Configure shared $(CONFARGS) debian-$(DEB_HOST_ARCH)
52
52
        #make -f Makefile depend
53
53
        ln -sf apps/openssl.pod crypto/crypto.pod ssl/ssl.pod doc/
54
54
#       make -f Makefile linux-shared
55
55
        make -f Makefile all
56
 
        -make test
 
56
        make test
57
57
#       strip apps/openssl
58
 
#       make -f Makefile clean DIRS="crypto ssl"
 
58
#       make -f Makefile clean
59
59
#       ./Configure --prefix=/usr --openssldir=/usr/lib/ssl no-idea no-mdc2 no-rc5 debian-$(DEB_HOST_ARCH)
60
 
#       make -f Makefile all DIRS="crypto ssl"
 
60
#       make -f Makefile all
61
61
        touch build
62
62
 
63
63
clean:
136
136
#       (cd debian/tmp/usr/doc/openssl/doc; for f in *.doc*; do mv "$$f" "$$(echo $$f | sed -e 's/doc/txt/')";done)
137
137
#       (cd doc; for f in *; do install "$$f" ../debian/tmp/usr/share/doc/openssl/doc/"$$(echo $$f | sed -e 's/doc/txt/')";done)
138
138
#       debstd -u CHANGES* LICENSE README NEWS
139
 
        dh_installdocs CHANGES.SSLeay LICENSE README NEWS debian/README.optimization
 
139
        dh_installdocs CHANGES.SSLeay README NEWS debian/README.optimization
140
140
        dh_installexamples
141
141
        dh_installchangelogs CHANGES
142
142
#       dh_installmenu
155
155
        dh_strip --dbg-package=libssl0.9.8
156
156
        dh_perl -d
157
157
#       dh_suidregister
158
 
        dh_makeshlibs -V "libssl0.9.8 (>= 0.9.8a-1)"
 
158
        dh_makeshlibs -V "libssl0.9.8 (>= 0.9.8b-1)" --add-udeb="libcrypto0.9.8-udeb"
159
159
        dh_shlibdeps -L libssl0.9.8 -l debian/libssl0.9.8/usr/lib
160
160
        dh_gencontrol
161
161
        dh_installdeb