-
Notifications
You must be signed in to change notification settings - Fork 38
debian: Cleanup build process using more debhelper features #223
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
denisonbarbosa
merged 28 commits into
canonical:main
from
3v1n0:debian-cleanup+example-broker-bin
Feb 29, 2024
Merged
Changes from all commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
b416aca
pam/generate: Explicitly generate internal proto
3v1n0 46f17ff
pam/generate.sh: Compute project root path correctly
3v1n0 5642bea
pam: Fix generation of module at bootstrap
3v1n0 4a98eca
db_test: Ignore permission test when building the package
3v1n0 f496fa4
internal/daemon: Add generation script for generating grpctestservice
3v1n0 ee563aa
systemd: Fix path of the authd daemon
3v1n0 f65c9b8
debian/control: Do not install dbus if tests are disabled
3v1n0 8b2b502
tools/generate-proto.sh: Ignore calls during package building
3v1n0 b37306a
debian/rules: Use dh-golang features to generate our targets
3v1n0 4a649bf
debian/rules: Install files without repeating their name
3v1n0 d08a628
tools: Add pam moduler to vendor it
3v1n0 429baea
debian/source/options: Exclude rust .a files from source
3v1n0 759452d
debian/control: Do not add an empty paragraph on description
3v1n0 9325b38
pam/generate.sh: Ignore shellcheck warning with reasoning
3v1n0 2a6fe1f
nss: Explicitly set rustix as a dependency using libc
3v1n0 d9361a2
debian/vendor-rust: Use a temporary CARGO_HOME unless specified
3v1n0 11d408a
debian/rules: Rely more on dh-cargo for buildling the NSS library
3v1n0 87066ea
debian/docs: Expose the Cargo.locks file in docs
3v1n0 d8c49d8
debian: Fill the built using information for rust
3v1n0 a240959
debian/control: Depend on pkgconf not on legacy pkg-config
3v1n0 be20979
debian/copyright: Remove superflous patterns
3v1n0 e9abc72
debian/rules: Install systemd units under /usr
3v1n0 b8e04eb
debian: Use install file to install artifacts
3v1n0 7fa5586
debian: Use dh-systemd to install systemd services
3v1n0 9aae433
debian/tests: Use a script to launch autopkgtests
3v1n0 f59f9ea
systemd, debian: Install authd in /usr/libexec
3v1n0 bea5daa
debian/rules: Explicitly set GOTOOLCHAIN=local
3v1n0 87985bd
debian/rules: Do not hardcode the authd daemons path
3v1n0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains hidden or 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
File renamed without changes.
This file contains hidden or 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 hidden or 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 hidden or 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,2 +1,4 @@ | ||
| # Vendored dependency contains an Apache NOTICE | ||
| vendor/gopkg.in/yaml.v3/NOTICE | ||
| # Vendored rust dependencies | ||
| Cargo.lock |
This file contains hidden or 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,14 @@ | ||
| #!/usr/bin/dh-exec | ||
|
|
||
| # Install daemon | ||
| usr/bin/authd ${env:AUTHD_DAEMONS_PATH} | ||
|
|
||
| # pam-auth-update files | ||
| debian/pam-configs/* /usr/share/pam-configs | ||
|
|
||
| # PAM libraries | ||
| ${env:BUILT_PAM_LIBS_PATH}/pam_authd.so ${env:AUTHD_PAM_MODULES_PATH} | ||
| ${env:BUILT_PAM_LIBS_PATH}/go-loader/pam_go_loader.so ${env:AUTHD_PAM_MODULES_PATH} | ||
|
|
||
| # Install NSS library with right soname | ||
| target/${DEB_HOST_RUST_TYPE}/release/libnss_authd.so => /usr/lib/${DEB_TARGET_GNU_TYPE}/libnss_authd.so.2 |
This file contains hidden or 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 @@ | ||
| usr/bin/pam |
This file contains hidden or 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 hidden or 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,8 @@ | ||
| tar-ignore = */.git* | ||
|
denisonbarbosa marked this conversation as resolved.
|
||
| tar-ignore = */.go* | ||
| tar-ignore = */.editor* | ||
| tar-ignore = */.mailmap | ||
| tar-ignore = */.vscode | ||
| tar-ignore = *.so | ||
| tar-ignore = *.o | ||
| tar-ignore = vendor_rust/*.a | ||
This file contains hidden or 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,3 +1,4 @@ | ||
| Test-Command: AUTHD_SKIP_EXTERNAL_DEPENDENT_TESTS=1 go test -v -mod=vendor ./... | ||
| Test-Command: debian/tests/run-tests.sh | ||
| Features: test-name=go_tests | ||
| Restrictions: allow-stderr | ||
| Depends: @builddeps@ |
This file contains hidden or 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,9 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
| set -exuo pipefail | ||
|
|
||
| export AUTHD_SKIP_EXTERNAL_DEPENDENT_TESTS=1 | ||
| export GOPROXY=off | ||
| export GOTOOLCHAIN=local | ||
|
|
||
| go test -v ./... |
This file contains hidden or 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 hidden or 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,6 @@ | ||
| //go:build generate | ||
|
|
||
| //go:generate ../../../../tools/generate-proto.sh --with-grpc grpctestservice.proto | ||
|
|
||
| // Package grpctestservice contains the autogenerated GRPC API. | ||
| package grpctestservice | ||
|
denisonbarbosa marked this conversation as resolved.
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.