Subject: [alpine-aports] [PATCH] dash: add /bin/dash to /etc/shells

From: Sören Tempel <[email-masked]>
Date: Sat, 8 Aug 2015 12:05:53 +0200

---
 testing/dash/APKBUILD           | 4 ++--
 testing/dash/dash.post-install  | 3 +++
 testing/dash/dash.post-upgrade  | 1 +
 testing/dash/dash.pre-deinstall | 3 +++
 4 files changed, 9 insertions(+), 2 deletions(-)
 create mode 100644 testing/dash/dash.post-install
 create mode 120000 testing/dash/dash.post-upgrade
 create mode 100644 testing/dash/dash.pre-deinstall

diff --git a/testing/dash/APKBUILD b/testing/dash/APKBUILD
index 6994dc9..b346bf0 100644
--- a/testing/dash/APKBUILD
+++ b/testing/dash/APKBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <[email-masked]>
 pkgname=dash
 pkgver=0.5.7
-pkgrel=0
+pkgrel=1
 pkgdesc="Small and fast POSIX-compliant shell"
 url="http://gondor.apana.org.au/~herbert/dash/"
 arch="all"
@@ -10,7 +10,7 @@ depends=""
 depends_dev=""
 # needs 'nl' utility from coreutils
 makedepends="$depends_dev coreutils"
-install=""
+install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall"
 subpackages="$pkgname-doc"
 source="http://gondor.apana.org.au/~herbert/dash/files/dash-$pkgver.tar.gz"
 
diff --git a/testing/dash/dash.post-install b/testing/dash/dash.post-install
new file mode 100644
index 0000000..69af64b
--- /dev/null
+++ b/testing/dash/dash.post-install
@@ -0,0 +1,3 @@
+#!/bin/sh
+add-shell '/bin/dash'
+exit 0
diff --git a/testing/dash/dash.post-upgrade b/testing/dash/dash.post-upgrade
new file mode 120000
index 0000000..3514e3b
--- /dev/null
+++ b/testing/dash/dash.post-upgrade
@@ -0,0 +1 @@
+dash.post-install
\ No newline at end of file
diff --git a/testing/dash/dash.pre-deinstall b/testing/dash/dash.pre-deinstall
new file mode 100644
index 0000000..07f1c9d
--- /dev/null
+++ b/testing/dash/dash.pre-deinstall
@@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/dash'
+exit 0
-- 
2.5.0

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---