comparison debian/rules @ 469:8c2d2edadf2a

Update to debian 0.50-4 diff
author Matt Johnston <matt@ucc.asn.au>
date Thu, 27 Mar 2008 10:19:28 +0000
parents 9089929fb2b7
children 8cc0598b0b9a cb3cfcea1c8d
comparison
equal deleted inserted replaced
467:0871a0b89f7c 469:8c2d2edadf2a
26 DIR =$(shell pwd)/debian/dropbear 26 DIR =$(shell pwd)/debian/dropbear
27 27
28 patch: deb-checkdir patch-stamp 28 patch: deb-checkdir patch-stamp
29 patch-stamp: 29 patch-stamp:
30 for i in `ls -1 debian/diff/*.diff || :`; do \ 30 for i in `ls -1 debian/diff/*.diff || :`; do \
31 patch -p0 <$$i || exit 1; \ 31 patch -p1 <$$i || exit 1; \
32 done 32 done
33 touch patch-stamp 33 touch patch-stamp
34 34
35 config.status: patch-stamp configure 35 config.status: patch-stamp configure
36 CC='$(CC)' \ 36 CC='$(CC)' \
44 build-stamp: config.status 44 build-stamp: config.status
45 $(MAKE) CC='$(CC)' LD='$(CC)' 45 $(MAKE) CC='$(CC)' LD='$(CC)'
46 touch build-stamp 46 touch build-stamp
47 47
48 clean: deb-checkdir deb-checkuid 48 clean: deb-checkdir deb-checkuid
49 -$(MAKE) distclean 49 test ! -r Makefile || $(MAKE) distclean
50 rm -f libtomcrypt/Makefile libtommath/Makefile
50 test ! -e patch-stamp || \ 51 test ! -e patch-stamp || \
51 for i in `ls -1r debian/diff/*.diff || :`; do \ 52 for i in `ls -1r debian/diff/*.diff || :`; do \
52 patch -p0 -R <$$i; \ 53 patch -p1 -R <$$i; \
53 done 54 done
54 rm -f patch-stamp build-stamp config.log config.status 55 rm -f patch-stamp build-stamp config.log config.status
55 rm -rf '$(DIR)' 56 rm -rf '$(DIR)'
56 rm -f debian/files debian/substvars debian/copyright changelog 57 rm -f debian/files debian/substvars debian/copyright changelog
57 58
74 install -m0755 debian/dropbear.init '$(DIR)'/etc/init.d/dropbear 75 install -m0755 debian/dropbear.init '$(DIR)'/etc/init.d/dropbear
75 install -m0755 debian/service/run '$(DIR)'/etc/dropbear/run 76 install -m0755 debian/service/run '$(DIR)'/etc/dropbear/run
76 install -d -m0755 '$(DIR)'/etc/dropbear/log 77 install -d -m0755 '$(DIR)'/etc/dropbear/log
77 install -m0755 debian/service/log '$(DIR)'/etc/dropbear/log/run 78 install -m0755 debian/service/log '$(DIR)'/etc/dropbear/log/run
78 ln -s /var/log/dropbear '$(DIR)'/etc/dropbear/log/main 79 ln -s /var/log/dropbear '$(DIR)'/etc/dropbear/log/main
79 ln -s /var/run/dropbear '$(DIR)'/etc/dropbear/supervise
80 ln -s /var/run/dropbear.log '$(DIR)'/etc/dropbear/log/supervise
81 # man pages 80 # man pages
82 install -d -m0755 '$(DIR)'/usr/share/man/man8 81 install -d -m0755 '$(DIR)'/usr/share/man/man8
83 for i in dropbear.8 dropbearkey.8; do \ 82 for i in dropbear.8 dropbearkey.8; do \
84 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \ 83 install -m644 $$i '$(DIR)'/usr/share/man/man8/ || exit 1; \
85 done 84 done