summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2003-08-02 20:49:02 +0000
committerSeemant Kulleen <seemant@gentoo.org>2003-08-02 20:49:02 +0000
commit91b0a7b2c59951eb957fffc3b8ae0d64d7859db7 (patch)
tree30b4dc8908a3636d92995c55108c645f93908209 /net-fs/openafs
parentnew version (diff)
downloadgentoo-2-91b0a7b2c59951eb957fffc3b8ae0d64d7859db7.tar.gz
gentoo-2-91b0a7b2c59951eb957fffc3b8ae0d64d7859db7.tar.bz2
gentoo-2-91b0a7b2c59951eb957fffc3b8ae0d64d7859db7.zip
new version
Diffstat (limited to 'net-fs/openafs')
-rw-r--r--net-fs/openafs/Manifest6
-rw-r--r--net-fs/openafs/openafs-1.2.9.ebuild115
2 files changed, 117 insertions, 4 deletions
diff --git a/net-fs/openafs/Manifest b/net-fs/openafs/Manifest
index 7a25aaf430d1..fe3f1e33484b 100644
--- a/net-fs/openafs/Manifest
+++ b/net-fs/openafs/Manifest
@@ -1,9 +1,7 @@
-MD5 cd4063696ffb8914a44221ddd9be52be openafs-1.3.2-r1.ebuild 2530
-MD5 2eda9e1c48b7b291f7edbf2f8954ba05 openafs-1.2.9.ebuild 2798
+MD5 0be36f37258a74c49b001bbee5ea07e8 openafs-1.2.9.ebuild 2348
MD5 c2267460c9a47d41a4b10951f865ec46 openafs-1.2.8.ebuild 2839
-MD5 361c4583c6db0108c83b296e68316d3c ChangeLog 3287
+MD5 18052613868ffa9187eeb85c040cfef4 ChangeLog 3680
MD5 4584cc6910401787e1ebd81cfa06f060 files/CellServDB 41
-MD5 92b93f8a36f491d81b9f448e5f4cdce8 files/digest-openafs-1.3.2-r1 645
MD5 c620f50b47424c46f59dc847eb8c0dd3 files/README 8735
MD5 fbff454fda7201d68f5acc8f0d3814b3 files/openafs-1.2.5-sunrpc-overflow.patch 1867
MD5 1903c6a5e0aeedf794939945536341cd files/ThisCell 7
diff --git a/net-fs/openafs/openafs-1.2.9.ebuild b/net-fs/openafs/openafs-1.2.9.ebuild
new file mode 100644
index 000000000000..c24f8ab9da4f
--- /dev/null
+++ b/net-fs/openafs/openafs-1.2.9.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-fs/openafs/openafs-1.2.9.ebuild,v 1.1 2003/08/02 20:48:48 seemant Exp $
+
+inherit check-kernel
+
+S=${WORKDIR}/${P}
+DESCRIPTION="The AFS 3 distributed file system targets the issues critical to
+distributed computing environments."
+HOMEPAGE="http://www.openafs.org/"
+SRC_URI="http://openafs.org/dl/openafs/${PV}/${P}-src.tar.bz2"
+
+SLOT="0"
+LICENSE="IPL-1"
+KEYWORDS="-* x86"
+
+SANDBOX_DISABLED="1"
+
+DEPEND="virtual/linux-sources
+ >=sys-apps/sed-4
+ >=sys-apps/portage-2.0.47-r10
+ >=sys-libs/ncurses-5.2
+ >=sys-libs/pam-0.75"
+
+ARCH=i386_linux24
+
+
+pkg_setup() {
+
+ if is_2_5_kernel || is_2_6_kernel
+ then
+ die "This only works with 2.4 kernels"
+ fi
+}
+
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}/src/config
+ sed -i "s|/usr/lib/libncurses.so|-lncurses|g" Makefile.i386_linux24.in
+
+ cd ${S}
+ epatch ${FILESDIR}/openafs-1.2.6.patch
+}
+
+src_compile() {
+
+ econf \
+ --with-afs-sysname=i386_linux24 \
+ --enable-transarc-paths || die
+
+ sed -i "s|-I/usr/include/sys| |g" src/pam/Makefile
+
+ make || die
+ make dest || die
+}
+
+src_install () {
+ # Client
+
+ cd ${S}/${ARCH}/dest/root.client/usr/vice
+
+ insinto /etc/afs/modload
+ doins etc/modload/*
+ insinto /etc/afs/C
+ doins etc/C/*
+
+ insinto /etc/afs
+ doins ${FILESDIR}/{ThisCell,CellServDB}
+ doins etc/afs.conf
+
+ dodir /afs
+
+ exeinto /etc/init.d
+ newexe ${FILESDIR}/afs.rc.rc6 afs
+
+ dosbin etc/afsd
+
+ # Client Bin
+ cd ${S}/${ARCH}/dest
+ exeinto /usr/afsws/bin
+ doexe bin/*
+
+ exeinto /etc/afs/afsws
+ doexe etc/*
+
+ cp -a include lib ${D}/usr/afsws
+ dosym /usr/afsws/lib/afs/libtermlib.a /usr/afsws/lib/afs/libnull.a
+
+ # Server
+ cd ${S}/${ARCH}/dest/root.server/usr/afs
+ exeinto /usr/afs/bin
+ doexe bin/*
+
+ dodir /usr/vice
+ dosym /etc/afs /usr/vice/etc
+ dosym /etc/afs/afsws /usr/afsws/etc
+
+ dodoc ${FILESDIR}/README
+
+ dodir /etc/env.d
+ echo 'CONFIG_PROTECT_MASK="/etc/afs/C /etc/afs/afsws"' \
+ >> ${D}/etc/env.d/01${PN}
+ echo 'PATH=/usr/afsws/bin:/etc/afs/afsws' \
+ >> ${D}/etc/env.d/01${PN}
+ echo 'ROOTPATH=/usr/afsws/bin:/etc/afs/afsws:/usr/afs/bin' \
+ >> ${D}/etc/env.d/01${PN}
+}
+
+pkg_postinst () {
+ einfo "UPDATE CellServDB and ThisCell to your needs !!"
+ einfo "FOLLOW THE INSTRUCTIONS IN AFS QUICK BEGINNINGS"
+ einfo "PAGE >45 TO DO INITIAL SERVER SETUP"
+}