]> git.proxmox.com Git - iproute2.git/blobdiff - Makefile
add .gitignore
[iproute2.git] / Makefile
index c448b6dfe6328defa74ec79217f572b0f49f7c6c..d8917b361463b5b01c69d88e5be48a356d3c0078 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,8 @@
-RELEASE=4.0
-
-VERSION=4.2.0
+VERSION=4.13.0
 PKGREL=1
 
 DIR=iproute2-${VERSION}
-SRC=iproute2-${VERSION}.orig.tar.gz
+SRC=iproute2-${VERSION}.orig.tar.xz
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
@@ -15,7 +13,8 @@ DEBS=                                                 \
 all: ${DEBS}
        echo ${DEBS}
 
-${DEBS}: ${SRC}
+.PHONY: deb
+${DEBS} deb: ${SRC}
        rm -rf ${DIR}
        tar xf ${SRC} 
        cp -a debian ${DIR}/debian
@@ -23,25 +22,17 @@ ${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;
-       tar czf iproute2-${VERSION}.orig.tar.gz iproute2-${VERSION}/
+       rm -rf iproute2-${VERSION} $(SRC)
+       git clone -b v${VERSION} --depth=1 git://git.kernel.org/pub/scm/linux/kernel/git/shemminger/iproute2.git iproute2-${VERSION}
+       tar cJf $(SRC) 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:
-       rm -rf *~ debian/*~ *.changes *.dsc ${DIR} iproute2_${VERSION}.orig.tar.gz *.deb
+       rm -rf *~ debian/*~ *.changes *.dsc ${DIR} *.deb *.buildinfo
 
 .PHONY: dinstall
 dinstall: ${DEBS}