Ajouté ce que ça prend pour Squeeze
[sftp.git] / Makefile
CommitLineData
f36c8a24
NC
1LUCID_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/
3LUCID_PACKAGE := openssh-5.3p1
4LUCID_PATCH := $(LUCID_PACKAGE)-hpn13v7.diff
ac22828a 5
973b5a1f
NC
6SQUEEZE_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/
8SQUEEZE_PACKAGE := openssh-5.5p1
9SQUEEZE_PATCH := $(SQUEEZE_PACKAGE)-hpn13v9.diff
10
f36c8a24 11sanity-check:
ac22828a
NC
12 grep DGET_VERIFY=no ~/.devscripts \
13 || (echo 'SVP ajoutez "DGET_VERIFY=no" à ~/.devscripts'; false)
f36c8a24
NC
14
15lucid: 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); \
973b5a1f
NC
21 cat ../$(LUCID_PATCH) | patch -p1 && \
22 dch -l '~auf104.' 'Appliqué la patch HPN' && \
23 debuild -us -uc; \
24 )
25
26squeeze: 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' && \
ac22828a
NC
34 debuild -us -uc; \
35 )