blob: 85305983e1f032cce7d2df67120378d5832aaa4f (
plain)
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
66
|
# $NetBSD: Makefile,v 1.15 1998/11/13 12:31:15 agc Exp $
#
DISTNAME= tcsh-6.08
PKGNAME= tcsh-6.08.00
CATEGORIES= shells
MASTER_SITES= ftp://ftp.astron.com/pub/tcsh/ \
ftp://ftp.gw.com/pub/unix/tcsh/ \
ftp://ftp.funet.fi/pub/unix/shells/tcsh/
MAINTAINER= kim@tac.nyc.ny.us
WRKSRC= ${WRKDIR}/tcsh-6.08.00
GNU_CONFIGURE= yes
ALL_TARGET= all catalogs
INSTALL_TARGET= install install.man
NLSDIR= share/nls
PLIST_SRC= ${WRKDIR}/PLIST-src
post-install:
@${ECHO} "Installing message catalogues"
@${INSTALL_DATA} ${WRKSRC}/tcsh.C.cat ${PREFIX}/${NLSDIR}/C/tcsh.cat
@${CP} ${PKGDIR}/PLIST ${PLIST_SRC}
@${ECHO} ${NLSDIR}/C/tcsh.cat >> ${PLIST_SRC}
@for i in \
french:ISO_8859-1:fr:BE:CA:CH:FR \
german:ISO_8859-1:de:AT:CH:DE \
greek:ISO_8859-7:el:GR \
italian:ISO_8859-1:it:CH:IT \
ja:EUC:ja:JP \
spanish:ISO_8859-1:es:ES \
; \
do \
OIFS="${IFS}"; \
IFS=":${IFS}"; \
set -- $$i; \
IFS="${OIFS}"; \
l=$$1; shift; \
s=$$1; shift; \
c=$$1; shift; \
o=; \
for j; \
do \
d=${NLSDIR}/$${c}_$${j}.$${s}; \
if [ -z "$$o" ]; \
then \
o="$$d"; \
${INSTALL_DATA} ${WRKSRC}/tcsh.$${l}.cat \
${PREFIX}/$${d}/tcsh.cat; \
else \
${LN} -f ${PREFIX}/$${o}/tcsh.cat \
${PREFIX}/$${d}; \
fi; \
${ECHO} $${d}/tcsh.cat >> ${PLIST_SRC}; \
done; \
done
@${ECHO} "updating /etc/shells"; \
${CP} /etc/shells /etc/shells.bak; \
( \
${GREP} -v ${PREFIX}/bin/tcsh /etc/shells.bak; \
${ECHO} ${PREFIX}/bin/tcsh \
) >/etc/shells
.include "../../mk/bsd.pkg.mk"
|