mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-20 14:01:36 +02:00
Merge pull request #1055 from crawford/docs
docs: include docs for coreos tools
This commit is contained in:
commit
49e14ae7f4
@ -13,7 +13,7 @@ else
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
inherit cros-workon systemd
|
||||
inherit coreos-doc cros-workon systemd
|
||||
|
||||
DESCRIPTION="fleet"
|
||||
HOMEPAGE="https://github.com/coreos/fleet"
|
||||
@ -37,4 +37,6 @@ src_install() {
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dounit "${FILESDIR}"/${PN}.socket
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
}
|
||||
|
@ -13,7 +13,7 @@ else
|
||||
KEYWORDS="amd64"
|
||||
fi
|
||||
|
||||
inherit cros-workon systemd toolchain-funcs udev
|
||||
inherit coreos-doc cros-workon systemd toolchain-funcs udev
|
||||
|
||||
DESCRIPTION="coreos-cloudinit"
|
||||
HOMEPAGE="https://github.com/coreos/coreos-cloudinit"
|
||||
@ -51,4 +51,6 @@ src_install() {
|
||||
systemd_dounit units/*.target
|
||||
systemd_enable_service default.target system-config.target
|
||||
systemd_enable_service default.target user-config.target
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
}
|
||||
|
@ -8,7 +8,7 @@ EAPI=4
|
||||
CROS_WORKON_PROJECT="coreos/etcd"
|
||||
CROS_WORKON_LOCALNAME="etcd"
|
||||
CROS_WORKON_REPO="git://github.com"
|
||||
inherit toolchain-funcs cros-workon systemd
|
||||
inherit coreos-doc toolchain-funcs cros-workon systemd
|
||||
|
||||
if [[ "${PV}" == 9999 ]]; then
|
||||
KEYWORDS="~amd64"
|
||||
@ -36,4 +36,6 @@ src_install() {
|
||||
|
||||
systemd_dounit "${FILESDIR}"/${PN}.service
|
||||
systemd_dotmpfilesd "${FILESDIR}"/${PN}.conf
|
||||
|
||||
coreos-dodoc -r Documentation/*
|
||||
}
|
||||
|
23
sdk_container/src/third_party/coreos-overlay/eclass/coreos-doc.eclass
vendored
Normal file
23
sdk_container/src/third_party/coreos-overlay/eclass/coreos-doc.eclass
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright 2015 CoreOS, Inc.
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
# @ECLASS: coreos-doc.eclass
|
||||
# @BLURB: utility function for including documentation
|
||||
|
||||
# @FUNCTION: coreos-dodoc
|
||||
# @USAGE: [-r] <list of docs>
|
||||
coreos-dodoc() {
|
||||
debug-print-function ${FUNCNAME} "${@}"
|
||||
|
||||
local flags
|
||||
if [[ "${1}" == "-r" ]] ; then
|
||||
flags="-r"
|
||||
shift
|
||||
fi
|
||||
|
||||
[[ "${#}" -lt 1 ]] && die "${0}: at least one file needed"
|
||||
|
||||
insinto "/usr/share/coreos/doc/${P}/"
|
||||
doins $flags "$@"
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user