X-Git-Url: https://git.proxmox.com/?p=iproute2.git;a=blobdiff_plain;f=Makefile;h=041c16ae22071f0753b78f26eabfe345c7ad5ac3;hp=b78335504e3e540fdf8e75216b5c17f82087e906;hb=10cd6a0499e51aae295cf1d642aa6b8942e3d772;hpb=3cf71090bc29d2678caab0c7486241ce62cbee62 diff --git a/Makefile b/Makefile index b783355..041c16a 100644 --- a/Makefile +++ b/Makefile @@ -1,43 +1,40 @@ -RELEASE=4.2.0 +PACKAGE=iproute2 +VER=4.15.0 +PKGREL=5 -VERSION=4.2.0 -IPRELEASE=1 -DIR=iproute2-${VERSION} -SRC=iproute2-${VERSION}.orig.tar.gz +SRCDIR=iproute2 +BUILDDIR=${SRCDIR}.tmp +ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH) -DEBS= \ - iproute2_${VERSION}-${IPRELEASE}.deb \ +DEBS= \ + iproute2-doc_${VERSION}-${PKGREL}_all.deb \ + iproute2-dbgsym_${VERSION}-${PKGREL}_all.deb \ + iproute2_${VERSION}-${PKGREL}_${ARCH}.deb all: ${DEBS} echo ${DEBS} -${DEBS}: ${SRC} - rm -rf ${DIR} - tar xf ${SRC} - cp -a debian ${DIR}/debian - cd ${DIR}; dpkg-buildpackage -rfakeroot -b -us -uc +.PHONY: submodule +submodule: + test -f "${SRCDIR}/README" || git submodule update --init - -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}/ +.PHONY: deb +${DEBS} deb: | submodule + rm -rf $(BUILDDIR) + cp -a $(SRCDIR) $(BUILDDIR) + cp -a debian $(BUILDDIR)/debian + cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us .PHONY: upload upload: ${DEBS} - mkdir -p /pve/${RELEASE}/extra - rm -f /pve/${RELEASE}/extra/libqb*.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 - -.PHONY: clean + tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH} + +.PHONY: clean distclean +distclean: clean clean: - rm -rf *~ debian/*~ *.changes *.dsc ${DIR} iproute2_${VERSION}.orig.tar.gz *.deb + rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo .PHONY: dinstall -dinstall: ${DEBS} - dpkg -i ${DEBS} +dinstall: deb + dpkg -i ${DEB}