diff options
author | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 23:29:33 +0000 |
---|---|---|
committer | Igor Pashev <pashev.igor@gmail.com> | 2012-06-24 23:29:33 +0000 |
commit | 7fe076fb1aae6112afa3bd62e5863b8ea07e9e7b (patch) | |
tree | 80932288169a93af0645748c953315044c3db444 | |
parent | d7f8a4b605fb12051b1ee4aa732d490382b6ab9a (diff) | |
download | ksh-7fe076fb1aae6112afa3bd62e5863b8ea07e9e7b.tar.gz |
Ported to Dyson with these point:
1. ksh is the default system shell (used in SMF scripts)
2. /bin is a symlink to /usr/bin
-rw-r--r-- | debian/changelog | 7 | ||||
-rw-r--r-- | debian/control | 5 | ||||
-rw-r--r-- | debian/postinst | 5 | ||||
-rw-r--r-- | debian/postrm | 2 | ||||
-rwxr-xr-x | debian/rules | 5 |
5 files changed, 18 insertions, 6 deletions
diff --git a/debian/changelog b/debian/changelog index fc2cf0e..4e62966 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,10 @@ +ksh (93u+-1+dyson1) unstable; urgency=low + + * Built for Dyson + * ksh is the default shell for illumos and resides as /sbin/ksh93 + + -- Igor Pashev <pashev.igor@gmail.com> Sun, 24 Jun 2012 23:26:46 +0000 + ksh (93u+-1) unstable; urgency=low * Bump to Standards-Version 3.9.3 diff --git a/debian/control b/debian/control index f0468e2..8e036f4 100644 --- a/debian/control +++ b/debian/control @@ -1,6 +1,6 @@ Source: ksh Section: shells -Priority: optional +Priority: required Maintainer: Oliver Kiddle <okiddle@yahoo.co.uk> Homepage: http://www.kornshell.com/ Build-Depends: debhelper (>= 7) @@ -10,6 +10,9 @@ Package: ksh Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Conflicts: pdksh (<< 5.2.14-18) +Replaces: system-shell +Provides: system-shell +Essential: yes Description: Real, AT&T version of the Korn shell Ksh is a UNIX command interpreter (shell) that is intended for both interactive and shell script use. Its command language is a superset of diff --git a/debian/postinst b/debian/postinst index de950ef..9518b0f 100644 --- a/debian/postinst +++ b/debian/postinst @@ -19,11 +19,10 @@ esac #DEBHELPER# -update-alternatives --install /bin/ksh ksh /bin/ksh93 20 \ - --slave /usr/bin/ksh usr.bin.ksh /bin/ksh93 \ +update-alternatives --install /usr/bin/ksh ksh /usr/bin/ksh93 20 \ --slave /usr/share/man/man1/ksh.1.gz ksh.1.gz \ /usr/share/man/man1/ksh93.1.gz -add-shell /bin/ksh93 +add-shell /usr/bin/ksh93 exit 0 diff --git a/debian/postrm b/debian/postrm index 177509a..27de14e 100644 --- a/debian/postrm +++ b/debian/postrm @@ -15,6 +15,6 @@ esac #DEBHELPER# -remove-shell /bin/ksh93 +remove-shell /usr/bin/ksh93 exit 0 diff --git a/debian/rules b/debian/rules index f9e11bd..d91290c 100755 --- a/debian/rules +++ b/debian/rules @@ -45,7 +45,10 @@ install: build dh_testdir dh_testroot dh_installdirs - $(INSTALL_PROGRAM) arch/$(ARCH)/bin/ksh debian/ksh/bin/ksh93 + $(INSTALL_PROGRAM) arch/$(ARCH)/bin/ksh debian/ksh/sbin/ksh93 + dh_link -pksh /sbin/ksh93 /usr/bin/ksh93 + dh_link -pksh /sbin/ksh93 /sbin/ksh + dh_link -pksh /sbin/ksh93 /sbin/sh $(INSTALL_PROGRAM) arch/$(ARCH)/bin/shcomp debian/ksh/usr/bin/shcomp $(INSTALL_FILE) arch/$(ARCH)/man/man1/sh.1 debian/ksh/usr/share/man/man1/ksh93.1 $(INSTALL_FILE) arch/$(ARCH)/fun/* debian/ksh/usr/share/ksh/functions |