ports: Create files in /etc/profile.d instead of modifying shellrc
This commit is contained in:
@@ -23,6 +23,6 @@ post_install() {
|
||||
|
||||
ln -sv libncursesw.so "$DESTDIR/usr/lib/libncurses.so"
|
||||
|
||||
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
|
||||
grep -q 'export NCURSES_NO_UTF8_ACS=' "$shellrc" || echo 'export NCURSES_NO_UTF8_ACS=1' >> "$shellrc"
|
||||
mkdir -p "$DESTDIR/etc/profile.d"
|
||||
echo 'export NCURSES_NO_UTF8_ACS=1' > "$DESTDIR/etc/profile.d/ncurses.sh"
|
||||
}
|
||||
|
||||
+2
-2
@@ -17,6 +17,6 @@ CONFIGURE_OPTIONS=(
|
||||
)
|
||||
|
||||
post_install() {
|
||||
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
|
||||
grep -q 'export EDITOR=' "$shellrc" || echo 'export EDITOR=vim' >> "$shellrc"
|
||||
mkdir -p "$DESTDIR/etc/profile.d"
|
||||
echo 'export EDITOR=vim' > "$DESTDIR/etc/profile.d/vim.sh"
|
||||
}
|
||||
|
||||
@@ -28,6 +28,6 @@ install() {
|
||||
}
|
||||
|
||||
post_install() {
|
||||
shellrc="$BANAN_SYSROOT/home/user/.shellrc"
|
||||
grep -q 'export DISPLAY=' "$shellrc" || echo 'export DISPLAY=:69' >> "$shellrc"
|
||||
mkdir -p "$DESTDIR/etc/profile.d"
|
||||
echo 'export DISPLAY=:69' > "$DESTDIR/etc/profile.d/xbanan.sh"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user