Skip to content

Commit

Permalink
app-eselect/eselect-sh: Add 0.5.0
Browse files Browse the repository at this point in the history
Adds support to set lksh as /bin/sh which preferred /bin/sh for mksh
according to upstream.

Using mksh as /bin/sh is only POSIX on 32-bit systems, but some may
still prefer it as POSIX requires some undefined behavior which is
respected with lksh.

Closes: gentoo#20787
Signed-off-by: orbea <[email protected]>
Closes: gentoo#27615
Signed-off-by: Michał Górny <[email protected]>
  • Loading branch information
orbea authored and mgorny committed Oct 14, 2022
1 parent 9c2e719 commit 1692c26
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 0 deletions.
21 changes: 21 additions & 0 deletions app-eselect/eselect-sh/eselect-sh-0.5.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="Manages the /bin/sh (POSIX shell) symlink"
HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
SRC_URI=""
S=${WORKDIR}

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
IUSE=""

RDEPEND="app-eselect/eselect-lib-bin-symlink"

src_install() {
insinto /usr/share/eselect/modules
newins "${FILESDIR}"/sh.eselect-${PV} sh.eselect
}
13 changes: 13 additions & 0 deletions app-eselect/eselect-sh/files/sh.eselect-0.5.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

DESCRIPTION="Manage /bin/sh (POSIX shell) implementations"
MAINTAINER="[email protected]"
VERSION="0.5.0"

SYMLINK_PATH=/bin/sh
SYMLINK_TARGETS=( bash dash lksh mksh )
SYMLINK_DESCRIPTION='POSIX shell'
SYMLINK_CRUCIAL=1

inherit bin-symlink

0 comments on commit 1692c26

Please sign in to comment.