# Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # #client and server dont come separately, just install separately P="coda-${PV}" DESCRIPTION="Coda is an advanced networked filesystem developed at Carnegie Mellon Univ." HOMEPAGE="http://www.coda.cs.cmu.edu" LICENSE="GPL-2" SLOT=1 # partly based on the deps suggested by Mandrake's RPM, and/or on my current versions DEPEND="virtual/glibc >=sys-libs/lwp-1.9 >=net-libs/rpc2-1.13 >=sys-libs/rvm-1.6 >=sys-libs/db-2 >=sys-libs/ncurses-4 >=sys-libs/readline-3" RDEPEND=${DEPEND} SRC_URI="ftp://ftp.coda.cs.cmu.edu/pub/coda/src/${P}.tar.gz" S=${WORKDIR}/${P} src_unpack() { unpack ${A} cd ${S} # So that the venus initscript is Gentoo-compliant patch -p1 < ${FILESDIR}/${PF}-gentoo.patch || die "patch failed" } src_compile() { ./configure \ --host=${CHOST} \ --prefix=/usr \ --infodir=/usr/share/info \ --mandir=/usr/share/man || die "./configure failed" emake || die } src_install () { #these crazy makefiles dont seem to use DESTDIR, but they do use these... # (except infodir, but no harm in leaving it there) # see Makeconf.setup in the package # #Also note that for Coda, need to do "make client-install" for client, or # "make server-install" for server. #...you can find out about this from ./configs/Makerules make \ prefix=${D}/usr \ sysconfdir=${D}/etc/coda \ mandir=${D}/usr/share/man \ infodir=${D}/usr/share/info \ oldincludedir=${D}/usr/include client-install || die } pkg_postinst () { rc-update add venus.init default einfo einfo "I have already done:" einfo " rc-update add venus.init default" einfo } pkg_prerm () { /etc/init.d/venus.init stop || /etc/init.d/venus.init hardstop rc-update del venus.init default }