mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-17 18:06:59 +02:00
app-shells/bash: Apply Flatcar patches
Signed-off-by: Sayan Chowdhury <schowdhury@microsoft.com>
This commit is contained in:
parent
7e69564aef
commit
acee1f96d7
@ -130,10 +130,10 @@ src_configure() {
|
|||||||
# For descriptions of these, see config-top.h
|
# For descriptions of these, see config-top.h
|
||||||
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
# bashrc/#26952 bash_logout/#90488 ssh/#24762 mktemp/#574426
|
||||||
append-cppflags \
|
append-cppflags \
|
||||||
-DDEFAULT_PATH_VALUE=\'\"${EPREFIX}/usr/local/sbin:${EPREFIX}/usr/local/bin:${EPREFIX}/usr/sbin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/bin\"\' \
|
-DDEFAULT_PATH_VALUE=\'\"/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin\"\' \
|
||||||
-DSTANDARD_UTILS_PATH=\'\"${EPREFIX}/bin:${EPREFIX}/usr/bin:${EPREFIX}/sbin:${EPREFIX}/usr/sbin\"\' \
|
-DSTANDARD_UTILS_PATH=\'\"/bin:/usr/bin:/sbin:/usr/sbin\"\' \
|
||||||
-DSYS_BASHRC=\'\"${EPREFIX}/etc/bash/bashrc\"\' \
|
-DSYS_BASHRC=\'\"/etc/bash/bashrc\"\' \
|
||||||
-DSYS_BASH_LOGOUT=\'\"${EPREFIX}/etc/bash/bash_logout\"\' \
|
-DSYS_BASH_LOGOUT=\'\"/etc/bash/bash_logout\"\' \
|
||||||
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
-DNON_INTERACTIVE_LOGIN_SHELLS \
|
||||||
-DSSH_SOURCE_BASHRC \
|
-DSSH_SOURCE_BASHRC \
|
||||||
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
$(use bashlogger && echo -DSYSLOG_HISTORY)
|
||||||
@ -194,15 +194,16 @@ src_install() {
|
|||||||
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
mv "${ED}"/usr/bin/bash "${ED}"/bin/ || die
|
||||||
dosym bash /bin/rbash
|
dosym bash /bin/rbash
|
||||||
|
|
||||||
insinto /etc/bash
|
insinto /usr/share/bash
|
||||||
doins "${FILESDIR}"/bash_logout
|
for f in bash{_logout,rc} ; do
|
||||||
doins "$(prefixify_ro "${FILESDIR}"/bashrc)"
|
doins "${FILESDIR}"/${f}
|
||||||
|
dosym ../../usr/share/bash/${f} /etc/bash/${f}
|
||||||
|
done
|
||||||
|
|
||||||
keepdir /etc/bash/bashrc.d
|
insinto /usr/share/skel
|
||||||
|
|
||||||
insinto /etc/skel
|
|
||||||
for f in bash{_logout,_profile,rc} ; do
|
for f in bash{_logout,_profile,rc} ; do
|
||||||
newins "${FILESDIR}"/dot-${f} .${f}
|
newins "${FILESDIR}"/dot-${f} .${f}
|
||||||
|
dosym ../../usr/share/skel/.${f} /etc/skel/.${f}
|
||||||
done
|
done
|
||||||
|
|
||||||
local sed_args=(
|
local sed_args=(
|
||||||
@ -220,8 +221,8 @@ src_install() {
|
|||||||
|
|
||||||
sed -i \
|
sed -i \
|
||||||
"${sed_args[@]}" \
|
"${sed_args[@]}" \
|
||||||
"${ED}"/etc/skel/.bashrc \
|
"${ED}"/usr/share/skel/.bashrc \
|
||||||
"${ED}"/etc/bash/bashrc || die
|
"${ED}"/usr/share/bash/bashrc || die
|
||||||
|
|
||||||
if use plugins ; then
|
if use plugins ; then
|
||||||
exeinto /usr/$(get_libdir)/bash
|
exeinto /usr/$(get_libdir)/bash
|
||||||
|
Loading…
Reference in New Issue
Block a user