Pour Ubuntu il faut vérifier aussi lucid-updates.
[sftp.git] / Makefile
CommitLineData
da979e2b 1LUCID_DSC := http://archive.ubuntu.com/ubuntu/pool/main/o/openssh/openssh_5.3p1-3ubuntu7.dsc
f36c8a24
NC
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 21 cat ../$(LUCID_PATCH) | patch -p1 && \
7cb81852 22 dch -l '.1~auf104.' 'Appliation du correctif HPN' && \
9b6f7ba2 23 debuild -us -uc -sa; \
973b5a1f
NC
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 && \
7cb81852 33 dch -l '.1~auf60.' 'Application du correctif HPN' && \
9b6f7ba2 34 debuild -us -uc -sa; \
ac22828a 35 )