aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSören Tempel <soeren+git@soeren-tempel.net>2015-08-08 11:40:00 +0200
committerFrancesco Colista <fcolista@alpinelinux.org>2015-08-10 12:58:25 +0000
commitd41d42a58e22c676a93447f8eb806f21bb51c529 (patch)
tree1afe0103a8f7f097280018c3d15973e1c195bb0f
parentedfdd532b6c866872fbc84bc23e7c57833176a6c (diff)
downloadaports-d41d42a58e22c676a93447f8eb806f21bb51c529.tar.gz
aports-d41d42a58e22c676a93447f8eb806f21bb51c529.tar.bz2
aports-d41d42a58e22c676a93447f8eb806f21bb51c529.tar.xz
main/bash: add /bin/bash to /etc/shells
-rw-r--r--main/bash/APKBUILD3
-rw-r--r--main/bash/bash.post-install3
l---------main/bash/bash.post-upgrade1
-rw-r--r--main/bash/bash.pre-deinstall3
4 files changed, 9 insertions, 1 deletions
diff --git a/main/bash/APKBUILD b/main/bash/APKBUILD
index 163a8c73c3..65e5633294 100644
--- a/main/bash/APKBUILD
+++ b/main/bash/APKBUILD
@@ -5,13 +5,14 @@ pkgver=4.3.33
_patchlevel=${pkgver##*.}
_myver=${pkgver%.*}
_patchbase=${_myver/./}
-pkgrel=0
+pkgrel=1
pkgdesc="The GNU Bourne Again shell"
url="http://www.gnu.org/software/bash/bash.html"
arch="all"
license="GPL3+"
makedepends="readline-dev ncurses-dev bison flex"
depends=""
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
subpackages="$pkgname-doc"
source="http://ftp.gnu.org/gnu/bash/bash-${_myver}.tar.gz
bash-noinfo.patch
diff --git a/main/bash/bash.post-install b/main/bash/bash.post-install
new file mode 100644
index 0000000000..92ea8d928d
--- /dev/null
+++ b/main/bash/bash.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+add-shell '/bin/bash'
+exit 0
diff --git a/main/bash/bash.post-upgrade b/main/bash/bash.post-upgrade
new file mode 120000
index 0000000000..85d6a8aac6
--- /dev/null
+++ b/main/bash/bash.post-upgrade
@@ -0,0 +1 @@
+bash.post-install \ No newline at end of file
diff --git a/main/bash/bash.pre-deinstall b/main/bash/bash.pre-deinstall
new file mode 100644
index 0000000000..d110afedd5
--- /dev/null
+++ b/main/bash/bash.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/bash'
+exit 0