Initial commit: Complete bootc packaging with CI/CD automation
Some checks failed
Build Packages / Build libostree Backport (push) Failing after 0s
Build Packages / Build bootc Package (push) Has been skipped
Test Build / Test bootc Build (with existing libostree) (push) Failing after 0s
Build Packages / Create Release (push) Has been skipped
Build Packages / Create Artifacts for README Update (push) Has been skipped
Some checks failed
Build Packages / Build libostree Backport (push) Failing after 0s
Build Packages / Build bootc Package (push) Has been skipped
Test Build / Test bootc Build (with existing libostree) (push) Failing after 0s
Build Packages / Create Release (push) Has been skipped
Build Packages / Create Artifacts for README Update (push) Has been skipped
This commit is contained in:
commit
695714a60e
15 changed files with 1545 additions and 0 deletions
35
debian/rules
vendored
Executable file
35
debian/rules
vendored
Executable file
|
|
@ -0,0 +1,35 @@
|
|||
#!/usr/bin/make -f
|
||||
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE = 1
|
||||
|
||||
# This has to be exported to make some magic below work.
|
||||
export DH_OPTIONS
|
||||
|
||||
# Build system
|
||||
export CARGO_HOME = $(CURDIR)/debian/cargo
|
||||
export CARGO_TARGET_DIR = $(CURDIR)/debian/cargo/target
|
||||
|
||||
# Apply our compatibility patch
|
||||
override_dh_auto_patch:
|
||||
# Apply the libostree compatibility patch
|
||||
patch -p1 < ../bootc-libostree-compatibility.patch
|
||||
dh_auto_patch
|
||||
|
||||
override_dh_auto_build:
|
||||
# Build bootc with cargo
|
||||
cargo build --release
|
||||
dh_auto_build
|
||||
|
||||
override_dh_auto_install:
|
||||
# Install the bootc binary
|
||||
install -D -m 755 target/release/bootc debian/bootc/usr/bin/bootc
|
||||
dh_auto_install
|
||||
|
||||
override_dh_auto_clean:
|
||||
# Clean cargo build artifacts
|
||||
rm -rf debian/cargo
|
||||
dh_auto_clean
|
||||
|
||||
%:
|
||||
dh $@
|
||||
Loading…
Add table
Add a link
Reference in a new issue