packaging worked finally

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2024-10-10 16:35:49 -05:00
parent 6399ec3c0d
commit 0b9b274d45
1 changed files with 4 additions and 4 deletions

View File

@ -27,15 +27,15 @@ make-Certificate-Authority-Certificate-file:
--outfile certificate_authority_certificate.pem
create:
mkdir -p debian/files/etc/pki/CA/
mkdir -p debian/DEBIAN
cp control debian/DEBIAN/
echo "Version: 0."$(STAMP) >> debian/DEBIAN/control
echo "2.0" > debian/debian-binary
cp certificate_authority_key.pem debian/files/etc/pki/CA/cacert.pem
cp farm/*server_key.pem debian/files/etc/pki/CA/
mkdir -p debian/files/etc/pki/CA/
cp *.pem debian/files/etc/pki/CA/
cp farm/*.pem debian/files/etc/pki/CA/
chmod 444 debian/files/etc/pki/CA/*.pem
cd debian/files/ && md5sum etc/pki/CA/cacert.pem > ../DEBIAN/md5sum
cd debian/files/ && md5sum etc/pki/CA/*.pem > ../DEBIAN/md5sum
cd debian/DEBIAN && tar --ignore-failed-read -cvJf ../control.tar.xz {post,pre}{inst,rm} md5sums control
cd debian/files && tar -cvJf ../data.tar.xz .
cd debian && ar rcs ../wit-libvirt-tls-cert.$(STAMP).deb debian-binary control.tar.xz data.tar.xz