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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-fs/coda/coda-6.0.3.ebuild,v 1.1 2004/03/23 20:18:49 dragonheart Exp $
IUSE="kerberos"
DESCRIPTION="Coda is an advanced networked filesystem developed at Carnegie Mellon Univ."
HOMEPAGE="http://www.coda.cs.cmu.edu"
SRC_URI="ftp://ftp.coda.cs.cmu.edu/pub/coda/src/${P}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
# partly based on the deps suggested by Mandrake's RPM, and/or on my current versions
# Also, definely needs coda.h from linux-headers.
DEPEND=">=sys-apps/portage-2.0.47-r10
>=sys-libs/lwp-1.10
>=net-libs/rpc2-1.20
>=sys-libs/rvm-1.8
>=sys-libs/db-3
>=sys-libs/ncurses-4
>=sys-libs/readline-3
>=sys-kernel/linux-headers-2.4
>=dev-lang/perl-5.8
kerberos? ( virtual/krb5 )"
# >=sys-apps/sed-4
# net-fs/coda-kernel
RDEPEND=">=sys-libs/lwp-1.10
>=net-libs/rpc2-1.20
>=sys-libs/rvm-1.8
>=sys-libs/db-3
>=sys-libs/ncurses-4
>=sys-libs/readline-3
kerberos? ( virtual/krb5 )"
src_unpack() {
unpack ${A}
epatch ${FILESDIR}/coda-6.0.3-iowr.patch
}
src_compile() {
local myflags=""
use kerberos && myflags="${myflags} --with-crypto"
econf ${myflags} || die "configure failed"
emake -j1 || die "emake failed"
}
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, we need to do "make client-install" for
# the client, and "make server-install" for the server.
#...you can find out about this from ./configs/Makerules
emake \
CINIT-SCRIPTS="" \
prefix=${D}/usr \
sysconfdir=${D}/etc/coda \
mandir=${D}/usr/share/man \
infodir=${D}/usr/share/info \
oldincludedir=${D}/usr/include client-install || die
emake \
SINIT-SCRIPTS="" \
prefix=${D}/usr \
sysconfdir=${D}/etc/coda \
mandir=${D}/usr/share/man \
oldincludedir=${D}/usr/include server-install || die
infodir=${D}/usr/share/info \
dodoc README* ChangeLog CREDITS LICENSE
exeinto /etc/init.d
doexe ${FILESDIR}/venus
doexe ${FILESDIR}/coda-update
doexe ${FILESDIR}/codasrv
doexe ${FILESDIR}/auth2
# We may use a conf.d/coda file at some point ?
# insinto /etc/conf.d
# newins ${FILESDIR}/coda.conf.d coda
# I am not sure why coda misplaces this file...
mv -f ${D}/etc/server.conf.ex ${D}/etc/coda/server.conf.ex
sed -i -e "s,^#vicedir=/.*,vicedir=/var/lib/vice," \
${D}/etc/coda/server.conf.ex
sed -i -e "s,^#mountpoint=/.*,mountpoint=/mnt/coda," \
${D}/etc/coda/venus.conf.ex
dodir /var/lib/vice
dodir /mnt/coda
dodir /usr/coda
dodir /usr/coda/spool
diropts -m0700
dodir /usr/coda/etc
dodir /usr/coda/venus.cache
}
pkg_postinst () {
einfo
einfo "To enable the coda at boot up, please do:"
einfo " rc-update venus default"
einfo
einfo "* To get started, run venus-setup and vice-setup"
einfo
}
|