From 77c72b31ed26f22171130243077f8519f83b50c4 Mon Sep 17 00:00:00 2001 From: Stefano Brivio Date: Fri, 20 Aug 2021 01:11:57 +0200 Subject: Makefile: Quick hack to build convenience Debian and RPM packages Signed-off-by: Stefano Brivio --- Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5ab0ac6..4f45455 100644 --- a/Makefile +++ b/Makefile @@ -30,7 +30,8 @@ qrap: qrap.c passt.h .PHONY: clean clean: - -${RM} passt *.o qrap pasta pasta.1 passt4netns + -${RM} passt *.o qrap pasta pasta.1 passt4netns \ + passt.tar passt.tar.gz *.deb *.rpm install: passt pasta qrap cp -d passt pasta qrap $(prefix)/bin @@ -43,3 +44,16 @@ uninstall: -${RM} $(prefix)/man/man1/passt.1 -${RM} $(prefix)/man/man1/pasta.1 -${RM} $(prefix)/man/man1/qrap.1 + +pkgs: + tar cf passt.tar -P --xform 's//\/usr\/bin\//' passt pasta qrap + tar rf passt.tar -P --xform 's//\/usr\/share\/man\/man1\//' \ + passt.1 pasta.1 qrap.1 + gzip passt.tar + EMAIL="sbrivio@redhat.com" fakeroot alien --to-deb \ + --description="User-mode networking for VMs and namespaces" \ + -k --version=$(shell git rev-parse --short HEAD) \ + passt.tar.gz + fakeroot alien --to-rpm --target=$(shell uname -m) \ + --description="User-mode networking for VMs and namespaces" \ + -k --version=g$(shell git rev-parse --short HEAD) passt.tar.gz -- cgit v1.2.3