blob: a135e91f204592f0c60ba01271bd2a9560f271e8 (
plain)
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
|
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEBVERS := $(shell dpkg-parsechangelog | sed -n -e 's/^Version: //p')
configure: configure-stamp
configure-stamp:
dh_testdir
./autogen.sh
./configure
echo "#define VERSION \"$(DEBVERS)\"" >src/version.h
touch configure-stamp
build: configure-stamp build-stamp
build-stamp:
dh_testdir
$(MAKE)
$(MAKE) -C tests -f Makefile run
touch build-stamp
clean:
dh_testdir
dh_testroot
rm -f build-stamp configure-stamp
dh_clean
dh_auto_clean
distclean: build
$(MAKE) distclean
install: build
dh_testdir
dh_testroot
dh_clean
dh_prep
dh_installdirs
dh_installchangelogs
dh_installdebconf
$(MAKE) install-strip prefix=$(CURDIR)/debian/naskpass
install -d -m755 $(CURDIR)/debian/naskpass/usr/share/naskpass
install -D -m755 ./scripts/naskconf $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -D -m755 ./scripts/naskpass.inithook $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -D -m755 ./scripts/naskpass.initscript $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -D -m755 ./scripts/naskpass.initconf $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -D -m755 ./scripts/naskpass.pre $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -D -m755 ./scripts/naskpass.post $(CURDIR)/debian/naskpass/usr/share/naskpass/
install -d -m755 $(CURDIR)/debian/naskpass/etc/initramfs-tools/etc/ssh/
install -D -m644 ./scripts/sshd_config $(CURDIR)/debian/naskpass/etc/initramfs-tools/etc/ssh/
binary-indep: build install
binary-arch: build install
dh_testdir
dh_testroot
dh_installdocs
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: build clean distclean binary-indep binary-arch binary install configure
|