Skip to content

Commit

Permalink
updated build instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
jibel committed Jul 4, 2024
1 parent 70b5893 commit 0b2d5d0
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand All @@ -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:
Expand Down

0 comments on commit 0b2d5d0

Please sign in to comment.