blob: 74aa1647a7f966c93b6176bd843a9d8037fda919 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
|
# New ports collection makefile for: v7sh
# Date created: 4 June 2004
# Whom: Cyrille.Lefevre@laposte.net
#
# $FreeBSD$
#
PORTNAME= v7sh
PORTVERSION= 1.0
CATEGORIES= shells
MASTER_SITES= ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V7/usr/src/cmd/sh/:s \
http://minnie.tuhs.org/UnixTree/V7/usr/src/cmd/sh/:s \
ftp://minnie.tuhs.org/UnixArchive/PDP-11/Trees/V7/usr/man/man1/:m \
http://minnie.tuhs.org/UnixTree/V7/usr/man/man1/:m
DISTFILES= args.c:s blok.c:s brkincr.h:s builtin.c:s cmd.c:s \
ctype.c:s ctype.h:s defs.h:s error.c:s expand.c:s \
fault.c:s io.c:s mac.h:s macro.c:s main.c:s mode.h:s \
msg.c:s name.c:s name.h:s print.c:s service.c:s \
setbrk.c:s stak.c:s stak.h:s string.c:s sym.h:s \
timeout.h:s word.c:s xec.c:s sh.1:m
DIST_SUBDIR= ${PORTNAME}
MAINTAINER= Cyrille.Lefevre@laposte.net
COMMENT= An implementation of the UNIX 7th Edition shell
EXTRACT_CMD= ${CP}
EXTRACT_BEFORE_ARGS=
EXTRACT_AFTER_ARGS= ${WRKDIR}
NO_WRKSUBDIR= yes
MAN1= ${PORTNAME}.1
OPTIONS= V7SH_SYSIII "System III enhancements" on \
V7SH_RENO "4.3BSD-Reno enhancements" on \
V7SH_ULTRIX "Ultrix 3.1 enhancements" on
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_V7SH_SYSIII)
CFLAGS+= -DSYSIII
.endif
.if !defined(WITHOUT_V7SH_RENO)
CFLAGS+= -DRENO
.endif
.if !defined(WITHOUT_V7SH_ULTRIX)
CFLAGS+= -DULTRIX
.endif
post-extract:
@${MV} ${WRKSRC}/sh.1 ${WRKSRC}/${PORTNAME}.1
@${CP} ${FILESDIR}/Makefile ${WRKSRC}
@${CP} ${FILESDIR}/test.c ${WRKSRC} # sysIII
@${CP} ${FILESDIR}/pathnames.h ${WRKSRC} # 43reno
.if ${OSVERSION} < 500005
@${CP} ${FILESDIR}/ulimit.[ch] ${WRKSRC} # fbsd52
.endif
post-install:
@${ECHO_MSG} "updating /etc/shells"
@${CP} /etc/shells /etc/shells.bak
@(${GREP} -v ${PREFIX}/bin/${PORTNAME} /etc/shells.bak; \
${ECHO_CMD} ${PREFIX}/bin/${PORTNAME}) > /etc/shells
@${RM} /etc/shells.bak
.include <bsd.port.post.mk>
|