RELEASE=3.1 APTVER=0.9.7.9 # also update changelog APTVERPVE=0.9.7.10 APTSRC=apt_${APTVER}.tar.gz APTDIR=apt-${APTVER} ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) GITVERSION:=$(shell cat .git/refs/heads/master) SOURCETXT="git clone git://git.proxmox.com/git/apt.git\\ngit checkout ${GITVERSION}" DEB=apt-transport-https_${APTVERPVE}_${ARCH}.deb all: deb .PHONY: dinstall dinstall: deb dpkg -i ${DEB} .PHONY: download download: rm -f ${APTSRC} wget http://ftp.debian.org/debian/pool/main/a/apt/${APTSRC} .PHONY: deb deb ${DEB}: ${APTSRC} rm -rf ${APTDIR} tar xf ${APTSRC} echo "${SOURCETXT}" > ${APTDIR}/debian/SOURCE echo "debian/SOURCE" >>${APTDIR}/debian/apt-transport-https.docs mv ${APTDIR}/debian/changelog ${APTDIR}/debian/changelog.org cat changelog ${APTDIR}/debian/changelog.org >${APTDIR}/debian/changelog cd ${APTDIR}; patch -p1 <../fix-https-proxy-auth.patch cd ${APTDIR}; dpkg-buildpackage -b -uc -us .PHONY: upload upload: umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw mkdir -p /pve/${RELEASE}/extra rm -rf /pve/${RELEASE}/extra/apt-transport-https_*.deb rm -rf /pve/${RELEASE}/extra/Packages* cp ${DEB} /pve/${RELEASE}/extra cd /pve/${RELEASE}/extra; dpkg-scanpackages . /dev/null > Packages; gzip -9c Packages > Packages.gz umount /pve/${RELEASE}; mount /pve/${RELEASE} -o ro .PHONY: clean clean: rm -rf *~ *_${ARCH}.deb *_all.deb *_${ARCH}.udeb *.changes *.dsc ${APTDIR}