--- /dev/null
+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 ${DEBS}
+
+.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}
--- /dev/null
+We recompile apt-transport-https ourselfs to fix bug:
+
+http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=669620
+
+This is already fixed upstream in version 0.9.8, but there is
+no backport of that fix to existing debian wheezy packages.
--- /dev/null
+apt (0.9.7.10) stable; urgency=low
+
+ * fix Bug#669620: apt-transport-https: proxy authentication credentials
+ are ignored
+
+ -- Proxmox Support Team <support@proxmox.com> Wed, 11 Sep 2013 10:25:48 +0200
+
--- /dev/null
+--- apt-0.8.10.3+squeeze1/methods/https.cc 2011-04-15 09:30:33.000000000 +0200
++++ - 2012-04-20 14:41:07.907097097 +0200
+@@ -86,10 +86,7 @@
+ // Determine what host and port to use based on the proxy settings
+ if (UseProxy.empty() == false)
+ {
+- Proxy = UseProxy;
+- if (Proxy.Port != 1)
+- curl_easy_setopt(curl, CURLOPT_PROXYPORT, Proxy.Port);
+- curl_easy_setopt(curl, CURLOPT_PROXY, Proxy.Host.c_str());
++ curl_easy_setopt(curl, CURLOPT_PROXY, UseProxy.c_str());
+ }
+ } /*}}}*/
+ // HttpsMethod::Fetch - Fetch an item /*{{{*/
+
+