mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-23 15:31:05 +02:00
app-admin/flannel: teach flannel about other arches
This commit is contained in:
parent
9ba1b4d845
commit
d75a79ea35
@ -1,7 +1,7 @@
|
||||
# Copyright (c) 2014 CoreOS, Inc.. All rights reserved.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=4
|
||||
EAPI=6
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
@ -9,7 +9,7 @@ else
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
inherit systemd
|
||||
inherit systemd coreos-go-utils
|
||||
|
||||
DESCRIPTION="flannel"
|
||||
HOMEPAGE="https://github.com/coreos/flannel"
|
||||
@ -23,7 +23,8 @@ RDEPEND="app-emulation/rkt"
|
||||
S="$WORKDIR"
|
||||
|
||||
src_install() {
|
||||
sed "s/{{flannel_ver}}/v${PV}/" "${FILESDIR}"/flanneld-rkt.service >"${T}"/flanneld.service
|
||||
local arch_tag="$(go_arch)"
|
||||
sed "s/{{flannel_ver}}/v${PV}-${arch_tag}/" "${FILESDIR}"/flanneld-rkt.service >"${T}"/flanneld.service
|
||||
systemd_dounit "${T}"/flanneld.service
|
||||
|
||||
insinto /usr/lib/systemd/network
|
||||
|
Loading…
x
Reference in New Issue
Block a user