.deb file format for non-debian systems

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-03-01 19:43:01 -06:00
parent 8d25d3996e
commit 3ab4e466e1
4 changed files with 40 additions and 2 deletions

View File

@ -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

View File

@ -0,0 +1,11 @@
Package: jcarr
Source: jcarr
Version: 0.1
Architecture: amd64
Maintainer: Jeff Carr <jcarr@wit.com>
Installed-Size: 5883
Homepage: https://www.wit.com/
Description: jeff's test package
this is a test golang package to make .deb and .rpm packages
.
It doesn't do anything yet

Binary file not shown.

View File

@ -1,2 +0,0 @@
94c9b46e3e74ea492b1cc14db60aa4b2 ./usr/bin/go-deb
070e03c58907970c10e3fa1f9a174877 ./usr/lib/go-deb/README.md