blob: de9d4777de83ae592a5a5258c028988fb796e1ea (
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
67
68
69
70
71
|
# $NetBSD: Makefile,v 1.6 1999/04/23 12:33:20 kleink Exp $
#
# Every effort has been made to keep the communicator and navigator
# Makefiles as similar as possible.
BINNAME= communicator
#
.if (${MACHINE_ARCH} == "i386")
UNAME= x86-bsdi-bsd2
UNAME_SHORT= bsdi21
.elif (${MACHINE_ARCH} == "sparc")
.if !exists(/emul/sunos/usr/lib/ld.so)
IGNORE=You must have SunOS libraries installed - see compat_sunos(8)
.endif
UNAME= sparc-sun-sunos4.1.3_U1
UNAME_SHORT= sunos413
.endif
#
DISTNAME= ${BINNAME}-v451-export.${UNAME}
PKGNAME= ${BINNAME}-4.51
CATEGORIES= www
SUB= english/unix/unsupported/${UNAME_SHORT}/complete_install
MASTER_SITES= ftp://ftp.netscape.org/pub/communicator/4.51/${SUB}/ \
ftp://sunsite.utk.edu/pub/netscape/communicator/4.51/${SUB}/ \
ftp://ftp-uk.netscape.com/pub/communicator/4.51/${SUB}/ \
ftp.informatik.rwth-aachen.de:/pub/mirror/ftp.netscape.com/pub/communicator/4.51/${SUB}/
ONLY_FOR_ARCHS= i386 sparc
MAINTAINER= packages@netbsd.org
HOMEPAGE= http://home.netscape.com/browsers/index.html
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${BINNAME}-v451.${UNAME}
MOZILLA_HOME= ${PREFIX}/lib/netscape/${PKGNAME}
PLIST_SRC= ${WRKDIR}/.PLIST_SRC
do-install:
${CAT} ${PKGDIR}/PLIST.pre >${PLIST_SRC}
${MKDIR} ${MOZILLA_HOME}/java/classes
${INSTALL_SCRIPT} ${WRKSRC}/vreg ${MOZILLA_HOME}
.for file in ifc11.jar iiop10.jar jae40.jar java40.jar jio40.jar jsd10.jar \
ldap10.jar resource.jar scd10.jar
${INSTALL_DATA} ${WRKSRC}/${file} ${MOZILLA_HOME}/java/classes
.endfor
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/nethelp-v451.nif
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/netscape-v451.nif
cd ${MOZILLA_HOME} ; tar xpzf ${WRKSRC}/spellchk-v451.nif
${SED} -e 's#@@MOZILLA_HOME@@#${MOZILLA_HOME}#g' \
<${FILESDIR}/${BINNAME}.sh >${WRKDIR}/${BINNAME}.sh
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}.sh ${PREFIX}/bin/${PKGNAME}
${LN} -sf ${PKGNAME} ${PREFIX}/bin/netscape
.if (${MACHINE_ARCH} == "sparc")
# Bizarre magic to handle the NIS and DNS versions. Make DNS default.
@${SED} -e 's#MOZILLA_HOME/netscape#MOZILLA_HOME/netscape_nis#g' \
<${WRKDIR}/${BINNAME}.sh >${WRKDIR}/${BINNAME}_nis.sh
${INSTALL_SCRIPT} ${WRKDIR}/${BINNAME}_nis.sh \
${PREFIX}/bin/${PKGNAME}_nis
${LN} -sf ${PKGNAME}_nis ${PREFIX}/bin/netscape_nis
${MV} ${MOZILLA_HOME}/netscape ${MOZILLA_HOME}/netscape_nis
${MV} ${MOZILLA_HOME}/netscape_dns ${MOZILLA_HOME}/netscape
${CAT} ${PKGDIR}/PLIST.sparc >>${PLIST_SRC}
.endif
${CHOWN} -R 0:0 ${MOZILLA_HOME}
${CHMOD} -R go-w ${MOZILLA_HOME}
${CAT} ${PKGDIR}/PLIST.post >>${PLIST_SRC}
.include "../../mk/bsd.pkg.mk"
|