1
0
forked from extern/zsync
zsync/build-package

31 lines
809 B
Plaintext
Raw Normal View History

2024-02-09 22:41:53 +01:00
#!/bin/bash
version=$1
package=bashclub-zsync
deb_package=${package}_${version}_all.deb
echo "$(date) creating DEBIBAN/control..."
cat << EOF > $package/DEBIAN/control
Package: $package
Version: $version
Architecture: all
Essential: no
Priority: optional
2024-02-11 23:06:16 +01:00
Depends: bashclub-checkzfs, openssh-server, zfs-auto-snapshot, zfsutils-linux
2024-02-09 22:41:53 +01:00
Maintainer: bashclub
Description: The deb package for $package $version maintained from bashclub.
EOF
2024-02-09 22:49:27 +01:00
echo "$(date) fixing acls"
chmod 755 $package/DEBIAN/p*
# remove bashclub-zsync-config from package
rm $package/usr/bin/bashclub-zsync-config
2024-02-11 23:31:38 +01:00
# add license and changelog
mkdir -p ./$package/usr/share/doc/$package/copyright
cp LICENSE ./$package/usr/share/doc/$package/copyright
cp CHANGELOG.md ./$package/usr/share/doc/$package/
2024-02-09 22:41:53 +01:00
dpkg-deb --build $package $deb_package