~ubuntu-branches/ubuntu/dapper/judy/dapper

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Theodore Y. Ts'o
  • Date: 2004-01-17 00:04:53 UTC
  • Revision ID: james.westby@ubuntu.com-20040117000453-2pidexq09x6lg9mq
Tags: 0.0.4-7
Fix incorrect symlinks in man pages (Closes: #203995)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
# Sample debian/rules that uses debhelper.
 
3
# GNU copyright 1997 to 1999 by Joey Hess.
 
4
 
 
5
# Uncomment this to turn on verbose mode.
 
6
#export DH_VERBOSE=1
 
7
 
 
8
# This is the debhelper compatibility version to use.
 
9
export DH_COMPAT=3
 
10
 
 
11
# These are used for cross-compiling and for saving the configure script
 
12
# from having to guess our platform (since we know it already)
 
13
DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
 
14
DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
 
15
 
 
16
 
 
17
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
 
18
        CFLAGS += -g
 
19
endif
 
20
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
 
21
        INSTALL_PROGRAM += -s
 
22
endif
 
23
 
 
24
# shared library versions, option 1
 
25
version=0.0.0
 
26
major=0
 
27
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
 
28
#version=`ls src/.libs/lib*.so.* | \
 
29
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 
30
#major=`ls src/.libs/lib*.so.* | \
 
31
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
32
 
 
33
config.status: configure
 
34
        dh_testdir
 
35
        # Add here commands to configure the package.
 
36
        #./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
 
37
        bash ./configure
 
38
 
 
39
 
 
40
build: build-stamp
 
41
build-stamp:  config.status
 
42
        dh_testdir
 
43
 
 
44
        # Add here commands to compile the package.
 
45
        $(MAKE)
 
46
 
 
47
        touch build-stamp
 
48
 
 
49
clean:
 
50
        dh_testdir
 
51
        dh_testroot
 
52
        rm -f build-stamp 
 
53
 
 
54
        # Add here commands to clean up after the build process.
 
55
        -$(MAKE) distclean
 
56
 
 
57
        dh_clean
 
58
 
 
59
install: build
 
60
        dh_testdir
 
61
        dh_testroot
 
62
        dh_clean -k
 
63
        dh_installdirs
 
64
 
 
65
        # Add here commands to install the package into debian/tmp
 
66
ifeq (ia64-linux,$(DEB_BUILD_GNU_TYPE))
 
67
        cp -a src/linux_ipf/product/deliver debian/tmp
 
68
else
 
69
        cp -a src/linux_ia32/product/deliver debian/tmp
 
70
endif
 
71
        rm debian/tmp/usr/share/doc/Judy/COPYRIGHT
 
72
        mv debian/tmp/usr/share/doc/Judy \
 
73
           debian/tmp/usr/share/doc/libjudy-dev
 
74
        mv debian/tmp/usr/lib/libJudy.so \
 
75
           debian/tmp/usr/lib/libjudydebian.so.0.0.0
 
76
        ln -s libjudydebian.so.0.0.0 \
 
77
              debian/tmp/usr/lib/libjudydebian.so.0
 
78
        ln -s libjudydebian.so.0 \
 
79
              debian/tmp/usr/lib/libJudy.so
 
80
#       $(MAKE) install prefix=$(CURDIR)/debian/tmp/usr
 
81
 
 
82
 
 
83
# Build architecture-independent files here.
 
84
binary-indep: build install
 
85
# We have nothing to do by default.
 
86
 
 
87
# Build architecture-dependent files here.
 
88
binary-arch: build install
 
89
        dh_testdir
 
90
        dh_testroot
 
91
        dh_movefiles
 
92
 
 
93
#       dh_installdebconf       
 
94
        dh_installdocs -v
 
95
        dh_installexamples -v
 
96
        dh_installcron -v
 
97
        dh_installman -v
 
98
        dh_installinfo -v
 
99
#       dh_undocumented
 
100
        dh_installchangelogs -v
 
101
        dh_link -v
 
102
        dh_strip -v
 
103
        dh_compress -v
 
104
        dh_fixperms -v
 
105
        rm -f debian/libjudydebian0/DEBIAN/shlibs
 
106
        install -d debian/libjudydebian0/DEBIAN
 
107
        install -m644 -o 0 -g 0 debian/shlibs debian/libjudydebian0/DEBIAN/shlibs
 
108
        install -o 0 -g 0 -d debian/libjudy-dev/DEBIAN
 
109
        sed s/#DEBHELPER#// < debian/postinst > debian/libjudy-dev/DEBIAN/postinst
 
110
        chown 0.0 debian/libjudy-dev/DEBIAN/postinst
 
111
        chmod 755 debian/libjudy-dev/DEBIAN/postinst
 
112
        sed s/#DEBHELPER#// < debian/postrm > debian/libjudy-dev/DEBIAN/postrm
 
113
        chown 0.0 debian/libjudy-dev/DEBIAN/postrm
 
114
        chmod 755 debian/libjudy-dev/DEBIAN/postrm
 
115
        dh_shlibdeps -v
 
116
        dh_gencontrol -v
 
117
        dh_md5sums -v
 
118
        dh_builddeb -v
 
119
 
 
120
binary: binary-indep binary-arch
 
121
.PHONY: build clean binary-indep binary-arch binary install