.deb file format for non-debian systems
Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
parent
8d25d3996e
commit
3ab4e466e1
|
@ -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
|
|
@ -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.
Loading…
Reference in New Issue