]> git.proxmox.com Git - iproute2.git/blobdiff - Makefile
buildsys: update make upload target for stretch
[iproute2.git] / Makefile
index f8c916eac7959949d1fa86c5d054b2daae1ce794..ed78c6c230c24cfccaec0a5912ace0d8d2d31f61 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
-RELEASE=4.1
+RELEASE=5.0
 
-VERSION=4.4.0
+VERSION=4.10.0
 PKGREL=1
 
 DIR=iproute2-${VERSION}
@@ -15,7 +15,8 @@ DEBS=                                                 \
 all: ${DEBS}
        echo ${DEBS}
 
-${DEBS}: ${SRC}
+.PHONY: deb
+${DEBS} deb: ${SRC}
        rm -rf ${DIR}
        tar xf ${SRC} 
        cp -a debian ${DIR}/debian
@@ -24,20 +25,12 @@ ${DEBS}: ${SRC}
 
 download:
        rm -rf iproute2-${VERSION} iproute2-${VERSION}.orig.tar.gz
-       git clone git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
-       cd iproute2-${VERSION}; git checkout v4.2.0;
+       git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
        tar czf iproute2-${VERSION}.orig.tar.gz iproute2-${VERSION}/
 
 .PHONY: upload
 upload: ${DEBS}
-       umount /pve/${RELEASE}; mount /pve/${RELEASE} -o rw
-       mkdir -p /pve/${RELEASE}/extra
-       rm -f /pve/${RELEASE}/extra/iproute2_*.deb
-       rm -f /pve/${RELEASE}/extra/iproute2-doc_*.deb
-       rm -f /pve/${RELEASE}/extra/Packages*
-       cp ${DEBS} /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
+       tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
 
 .PHONY: clean
 clean: