-
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 documentation for distro packaging
- Loading branch information
Showing
2 changed files
with
18 additions
and
0 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
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,13 @@ | ||
# Recommendations for distribution packaging | ||
|
||
If you want to package the software for distribution, a few adjustments/patches are recommended: | ||
|
||
- If you install default configuration files, you might want to adjust `[NFTABLES] exe = ...` to the absolute path of your `nft` binary. See [the configuration documentation](CONFIGURATION.md#exe) for more details. | ||
|
||
- You probably want to install the systemd units under `/lib/systemd/system/` or similar, instead of `/etc`. | ||
|
||
- The build environment variable `LETMEIN_CONF_PREFIX` sets the prefix for the configuration files. | ||
In a plain `cargo build` this will default to `/` meaning that `/etc/letmein{,d}.conf` will be the place for the configuration files. | ||
If you use the `build.sh` script, the prefix will be set to `/opt/letmein` instead | ||
|
||
- Adjust the install prefix from `/opt` to something else that makes more sense for your distribution. |