Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on Sep 17, 2024. It is now read-only.

crystal-linux/pkg-warner

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

THIS PROJECT HAS BEEN MIGRATED TO GITLAB

Please make any PRs here, rather than to the GitHub: https://git.getcryst.al/crystal

REPOSITORIES HERE ARE OUTDATED, GO TO THE LINK BELOW

Logo

Package Warner

License GitHub isses GitHub pull requests
Discord The maintainer of this repository
Mastodon Follow Twitter Follow

pkg-warner is a simple and configurable package warner tool for distribution packagers.

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

How to build:

Tested on latest Cargo (1.60.0-nightly)

Debug/development builds

  • cargo build

Optimised/release builds

  • cargo build --release

About

Crystal Linux is now hosted at https://gitlab.com/crystal-linux

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.