<ahref="https://github.com/not-my-segfault"><imgsrc="https://img.shields.io/badge/Maintainer-@not%2D-my%2D-segfault-brightgreen"alt="The maintainer of this repository"href="https://github.com/not-my-segfault"></a><br>
<palign="center"><code>pkg-warner</code> is a simple and configurable package warner tool for distribution packagers.</p>
## Configuration
`pkg-warner` is configured at build time using three environment variables:
-`PKG_WARNER_PACKAGES`: a comma-separated list of **incorrect** package managers to warn about.
-`PKG_WARNER_DISTRO`: the distribution name to use in the warning.
-`PKG_WARNER_PMAN`: the **correct** package manager name to use in the warning.
Then, in the packaging process you can run `pkg-warner -id "${dest_dir}"` to copy itself to `${dest_dir}/<each value in PKG_WARNER_PACKAGES>` under the destination directory. (e.g., `./pkg/usr/bin/apt`)
If no `-d/--dest-dir` id provided, it'll install to `/usr/bin` by default.
If you want an example of how to adapt this to your own distribution/packaging process, see the provided [PKGBUILD](PKGBUILD)