summaryrefslogtreecommitdiff
blob: 4af0eb6fccd9419ccfe48cc24d52568e69c45551 (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
# Copyright 1999-2000 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
# Author Achim Gottinger <achim@gentoo.org>
# $Header: /var/cvsroot/gentoo-x86/net-www/netscape/netscape-4.75.ebuild,v 1.2 2000/09/15 16:18:48 drobbins Exp $

P=netscape-4.75
A=communicator-v475-us.x86-unknown-linux2.2.tar.gz
S=${WORKDIR}/communicator-v475.x86-unknown-linux2.2
DESCRIPTION="Netscape Communicator 4.75"
SRC_URI="ftp://ftp.netscape.com/pub/communicator/english/4.75/unix/supported/linux22/complete_install/"${A}
HOMEPAGE="http://developer.netscape.com/support/index.html"

src_install() {                               
  cd ${S}
  dodir /opt/netscape
  dodir /opt/netscape/java/classes
  dodir /usr/X11R6/bin
  dosym /opt/netscape/netscape /usr/X11R6/bin/netscape
  dodoc README.install
  cd ${D}/opt/netscape
  gzip -dc ${S}/netscape-v475.nif | tar xf -
  gzip -dc ${S}/nethelp-v475.nif | tar xf -
  gzip -dc ${S}/spellchk-v475.nif | tar xf -
  cp ${S}/*.jar ${D}/opt/netscape/java/classes
  cp ${O}/files/netscape ${D}/usr/X11R6/bin/netscape
  rm ${D}/opt/netscape/netscape-dynMotif
  rm ${D}/opt/netscape/libnullplugin-dynMotif.so

}

pkg_postinst() {
  cp ${ROOT}/etc/profile ${ROOT}/etc/profile.pre-${P}	
  grep -v MOZILLA_HOME ${ROOT}/etc/profile.pre-${P} > ${ROOT}/etc/profile
  echo "export MOZILLA_HOME=/opt/netscape" >> ${ROOT}/etc/profile
}