Mail archive
alpine-aports

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

From: Sören Tempel <soeren+git_at_soeren-tempel.net>
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
_at_@ -1,7 +1,7 @@
 # Maintainer: Natanael Copa <ncopa_at_alpinelinux.org>
 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"
_at_@ -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
_at_@ -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
_at_@ -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
_at_@ -0,0 +1,3 @@
+#!/bin/sh
+remove-shell '/bin/dash'
+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 - 12:05:53 GMT