mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-16 09:26:58 +02:00
feat(coreos-base/coreos-init): add symlink-usr flag support
Via https://github.com/coreos/init/pull/34
This commit is contained in:
parent
6c7727eacb
commit
00c4953f9a
@ -3,7 +3,7 @@
|
|||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
EAPI="4"
|
EAPI="4"
|
||||||
CROS_WORKON_COMMIT="8c14083fd2c53798a84c470b7bb3ecaabb17d940"
|
CROS_WORKON_COMMIT="3bc9aad424c62af50c5df7b32351bf96b2750ec6"
|
||||||
CROS_WORKON_PROJECT="coreos/init"
|
CROS_WORKON_PROJECT="coreos/init"
|
||||||
CROS_WORKON_LOCALNAME="init"
|
CROS_WORKON_LOCALNAME="init"
|
||||||
EGIT_REPO_URI="https://github.com/coreos/init"
|
EGIT_REPO_URI="https://github.com/coreos/init"
|
||||||
@ -17,7 +17,7 @@ SRC_URI=""
|
|||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="amd64 arm x86"
|
KEYWORDS="amd64 arm x86"
|
||||||
IUSE="test"
|
IUSE="test symlink-usr"
|
||||||
|
|
||||||
# Daemons we enable here must installed during build/install in addition to
|
# Daemons we enable here must installed during build/install in addition to
|
||||||
# during runtime so the systemd unit enable step works.
|
# during runtime so the systemd unit enable step works.
|
||||||
@ -36,7 +36,11 @@ RDEPEND="${DEPEND}
|
|||||||
"
|
"
|
||||||
|
|
||||||
src_install() {
|
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!
|
# 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
|
dosym /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
@ -16,7 +16,7 @@ SRC_URI=""
|
|||||||
LICENSE="BSD"
|
LICENSE="BSD"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~amd64 ~arm ~x86"
|
KEYWORDS="~amd64 ~arm ~x86"
|
||||||
IUSE="test"
|
IUSE="test symlink-usr"
|
||||||
|
|
||||||
# Daemons we enable here must installed during build/install in addition to
|
# Daemons we enable here must installed during build/install in addition to
|
||||||
# during runtime so the systemd unit enable step works.
|
# during runtime so the systemd unit enable step works.
|
||||||
@ -34,7 +34,11 @@ RDEPEND="${DEPEND}
|
|||||||
"
|
"
|
||||||
|
|
||||||
src_install() {
|
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!
|
# 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
|
dosym /usr/lib/systemd/system/multi-user.target /etc/systemd/system/default.target
|
||||||
|
Loading…
Reference in New Issue
Block a user