From 2fd76197ae6e35e29552e7466bffeb513deba924 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B6ren=20Tempel?= Date: Wed, 7 Mar 2018 11:17:05 +0100 Subject: [PATCH] testing/tcsh: add /bin/tcsh to /etc/shells Fixes #8618 --- testing/tcsh/APKBUILD | 4 ++-- testing/tcsh/tcsh.post-install | 3 +++ testing/tcsh/tcsh.post-upgrade | 1 + testing/tcsh/tcsh.pre-deinstall | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 testing/tcsh/tcsh.post-install create mode 120000 testing/tcsh/tcsh.post-upgrade create mode 100644 testing/tcsh/tcsh.pre-deinstall diff --git a/testing/tcsh/APKBUILD b/testing/tcsh/APKBUILD index 54139c093b5..3c713ab4122 100644 --- a/testing/tcsh/APKBUILD +++ b/testing/tcsh/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: pkgname=tcsh pkgver=6.20.00 -pkgrel=1 +pkgrel=2 pkgdesc="extended C-shell" url="http://www.tcsh.org" arch="all" license="BSD" depends="" makedepends="ncurses-dev" -install="" +install="$pkgname.post-install $pkgname.post-upgrade $pkgname.pre-deinstall" subpackages="$pkgname-doc" source="ftp://ftp.astron.com/pub/tcsh/${pkgname}-${pkgver}.tar.gz 001-sysmalloc.patch" diff --git a/testing/tcsh/tcsh.post-install b/testing/tcsh/tcsh.post-install new file mode 100644 index 00000000000..7342c5e7212 --- /dev/null +++ b/testing/tcsh/tcsh.post-install @@ -0,0 +1,3 @@ +#!/bin/sh +add-shell '/bin/tcsh' +exit 0 diff --git a/testing/tcsh/tcsh.post-upgrade b/testing/tcsh/tcsh.post-upgrade new file mode 120000 index 00000000000..180542a18bd --- /dev/null +++ b/testing/tcsh/tcsh.post-upgrade @@ -0,0 +1 @@ +tcsh.post-install \ No newline at end of file diff --git a/testing/tcsh/tcsh.pre-deinstall b/testing/tcsh/tcsh.pre-deinstall new file mode 100644 index 00000000000..9e2e34c1c55 --- /dev/null +++ b/testing/tcsh/tcsh.pre-deinstall @@ -0,0 +1,3 @@ +#!/bin/sh +remove-shell '/bin/tcsh' +exit 0