Ajouté ce que ça prend pour Squeeze
[sftp.git] / Makefile
1 LUCID_DSC := http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh_5.3p1-3ubuntu3.dsc
2 # Get the following patch from http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-5.3-patches/OpenSSH-5.3-Kitchen-Sink-patch/
3 LUCID_PACKAGE := openssh-5.3p1
4 LUCID_PATCH := $(LUCID_PACKAGE)-hpn13v7.diff
5
6 SQUEEZE_DSC := http://ftp.de.debian.org/debian/pool/main/o/openssh/openssh_5.5p1-6+squeeze2.dsc
7 # Get the following patch from http://www.psc.edu/index.php/component/remository/HPN-SSH/OpenSSH-5.5-patches/OpenSSH-5.5-Kitchen-Sink-patch/
8 SQUEEZE_PACKAGE := openssh-5.5p1
9 SQUEEZE_PATCH := $(SQUEEZE_PACKAGE)-hpn13v9.diff
10
11 sanity-check:
12 grep DGET_VERIFY=no ~/.devscripts \
13 || (echo 'SVP ajoutez "DGET_VERIFY=no" à ~/.devscripts'; false)
14
15 lucid: sanity-check
16 test ! -d $(LUCID_PACKAGE) || rm -r $(LUCID_PACKAGE)
17 dget $(LUCID_DSC)
18 zcat $(LUCID_PATCH).gz > $(LUCID_PATCH)
19 patch $(LUCID_PATCH) < $(LUCID_PATCH).auf-patch
20 (cd $(LUCID_PACKAGE); \
21 cat ../$(LUCID_PATCH) | patch -p1 && \
22 dch -l '~auf104.' 'Appliqué la patch HPN' && \
23 debuild -us -uc; \
24 )
25
26 squeeze: sanity-check
27 test ! -d $(SQUEEZE_PACKAGE) || rm -r $(SQUEEZE_PACKAGE)
28 dget $(SQUEEZE_DSC)
29 zcat $(SQUEEZE_PATCH).gz > $(SQUEEZE_PATCH)
30 patch $(SQUEEZE_PATCH) < $(SQUEEZE_PATCH).auf-patch
31 (cd $(SQUEEZE_PACKAGE); \
32 cat ../$(SQUEEZE_PATCH) | patch -p1 && \
33 dch -l '~auf60.' 'Appliqué la patch HPN' && \
34 debuild -us -uc; \
35 )