~ubuntu-branches/ubuntu/precise/libio-socket-ssl-perl/precise

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ragwitz
  • Date: 2005-08-11 19:33:45 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050811193345-vt5akfba47n86u5z
Tags: 0.97-1
* New upstream version.
* New Maintainer (Closes: #322099).
* Changed Section from interpreters to perl because it's more accurate.
* Removed dependency on openssl. I don't see why it's needed. Net::SSLeay is
  used as the interface to libssl.
* Removed Conflicts: and Replaces: libnet-socketssl-perl. It's not in the
  archive anymore.
* Using debhelper 4.
* Updated standards version.
* Rewrote debian/rules.
* Updated copyright.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# -*- Makefile -*-
3
 
 
4
 
tmp:=$(shell pwd)/debian/tmp
 
2
 
 
3
export PERL_MM_USE_DEFAULT=1
 
4
 
 
5
PACKAGE=$(shell dh_listpackages)
5
6
 
6
7
ifndef PERL
7
 
PERL=/usr/bin/perl
 
8
PERL = /usr/bin/perl
8
9
endif
9
10
 
10
 
binary: binary-indep binary-arch
 
11
TMP     =$(CURDIR)/debian/$(PACKAGE)
 
12
 
 
13
build: build-stamp
 
14
build-stamp:
 
15
        dh_testdir
 
16
        $(PERL) Makefile.PL INSTALLDIRS=vendor
 
17
        $(MAKE) OPTIMIZE="-Wall -O2 -g"
 
18
        touch build-stamp
 
19
 
 
20
clean:
 
21
        dh_testdir
 
22
        dh_testroot
 
23
        -$(MAKE) distclean
 
24
        dh_clean build-stamp install-stamp
 
25
 
 
26
install: build install-stamp
 
27
install-stamp:
 
28
        dh_testdir
 
29
        dh_testroot
 
30
        dh_clean -k
 
31
        $(MAKE) test
 
32
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
33
        rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/lib/perl5
 
34
        touch install-stamp
 
35
 
 
36
binary-arch:
 
37
# We have nothing to do by default.
11
38
 
12
39
binary-indep: build install
13
40
        dh_testdir
14
41
        dh_testroot
15
 
        dh_installdocs MANIFEST README docs/*
 
42
        dh_installexamples example/*
 
43
        dh_installdocs BUGS docs/debugging.txt
16
44
        dh_installchangelogs Changes
17
 
        dh_installexamples example/*
18
 
        dh_perl         
 
45
        dh_perl
 
46
        dh_link
 
47
        dh_strip
 
48
        dh_compress
 
49
        dh_fixperms
19
50
        dh_installdeb
20
 
        dh_fixperms
21
 
        chmod -x debian/tmp/usr/share/doc/libio-socket-ssl-perl/examples/*
22
 
        dh_compress
23
 
        dh_strip
 
51
        dh_gencontrol
24
52
        dh_md5sums
25
 
        dh_gencontrol
26
53
        dh_builddeb
27
54
 
28
 
binary-arch: build install
29
 
 
30
 
build: build-stamp
31
 
build-stamp:
32
 
        dh_testdir
33
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor  
34
 
        $(MAKE) OPTIMIZE="-O2 -g -Wall"
35
 
        touch build-stamp
36
 
 
37
 
clean:
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        if [ -e Makefile ]; then $(MAKE) -i distclean; fi
41
 
        dh_clean build-stamp
42
 
 
43
 
install:
44
 
        dh_testdir
45
 
        $(MAKE) install PREFIX=$(tmp)/usr
46
 
        rm -f $(tmp)/usr/lib/perl5/perllocal.pod
47
 
        rm -rf $(tmp)/usr/lib
48
 
        find debian/tmp -type f -name .packlist | xargs rm -f
49
 
 
50
 
.PHONY: binary binary-arch binary-indep clean build install     
 
55
source diff:                                                                  
 
56
        @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
57
 
 
58
binary: binary-indep binary-arch
 
59
.PHONY: build clean binary-indep binary-arch binary