mirror of
http://gitlab.bashclub.org/bashclub/zsync.git
synced 2024-11-21 19:03:06 +01:00
26 lines
621 B
Bash
26 lines
621 B
Bash
#!/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
|
|
Depends: bashclub-checkzfs, openssh-server, zfs-auto-snapshot, zfsutils-linux
|
|
Maintainer: bashclub
|
|
Description: The deb package for $package $version maintained from bashclub.
|
|
EOF
|
|
|
|
echo "$(date) fixing acls"
|
|
chmod 755 $package/DEBIAN/p*
|
|
|
|
# remove bashclub-zsync-config from package
|
|
rm $package/usr/bin/bashclub-zsync-config
|
|
|
|
dpkg-deb --build $package $deb_package
|