Mail archive
alpine-aports

[alpine-aports] [PATCH] main/bash: add /bin/bash to /etc/shells

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
Date: Sat, 8 Aug 2015 11:40:00 +0200

---
 main/bash/APKBUILD           | 3 ++-
 main/bash/bash.post-install  | 3 +++
 main/bash/bash.post-upgrade  | 1 +
 main/bash/bash.pre-deinstall | 3 +++
 4 files changed, 9 insertions(+), 1 deletion(-)
 create mode 100644 main/bash/bash.post-install
 create mode 120000 main/bash/bash.post-upgrade
 create mode 100644 main/bash/bash.pre-deinstall
diff --git a/main/bash/APKBUILD b/main/bash/APKBUILD
index 163a8c7..65e5633 100644
--- a/main/bash/APKBUILD
+++ b/main/bash/APKBUILD
_at_@ -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 0000000..92ea8d9
--- /dev/null
+++ b/main/bash/bash.post-install
_at_@ -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 0000000..85d6a8a
--- /dev/null
+++ b/main/bash/bash.post-upgrade
_at_@ -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 0000000..d110afe
--- /dev/null
+++ b/main/bash/bash.pre-deinstall
_at_@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/bash'
+exit 0
-- 
2.5.0
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Sat Aug 08 2015 - 11:40:00 GMT