mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-06 09:52:14 +01:00
commit
29a295d81f
@ -1,5 +1,5 @@
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=fleet
|
Description=fleet daemon
|
||||||
|
|
||||||
Wants=etcd.service
|
Wants=etcd.service
|
||||||
After=etcd.service
|
After=etcd.service
|
||||||
@ -8,6 +8,6 @@ Wants=fleet.socket
|
|||||||
After=fleet.socket
|
After=fleet.socket
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/bin/fleet
|
ExecStart=/usr/bin/fleetd
|
||||||
Restart=always
|
Restart=always
|
||||||
RestartSec=10s
|
RestartSec=10s
|
||||||
|
|||||||
@ -9,7 +9,7 @@ CROS_WORKON_REPO="git://github.com"
|
|||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="58f2e8d059892f8db7fdb3ac54430f7888d6f0db" # tag v0.7.1
|
CROS_WORKON_COMMIT="03ca0ddf2e434a21c21661bfbca1ab92f3be2fd2" # tag v0.8.0
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -23,14 +23,16 @@ LICENSE="Apache-2.0"
|
|||||||
SLOT="0"
|
SLOT="0"
|
||||||
IUSE=""
|
IUSE=""
|
||||||
|
|
||||||
DEPEND=">=dev-lang/go-1.2"
|
DEPEND=">=dev-lang/go-1.3"
|
||||||
|
|
||||||
src_compile() {
|
src_compile() {
|
||||||
./build || die
|
./build || die
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
src_install() {
|
||||||
dobin ${S}/bin/fleet
|
dobin ${S}/bin/fleetd
|
||||||
|
dosym ./fleetd /usr/bin/fleet
|
||||||
|
|
||||||
dobin ${S}/bin/fleetctl
|
dobin ${S}/bin/fleetctl
|
||||||
|
|
||||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user