Skip to content

Commit 9682ad7

Browse files
committed
Enable Copr builds.
1 parent b6bee6a commit 9682ad7

File tree

3 files changed

+26
-6
lines changed

3 files changed

+26
-6
lines changed

.copr/Makefile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
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)/

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ fedora-package: totpm-$(VERSION)-1.fc$(FEDORA_RELEASE).$(ARCH).rpm
2727
.PHONY: srpm
2828
srpm: totpm-$(VERSION)-1.fc$(FEDORA_RELEASE).src.rpm
2929

30+
.PHONY: version
31+
version:
32+
echo $(VERSION)
33+
3034
.PHONY: test
3135
test:
3236
cargo test --features=dbus-tests,install

README.md

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
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.
35
It 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
810
At 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)

0 commit comments

Comments
 (0)