From 2860520271aa5bf05f215fdf325d552bd4d82b6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=BD=D0=B0=D0=B1?= Date: Sun, 18 Oct 2020 03:42:29 +0200 Subject: [PATCH] Deploy manpages --- .build.yml | 14 ++++++++++++++ README.md | 15 ++++++++------- 2 files changed, 22 insertions(+), 7 deletions(-) diff --git a/.build.yml b/.build.yml index 46e4513..30327a3 100644 --- a/.build.yml +++ b/.build.yml @@ -1,4 +1,6 @@ image: debian/sid +secrets: + - ccb6777e-650b-4fa2-87e1-e2342f5bb605 # tzpfms SSH key packages: - clang - pkg-config @@ -18,3 +20,15 @@ tasks: cd tzpfms CC=clang CXX=clang++ make find out/ -maxdepth 1 -type f -exec readelf -d {} + + - manpages: | + git -C tzpfms/ worktree add ../tzpfms-man man + cd tzpfms-man + git ls-tree -z --name-only HEAD | xargs -0 rm -r + mv ../tzpfms/out/man/* . + git add . + git config user.email "nabijaczleweli/autouploader@nabijaczleweli.xyz" + git config user.name "наб autouploader" + git commit -m "Manpage update by job $JOB_ID" || exit 0 + git remote set-url origin 'git@git.sr.ht:~nabijaczleweli/tzpfms' + ssh-keyscan git.sr.ht > ~/.ssh/known_hosts + git push diff --git a/README.md b/README.md index fdc2f9c..83beb55 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # tzpfms [![builds.sr.ht badge](//builds.sr.ht/~nabijaczleweli/tzpfms.svg)](https://builds.sr.ht/~nabijaczleweli/tzpfms) [![Licence](//img.shields.io/badge/license-MIT-blue.svg?style=flat)](LICENSE) TPM-based encryption keys for ZFS datasets. -## [Manpage](//git.sr.ht/~nabijaczleweli/tzpfms-man#NAME) +## [Manpages](//git.sr.ht/~nabijaczleweli/tzpfms/tree/man) ### Why? @@ -14,12 +14,13 @@ Plus it's a pretty good annoyed sigh onomatopoeia. ### Building -You'll need `pkg-config`, `libzfslinux-dev`, `libtss2-dev`, and `make` should hopefully Just Work™ if you have a C++17-capable compiler. -The output binaries are trimmed of extraneous dependencies, so they're all just libc + libzfs and friends + TPM back-end, if any. +You'll need `pkg-config`, `libzfslinux-dev`, `libtss2-dev`, and `make` should hopefully Just Work™ if you have a C++17-capable compiler. +The output binaries are trimmed of extraneous dependencies, so they're all just libc + libzfs and friends + TPM back-end. ### Installation -Copy `out/tzpfms` to `/sbin` and write a `/etc/tzpfms/{description,cmdline}`, as seen in the [manpage](//git.sr.ht/~nabijaczleweli/tzpfms/tree/trunk/man/tzpfms.md), +Copy the `out/zfs-tpm*` binaries corresponding to the back-ends you want to `/sbin`, +continue as the [manpage](//git.sr.ht/~nabijaczleweli/tzpfms/tree/trunk/man/zfs-tpm2-change-key.md) instructs, +There's [the tracker](//todo.sr.ht/~nabijaczleweli/tzpfms), but also see the list below. ## Contributing - +directly. I'm not picky, just please include the repo name in the subject prefix. ## Discussion