-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add conf-files statement to Cargo.toml to preserve configuration on u…
…pgrades for deb package; switch to SPDX license definition; add RPM build; add build.sh for local containerized builds; add support for glibc 2.17; add support for Ubuntu/RHEL update README; bump version to 1.1.0
- Loading branch information
Showing
7 changed files
with
153 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
cd /libnss_shim | ||
|
||
echo "BUILD: Setting version to $LIBNSS_SHIM_VERSION" | ||
sed -i "s/0.0.0/$LIBNSS_SHIM_VERSION/g" Cargo.toml | ||
|
||
echo "BUILD: Installing Rust" | ||
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | ||
. "$HOME/.cargo/env" | ||
|
||
echo "BUILD: Building for release" | ||
cargo build --release --verbose | ||
echo "BUILD: built for release" | ||
ls -lah target/release | ||
|
||
echo "BUILD: Packaging deb" | ||
cargo install --version 1.44.1 cargo-deb | ||
cargo deb --verbose | ||
echo "BUILD: deb packaged" | ||
ls -lah target/debian | ||
|
||
echo "BUILD: Packaging RPM" | ||
cargo install --version 0.14.0 cargo-generate-rpm | ||
strip -s target/release/libnss_shim.so | ||
cargo generate-rpm --payload-compress none | ||
echo "BUILD: RPM packaged" | ||
ls -lah target/generate-rpm |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,15 @@ | ||
|
||
- Support EL distros with RPM package | ||
- Define `conf-files` for deb package to preserve `config.json` on upgrades | ||
- Switch build container to `quay.io/pypa/manylinux2014_x86_64` to support `glibc` version `2.17` | ||
- Test `glibc 2.17` RPM build on CentOS 7, AlmaLinux 8, and AlmaLinux 9 | ||
- Test `glibc 2.17` deb build on Debian 10, 11, and 12 | ||
- Test `glibc 2.17` deb build on Ubuntu 20.04, 22.04, and 24.04 | ||
- Define `conf-files` for deb package to preserve `config.json` on deb package upgrades | ||
- Bump `libc` to `0.2.155` | ||
- Bump `paste` to `1.0.15` | ||
- Bump `serde` to `1.0.203` | ||
- Bump `serde_json` to `1.0.117` | ||
- Add local build script `build.sh` | ||
- Add local build instructions to README.md | ||
- Use SPDX format for license | ||
- Update copyright year |