From 0b2d5d0863ed79fde72e9121c162c9ca33121fe2 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lallement Date: Thu, 4 Jul 2024 14:19:26 +0200 Subject: [PATCH] updated build instructions --- CONTRIBUTING.md | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index da6458db0..384f306b3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -82,6 +82,7 @@ This project has several build dependencies. You can install these dependencies ```shell sudo apt update sudo apt build-dep . +sudo apt install devscripts ``` ### Building and running the binaries @@ -106,13 +107,12 @@ Building the Debian package from source is the most straightforward and standard > ```shell > sudo apt install libssl-dev > cargo install cargo-vendor-filterer -> cargo vendor-filterer vendor_rust > ``` Then build the Debian package: ```shell -dpkg-buildpackage +debuild --prepend-path=${HOME}/.cargo/bin ``` The debian packages are available in the parent directory. @@ -132,9 +132,11 @@ The built binary will be in the current directory. The daemon can be run directl To build the PAM module, from the top of the source tree run the following commands: > [!NOTE] -> This dependency is required to regenerate the proto files and is only needed once. +> This command installs the tooling to hook up the Go GRPC modules to protoc. > ```shell -> sudo apt install protoc-gen-go +> cd tools/ +> grep -o '_ ".*"' *.go | cut -d '"' -f 2 | xargs go install +> cd .. > ``` Then build the PAM module: