Libassuan is a small library implementing the so-called Assuan protocol. This protocol is used for IPC between most newer GnuPG components. Both, server and client side functions are provided. See documentation
- The Core Planners: chef-core-planners@chef.io
Library package
Library packages can be set as runtime or build time dependencies, however they are typically used as buildtime dependencies. See Defining your dependencies for more information.
To add core/libassuan as a dependency, you can add one of the following to your plan file.
pkg_build_deps=(core/libassuan)
pkg_deps=(core/libassuan)
To install this plan, run the following command:
hab pkg install core/libassuan
hab pkg install core/libassuan
» Installing core/libassuan
☁ Determining latest version of core/libassuan in the 'stable' channel
→ Found newer installed version (core/libassuan/2.4.2/20200922145803) than remote version (core/libassuan/2.4.2/20200416080433)
→ Using core/libassuan/2.4.2/20200922145803
★ Install of core/libassuan/2.4.2/20200922145803 complete with 0 new packages installed.
To view the library files first get the habitat installation directory
hab pkg path core/libassuan
/hab/pkgs/core/libassuan/2.4.2/20200922145803
Then list the libraries, for example:
ls -1 $(hab pkg path core/libassuan)/lib
libassuan.a
libassuan.la
libassuan.so
libassuan.so.0
libassuan.so.0.7.2
Although libassuan is primarily a library as described above, it also includes a binary as described below
To install this plan, you should run the following commands to first install, and then link the binaries this plan creates.
hab pkg install core/libassuan --binlink
will add the following binary to the PATH:
- /bin/libassuan-config
For example:
$ hab pkg install core/libassuan --binlink
» Installing core/libassuan
☁ Determining latest version of core/libassuan in the 'stable' channel
→ Found newer installed version (core/libassuan/2.4.2/20200922145803) than remote version (core/libassuan/2.4.2/20200416080433)
→ Using core/libassuan/2.4.2/20200922145803
★ Install of core/libassuan/2.4.2/20200922145803 complete with 0 new packages installed.
» Binlinking libassuan-config from core/libassuan/2.4.2/20200922145803 into /bin
★ Binlinked libassuan-config from core/libassuan/2.4.2/20200922145803 to /bin/libassuan-config
You can now use the binary as normal. For example:
/bin/libassuan-config --help
or libassuan-config --help
$ libassuan-config --help
Usage: libassuan-config [OPTIONS]
Options:
[--prefix[=DIR]]
[--exec-prefix[=DIR]]
[--version]
[--libs]
[--cflags]
[--host].