aboutgitcodebugslistschat
diff options
context:
space:
mode:
authorStefano Brivio <sbrivio@redhat.com>2021-08-20 01:11:57 +0200
committerStefano Brivio <sbrivio@redhat.com>2021-09-01 17:00:27 +0200
commit77c72b31ed26f22171130243077f8519f83b50c4 (patch)
treebe3ca6b650530076837141fbdf79cd8923c91e71
parentb9c6fca46907b9face617b2d916a41042cb3fd7b (diff)
downloadpasst-77c72b31ed26f22171130243077f8519f83b50c4.tar
passt-77c72b31ed26f22171130243077f8519f83b50c4.tar.gz
passt-77c72b31ed26f22171130243077f8519f83b50c4.tar.bz2
passt-77c72b31ed26f22171130243077f8519f83b50c4.tar.lz
passt-77c72b31ed26f22171130243077f8519f83b50c4.tar.xz
passt-77c72b31ed26f22171130243077f8519f83b50c4.tar.zst
passt-77c72b31ed26f22171130243077f8519f83b50c4.zip
Makefile: Quick hack to build convenience Debian and RPM packages
Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
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