mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
usr(bash): patch bash ebuild to use /usr
This commit is contained in:
parent
581855f4d2
commit
1fcf5c69c8
@ -134,15 +134,17 @@ src_compile() {
|
|||||||
src_install() {
|
src_install() {
|
||||||
emake install DESTDIR="${D}" || die
|
emake install DESTDIR="${D}" || die
|
||||||
|
|
||||||
dodir /bin
|
dodir /usr/bin
|
||||||
mv "${D}"/usr/bin/bash "${D}"/bin/ || die
|
dosym bash /usr/bin/rbash
|
||||||
dosym bash /bin/rbash
|
|
||||||
|
|
||||||
insinto /etc/bash
|
insinto /usr/share/bash/defaults/
|
||||||
doins "${FILESDIR}"/{bashrc,bash_logout}
|
doins "${FILESDIR}"/{bashrc,bash_logout}
|
||||||
insinto /etc/skel
|
dosym /usr/share/bash/defaults/bash_logout /etc/bash/bash_logout
|
||||||
|
dosym /usr/share/bash/defaults/bashrc /etc/bash/bashrc
|
||||||
|
insinto /usr/share/bash/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/bash/skel/.${f} /etc/skel/.${f}
|
||||||
done
|
done
|
||||||
|
|
||||||
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
sed -i -e "s:#${USERLAND}#@::" "${D}"/etc/skel/.bashrc "${D}"/etc/bash/bashrc
|
||||||
|
Loading…
Reference in New Issue
Block a user