]> git.proxmox.com Git - iproute2.git/commitdiff
update to submodule
authorAlexandre Derumier <aderumier@odiso.com>
Tue, 19 Jun 2018 08:19:12 +0000 (10:19 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 19 Jun 2018 08:56:08 +0000 (10:56 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
.gitmodules [new file with mode: 0644]
Makefile
debian/changelog
debian/iproute2-doc.docs
iproute2 [new submodule]
iproute2-4.13.0.orig.tar.xz [deleted file]

diff --git a/.gitmodules b/.gitmodules
new file mode 100644 (file)
index 0000000..a82e68b
--- /dev/null
@@ -0,0 +1,3 @@
+[submodule "iproute2"]
+       path = iproute2
+       url = ../mirror_iproute2
index e043d81408e21989eecc3fbcf0348db31851d380..82e80fab6910d6682b955a14bb244312608c6fcb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
-VERSION=4.15.0
-PKGREL=4
+PACKAGE=iproute2
+VER=4.15.0
+PKGREL=5
 
-DIR=iproute2-${VERSION}
-SRC=iproute2-${VERSION}.orig.tar.xz
+SRCDIR=iproute2
+BUILDDIR=${SRCDIR}.tmp
 
 ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
@@ -13,27 +14,30 @@ DEBS=                                                       \
 all: ${DEBS}
        echo ${DEBS}
 
-.PHONY: deb
-${DEBS} deb: ${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} $(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: deb
+${DEBS} deb: | submodule
+       rm -f *.deb
+       rm -rf $(BUILDDIR)
+       mkdir $(BUILDDIR)
+       cp -a $(SRCDIR)/* $(BUILDDIR)/
+       cp -R debian $(BUILDDIR)/
+       cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
 
 .PHONY: upload
 upload: ${DEBS}
        tar cf - ${DEBS} | ssh repoman@repo.proxmox.com -- upload --product pve --dist stretch --arch ${ARCH}
 
+.PHONY: distclean
+distclean: clean
+
 .PHONY: clean
 clean:
-       rm -rf *~ debian/*~ *.changes *.dsc ${DIR} *.deb *.buildinfo
+       rm -rf ${BUILDDIR} *.deb *.changes *.dsc *.buildinfo
 
 .PHONY: dinstall
-dinstall: ${DEBS}
-       dpkg -i ${DEBS}
+dinstall: deb
+       dpkg -i ${DEB}
index 3ad30e723b9a88979ee277f15dab7d311d58e939..fe815b1d5280b06ea0b290be657529ed3cab84ad 100644 (file)
@@ -1,3 +1,9 @@
+iproute2 (4.15.0-5) unstable; urgency=medium
+
+  * use git submodule
+
+ -- Proxmox Support Team <support@proxmox.com>  Sun, 18 Jun 2018 09:00:00 +0200
+
 iproute2 (4.15.0-4) UNRELEASED; urgency=medium
 
   * Fix ss with the no-header flag, upstream bug: #895719
index a3bb3538a7dbfdd27dc5fe4c11f456ec3b4a34bd..303671e39be3ded650538b679c66b0250e55b560 100644 (file)
@@ -1,4 +1,2 @@
-README* doc/Plan
-debian/htb/*
-doc/*.tex doc/*.dvi doc/*.ps doc/*.sty
-doc/*.txt doc/*.html
+README*
+doc/*
diff --git a/iproute2 b/iproute2
new file mode 160000 (submodule)
index 0000000..50b8a84
--- /dev/null
+++ b/iproute2
@@ -0,0 +1 @@
+Subproject commit 50b8a842e8c098cddb213f5b3076526df88826e8
diff --git a/iproute2-4.13.0.orig.tar.xz b/iproute2-4.13.0.orig.tar.xz
deleted file mode 100644 (file)
index 52781af..0000000
Binary files a/iproute2-4.13.0.orig.tar.xz and /dev/null differ