debmaker/ressources/smbnetfs-utils/debmaker
2024-05-15 10:20:52 +02:00

31 lines
724 B
Bash
Executable file

#!/bin/bash
VERSION=0.1
APP=smbnetfs-utils
GIT_VERSION=${VERSION}
DEB_VERSION=$VERSION-$(date +%Y%m%d%H%M)
DEPOT=N/A
DEBIAN_VERSION_CODENAME=bookworm
IMAGE_SIZE=1
PACKAGE_DEPENDENCY=""
main(){
base_package_upgrade
install_package_dependency
makedeb
}
makedeb(){
PATH_DEB=/tmp/src/rootfs/
mkdir -p ${PATH_DEB}/usr/bin/
mkdir -p ${PATH_DEB}/etc/default/
mkdir -p ${PATH_DEB}/usr/lib/systemd/system/
mv /tmp/src/smbnetfs@.service ${PATH_DEB}/usr/lib/systemd/system/
mv /tmp/src/smbnetfs-utils ${PATH_DEB}/usr/bin/
mv /tmp/src/smbnetfs-utils.default ${PATH_DEB}/etc/default/smbnetfs-utils
sed -i "s/%VERSION%/$DEB_VERSION/" ${PATH_DEB}/DEBIAN/control
fakeroot dpkg-deb -Z gzip --build ${PATH_DEB} /tmp/dist
}