File: rules

package info (click to toggle)
partman-crypto 20etch1
  • links: PTS
  • area: main
  • in suites: etch
  • size: 2,068 kB
  • ctags: 64
  • sloc: sh: 1,772; ansic: 172; makefile: 82
file content (71 lines) | stat: -rwxr-xr-x 1,586 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# GNU copyright 1997 to 1999 by Joey Hess.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

PACKAGE = partman-crypto

build: build-stamp
build-stamp:
	dh_testdir
	$(MAKE) -C base64
	$(MAKE) -C blockdev-wipe
	touch $@

clean:
	dh_testdir
	dh_testroot
	$(MAKE) -C base64 clean
	$(MAKE) -C blockdev-wipe clean
	rm -f build-stamp
	rm -f `find . -name '*~'`
	dh_clean

install-indep:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_install -p $(PACKAGE)-dm ciphers/dm-crypt lib/partman/ciphers
	dh_install -p $(PACKAGE)-loop ciphers/loop-AES lib/partman/ciphers
	rm -rf `find debian/$(PACKAGE)-dm debian/$(PACKAGE)-loop -name .svn`

install-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	debian/install-rc init.d
	debian/install-rc commit.d
	debian/install-rc choose_partition
	debian/install-rc choose_method
	debian/install-rc active_partition
	debian/install-rc update.d
	debian/install-rc finish.d
	dh_install finish-install.d usr/lib
	dh_install crypto_tools.sh lib/partman
	dh_install base64/base64 bin/
	dh_install blockdev-keygen bin/
	dh_install blockdev-wipe/blockdev-wipe bin/
	rm -rf `find debian/$(PACKAGE) -name .svn`

binary-indep: install-indep
	dh_testdir 
	dh_testroot
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_builddeb -i

binary-arch: build install-arch
	dh_testdir 
	dh_testroot
	dh_installdebconf -s
	dh_fixperms -s
	dh_installdeb -s
	dh_shlibdeps -s
	dh_gencontrol -s
	dh_builddeb -s

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install