diff options
Diffstat (limited to 'main')
-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 |