feat(coreos-base/coreos-init): add symlink-usr flag support

Via https://github.com/coreos/init/pull/34
This commit is contained in:
Brandon Philips 2014-01-14 17:25:32 -08:00
parent 6c7727eacb
commit 00c4953f9a
3 changed files with 13 additions and 5 deletions

View File

@ -3,7 +3,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="4"
CROS_WORKON_COMMIT="8c14083fd2c53798a84c470b7bb3ecaabb17d940"
CROS_WORKON_COMMIT="3bc9aad424c62af50c5df7b32351bf96b2750ec6"
CROS_WORKON_PROJECT="coreos/init"
CROS_WORKON_LOCALNAME="init"
EGIT_REPO_URI="https://github.com/coreos/init"
@ -17,7 +17,7 @@ SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 arm x86"
IUSE="test"
IUSE="test symlink-usr"
# Daemons we enable here must installed during build/install in addition to
# during runtime so the systemd unit enable step works.
@ -36,7 +36,11 @@ RDEPEND="${DEPEND}
"
src_install() {
default
if use symlink-usr ; then
emake DESTDIR="${D}" install-usr
else
emake DESTDIR="${D}" install
fi
# Set the default target to multi-user not graphical, this is CoreOS!
dosym /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target

View File

@ -16,7 +16,7 @@ SRC_URI=""
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
IUSE="test"
IUSE="test symlink-usr"
# Daemons we enable here must installed during build/install in addition to
# during runtime so the systemd unit enable step works.
@ -34,7 +34,11 @@ RDEPEND="${DEPEND}
"
src_install() {
default
if use symlink-usr ; then
emake DESTDIR="${D}" install-usr
else
emake DESTDIR="${D}" install
fi
# Set the default target to multi-user not graphical, this is CoreOS!
dosym /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target