Added meson.build for installation of zlevis-scripts.
This commit is contained in:
parent
f11bd91d75
commit
c78bf3a206
3 changed files with 37 additions and 0 deletions
20
README.md
20
README.md
|
@ -1,3 +1,23 @@
|
|||
# Zlevis
|
||||
|
||||
A minimal fork of [Clevis](https://github.com/latchset/clevis), rewritten in POSIX shell to accommodate automatic decryption of a ZFS root pool with TPM2.
|
||||
|
||||
## Installation
|
||||
|
||||
### Alpine Linux
|
||||
|
||||
Work in progress.
|
||||
|
||||
### Manual
|
||||
|
||||
Zlevis can be manually installed with `meson`, after cloning the repository, setup the build directory
|
||||
|
||||
```
|
||||
$ meson setup builddir
|
||||
```
|
||||
|
||||
Installation of the zlevis scripts is now performed with
|
||||
|
||||
```
|
||||
# meson install -C builddir
|
||||
```
|
||||
|
|
14
meson.build
Normal file
14
meson.build
Normal file
|
@ -0,0 +1,14 @@
|
|||
# Project definition
|
||||
project('zlevis', license: 'GPL3', version: '1')
|
||||
|
||||
# Define bindir
|
||||
bindir=join_paths(get_option('prefix'), get_option('bindir'))
|
||||
|
||||
# Define bins list
|
||||
bins=[]
|
||||
|
||||
# Define subdir with bins
|
||||
subdir('src')
|
||||
|
||||
# Install bins in bindir
|
||||
install_data(bins, install_dir: bindir)
|
3
src/meson.build
Normal file
3
src/meson.build
Normal file
|
@ -0,0 +1,3 @@
|
|||
bins += join_paths(meson.current_source_dir(), 'zlevis-encrypt')
|
||||
bins += join_paths(meson.current_source_dir(), 'zlevis-decrypt')
|
||||
bins += join_paths(meson.current_source_dir(), 'zlevis-fetch')
|
Loading…
Reference in a new issue