diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2003-08-06 22:59:01 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2003-08-06 22:59:01 +0000 |
commit | 7762516724d9705b7d44810a394bbabe3e2e0308 (patch) | |
tree | 33b6fd0fa062e1bcb106d825857ede705f6c8e7b /net-fs/openafs/openafs-1.2.10.ebuild | |
parent | fixes #26041 (diff) | |
download | historical-7762516724d9705b7d44810a394bbabe3e2e0308.tar.gz historical-7762516724d9705b7d44810a394bbabe3e2e0308.tar.bz2 historical-7762516724d9705b7d44810a394bbabe3e2e0308.zip |
fixes #26041
Diffstat (limited to 'net-fs/openafs/openafs-1.2.10.ebuild')
-rw-r--r-- | net-fs/openafs/openafs-1.2.10.ebuild | 110 |
1 files changed, 110 insertions, 0 deletions
diff --git a/net-fs/openafs/openafs-1.2.10.ebuild b/net-fs/openafs/openafs-1.2.10.ebuild new file mode 100644 index 000000000000..8c6e2d5d54cc --- /dev/null +++ b/net-fs/openafs/openafs-1.2.10.ebuild @@ -0,0 +1,110 @@ +# 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.10.ebuild,v 1.1 2003/08/06 22:58:54 rphillips Exp $ + +inherit check-kernel + +S=${WORKDIR}/${P} +DESCRIPTION="The AFS 3 scalable distributed file system" +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/portage-2.0.47-r10 + >=sys-libs/ncurses-5.2 + >=sys-libs/pam-0.75 + >=sys-apps/gawk-3.1.1" + +ARCH=i386_linux24 + + +pkg_setup() { + + if is_2_5_kernel || is_2_6_kernel + then + die "OpenAFS does not yet support 2.5 and 2.6 kernels" + fi +} + + +src_unpack() { + unpack ${A} + + cd ${S} + epatch ${FILESDIR}/openafs-1.2.6.patch +} + +src_compile() { + + econf \ + --with-afs-sysname=i386_linux24 \ + --enable-transarc-paths || die + + make || die +} + +src_install () { + make dest || die + + # 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 + + mount -t afs | awk '{ exit $3 == "/afs" }' && keepdir /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" +} |