Fix YAML linting issues and update system requirements to Debian 13+

- Fix trailing spaces and blank lines in Forgejo workflows
- Update system requirements from Ubuntu Jammy/Bookworm to Debian 13+ (Trixie)
- Update test treefile to use Debian Trixie instead of Ubuntu Jammy
- Update documentation to reflect modern system requirements
- Fix yamllint errors for CI/CD functionality
- Ensure compatibility with modern OSTree and libapt versions
This commit is contained in:
robojerk 2025-08-18 11:39:58 -07:00
parent ec0da91864
commit 3dec23f8f7
85 changed files with 12569 additions and 1088 deletions

37
debian/rules vendored
View file

@ -48,10 +48,19 @@ override_dh_auto_install:
mkdir -p debian/apt-ostree/usr/share/zsh/vendor-completions
mkdir -p debian/apt-ostree/usr/share/apt-ostree
@echo "apt-ostree package directories created successfully"
# Install man page if it exists
# Install man pages if they exist
@if [ -f "debian/apt-ostree.1" ]; then \
install -D -m 644 debian/apt-ostree.1 debian/apt-ostree/usr/share/man/man1/apt-ostree.1; \
fi
@if [ -f "debian/man/apt-ostree.1" ]; then \
install -D -m 644 debian/man/apt-ostree.1 debian/apt-ostree/usr/share/man/man1/apt-ostree.1; \
fi
@if [ -f "debian/man/apt-ostree-dev.1" ]; then \
install -D -m 644 debian/man/apt-ostree-dev.1 debian/apt-ostree/usr/share/man/man1/apt-ostree-dev.1; \
fi
@if [ -f "debian/man/apt-ostree.conf.5" ]; then \
install -D -m 644 debian/man/apt-ostree.conf.5 debian/apt-ostree/usr/share/man/man5/apt-ostree.conf.5; \
fi
# Install bash completion if it exists
@if [ -f "debian/apt-ostree.bash-completion" ]; then \
install -D -m 644 debian/apt-ostree.bash-completion \
@ -63,15 +72,15 @@ override_dh_auto_install:
debian/apt-ostree/usr/share/zsh/vendor-completions/_apt-ostree; \
fi
@echo "Installing apt-ostreed daemon..."
@echo "Installing apt-ostreed daemon into apt-ostree package..."
# Check if binary exists
@if [ ! -f "debian/cargo/target/release/apt-ostreed" ]; then \
echo "Error: apt-ostreed binary not found. Build failed."; \
exit 1; \
fi
# Install the apt-ostreed binary
# Install the apt-ostreed binary into the apt-ostree package
install -D -m 755 debian/cargo/target/release/apt-ostreed \
debian/apt-ostreed/usr/libexec/apt-ostreed
debian/apt-ostree/usr/libexec/apt-ostreed
# Check and install systemd service files
@if [ ! -f "daemon/systemd/apt-ostreed.service" ]; then \
echo "Error: apt-ostreed.service not found."; \
@ -82,9 +91,9 @@ override_dh_auto_install:
exit 1; \
fi
install -D -m 644 daemon/systemd/apt-ostreed.service \
debian/apt-ostreed/lib/systemd/system/apt-ostreed.service
debian/apt-ostree/lib/systemd/system/apt-ostreed.service
install -D -m 644 daemon/systemd/apt-ostreed.socket \
debian/apt-ostreed/lib/systemd/system/apt-ostreed.socket
debian/apt-ostree/lib/systemd/system/apt-ostreed.socket
# Check and install polkit policy
@if [ ! -f "daemon/polkit/apt-ostree.policy" ]; then \
@ -92,24 +101,24 @@ override_dh_auto_install:
exit 1; \
fi
install -D -m 644 daemon/polkit/apt-ostree.policy \
debian/apt-ostreed/usr/share/polkit-1/actions/org.projectatomic.aptostree1.policy
debian/apt-ostree/usr/share/polkit-1/actions/org.projectatomic.aptostree1.policy
# Check and install configuration files
@if [ ! -f "src/daemon/apt-ostreed.conf" ]; then \
echo "Error: apt-ostreed.conf not found."; \
exit 1; \
fi
install -d -m 755 debian/apt-ostreed/etc/apt-ostreed
install -d -m 755 debian/apt-ostree/etc/apt-ostreed
install -D -m 644 src/daemon/apt-ostreed.conf \
debian/apt-ostreed/etc/apt-ostreed/apt-ostreed.conf
debian/apt-ostree/etc/apt-ostreed/apt-ostreed.conf
# Create additional directories
mkdir -p debian/apt-ostreed/usr/share/doc/apt-ostreed
mkdir -p debian/apt-ostree/usr/share/doc/apt-ostree
# Create log directory
mkdir -p debian/apt-ostreed/var/log
mkdir -p debian/apt-ostree/var/log
# Create cache directory
mkdir -p debian/apt-ostreed/var/cache/apt-ostree
mkdir -p debian/apt-ostree/var/cache/apt-ostree
# Create state directory
mkdir -p debian/apt-ostreed/var/lib/apt-ostree
@echo "apt-ostreed package directories created successfully"
mkdir -p debian/apt-ostree/var/lib/apt-ostree
@echo "apt-ostreed components installed into apt-ostree package successfully"
# Skip dh_auto_install since we've handled installation manually
@echo "Package installation completed successfully!"