]> git.proxmox.com Git - iproute2.git/blobdiff - Makefile
bump version to 4.4-2, set RELEASE=4.2
[iproute2.git] / Makefile
index b78335504e3e540fdf8e75216b5c17f82087e906..90a1d650ccb74b0ede0e6b6750ed359bc727aebb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,18 +1,22 @@
-RELEASE=4.2.0
+RELEASE=4.2
+
+VERSION=4.4.0
+PKGREL=2
 
-VERSION=4.2.0
-IPRELEASE=1
 DIR=iproute2-${VERSION}
 SRC=iproute2-${VERSION}.orig.tar.gz
 
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-DEBS=                                                          \
-       iproute2_${VERSION}-${IPRELEASE}.deb                    \
+DEBS=                                                  \
+       iproute2-doc_${VERSION}-${PKGREL}_all.deb       \
+       iproute2_${VERSION}-${PKGREL}_${ARCH}.deb
 
 all: ${DEBS}
        echo ${DEBS}
 
-${DEBS}: ${SRC}
+.PHONY: deb
+${DEBS} deb: ${SRC}
        rm -rf ${DIR}
        tar xf ${SRC} 
        cp -a debian ${DIR}/debian
@@ -21,14 +25,15 @@ ${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/libqb*.deb
+       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