diff options
author | Raúl Porcel <armin76@gentoo.org> | 2008-02-04 21:33:05 +0000 |
---|---|---|
committer | Raúl Porcel <armin76@gentoo.org> | 2008-02-04 21:33:05 +0000 |
commit | fa96d3d83d3e565123b13dbcbe8b28a6ce781ff3 (patch) | |
tree | 5dc711fb8166d0edaa0bbd035f5db887c9185213 /app-shells | |
parent | Masked >=kde-base/pykde-3.5.6. (diff) | |
download | gentoo-2-fa96d3d83d3e565123b13dbcbe8b28a6ce781ff3.tar.gz gentoo-2-fa96d3d83d3e565123b13dbcbe8b28a6ce781ff3.tar.bz2 gentoo-2-fa96d3d83d3e565123b13dbcbe8b28a6ce781ff3.zip |
Remove, bug #208672
Diffstat (limited to 'app-shells')
-rw-r--r-- | app-shells/csh/ChangeLog | 122 | ||||
-rw-r--r-- | app-shells/csh/Manifest | 11 | ||||
-rw-r--r-- | app-shells/csh/csh-1.29-r2.ebuild | 149 | ||||
-rw-r--r-- | app-shells/csh/csh-1.29-r3.ebuild | 149 | ||||
-rw-r--r-- | app-shells/csh/csh-1.29-r4.ebuild | 139 | ||||
-rw-r--r-- | app-shells/csh/files/dot.cshrc | 42 | ||||
-rw-r--r-- | app-shells/csh/files/dot.login | 12 | ||||
-rw-r--r-- | app-shells/csh/files/linux-vs-bsd.diff | 274 | ||||
-rw-r--r-- | app-shells/csh/files/mksignames.c | 422 | ||||
-rw-r--r-- | app-shells/csh/files/retype-input.diff | 89 | ||||
-rw-r--r-- | app-shells/csh/metadata.xml | 19 |
11 files changed, 0 insertions, 1428 deletions
diff --git a/app-shells/csh/ChangeLog b/app-shells/csh/ChangeLog deleted file mode 100644 index 7bb628eda7d6..000000000000 --- a/app-shells/csh/ChangeLog +++ /dev/null @@ -1,122 +0,0 @@ -# ChangeLog for app-shells/csh -# Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/csh/ChangeLog,v 1.31 2007/12/25 15:44:25 phreak Exp $ - - 25 Dec 2007; Christian Heim <phreak@gentoo.org> metadata.xml: - Removing taviso from metadata.xml as per #202471. Assigning to - maintainer-needed. - - 24 Jan 2007; Marius Mauch <genone@gentoo.org> csh-1.29-r2.ebuild, - csh-1.29-r3.ebuild, csh-1.29-r4.ebuild: - Replacing einfo with elog - -*csh-1.29-r4 (02 Nov 2005) - - 02 Nov 2005; Tavis Ormandy <taviso@gentoo.org> +csh-1.29-r4.ebuild: - dont install init files so that tcsh block can be removed. - - 02 May 2005; Stephen Bennett <spb@gentoo.org> csh-1.29-r3.ebuild: - Fixed build when LIBC is set. #91179. - - 01 May 2005; Michael Hanselmann <hansmi@gentoo.org> csh-1.29-r3.ebuild: - Stable on ppc. - - 21 Apr 2005; Simon Stelling <blubb@gentoo.org> csh-1.29-r3.ebuild: - stable on amd64 - - 02 Apr 2005; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r3.ebuild: - marking ~ppc on request. - - 12 Jan 2005; Gustavo Zacarias <gustavoz@gentoo.org> csh-1.29-r3.ebuild: - Stable on sparc - - 30 Oct 2004; Jason Wever <weeve@gentoo.org> csh-1.29-r3.ebuild: - Added ~sparc keyword. - - 28 Jun 2004; Aron Griffis <agriffis@gentoo.org> csh-1.29-r2.ebuild, - csh-1.29-r3.ebuild: - glibc -> libc, add sed-4 dep - - 15 May 2004; Danny van Dyk <kugelfang@gentoo.org> csh-1.29-r3.ebuild: - Marked ~amd64. - - 09 Mar 2004; <agriffis@gentoo.org> csh-1.29-r3.ebuild: - stable on alpha and ia64 - - 27 Feb 2004; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r3.ebuild: - stable - -*csh-1.29-r3 (09 Jan 2004) - - 09 Jan 2004; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r3.ebuild: - splite points out in #37608 that csh traditionally does not use the SIG prefix. - - 29 Dec 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild: - typo #36642 - - 15 Dec 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild: - change to mirror:// syntax. - - 02 Dec 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild: - no need to append-flags one at a time, minor syntax change. - - 17 Nov 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild: - "William Joy" => "Bill Joy", I think most people would recognise the - latter :) - block tcsh. - - 17 Sep 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r1.ebuild, - csh-1.29.ebuild: - cleaning up - - 05 Sep 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild: - stable on x86 and alpha. - made compliant with repoman's new whitespace syntax detection. - -*csh-1.29-r2 (31 Jul 2003) - - 31 Jul 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r2.ebuild, - files/retype-input.diff: - splite <splite-gentoo@sigint.cs.purdue.edu> contributes a patch to - fix printing of exisiting buffer after displaying completion options. - # 24290 - - re-organizing ebuild and seperating patching into src_unpack() - - 16 Jun 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r1.ebuild: - no outstanding bugs, several users have requested by email that this - be marked stable, so marking stable on x86 and alpha. - - 13 Jun 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r1.ebuild, - files/dot.cshrc, files/dot.login: - include the example login scripts in ${FILESDIR}. - - modified the scripts to turn on some nice things, like set emacs, and - aliased ls to ls --color. - - 12 Jun 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r1.ebuild: - put some empty csh login scripts in /etc, provide some skel files with docs. - -*csh-1.29-r1 (12 Jun 2003) - - 12 Jun 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29-r1.ebuild: - no longer uses cvs.eclass to fetch sources (#22678). - - no longer dual license, generate list of signal names from `kill -l` output. - - informational messages tweak. - - produced binary will have better `kill` builtin (no more SIGJUNK fillers), - so version bump. - - 04 Jun 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29.ebuild: - inherit eclasses _after_ my own dependencies, or they get clobbered. - fixes #22189, thanks to Bruce Chiarelli. - - 29 May 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29.ebuild: - doc use flag. - -*csh-1.29 (28 May 2003) - - 28 May 2003; Tavis Ormandy <taviso@gentoo.org> csh-1.29.ebuild: - Initial import, the classic C Shell from NetBSD, tricky to write ebuild for. diff --git a/app-shells/csh/Manifest b/app-shells/csh/Manifest deleted file mode 100644 index b50771bd596b..000000000000 --- a/app-shells/csh/Manifest +++ /dev/null @@ -1,11 +0,0 @@ -AUX dot.cshrc 1549 RMD160 f176c0fdc2e65a0a6654065748199144a1da227d SHA1 da3caca3b2ca831fbad51ff97ed30af2758eb45d SHA256 401eb37aeee0d03ea6ae15d2a4a65edb772ab897e6a11de51a77f43eff0776cf -AUX dot.login 224 RMD160 feb0806bf5280a738144cdc3389a0670775ec1b5 SHA1 3fe468b889ff5fc055c12c4418a92b24c4bc4764 SHA256 b5d2d0c07a5c892146cd581dd996d3ff63acf317c184329f5e36993ccd334f44 -AUX linux-vs-bsd.diff 7483 RMD160 33800ea917d7befc1eebc325f92747c45da6c687 SHA1 cc4820c169b08c1234b4d0659cd53165be8251a0 SHA256 e5e258c6cdcd850950bdf53382737015a24a3d86c4ea7d927390067b41bed678 -AUX mksignames.c 10722 RMD160 4092ac392cf545ebffca4032f5f31294090c9482 SHA1 496f4c32134fe253009a0d81476073be6e948925 SHA256 d1f1388a134219f89339a8b00c7526cc84a776fa0de951d266e26d5020bfe490 -AUX retype-input.diff 2352 RMD160 a8ec0f6b48cd61c14fcde388766395b732e347bd SHA1 498f00b00f8633209b6e641eab32689b8d9d250d SHA256 c0dbef4b2197c05b85c2abe8861513c89fe9d66c30bd4db5238c8c19b2b87cb7 -DIST csh-1.29.tar.gz 179592 RMD160 a832738085e438afe4854f62d425987b6b9dc143 SHA1 e9c5d10ac6f73cb9e914ebca1580aa2522d79114 SHA256 bfc547171c143bd198fd96de7d1f3760fe2b1e5c260b70db1209c35720fb2268 -EBUILD csh-1.29-r2.ebuild 4233 RMD160 a62113cdbed625c8b2840206b1cf0a5e1f3ae0e4 SHA1 60dbe6997fd6dcf25d179128c74e6e552f5f3f5e SHA256 f38428d713055ca0d734cd22d8cf57a1c4a1f9ee4db3242d7dea595ff34df6d1 -EBUILD csh-1.29-r3.ebuild 4287 RMD160 613e9216652086f984048c659f89bffc765a737f SHA1 fca2392c40dba3d01b86b00a99cd02edc57f2695 SHA256 79732baa3c9379e7acc954e0d4948975d399fa1296235f6dd8aaa9180399c194 -EBUILD csh-1.29-r4.ebuild 3889 RMD160 7b8288b9af8999990dbc7b1c597abe54ddfc469d SHA1 d875913b840146b27f1d21b5074faaae3e821810 SHA256 08661555f52221ec5f87cf6c9a341ce03e9d308928776d8b87dac0b5635b8235 -MISC ChangeLog 4283 RMD160 ad8ae9a0f705d5c136f7c5e0011ae0f776ff93a4 SHA1 15136261441501862bf74d4c191d1c0583589fbb SHA256 d8de1959b1ade251a95d40a8ee2c61ffbd6d8a69a8b91fef9ffd55bf8eeacb06 -MISC metadata.xml 714 RMD160 7a903dabb345ce6056e1bc90300024f80b816304 SHA1 3a110d390770e112131c7a8d81cc94da378665c3 SHA256 5f7eb8aa95c3e7e8da5cd2e38c4ce0865ad41352230aba6c1673fbc71df0ac04 diff --git a/app-shells/csh/csh-1.29-r2.ebuild b/app-shells/csh/csh-1.29-r2.ebuild deleted file mode 100644 index 66a1d32ea88f..000000000000 --- a/app-shells/csh/csh-1.29-r2.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/csh/csh-1.29-r2.ebuild,v 1.14 2007/06/26 01:42:39 mr_bones_ Exp $ - -inherit flag-o-matic eutils ccc - -DESCRIPTION="Classic UNIX shell with C like syntax" -HOMEPAGE="http://www.netbsd.org/" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="x86 alpha ia64" -IUSE="static doc" - -DEPEND="sys-devel/pmake !app-shells/tcsh - >=sys-apps/sed-4" -RDEPEND="virtual/libc" - -S=${WORKDIR}/src/bin/csh - -src_unpack() { - # unpack the source tarball - unpack ${A} - - # hide some BSDisms, mostly my work, got some hints from the - # debian project (they use an older OpenBSD csh, though). - cd ${S}; epatch ${FILESDIR}/linux-vs-bsd.diff || die "patching failed." - - # print the existing input after displaying completion options. - # patch contributed by splite <splite-gentoo@sigint.cs.purdue.edu> - # #24290 - epatch ${FILESDIR}/retype-input.diff || die "patching failed." - - # copy some required files over, from NetBSD - - cd ${S}; cp ${WORKDIR}/printf.c \ - ${WORKDIR}/vis.h \ - ${WORKDIR}/vis.c \ - ${FILESDIR}/dot.login \ - ${FILESDIR}/dot.cshrc \ - ${S} - - # this parses the output of the bash builtin `kill` - # and creates an array of signal names for csh. - - einfo "Making a list of signal names..." - - local cnt=0 - - printf "/* automatically generated during %s build */\n\n" ${PF} > ${S}/signames.h - printf "const char *const sys_signame[NSIG + 3] = {\n" >> ${S}/signames.h - printf "\t\"EXIT\",\t\n" >> ${S}/signames.h - - let cnt++ - - for i in `kill -l` - do - let $((cnt++))%2 && continue - einfo " Adding ${i}..." - printf "\t\"%s\",\n" ${i} >> ${S}/signames.h - done - - printf "\t\"DEBUG\",\n\t\"ERR\",\n\t(char *)0x0\n};\n\n" >> ${S}/signames.h - - einfo "Making some final tweaks..." - sed -i 's#sys/tty.h#linux/tty.h#g' ${S}/file.c - sed -i 's!\(#include "proc.h"\)!\1\n#include "signames.h"\n!g' ${S}/proc.c - sed -i 's#\(strpct.c time.c\)#\1 vis.c#g' ${S}/Makefile - sed -i 's!#include "namespace.h"!!g' ${S}/vis.c - sed -i 's#/usr/games/fortune#/usr/bin/fortune#g' ${S}/dot.login - -} - -src_compile() { - - einfo "Adding flags required for succesful compilation..." - - # this should be easier than maintaining a patch. - append-flags -Dlint -w -D__dead="" -D__LIBC12_SOURCE__ -DNODEV="-1" - append-flags -DTTYHOG=1024 -DMAXPATHLEN=4096 -D_GNU_SOURCE - append-flags -D_DIAGASSERT="assert" - - # maybe they dont warn on BSD, but _damn_. - export NOGCCERROR=1 - - # if csh is a users preferred shell, they may want - # a static binary to help on the event of fs emergency. - use static && append-ldflags -static - - # pmake is a portage binary as well, so specify full path. - # if yours isnt in /usr/bin, you can set PMAKE_PATH. - einfo "Starting build..." - ${PMAKE_PATH:-/usr/bin/}pmake || die "compile failed." - - echo - size csh - echo - - # make the c shell guide - use doc && { - einfo "Making documentation..." - cd ${S}/USD.doc - ${PMAKE_PATH:-/usr/bin/}pmake - } - cd ${S} - - einfo "Making empty configuration files.." - printf "#\n# System-wide .cshrc file for csh(1).\n\n" > csh.cshrc - printf "#\n# System-wide .login file for csh(1).\n\n" > csh.login - printf "if ( -f /etc/csh.env ) source /etc/csh.env\n" >> csh.login - printf "#\n# System-wide .logout file for csh(1).\n\n" > csh.logout -} - -src_install() { - exeinto /bin - doexe csh - - doman csh.1 - - use doc && dodoc USD.doc/paper.ps - dodoc dot.cshrc dot.login - - insinto /etc - doins csh.cshrc csh.login csh.logout -} - -pkg_postinst() { - elog - if use doc; then - elog "An Introduction to the C shell by Bill Joy, a " - elog "postscript document included with this shell has" - elog "been installed in /usr/share/doc/${PF}, if you are new" - elog "to the C shell, you may find it interesting." - else - elog "You don't have USE=doc, so the" - elog "postscript document \"An Introduction to the C" - elog "shell by Bill Joy\" was not installed." - fi - elog - elog "Example login scripts have been installed in /usr/share/doc/${PF}." - elog "You can install a simple dot.cshrc like this:" - elog - elog " % zcat /usr/share/doc/${PF}/dot.cshrc > ~/.cshrc" - elog " % zcat /usr/share/doc/${PF}/dot.login > ~/.login" - elog - elog "And then edit to your liking." - elog -} diff --git a/app-shells/csh/csh-1.29-r3.ebuild b/app-shells/csh/csh-1.29-r3.ebuild deleted file mode 100644 index 12be6b12e8cf..000000000000 --- a/app-shells/csh/csh-1.29-r3.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/csh/csh-1.29-r3.ebuild,v 1.17 2007/06/26 01:42:39 mr_bones_ Exp $ - -inherit flag-o-matic eutils ccc - -DESCRIPTION="Classic UNIX shell with C like syntax" -HOMEPAGE="http://www.netbsd.org/" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="x86 alpha arm amd64 ia64 sparc ppc" -IUSE="static doc" - -DEPEND="sys-devel/pmake !app-shells/tcsh - >=sys-apps/sed-4" -RDEPEND="virtual/libc" - -S=${WORKDIR}/src/bin/csh - -src_unpack() { - # unpack the source tarball - unpack ${A} - - # hide some BSDisms, mostly my work, got some hints from the - # debian project (they use an older OpenBSD csh, though). - cd ${S}; epatch ${FILESDIR}/linux-vs-bsd.diff || die "patching failed." - - # print the existing input after displaying completion options. - # patch contributed by splite <splite-gentoo@sigint.cs.purdue.edu> - # #24290 - epatch ${FILESDIR}/retype-input.diff || die "patching failed." - - # copy some required files over, from NetBSD - - cd ${S}; cp ${WORKDIR}/printf.c \ - ${WORKDIR}/vis.h \ - ${WORKDIR}/vis.c \ - ${FILESDIR}/dot.login \ - ${FILESDIR}/dot.cshrc \ - ${S} - - # this parses the output of the bash builtin `kill` - # and creates an array of signal names for csh. - - einfo "Making a list of signal names..." - - local cnt=0 - - printf "/* automatically generated during %s build */\n\n" ${PF} > ${S}/signames.h - printf "const char *const sys_signame[NSIG + 3] = {\n" >> ${S}/signames.h - printf "\t\"EXIT\",\t\n" >> ${S}/signames.h - - let cnt++ - - for i in `kill -l` - do - let $((cnt++))%2 && continue - einfo " Adding ${i:3}..." - printf "\t\"%s\",\n" ${i:3} >> ${S}/signames.h - done - - printf "\t\"DEBUG\",\n\t\"ERR\",\n\t(char *)0x0\n};\n\n" >> ${S}/signames.h - - einfo "Making some final tweaks..." - sed -i 's#sys/tty.h#linux/tty.h#g' ${S}/file.c - sed -i 's!\(#include "proc.h"\)!\1\n#include "signames.h"\n!g' ${S}/proc.c - sed -i 's#\(strpct.c time.c\)#\1 vis.c#g' ${S}/Makefile - sed -i 's!#include "namespace.h"!!g' ${S}/vis.c - sed -i 's#/usr/games/fortune#/usr/bin/fortune#g' ${S}/dot.login - -} - -src_compile() { - - einfo "Adding flags required for succesful compilation..." - - # this should be easier than maintaining a patch. - append-flags -Dlint -w -D__dead="" -D__LIBC12_SOURCE__ -DNODEV="-1" - append-flags -DTTYHOG=1024 -DMAXPATHLEN=4096 -D_GNU_SOURCE - append-flags -D_DIAGASSERT="assert" - - # maybe they dont warn on BSD, but on linux they are very noisy. - export NOGCCERROR=1 - - # if csh is a users preferred shell, they may want - # a static binary to help on the event of fs emergency. - use static && append-ldflags -static - - # pmake is a portage binary as well, so specify full path. - # if yours isnt in /usr/bin, you can set PMAKE_PATH. - einfo "Starting build..." - ${PMAKE_PATH:-/usr/bin/}pmake LIBC='' || die "compile failed." - - echo - size csh - echo - - # make the c shell guide - use doc && { - einfo "Making documentation..." - cd ${S}/USD.doc - ${PMAKE_PATH:-/usr/bin/}pmake - } - cd ${S} - - einfo "Making empty configuration files.." - printf "#\n# System-wide .cshrc file for csh(1).\n\n" > csh.cshrc - printf "#\n# System-wide .login file for csh(1).\n\n" > csh.login - printf "if ( -f /etc/csh.env ) source /etc/csh.env\n" >> csh.login - printf "#\n# System-wide .logout file for csh(1).\n\n" > csh.logout -} - -src_install() { - exeinto /bin - doexe csh - - doman csh.1 - - use doc && dodoc USD.doc/paper.ps - dodoc dot.cshrc dot.login - - insinto /etc - doins csh.cshrc csh.login csh.logout -} - -pkg_postinst() { - elog - if use doc; then - elog "An Introduction to the C shell by Bill Joy, a " - elog "postscript document included with this shell has" - elog "been installed in /usr/share/doc/${PF}, if you are new" - elog "to the C shell, you may find it interesting." - else - elog "You don't have USE=doc, so the" - elog "postscript document \"An Introduction to the C" - elog "shell by Bill Joy\" was not installed." - fi - elog - elog "Example login scripts have been installed in /usr/share/doc/${PF}." - elog "You can install a simple dot.cshrc like this:" - elog - elog " % zcat /usr/share/doc/${PF}/dot.cshrc > ~/.cshrc" - elog " % zcat /usr/share/doc/${PF}/dot.login > ~/.login" - elog - elog "And then edit to your liking." - elog -} diff --git a/app-shells/csh/csh-1.29-r4.ebuild b/app-shells/csh/csh-1.29-r4.ebuild deleted file mode 100644 index b713565fa1d8..000000000000 --- a/app-shells/csh/csh-1.29-r4.ebuild +++ /dev/null @@ -1,139 +0,0 @@ -# Copyright 1999-2007 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-shells/csh/csh-1.29-r4.ebuild,v 1.3 2007/06/26 01:42:39 mr_bones_ Exp $ - -inherit flag-o-matic eutils ccc - -DESCRIPTION="Classic UNIX shell with C like syntax" -HOMEPAGE="http://www.netbsd.org/" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -LICENSE="BSD" -SLOT="0" -KEYWORDS="~x86 ~alpha ~arm ~amd64 ~ia64 ~sparc ~ppc" -IUSE="static doc" - -DEPEND="sys-devel/pmake" -RDEPEND="virtual/libc" - -S=${WORKDIR}/src/bin/csh - -src_unpack() { - # unpack the source tarball - unpack ${A} - - # hide some BSDisms, mostly my work, got some hints from the - # debian project (they use an older OpenBSD csh, though). - cd ${S}; epatch ${FILESDIR}/linux-vs-bsd.diff || die "patching failed." - - # print the existing input after displaying completion options. - # patch contributed by splite <splite-gentoo@sigint.cs.purdue.edu> - # #24290 - epatch ${FILESDIR}/retype-input.diff || die "patching failed." - - # copy some required files over, from NetBSD - - cd ${S}; cp ${WORKDIR}/printf.c \ - ${WORKDIR}/vis.h \ - ${WORKDIR}/vis.c \ - ${FILESDIR}/dot.login \ - ${FILESDIR}/dot.cshrc \ - ${S} - - # this parses the output of the bash builtin `kill` - # and creates an array of signal names for csh. - - einfo "Making a list of signal names..." - - local cnt=0 - - printf "/* automatically generated during %s build */\n\n" ${PF} > ${S}/signames.h - printf "const char *const sys_signame[NSIG + 3] = {\n" >> ${S}/signames.h - printf "\t\"EXIT\",\t\n" >> ${S}/signames.h - - let cnt++ - - for i in `kill -l` - do - let $((cnt++))%2 && continue - einfo " Adding ${i:3}..." - printf "\t\"%s\",\n" ${i:3} >> ${S}/signames.h - done - - printf "\t\"DEBUG\",\n\t\"ERR\",\n\t(char *)0x0\n};\n\n" >> ${S}/signames.h - - einfo "Making some final tweaks..." - sed -i 's#sys/tty.h#linux/tty.h#g' ${S}/file.c - sed -i 's!\(#include "proc.h"\)!\1\n#include "signames.h"\n!g' ${S}/proc.c - sed -i 's#\(strpct.c time.c\)#\1 vis.c#g' ${S}/Makefile - sed -i 's!#include "namespace.h"!!g' ${S}/vis.c - sed -i 's#/usr/games/fortune#/usr/bin/fortune#g' ${S}/dot.login - -} - -src_compile() { - - einfo "Adding flags required for succesful compilation..." - - # this should be easier than maintaining a patch. - append-flags -Dlint -w -D__dead="" -D__LIBC12_SOURCE__ -DNODEV="-1" - append-flags -DTTYHOG=1024 -DMAXPATHLEN=4096 -D_GNU_SOURCE - append-flags -D_DIAGASSERT="assert" - - # maybe they dont warn on BSD, but on linux they are very noisy. - export NOGCCERROR=1 - - # if csh is a users preferred shell, they may want - # a static binary to help on the event of fs emergency. - use static && append-ldflags -static - - # pmake is a portage binary as well, so specify full path. - # if yours isnt in /usr/bin, you can set PMAKE_PATH. - einfo "Starting build..." - ${PMAKE_PATH:-/usr/bin/}pmake LIBC='' || die "compile failed." - - echo - size csh - echo - - # make the c shell guide - use doc && { - einfo "Making documentation..." - cd ${S}/USD.doc - ${PMAKE_PATH:-/usr/bin/}pmake - } - cd ${S} -} - -src_install() { - exeinto /bin - doexe csh - - doman csh.1 - - use doc && dodoc USD.doc/paper.ps - dodoc dot.cshrc dot.login -} - -pkg_postinst() { - elog - if use doc; then - elog "An Introduction to the C shell by Bill Joy, a " - elog "postscript document included with this shell has" - elog "been installed in /usr/share/doc/${PF}, if you are new" - elog "to the C shell, you may find it interesting." - else - elog "You don't have USE=doc, so the" - elog "postscript document \"An Introduction to the C" - elog "shell by Bill Joy\" was not installed." - fi - elog - elog "Example login scripts have been installed in /usr/share/doc/${PF}." - elog "You can install a simple dot.cshrc like this:" - elog - elog " % zcat /usr/share/doc/${PF}/dot.cshrc > ~/.cshrc" - elog " % zcat /usr/share/doc/${PF}/dot.login > ~/.login" - elog - elog "And then edit to your liking." - elog -} diff --git a/app-shells/csh/files/dot.cshrc b/app-shells/csh/files/dot.cshrc deleted file mode 100644 index 6e1245b5c2f0..000000000000 --- a/app-shells/csh/files/dot.cshrc +++ /dev/null @@ -1,42 +0,0 @@ -# Gentoo example csh .cshrc file - -# some simple aliases -alias h history 25 # use `h` to show the last 25 commands -alias j jobs -l # use `j` to list the background/stopped jobs -alias ls ls -F --color=auto # alias `ls` to show nice colours. -alias la ls -a # \ -alias lf ls -FA # > some shortcuts to common ls options -alias ll ls -lA # / - -# you can override environment variables from /etc/csh.env from here -setenv EDITOR vim -setenv VISUAL ${EDITOR} -setenv EXINIT 'set autoindent' -setenv PAGER less - -# make sure there is something sane in $PATH -if ( ! $?PATH ) then - set path = (~/bin /bin /sbin /usr/{bin,sbin,X11R6/bin,pkg/{,s}bin,games} /usr/local/{,s}bin) -endif - -# some options you might want in an interactive shell -if ($?prompt) then - set filec # use <ESC><ESC> to complete on filenames. - set history = 1000 # remember last 1000 commands - set ignoreeof # dont exit if ^D is hit by accident - set mail = (/var/mail/$USER) # where is your user mbox? - set mch = `hostname -s` # display short hostname in prompt. - set unm = `whoami` # your username - - # some example csh prompts, choose one you like. - #set prompt = "% " # csh default, simple. - #set prompt = "${mch:q}: {\!} " # NetBSD example prompt, shows hostname and history reference - set prompt = "${unm:q}@${mch:q}% " # similar to Gentoo default. - - # try this to get pwd in your prompt. - #set prompt = "${unm:q}@${mch:q}:\!:`pwd`% " - #alias cd 'cd \!*;set prompt = "${unm:q}@${mch:q}:\!:`pwd`% "' - - - umask 0022 # set your user's umask. -endif diff --git a/app-shells/csh/files/dot.login b/app-shells/csh/files/dot.login deleted file mode 100644 index 9b3d1ac5ccbe..000000000000 --- a/app-shells/csh/files/dot.login +++ /dev/null @@ -1,12 +0,0 @@ -# Gentoo example csh .login file - -if ( ! $?SHELL ) then - setenv SHELL /bin/csh -endif - -set noglob -eval `tset -s -m 'network:?xterm'` -unset noglob -stty status '^T' crt -tostop - -if ( -x /usr/games/fortune ) /usr/games/fortune diff --git a/app-shells/csh/files/linux-vs-bsd.diff b/app-shells/csh/files/linux-vs-bsd.diff deleted file mode 100644 index ac98999f3e88..000000000000 --- a/app-shells/csh/files/linux-vs-bsd.diff +++ /dev/null @@ -1,274 +0,0 @@ -diff --minimal -ruw csh/csh.c csh/csh.c ---- csh/csh.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/csh.c 2003-05-28 21:31:51.000000000 +0100 -@@ -102,9 +102,9 @@ - - extern char **environ; - --static int readf(void *, char *, int); --static fpos_t seekf(void *, fpos_t, int); --static int writef(void *, const char *, int); -+static ssize_t readf(void *, char *, size_t); -+static int seekf(void *, off_t, int); -+static ssize_t writef(void *, const char *, size_t); - static int closef(void *); - static int srccat(Char *, Char *); - static int srcfile(char *, bool, bool); -@@ -124,6 +124,7 @@ - Char *cp; - char *tcp, **tempv; - const char *ecp; -+ cookie_io_functions_t cookie; - sigset_t sigset; - int f; - -@@ -131,7 +132,7 @@ - cshout = stdout; - csherr = stderr; - -- setprogname(argv[0]); -+ /* setprogname(argv[0]); */ - settimes(); /* Immed. estab. timing base */ - - /* -@@ -215,14 +216,15 @@ - * Fortunately this is not needed under the current implementation - * of stdio. - */ -- (void)fclose(cshin); -- (void)fclose(cshout); -- (void)fclose(csherr); -- if (!(cshin = funopen((void *) &SHIN, readf, writef, seekf, closef))) -+ cookie.read = readf; -+ cookie.write = writef; -+ cookie.seek = seekf; -+ cookie.close = closef; -+ if (!(cshin = fopencookie((void *) &SHIN, "r", cookie))) - exit(1); -- if (!(cshout = funopen((void *) &SHOUT, readf, writef, seekf, closef))) -+ if (!(cshout = fopencookie((void *) &SHOUT, "w", cookie))) - exit(1); -- if (!(csherr = funopen((void *) &SHERR, readf, writef, seekf, closef))) -+ if (!(csherr = fopencookie((void *) &SHERR, "w", cookie))) - exit(1); - (void)setvbuf(cshin, NULL, _IOLBF, 0); - (void)setvbuf(cshout, NULL, _IOLBF, 0); -@@ -1241,21 +1243,21 @@ - */ - #define DESC(a) (*((int *) (a)) - (didfds && *((int *) a) >= FSHIN ? FSHIN : 0)) - --static int --readf(void *oreo, char *buf, int siz) -+static ssize_t -+readf(void *oreo, char *buf, size_t siz) - { - return read(DESC(oreo), buf, siz); - } - - --static int --writef(void *oreo, const char *buf, int siz) -+static ssize_t -+writef(void *oreo, const char *buf, size_t siz) - { - return write(DESC(oreo), buf, siz); - } - --static fpos_t --seekf(void *oreo, fpos_t off, int whence) -+static int -+seekf(void *oreo, off_t off, int whence) - { - return lseek(DESC(oreo), off, whence); - } -diff --minimal -ruw csh/dir.c csh/dir.c ---- csh/dir.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/dir.c 2003-05-28 21:31:51.000000000 +0100 -@@ -854,7 +854,7 @@ - if (p1 && *p1 == '/' && - (Strncmp(p1, cp, cc) != 0 || (cp[cc] != '/' && cp[cc] != '\0'))) { - static ino_t home_ino; -- static dev_t home_dev = NODEV; -+ static dev_t home_dev = -1; - static Char *home_ptr = NULL; - struct stat statbuf; - -diff --minimal -ruw csh/extern.h /tmp/csh/extern.h ---- csh/extern.h 2003-05-28 21:32:36.000000000 +0100 -+++ csh/extern.h 2003-05-28 21:31:51.000000000 +0100 -@@ -39,6 +39,13 @@ - #define _EXTERN_H_ - - #include <sys/cdefs.h> -+#include <stdio_ext.h> -+ -+#define fpurge __fpurge -+ -+size_t strlcpy(char *, const char *, size_t); -+ -+extern const char *const sys_signame[]; - - /* - * csh.c -diff --minimal -ruw csh/func.c csh/func.c ---- csh/func.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/func.c 2003-05-28 21:31:51.000000000 +0100 -@@ -50,6 +50,7 @@ - #include <stdlib.h> - #include <string.h> - #include <unistd.h> -+#include <errno.h> - - #if __STDC__ - # include <stdarg.h> -@@ -63,6 +64,7 @@ - - extern char **environ; - extern int progprintf(int, char **); -+extern int errno; - - static void islogin(void); - static void reexecute(struct command *); -@@ -1428,8 +1430,8 @@ - int ret; - - ret = progprintf(blklen(v), c = short2blk(v)); -- (void)fflush(cshout); -- (void)fflush(csherr); -+ (void)fflush(stdout); -+ (void)fflush(stderr); - - blkfree((Char **) c); - if (ret) -diff --minimal -ruw csh/glob.c csh/glob.c ---- csh/glob.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/glob.c 2003-05-28 21:31:51.000000000 +0100 -@@ -402,7 +402,8 @@ - - do { - ptr = short2qstr(*vl); -- switch (glob(ptr, gflgs, 0, &globv)) { -+ switch (glob(ptr, nonomatch || glob_pattern_p(ptr, 1) -+ ? gflgs : gflgs | GLOB_NOCHECK, 0, &globv)) { - case GLOB_ABORTED: - setname(vis_str(*vl)); - stderror(ERR_NAME | ERR_GLOB); -@@ -410,17 +411,17 @@ - case GLOB_NOSPACE: - stderror(ERR_NOMEM); - /* NOTREACHED */ -+ case GLOB_NOMATCH: -+ magic = 1; -+ break; - default: -+ match |= globv.gl_flags & GLOB_MAGCHAR; - break; - } -- if (globv.gl_flags & GLOB_MAGCHAR) { -- match |= (globv.gl_matchc != 0); -- magic = 1; -- } - gflgs |= GLOB_APPEND; - } - while (*++vl); -- vl = (globv.gl_pathc == 0 || (magic && !match && !nonomatch)) ? -+ vl = (globv.gl_pathc == 0 || (magic && !match)) ? - NULL : blk2short(globv.gl_pathv); - globfree(&globv); - return (vl); -diff --minimal -ruw csh/pathnames.h csh/pathnames.h ---- csh/pathnames.h 2003-05-28 21:32:36.000000000 +0100 -+++ csh/pathnames.h 2003-05-28 21:31:51.000000000 +0100 -@@ -42,7 +42,7 @@ - #define _PATH_DOTCSHRC "/etc/csh.cshrc" - #define _PATH_DOTLOGIN "/etc/csh.login" - #define _PATH_DOTLOGOUT "/etc/csh.logout" --#define _PATH_LOGIN "/usr/bin/login" -+#define _PATH_LOGIN "/bin/login" - #define _PATH_USRBIN "/usr/bin" - - #endif /* !_PATHNAMES_H_ */ -diff --minimal -ruw csh/proc.c csh/proc.c ---- csh/proc.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/proc.c 2003-05-28 21:31:51.000000000 +0100 -@@ -951,13 +951,21 @@ - stderror(ERR_NAME | ERR_BADSIG); - else if (signum == 0) - (void)fputc('0', cshout); /* 0's symbolic name is '0' */ -+ else if (!sys_signame[signum]) -+ (void) fprintf(cshout, "%d", signum); - else - (void)fprintf(cshout, "%s ", sys_signame[signum]); - } else { -- for (signum = 1; signum < NSIG; signum++) { -- (void)fprintf(cshout, "%s ", sys_signame[signum]); -- if (signum == NSIG / 2) -+ int cur = 0, len; -+ for (signum = 1; signum < NSIG; signum++) -+ if (sys_signame[signum]) { -+ len = strlen (sys_signame[signum]) + 1; -+ cur += len; -+ if (cur >= 80 - 1) { - (void)fputc('\n', cshout); -+ cur = len; -+ } -+ (void) fprintf(cshout, "%s ", sys_signame[signum]); - } - } - (void)fputc('\n', cshout); -@@ -979,9 +987,10 @@ - - name = short2str(signame); - for (signum = 1; signum < NSIG; signum++) -- if (!strcasecmp(sys_signame[signum], name) || -- (!strncasecmp("SIG", name, 3) && /* skip "SIG" prefix */ -- !strcasecmp(sys_signame[signum], name + 3))) -+ if (sys_signame[signum] && \ -+ (!strcasecmp(sys_signame[signum], name) || -+ (strlen(name) > 3 && !strncasecmp("SIG", name, 3) && -+ !strcasecmp(sys_signame[signum], name + 3)))) - break; - - if (signum == NSIG) { -diff --minimal -ruw csh/set.c csh/set.c ---- csh/set.c 2003-05-28 21:32:36.000000000 +0100 -+++ csh/set.c 2003-05-28 21:31:51.000000000 +0100 -@@ -633,7 +633,6 @@ - Setenv(STRPATH, exppath); - } - --#ifndef lint - /* - * Lint thinks these have null effect - */ -@@ -650,19 +649,6 @@ - ((p)->v_right = t->v_left) ? (t->v_left->v_parent = (p)) : 0,\ - (t->v_left = (p))->v_parent = t,\ - (p) = t) --#else --struct varent * --rleft(struct varent *p) --{ -- return (p); --} --struct varent * --rright(struct varent *p) --{ -- return (p); --} --#endif /* ! lint */ -- - - /* - * Rebalance a tree, starting at p and up. -@@ -674,10 +660,8 @@ - { - struct varent *pp; - --#ifndef lint - struct varent *t; /* used by the rotate macros */ - --#endif - int ff; - - /* diff --git a/app-shells/csh/files/mksignames.c b/app-shells/csh/files/mksignames.c deleted file mode 100644 index fb6f44360438..000000000000 --- a/app-shells/csh/files/mksignames.c +++ /dev/null @@ -1,422 +0,0 @@ -/* signames.c -- Create and write `signames.h', which contains an array of - signal names. */ - -/* Copyright (C) 1992 Free Software Foundation, Inc. - - This file is part of GNU Bash, the Bourne Again SHell. - - Bash is free software; you can redistribute it and/or modify it under - the terms of the GNU General Public License as published by the Free - Software Foundation; either version 2, or (at your option) any later - version. - - Bash is distributed in the hope that it will be useful, but WITHOUT ANY - WARRANTY; without even the implied warranty of MERCHANTABILITY or - FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - for more details. - - You should have received a copy of the GNU General Public License along - with Bash; see the file COPYING. If not, write to the Free Software - Foundation, 59 Temple Place, Suite 330, Boston, MA 02111 USA. */ - -#include <stdio.h> -#include <sys/types.h> -#include <signal.h> -#include <stdlib.h> - -#if !defined (NSIG) -# define NSIG 64 -#endif - -/* - * Special traps: - * EXIT == 0 - * DEBUG == NSIG - * ERR == NSIG+1 - */ -#define LASTSIG NSIG+1 - -char *signal_names[2 * NSIG + 3]; - -#define signal_names_size (sizeof(signal_names)/sizeof(signal_names[0])) - -char *progname; - -/* AIX 4.3 defines SIGRTMIN and SIGRTMAX as 888 and 999 respectively. - I don't want to allocate so much unused space for the intervening signal - numbers, so we just punt if SIGRTMAX is past the bounds of the - signal_names array (handled in configure). */ -#if defined (SIGRTMAX) && defined (UNUSABLE_RT_SIGNALS) -# undef SIGRTMAX -# undef SIGRTMIN -#endif - -#if defined (SIGRTMAX) || defined (SIGRTMIN) -# define RTLEN 14 -# define RTLIM 256 -#endif - -void -initialize_signames () -{ - register int i; -#if defined (SIGRTMAX) || defined (SIGRTMIN) - int rtmin, rtmax, rtcnt; -#endif - - for (i = 1; i < signal_names_size; i++) - signal_names[i] = (char *)NULL; - - /* `signal' 0 is what we do on exit. */ - signal_names[0] = "EXIT"; - - /* Place signal names which can be aliases for more common signal - names first. This allows (for example) SIGABRT to overwrite SIGLOST. */ - - /* POSIX 1003.1b-1993 real time signals, but take care of incomplete - implementations. Acoording to the standard, both, SIGRTMIN and - SIGRTMAX must be defined, SIGRTMIN must be stricly less than - SIGRTMAX, and the difference must be at least 7, that is, there - must be at least eight distinct real time signals. */ - - /* The generated signal names are SIGRTMIN, SIGRTMIN+1, ..., - SIGRTMIN+x, SIGRTMAX-x, ..., SIGRTMAX-1, SIGRTMAX. If the number - of RT signals is odd, there is an extra SIGRTMIN+(x+1). - These names are the ones used by ksh and /usr/xpg4/bin/sh on SunOS5. */ - -#if defined (SIGRTMIN) - rtmin = SIGRTMIN; - signal_names[rtmin] = "SIGRTMIN"; -#endif - -#if defined (SIGRTMAX) - rtmax = SIGRTMAX; - signal_names[rtmax] = "SIGRTMAX"; -#endif - -#if defined (SIGRTMAX) && defined (SIGRTMIN) - if (rtmax > rtmin) - { - rtcnt = (rtmax - rtmin - 1) / 2; - /* croak if there are too many RT signals */ - if (rtcnt >= RTLIM/2) - { - rtcnt = RTLIM/2-1; - fprintf(stderr, "%s: error: more than %i real time signals, fix `%s'\n", - progname, RTLIM, progname); - } - - for (i = 1; i <= rtcnt; i++) - { - signal_names[rtmin+i] = (char *)malloc(RTLEN); - if (signal_names[rtmin+i]) - sprintf (signal_names[rtmin+i], "SIGRTMIN+%d", i); - signal_names[rtmax-i] = (char *)malloc(RTLEN); - if (signal_names[rtmax-i]) - sprintf (signal_names[rtmax-i], "SIGRTMAX-%d", i); - } - - if (rtcnt < RTLIM/2-1 && rtcnt != (rtmax-rtmin)/2) - { - /* Need an extra RTMIN signal */ - signal_names[rtmin+rtcnt+1] = (char *)malloc(RTLEN); - if (signal_names[rtmin+rtcnt+1]) - sprintf (signal_names[rtmin+rtcnt+1], "SIGRTMIN+%d", rtcnt+1); - } - } -#endif /* SIGRTMIN && SIGRTMAX */ - -/* AIX */ -#if defined (SIGLOST) /* resource lost (eg, record-lock lost) */ - signal_names[SIGLOST] = "SIGLOST"; -#endif - -#if defined (SIGMSG) /* HFT input data pending */ - signal_names[SIGMSG] = "SIGMSG"; -#endif - -#if defined (SIGDANGER) /* system crash imminent */ - signal_names[SIGDANGER] = "SIGDANGER"; -#endif - -#if defined (SIGMIGRATE) /* migrate process to another CPU */ - signal_names[SIGMIGRATE] = "SIGMIGRATE"; -#endif - -#if defined (SIGPRE) /* programming error */ - signal_names[SIGPRE] = "SIGPRE"; -#endif - -#if defined (SIGVIRT) /* AIX virtual time alarm */ - signal_names[SIGVIRT] = "SIGVIRT"; -#endif - -#if defined (SIGALRM1) /* m:n condition variables */ - signal_names[SIGALRM1] = "SIGALRM1"; -#endif - -#if defined (SIGWAITING) /* m:n scheduling */ - signal_names[SIGWAITING] = "SIGWAITING"; -#endif - -#if defined (SIGGRANT) /* HFT monitor mode granted */ - signal_names[SIGGRANT] = "SIGGRANT"; -#endif - -#if defined (SIGKAP) /* keep alive poll from native keyboard */ - signal_names[SIGKAP] = "SIGKAP"; -#endif - -#if defined (SIGRETRACT) /* HFT monitor mode retracted */ - signal_names[SIGRETRACT] = "SIGRETRACT"; -#endif - -#if defined (SIGSOUND) /* HFT sound sequence has completed */ - signal_names[SIGSOUND] = "SIGSOUND"; -#endif - -#if defined (SIGSAK) /* Secure Attention Key */ - signal_names[SIGSAK] = "SIGSAK"; -#endif - -/* SunOS5 */ -#if defined (SIGLWP) /* special signal used by thread library */ - signal_names[SIGLWP] = "SIGLWP"; -#endif - -#if defined (SIGFREEZE) /* special signal used by CPR */ - signal_names[SIGFREEZE] = "SIGFREEZE"; -#endif - -#if defined (SIGTHAW) /* special signal used by CPR */ - signal_names[SIGTHAW] = "SIGTHAW"; -#endif - -#if defined (SIGCANCEL) /* thread cancellation signal used by libthread */ - signal_names[SIGCANCEL] = "SIGCANCEL"; -#endif - -/* HP-UX */ -#if defined (SIGDIL) /* DIL signal (?) */ - signal_names[SIGDIL] = "SIGDIL"; -#endif - -/* System V */ -#if defined (SIGCLD) /* Like SIGCHLD. */ - signal_names[SIGCLD] = "SIGCLD"; -#endif - -#if defined (SIGPWR) /* power state indication */ - signal_names[SIGPWR] = "SIGPWR"; -#endif - -#if defined (SIGPOLL) /* Pollable event (for streams) */ - signal_names[SIGPOLL] = "SIGPOLL"; -#endif - -/* Unknown */ -#if defined (SIGWINDOW) - signal_names[SIGWINDOW] = "SIGWINDOW"; -#endif - -/* Common */ -#if defined (SIGHUP) /* hangup */ - signal_names[SIGHUP] = "SIGHUP"; -#endif - -#if defined (SIGINT) /* interrupt */ - signal_names[SIGINT] = "SIGINT"; -#endif - -#if defined (SIGQUIT) /* quit */ - signal_names[SIGQUIT] = "SIGQUIT"; -#endif - -#if defined (SIGILL) /* illegal instruction (not reset when caught) */ - signal_names[SIGILL] = "SIGILL"; -#endif - -#if defined (SIGTRAP) /* trace trap (not reset when caught) */ - signal_names[SIGTRAP] = "SIGTRAP"; -#endif - -#if defined (SIGIOT) /* IOT instruction */ - signal_names[SIGIOT] = "SIGIOT"; -#endif - -#if defined (SIGABRT) /* Cause current process to dump core. */ - signal_names[SIGABRT] = "SIGABRT"; -#endif - -#if defined (SIGEMT) /* EMT instruction */ - signal_names[SIGEMT] = "SIGEMT"; -#endif - -#if defined (SIGFPE) /* floating point exception */ - signal_names[SIGFPE] = "SIGFPE"; -#endif - -#if defined (SIGKILL) /* kill (cannot be caught or ignored) */ - signal_names[SIGKILL] = "SIGKILL"; -#endif - -#if defined (SIGBUS) /* bus error */ - signal_names[SIGBUS] = "SIGBUS"; -#endif - -#if defined (SIGSEGV) /* segmentation violation */ - signal_names[SIGSEGV] = "SIGSEGV"; -#endif - -#if defined (SIGSYS) /* bad argument to system call */ - signal_names[SIGSYS] = "SIGSYS"; -#endif - -#if defined (SIGPIPE) /* write on a pipe with no one to read it */ - signal_names[SIGPIPE] = "SIGPIPE"; -#endif - -#if defined (SIGALRM) /* alarm clock */ - signal_names[SIGALRM] = "SIGALRM"; -#endif - -#if defined (SIGTERM) /* software termination signal from kill */ - signal_names[SIGTERM] = "SIGTERM"; -#endif - -#if defined (SIGURG) /* urgent condition on IO channel */ - signal_names[SIGURG] = "SIGURG"; -#endif - -#if defined (SIGSTOP) /* sendable stop signal not from tty */ - signal_names[SIGSTOP] = "SIGSTOP"; -#endif - -#if defined (SIGTSTP) /* stop signal from tty */ - signal_names[SIGTSTP] = "SIGTSTP"; -#endif - -#if defined (SIGCONT) /* continue a stopped process */ - signal_names[SIGCONT] = "SIGCONT"; -#endif - -#if defined (SIGCHLD) /* to parent on child stop or exit */ - signal_names[SIGCHLD] = "SIGCHLD"; -#endif - -#if defined (SIGTTIN) /* to readers pgrp upon background tty read */ - signal_names[SIGTTIN] = "SIGTTIN"; -#endif - -#if defined (SIGTTOU) /* like TTIN for output if (tp->t_local<OSTOP) */ - signal_names[SIGTTOU] = "SIGTTOU"; -#endif - -#if defined (SIGIO) /* input/output possible signal */ - signal_names[SIGIO] = "SIGIO"; -#endif - -#if defined (SIGXCPU) /* exceeded CPU time limit */ - signal_names[SIGXCPU] = "SIGXCPU"; -#endif - -#if defined (SIGXFSZ) /* exceeded file size limit */ - signal_names[SIGXFSZ] = "SIGXFSZ"; -#endif - -#if defined (SIGVTALRM) /* virtual time alarm */ - signal_names[SIGVTALRM] = "SIGVTALRM"; -#endif - -#if defined (SIGPROF) /* profiling time alarm */ - signal_names[SIGPROF] = "SIGPROF"; -#endif - -#if defined (SIGWINCH) /* window changed */ - signal_names[SIGWINCH] = "SIGWINCH"; -#endif - -/* 4.4 BSD */ -#if defined (SIGINFO) && !defined (_SEQUENT_) /* information request */ - signal_names[SIGINFO] = "SIGINFO"; -#endif - -#if defined (SIGUSR1) /* user defined signal 1 */ - signal_names[SIGUSR1] = "SIGUSR1"; -#endif - -#if defined (SIGUSR2) /* user defined signal 2 */ - signal_names[SIGUSR2] = "SIGUSR2"; -#endif - -#if defined (SIGKILLTHR) /* BeOS: Kill Thread */ - signal_names[SIGKILLTHR] = "SIGKILLTHR"; -#endif - - for (i = 0; i < NSIG; i++) - if (signal_names[i] == (char *)NULL) - { - signal_names[i] = (char *)malloc (18); - if (signal_names[i]) - sprintf (signal_names[i], "SIGJUNK(%d)", i); - } - - signal_names[NSIG] = "DEBUG"; - signal_names[NSIG+1] = "ERR"; -} - -void -write_signames (stream) - FILE *stream; -{ - register int i; - - fprintf (stream, "/* This file was generated during the csh build by %s.\n", - progname); - fprintf (stream, " Do not edit. Edit ${FILESDIR}/mksignames.c instead. */\n\n"); - fprintf (stream, "const char *const sys_signame[NSIG + 3] = {\n"); - - for (i = 0; i <= LASTSIG; i++) - fprintf (stream, " \"%s\",\n", signal_names[i]); - - fprintf (stream, " (char *)0x0\n"); - fprintf (stream, "};\n"); -} - -int -main (argc, argv) - int argc; - char **argv; -{ - char *stream_name; - FILE *stream; - - progname = argv[0]; - - if (argc == 1) - { - stream_name = "stdout"; - stream = stdout; - } - else if (argc == 2) - { - stream_name = argv[1]; - stream = fopen (stream_name, "w"); - } - else - { - fprintf (stderr, "Usage: %s [output-file]\n", progname); - exit (1); - } - - if (!stream) - { - fprintf (stderr, "%s: %s: cannot open for writing\n", - progname, stream_name); - exit (2); - } - - initialize_signames (); - write_signames (stream); - exit (0); -} diff --git a/app-shells/csh/files/retype-input.diff b/app-shells/csh/files/retype-input.diff deleted file mode 100644 index f063170eb10e..000000000000 --- a/app-shells/csh/files/retype-input.diff +++ /dev/null @@ -1,89 +0,0 @@ ---- file.c.orig 2003-06-12 20:41:07.000000000 +0100 -+++ file.c 2003-07-31 12:07:34.000000000 +0100 -@@ -92,7 +92,7 @@ - - static void setup_tty(int); - static void back_to_col_1(void); --static int pushback(Char *); -+static int pushback(Char *, int); - static void catn(Char *, Char *, int); - static void copyn(Char *, Char *, int); - static Char filetype(Char *, Char *); -@@ -167,7 +167,7 @@ - * Push string contents back into tty queue - */ - static int --pushback(Char *string) -+pushback(Char *string, int doecho) - { - struct termios tty, tty_normal; - char buf[TTYHOG], svchars[TTYHOG]; -@@ -181,13 +181,14 @@ - (void)sigaddset(&sigset, SIGINT); - (void)sigprocmask(SIG_BLOCK, &sigset, &osigset); - (void)tcgetattr(SHOUT, &tty); -- tty_normal = tty; -- tty.c_lflag &= ~(ECHOKE | ECHO | ECHOE | ECHOK | ECHONL | ECHOPRT | ECHOCTL); -- /* FIONREAD works only in noncanonical mode. */ -- tty.c_lflag &= ~ICANON; -- tty.c_cc[VMIN] = 0; -- (void)tcsetattr(SHOUT, TCSADRAIN, &tty); -- -+ if (!doecho) { -+ tty_normal = tty; -+ tty.c_lflag &= ~(ECHOKE | ECHO | ECHOE | ECHOK | ECHONL | ECHOPRT | ECHOCTL); -+ /* FIONREAD works only in noncanonical mode. */ -+ tty.c_lflag &= ~ICANON; -+ tty.c_cc[VMIN] = 0; -+ (void)tcsetattr(SHOUT, TCSADRAIN, &tty); -+ } - for (retrycnt = 5; ; retrycnt--) { - /* - * Push back characters. -@@ -243,7 +244,8 @@ - (void)tcsetattr(SHOUT, TCSADRAIN, &tty); - (void)ioctl(SHOUT, FIONREAD, (ioctl_t) &i); - #endif -- (void)tcsetattr(SHOUT, TCSADRAIN, &tty_normal); -+ if (!doecho) -+ (void)tcsetattr(SHOUT, TCSADRAIN, &tty_normal); - (void)sigprocmask(SIG_SETMASK, &osigset, NULL); - - return nsv; -@@ -380,6 +382,7 @@ - /* - * Cause pending line to be printed - */ -+#if 0 - static void - retype(void) - { -@@ -389,6 +392,7 @@ - tty.c_lflag |= PENDIN; - (void)tcsetattr(SHOUT, TCSADRAIN, &tty); - } -+#endif - - static void - beep(void) -@@ -710,15 +714,20 @@ - } - if (command == LIST) /* Always retype after a LIST */ - should_retype = TRUE; -+#if 0 - if (pushback(inputline)) - should_retype = TRUE; -+#endif - if (should_retype) { - if (command == RECOGNIZE) - (void) fputc('\n', cshout); - printprompt(); - } -+#if 0 - if (should_retype) - retype(); -+#endif -+ pushback(inputline, should_retype); - } - setup_tty(OFF); - return (num_read); diff --git a/app-shells/csh/metadata.xml b/app-shells/csh/metadata.xml deleted file mode 100644 index 20a52fc64506..000000000000 --- a/app-shells/csh/metadata.xml +++ /dev/null @@ -1,19 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> -<pkgmetadata> - <herd>no-herd</herd> - <maintainer> - <email>maintainer-needed@gentoo.org</email> - </maintainer> - <longdescription lang="en"> - The Unix command-line interpreter shell and script language by William - Joy, originating from Berkeley Unix. - - Unix systems up to around Unix Version 7 only had one shell - the Bourne - shell, sh. Csh had better interactive features, notably command input - history, allowing earlier commands to be recalled and edited. - - This version of csh was ported from the current release of NetBSD to - Linux for the Gentoo project. - </longdescription> -</pkgmetadata> |