]> git.donarmstrong.com Git - ca-certificates.git/blob - debian/rules
9661865a037ab338243fe9dd3366d59252567044
[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         dh_clean
35
36 install: build
37         dh_testdir
38         dh_testroot
39         dh_clean -k
40         dh_installdirs
41         # Add here commands to install the package into debian/ca-certificates.
42         $(MAKE) install DESTDIR=$(CURDIR)/debian/ca-certificates
43         (cd $(CURDIR)/debian/ca-certificates/usr/share/ca-certificates; \
44          crts=""; \
45          for crt in $$(find . -type f -name '*.crt' -print); \
46          do \
47            crt=$$(echo $$crt | sed -e 's/\.\///'); \
48            if test "$$crts" = ""; then \
49              crts="$$crt"; \
50            else \
51              crts="$$crts, $$crt"; \
52            fi; \
53          done; \
54          cd $(CURDIR)/debian; \
55          sed -e "s|#INITIAL_CERTS#|$$crts|" -e "s|#VERSION#|$(VERSION)|" \
56                 config.in > config)
57
58 # Build architecture-independent files here.
59 binary-indep: build install
60         dh_testdir
61         dh_testroot
62         dh_installdebconf       
63         dh_installdocs
64         dh_installexamples
65 #       dh_installmenu
66 #       dh_installlogrotate
67 #       dh_installemacsen
68 #       dh_installpam
69 #       dh_installmime
70 #       dh_installinit
71 #       dh_installcron
72         dh_installman sbin/update-ca-certificates.8
73 #       dh_installinfo
74 #       dh_undocumented
75         dh_installchangelogs 
76 #       dh_link
77 #       dh_strip
78         dh_compress
79         dh_fixperms
80 #       dh_makeshlibs
81         dh_installdeb
82 #       dh_perl
83 #       dh_shlibdeps
84         dh_gencontrol
85         dh_md5sums
86         dh_builddeb
87
88 # Build architecture-dependent files here.
89 binary-arch: build install
90 # We have nothing to do by default.
91
92 binary: binary-indep binary-arch
93 .PHONY: build clean binary-indep binary-arch binary install configure