]> git.donarmstrong.com Git - ca-certificates.git/blob - debian/rules
Imported Debian version 20061027.1
[ca-certificates.git] / debian / rules
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 compatability version to use.
9 export DH_COMPAT=3
10 VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: //p')
11
12 configure: configure-stamp
13 configure-stamp:
14         dh_testdir
15         # Add here commands to configure the package.
16         touch configure-stamp
17
18 build: build-stamp
19
20 build-stamp: configure-stamp 
21         dh_testdir
22
23         # Add here commands to compile the package.
24         $(MAKE)
25         touch build-stamp
26
27 clean:
28         dh_testdir
29         dh_testroot
30         rm -f build-stamp configure-stamp
31         # Add here commands to clean up after the build process.
32         -$(MAKE) clean
33
34         debconf-updatepo
35
36         dh_clean
37
38 install: build
39         dh_testdir
40         dh_testroot
41         dh_clean -k
42         dh_installdirs
43         # Add here commands to install the package into debian/ca-certificates.
44         $(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
45         (cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
46          crts=""; \
47          for crt in $$(find . -type f -name '*.crt' -print); \
48          do \
49            crt=$$(echo $$crt | sed -e 's/\.\///'); \
50            if test "$$crts" = ""; then \
51              crts="$$crt"; \
52            else \
53              crts="$$crts, $$crt"; \
54            fi; \
55          done; \
56          cd $(CURDIR)/debian; \
57          sed -e "s|#INITIAL_CERTS#|$$crts|" -e "s|#VERSION#|$(VERSION)|" \
58                 config.in > config)
59
60 # Build architecture-independent files here.
61 binary-indep: build install
62         dh_testdir
63         dh_testroot
64         dh_installdebconf       
65         dh_installdocs
66         dh_installexamples
67 #       dh_installmenu
68 #       dh_installlogrotate
69 #       dh_installemacsen
70 #       dh_installpam
71 #       dh_installmime
72 #       dh_installinit
73 #       dh_installcron
74         dh_installman sbin/update-ca-certificates.8
75 #       dh_installinfo
76 #       dh_undocumented
77         dh_installchangelogs 
78 #       dh_link
79 #       dh_strip
80         dh_compress
81         dh_fixperms
82 #       dh_makeshlibs
83         dh_installdeb
84 #       dh_perl
85 #       dh_shlibdeps
86         dh_gencontrol
87         dh_md5sums
88         dh_builddeb
89
90 # Build architecture-dependent files here.
91 binary-arch: build install
92 # We have nothing to do by default.
93
94 binary: binary-indep binary-arch
95 .PHONY: build clean binary-indep binary-arch binary install configure