diff options
author | Sören Tempel <soeren+git@soeren-tempel.net> | 2015-07-27 20:25:39 +0200 |
---|---|---|
committer | Francesco Colista <fcolista@alpinelinux.org> | 2015-07-28 07:58:42 +0000 |
commit | bfa8500e0263401e34fef51cc340714faab65ea5 (patch) | |
tree | 8f96f1e490d2c44dbd4e8a0aa394e40edb915bdc /main/mksh | |
parent | 5f4dc002a707e14f9299b1274c9952c36216329d (diff) | |
download | aports-bfa8500e0263401e34fef51cc340714faab65ea5.tar.bz2 aports-bfa8500e0263401e34fef51cc340714faab65ea5.tar.xz |
main/mksh: add /usr/bin/mksh to /etc/shells
Diffstat (limited to 'main/mksh')
-rw-r--r-- | main/mksh/APKBUILD | 4 | ||||
-rw-r--r-- | main/mksh/mksh.post-install | 3 | ||||
l--------- | main/mksh/mksh.post-upgrade | 1 | ||||
-rw-r--r-- | main/mksh/mksh.pre-deinstall | 3 |
4 files changed, 9 insertions, 2 deletions
diff --git a/main/mksh/APKBUILD b/main/mksh/APKBUILD index 024d77d5c3..cf28eb73c6 100644 --- a/main/mksh/APKBUILD +++ b/main/mksh/APKBUILD @@ -2,7 +2,7 @@ pkgname=mksh pkgver=50f _pkgver=R50f -pkgrel=0 +pkgrel=1 pkgdesc="MirBSD KSH Shell" url="http://mirbsd.de/mksh" arch="all" @@ -10,7 +10,7 @@ license="BSD" depends="" depends_dev="" makedepends="$depends_dev" -install="" +install="mksh.post-install mksh.post-upgrade mksh.pre-deinstall" subpackages="$pkgname-doc" source="https://www.mirbsd.org/MirOS/dist/mir/mksh/$pkgname-$_pkgver.tgz" diff --git a/main/mksh/mksh.post-install b/main/mksh/mksh.post-install new file mode 100644 index 0000000000..1780754e12 --- /dev/null +++ b/main/mksh/mksh.post-install @@ -0,0 +1,3 @@ +#!/bin/sh +grep -q '/usr/bin/mksh' /etc/shells || echo '/usr/bin/mksh' >> /etc/shells +exit 0 diff --git a/main/mksh/mksh.post-upgrade b/main/mksh/mksh.post-upgrade new file mode 120000 index 0000000000..29bbd4260c --- /dev/null +++ b/main/mksh/mksh.post-upgrade @@ -0,0 +1 @@ +mksh.post-install
\ No newline at end of file diff --git a/main/mksh/mksh.pre-deinstall b/main/mksh/mksh.pre-deinstall new file mode 100644 index 0000000000..d6e4f9325e --- /dev/null +++ b/main/mksh/mksh.pre-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh +sed -i '/^\/usr\/bin\/mksh/d' /etc/shells +exit 0 |