summaryrefslogtreecommitdiff
path: root/shells/44bsd-csh/Makefile
blob: cd9ae71ccc3725c4355758b2ee3d0589a51cf909 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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=	ports@FreeBSD.org

PORTCOMMENT=	The traditional 4.4BSD /bin/csh C-shell

USE_BZIP2=	yes

NO_WRKSUBDIR=	yes
MAN1=		44bsd-csh.1

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} "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>