summaryrefslogtreecommitdiff
path: root/extra/pdksh
diff options
context:
space:
mode:
Diffstat (limited to 'extra/pdksh')
-rw-r--r--extra/pdksh/PKGBUILD31
-rw-r--r--extra/pdksh/pdksh-5.2.14.patch26
-rw-r--r--extra/pdksh/pdksh.install22
-rw-r--r--extra/pdksh/usr_ksh.sh9
4 files changed, 0 insertions, 88 deletions
diff --git a/extra/pdksh/PKGBUILD b/extra/pdksh/PKGBUILD
deleted file mode 100644
index 388952747..000000000
--- a/extra/pdksh/PKGBUILD
+++ /dev/null
@@ -1,31 +0,0 @@
-# $Id: PKGBUILD 128476 2011-06-24 03:30:58Z eric $
-# Maintainer: Aaron Griffin <aaron@archlinux.org>
-# Contributor: Tom Newsom <Jeepster@gmx.co.uk>
-
-pkgname=pdksh
-pkgver=5.2.14
-pkgrel=6
-pkgdesc="A public domain clone of the AT&T Korn shell"
-arch=('i686' 'x86_64')
-url="http://www.cs.mun.ca/~michael/pdksh/"
-license=('custom')
-depends=('glibc')
-install=pdksh.install
-#ftp://ftp.cs.mun.ca/pub/$pkgname/$pkgname-$pkgver.tar.gz
-source=(http://www.cs.mun.ca/~michael/pdksh/files/$pkgname-$pkgver.tar.gz pdksh-5.2.14.patch usr_ksh.sh)
-md5sums=('871106b3bd937e1afba9f2ef7c43aef3' 'f11d1e711627d21a547c09e344e30dd3'\
- '56084a657ecafd5dd0813a6056036712')
-
-build() {
- cd "$srcdir/$pkgname-$pkgver"
- patch -Np1 -i ../$pkgname-$pkgver.patch
- ./configure --prefix=/ --mandir=/usr/share/man
- make
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver"
- make prefix="$pkgdir" mandir="$pkgdir/usr/share/man/man1" install
- install -D -m 755 "${srcdir}/usr_ksh.sh" "${pkgdir}/usr/bin/ksh"
- install -D -m644 LEGAL "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
-}
diff --git a/extra/pdksh/pdksh-5.2.14.patch b/extra/pdksh/pdksh-5.2.14.patch
deleted file mode 100644
index 134e04f34..000000000
--- a/extra/pdksh/pdksh-5.2.14.patch
+++ /dev/null
@@ -1,26 +0,0 @@
-diff -ru pdksh-5.2.14/siglist.sh pdksh-5.2.14.arch/siglist.sh
---- pdksh-5.2.14/siglist.sh 1996-09-18 12:52:41.000000000 -0400
-+++ pdksh-5.2.14.arch/siglist.sh 2004-09-06 08:17:15.000000000 -0400
-@@ -11,19 +11,18 @@
- out=tmpo$$.c
- ecode=1
- trapsigs='0 1 2 13 15'
--trap 'rm -f $in $out; trap 0; exit $ecode' $trapsigs
-+trap 'rm -f $in $out; exit $ecode' $trapsigs
-
- CPP="${1-cc -E}"
-
- # The trap here to make up for a bug in bash (1.14.3(1)) that calls the trap
--(trap $trapsigs;
-- echo '#include "sh.h"';
-+(echo '#include "sh.h"';
- echo ' { QwErTy SIGNALS , "DUMMY" , "hook for number of signals" },';
- sed -e '/^[ ]*#/d' -e 's/^[ ]*\([^ ][^ ]*\)[ ][ ]*\(.*[^ ]\)[ ]*$/#ifdef SIG\1\
- { QwErTy SIG\1 , "\1", "\2" },\
- #endif/') > $in
- $CPP $in > $out
--sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort +2n +0n |
-+sed -n 's/{ QwErTy/{/p' < $out | awk '{print NR, $0}' | sort -g --key=3 |
- sed 's/^[0-9]* //' |
- awk 'BEGIN { last=0; nsigs=0; }
- {
diff --git a/extra/pdksh/pdksh.install b/extra/pdksh/pdksh.install
deleted file mode 100644
index 17463a17e..000000000
--- a/extra/pdksh/pdksh.install
+++ /dev/null
@@ -1,22 +0,0 @@
-post_install() {
- if [ ! "$(grep /bin/ksh etc/shells)" ]; then
- echo "updating /etc/shells... done."
- sed -i "s|/bin/bash|/bin/bash\n/bin/ksh|" etc/shells
- else
- sed -i "s|/usr/bin/ksh|/bin/ksh|" etc/shells
-
- echo ""
- echo ">> WARNING: /usr/bin/ksh has moved to /bin/ksh,"
- echo ">> please update your user accounts as needed"
- echo ""
- fi
-}
-
-post_upgrade() {
- post_install $1
-}
-
-pre_remove() {
- echo -ne "\nupdating /etc/shells... "
- sed -i "s|/bin/ksh||" etc/shells
-}
diff --git a/extra/pdksh/usr_ksh.sh b/extra/pdksh/usr_ksh.sh
deleted file mode 100644
index 17a96d1bf..000000000
--- a/extra/pdksh/usr_ksh.sh
+++ /dev/null
@@ -1,9 +0,0 @@
-#!/bin/sh
-
-echo "WARNING: you should be calling ksh with /bin/ksh,"
-echo "not with /usr/bin/ksh. Please execute chsh to fix"
-echo "this. Legacy /usr/bin/ksh support will go away!"
-echo ""
-
-exec /bin/ksh $@
-