|
1 | 1 | # Copyright (c) 2014 CoreOS, Inc.. All rights reserved. |
2 | 2 | # Distributed under the terms of the GNU General Public License v2 |
3 | 3 |
|
4 | | -EAPI=7 |
5 | | -EGIT_REPO_URI="https://github.com/flatcar/locksmith.git" |
| 4 | +EAPI=8 |
| 5 | + |
6 | 6 | COREOS_GO_PACKAGE="github.com/flatcar/locksmith" |
7 | | -inherit git-r3 systemd coreos-go |
| 7 | +inherit systemd coreos-go |
| 8 | + |
| 9 | +DESCRIPTION="Reboot manager for the Flatcar update engine" |
| 10 | +HOMEPAGE="https://github.com/flatcar/locksmith" |
8 | 11 |
|
9 | | -if [[ "${PV}" == 9999 ]]; then |
10 | | - KEYWORDS="~amd64 ~arm64" |
| 12 | +if [[ ${PV} == 9999 ]]; then |
| 13 | + EGIT_REPO_URI="https://github.com/flatcar/locksmith.git" |
| 14 | + inherit git-r3 |
11 | 15 | else |
12 | | - EGIT_COMMIT="ee644fc60a32af5fbc4e83c64fcc7ca0eadb9e3f" # flatcar-master |
| 16 | + EGIT_VERSION="a1cb1f901971165827d68188e9f60752c0e33c10" # flatcar-master |
| 17 | + SRC_URI="https://github.com/flatcar/locksmith/archive/${EGIT_VERSION}.tar.gz -> ${PN}-${EGIT_VERSION}.tar.gz" |
| 18 | + S="${WORKDIR}/${PN}-${EGIT_VERSION}" |
13 | 19 | KEYWORDS="amd64 arm64" |
14 | 20 | fi |
15 | 21 |
|
16 | | -DESCRIPTION="locksmith" |
17 | | -HOMEPAGE="https://github.com/flatcar/locksmith" |
18 | | -SRC_URI="" |
19 | | - |
20 | 22 | LICENSE="Apache-2.0" |
21 | 23 | SLOT="0" |
22 | | -IUSE="" |
23 | 24 |
|
24 | 25 | src_compile() { |
25 | 26 | COREOS_GO_MOD=vendor go_build "${COREOS_GO_PACKAGE}/locksmithctl" |
26 | 27 | } |
27 | 28 |
|
28 | 29 | src_install() { |
29 | | - dobin ${GOBIN}/locksmithctl |
30 | | - dodir /usr/lib/locksmith |
| 30 | + dobin "${GOBIN}"/locksmithctl |
31 | 31 | dosym ../../../bin/locksmithctl /usr/lib/locksmith/locksmithd |
32 | 32 |
|
33 | | - systemd_dounit "${S}"/systemd/locksmithd.service |
| 33 | + systemd_dounit systemd/locksmithd.service |
34 | 34 | systemd_enable_service multi-user.target locksmithd.service |
35 | 35 | } |
0 commit comments