File tree Expand file tree Collapse file tree 3 files changed +26
-6
lines changed
Expand file tree Collapse file tree 3 files changed +26
-6
lines changed Original file line number Diff line number Diff line change 1+ FEDORA_RELEASE = $(shell cut -d' ' -f 3 /etc/fedora-release)
2+
3+ .PHONY : srpm
4+ srpm :
5+ dnf -y install jq cargo fedpkg
6+ # Pass this on to the "real" makefile
7+ make FEDORA_RELEASE=$(FEDORA_RELEASE ) srpm
8+ mkdir -p results
9+ mv totpm-* .src.rpm $(outdir ) /
Original file line number Diff line number Diff line change @@ -27,6 +27,10 @@ fedora-package: totpm-$(VERSION)-1.fc$(FEDORA_RELEASE).$(ARCH).rpm
2727.PHONY : srpm
2828srpm : totpm-$(VERSION ) -1.fc$(FEDORA_RELEASE ) .src.rpm
2929
30+ .PHONY : version
31+ version :
32+ echo $(VERSION )
33+
3034.PHONY : test
3135test :
3236 cargo test --features=dbus-tests,install
Original file line number Diff line number Diff line change 1+ [ ![ Copr build status] ( https://copr.fedorainfracloud.org/coprs/koditoriet/totpm/package/totpm/status_image/last_build.png )] ( https://copr.fedorainfracloud.org/coprs/koditoriet/totpm/package/totpm/ )
2+
13# totpm: A TPM-backed command line TOTP client
24` totpm ` is a command line TOTP client which uses your computer's TPM to store secrets securely.
35It uses fingerprint verification via fprintd to ensure that only a user that is physically present at the computer
@@ -7,14 +9,19 @@ can generate one-time codes.
79## Installation
810At the time of writing, ` totpm ` only supports TPM2.0-capable x86-64 Linux systems.
911
10- ` totpm ` is pre-release software, and may be a bit annoying to install before the first official version.
11-
1212
1313### Fedora
14- 1 . Clone the repository.
15- 2 . Run ` make FEDORA_RELEASE=<version> fedora-package ` to build an RPM.
16- Replace ` <version> ` with whichever Fedora release you are running. ` totpm ` has been tested on Fedora 40, 41 and 42.
17- 3 . Install the resulting package with ` dnf ` .
14+ Enable the ` totpm ` Copr, install ` totpm ` and initialize the secrets database:
15+ ``` shell
16+ sudo dnf copr enable koditoriet/totpm
17+ sudo dnf install totpm
18+ topm init
19+ ```
20+
21+ If you're getting permission errors, you need to add your user to the ` tss ` group and re-login:
22+ ``` shell
23+ sudo usermod -a -G tss " $USER "
24+ ```
1825
1926
2027### Other Linux (system install)
You can’t perform that action at this time.
0 commit comments