Added meson.build for installation of zlevis-scripts.

This commit is contained in:
Luc Bijl 2024-11-22 22:00:38 +01:00
parent f11bd91d75
commit c78bf3a206
3 changed files with 37 additions and 0 deletions

View file

@ -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
View 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
View 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')