From 3ab4e466e1e5f80bfa0e6e1eef8fb7e7c8ad40e9 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Fri, 1 Mar 2024 19:43:01 -0600 Subject: .deb file format for non-debian systems Signed-off-by: Jeff Carr --- deb.extraction-tests/Makefile | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 deb.extraction-tests/Makefile (limited to 'deb.extraction-tests/Makefile') diff --git a/deb.extraction-tests/Makefile b/deb.extraction-tests/Makefile new file mode 100644 index 0000000..98e38bd --- /dev/null +++ b/deb.extraction-tests/Makefile @@ -0,0 +1,29 @@ +all: + make clean + make extract + make create + +clean: + rm -rf stuff/ blah/ jcarr-new.deb + +extract: + mkdir stuff/ blah/ + cd stuff && ar x ../jcarr.deb + cd stuff && tar xvf control.tar.xz + dpkg-deb --raw-extract jcarr.deb blah/ + cp control blah/DEBIAN/ + cp stuff/debian-binary blah/ + mkdir blah/files + mv blah/etc blah/files/ + mv blah/usr blah/files/ + +create: + cd blah/DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control + cd blah/files && tar -cvJf ../data.tar.xz . + cd blah && ar rcs ../jcarr-new.deb debian-binary control.tar.xz data.tar.xz + +info: + dpkg-deb --info jcarr-new.deb + +install: + dpkg --install jcarr-new.deb -- cgit v1.2.3