app-admin/flannel: teach flannel about other arches

This commit is contained in:
Nick Owens 2016-09-19 16:45:59 -07:00
parent 9ba1b4d845
commit d75a79ea35
2 changed files with 4 additions and 3 deletions

View File

@ -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