Bring back this port.

This commit is contained in:
Cy Schubert 2011-06-28 19:09:14 +00:00
parent 6a4cae5c4d
commit 061748f3fd
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=276600
5 changed files with 103 additions and 0 deletions

46
shells/44bsd-csh/Makefile Normal file
View file

@ -0,0 +1,46 @@
# ex:ts=8
# Ports collection makefile for: csh
# Date created: 23 January 2000
# Whom: David O'Brien <obrien@NUXI.com>
#
# $FreeBSD$
#
PORTNAME= 44bsd-csh
PORTVERSION= 20001106
CATEGORIES= shells
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= cy
MAINTAINER= cy@FreeBSD.org
COMMENT= The traditional 4.4BSD /bin/csh C-shell
USE_BZIP2= yes
NO_WRKSUBDIR= yes
MAN1= 44bsd-csh.1
PORTDOCS= paper.ascii.gz
post-extract:
cd ${WRKSRC} ; co RCS/*,v
cd ${WRKSRC}/USD.doc ; co RCS/*,v
post-build:
cd ${WRKSRC}/USD.doc ; ${MAKE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/csh ${PREFIX}/bin/44bsd-csh
${INSTALL_MAN} ${WRKSRC}/csh.1 ${PREFIX}/man/man1/44bsd-csh.1
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/USD.doc/paper.ascii.gz ${DOCSDIR}
.endif
@${ECHO_MSG} "Updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/44bsd-csh /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/44bsd-csh) > /etc/shells
@${RM} /etc/shells.bak
tarup:
cd ${WRKSRC} ; rm * USD.doc/*
cd ${WRKSRC} ; ${TAR} cvyf /tmp/${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}
.include <bsd.port.mk>

View file

@ -0,0 +1,2 @@
SHA256 (44bsd-csh-20001106.tar.bz2) = 8dafbb6862ab39ac4530106e2a61a5691a8fa7563e8e8564194265bec1d55ff1
SIZE (44bsd-csh-20001106.tar.bz2) = 160312

View file

@ -0,0 +1,50 @@
$FreeBSD$
--- proc.c Tue Jun 4 20:07:29 2002
+++ proc.c Tue Jun 4 20:14:09 2002
@@ -89,13 +89,13 @@
int pid;
extern int insource;
int save_errno = errno;
- union wait w;
+ int w;
int jobflags;
struct rusage ru;
loop:
errno = 0; /* reset, just in case */
- pid = wait3(&w.w_status,
+ pid = wait3(&w,
(setintr && (intty || insource) ? WNOHANG | WUNTRACED : WNOHANG), &ru);
if (pid <= 0) {
@@ -117,7 +117,7 @@
pp->p_flags &= ~(PRUNNING | PSTOPPED | PREPORTED);
if (WIFSTOPPED(w)) {
pp->p_flags |= PSTOPPED;
- pp->p_reason = w.w_stopsig;
+ pp->p_reason = WSTOPSIG(w);
}
else {
if (pp->p_flags & (PTIME | PPTIME) || adrof(STRtime))
@@ -125,16 +125,16 @@
pp->p_rusage = ru;
if (WIFSIGNALED(w)) {
- if (w.w_termsig == SIGINT)
+ if (WTERMSIG(w) == SIGINT)
pp->p_flags |= PINTERRUPTED;
else
pp->p_flags |= PSIGNALED;
- if (w.w_coredump)
+ if (WCOREDUMP(w))
pp->p_flags |= PDUMPED;
- pp->p_reason = w.w_termsig;
+ pp->p_reason = WTERMSIG(w);
}
else {
- pp->p_reason = w.w_retcode;
+ pp->p_reason = WEXITSTATUS(w);
if (pp->p_reason != 0)
pp->p_flags |= PAEXITED;
else

View file

@ -0,0 +1,2 @@
This is the traditional 4.4BSD /bin/csh C-shell, with additional
FreeBSD fixes and updates since 4.4BSD Lite was released.

View file

@ -0,0 +1,3 @@
bin/44bsd-csh
@exec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak; echo %D/%F) >/etc/shells
@unexec echo "updating /etc/shells"; cp /etc/shells /etc/shells.bak; (grep -v %D/%F /etc/shells.bak) >/etc/shells