[pve-devel] [PATCH frr 01/10] add Makefile

Alexandre Derumier aderumier at odiso.com
Fri Jun 15 03:39:38 CEST 2018


---
 Makefile | 43 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)
 create mode 100644 Makefile

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..ee90945
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,43 @@
+PACKAGE=frr
+VER=5.0
+PKGREL=1.0
+
+SRCDIR=frr
+BUILDDIR=${SRCDIR}.tmp
+
+ARCH:=$(shell dpkg-architecture -qDEB_BUILD_ARCH)
+
+GITVERSION:=$(shell git rev-parse HEAD)
+
+DEB=${PACKAGE}_${VER}-${PKGREL}_${ARCH}.deb
+
+all: ${DEB}
+	@echo ${DEB}
+
+.PHONY: submodule
+submodule:
+	test -f "${SRCDIR}/debianpkg/changelog" || git submodule update --init
+
+.PHONY: deb
+deb: ${DEB}
+${DEB}: | submodule
+	rm -f *.deb
+	rm -rf $(BUILDDIR)
+	cp -rpa ${SRCDIR} ${BUILDDIR}
+	cp -a debian ${BUILDDIR}
+	cd ${BUILDDIR}; dpkg-buildpackage -rfakeroot -b -uc -us
+
+.PHONY: upload
+upload: ${DEB}
+	tar cf - ${DEB}|ssh -X repoman at repo.proxmox.com -- upload --product pmg,pve --dist stretch
+
+.PHONY: distclean
+distclean: clean
+
+.PHONY: clean
+clean:
+	rm -rf *~ debian/*~ *.deb ${BUILDDIR} *.changes *.dsc *.buildinfo
+
+.PHONY: dinstall
+dinstall: deb
+	dpkg -i ${DEB}
-- 
2.11.0




More information about the pve-devel mailing list