deb-bootupd/debian/rules
robojerk 73b43239e9
Some checks failed
Build deb-bootupd Artifacts / build (push) Failing after 6m14s
Simple Build and Upload / build (push) Failing after 2m0s
Add Debian packaging and update Forgejo workflow
- Add complete Debian packaging configuration (debian/ directory)
- Create build-deb.sh script for building packages
- Update Forgejo workflow to build and upload .deb artifacts
- Add comprehensive version naming for both binary and Debian artifacts
- Update .gitignore to exclude build artifacts and packaging files
- Add PACKAGING.md documentation
- Add test-deb.sh for testing package installation
2025-08-10 11:30:19 -07:00

26 lines
763 B
Makefile
Executable file

#!/usr/bin/make -f
%:
dh $@
# Enable systemd integration
override_dh_auto_configure:
dh_auto_configure
override_dh_auto_build:
cargo build --release
override_dh_auto_install:
mkdir -p debian/deb-bootupd/usr/libexec
install -D -m 755 target/release/bootupd debian/deb-bootupd/usr/libexec/
# Create symlink for multicall binary (following RPM pattern)
ln -sf ../libexec/bootupd debian/deb-bootupd/usr/bin/bootupctl
# Install documentation
install -D -m 644 README.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
install -D -m 644 deb-bootupd.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
install -D -m 644 VERSION.md debian/deb-bootupd/usr/share/doc/deb-bootupd/
# Clean up build artifacts
override_dh_auto_clean:
dh_auto_clean
rm -rf target/