]> git.proxmox.com Git - apt.git/blob - Makefile
fix dintall target
[apt.git] / Makefile
1 RELEASE=3.1
2
3 APTVER=0.9.7.9
4
5 # also update changelog
6 APTVERPVE=0.9.7.10
7
8 APTSRC=apt_${APTVER}.tar.gz
9 APTDIR=apt-${APTVER}
10
11 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
12 GITVERSION:=$(shell cat .git/refs/heads/master)
13 SOURCETXT="git clone git://git.proxmox.com/git/apt.git\\ngit checkout ${GITVERSION}"
14
15 DEB=apt-transport-https_${APTVERPVE}_${ARCH}.deb
16
17 all: deb
18
19 .PHONY: dinstall
20 dinstall: deb
21 dpkg -i ${DEB}
22
23 .PHONY: download
24 download:
25 rm -f ${APTSRC}
26 wget http://ftp.debian.org/debian/pool/main/a/apt/${APTSRC}
27
28 .PHONY: deb
29 deb ${DEB}: ${APTSRC}
30 rm -rf ${APTDIR}
31 tar xf ${APTSRC}
32 echo "${SOURCETXT}" > ${APTDIR}/debian/SOURCE
33 echo "debian/SOURCE" >>${APTDIR}/debian/apt-transport-https.docs
34 mv ${APTDIR}/debian/changelog ${APTDIR}/debian/changelog.org
35 cat changelog ${APTDIR}/debian/changelog.org >${APTDIR}/debian/changelog
36 cd ${APTDIR}; patch -p1 <../fix-https-proxy-auth.patch
37 cd ${APTDIR}; dpkg-buildpackage -b -uc -us
38
39 .PHONY: upload
40 upload:
41 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
42 mkdir -p /pve/${RELEASE}/extra
43 rm -rf /pve/${RELEASE}/extra/apt-transport-https_*.deb
44 rm -rf /pve/${RELEASE}/extra/Packages*
45 cp ${DEB} /pve/${RELEASE}/extra
46 cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz
47 umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro
48
49 .PHONY: clean
50 clean:
51 rm -rf *~ *_${ARCH}.deb *_all.deb *_${ARCH}.udeb *.changes *.dsc ${APTDIR}