Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 4044 - new openafs-1.3.1 ebuild for testing
Summary: new openafs-1.3.1 ebuild for testing
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: Normal enhancement (vote)
Assignee: Ryan Phillips (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-06-22 23:56 UTC by radu
Modified: 2003-02-04 19:42 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
the 1.3.1 ebuild (openafs-1.3.1.ebuild,2.25 KB, text/plain)
2002-06-22 23:57 UTC, radu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description radu 2002-06-22 23:56:04 UTC
S=${WORKDIR}/${P}
DESCRIPTION="The AFS 3 distributed file system  targets the issues  critical to
distributed computing environments. AFS performs exceptionally well,
both within small, local work groups of machines and across wide-area
configurations in support of large, collaborative efforts. AFS provides
an architecture geared towards system management, along with the tools
to perform important management tasks. For a user, AFS is a familiar yet
extensive UNIX environment for accessing files easily and quickly."

SRC_URI="http://www.openafs.org/dl/openafs/1.3.1/openafs-1.3.1-src.tar.bz2"
HOMEPAGE="http://www.openafs.org/"

DEPEND="virtual/glibc
        >=sys-libs/ncurses-5.2
        >=sys-libs/pam-0.75"

ARCH=i386_linux24

src_unpack() {
        unpack ${A}

        cd ${S}/src/config
        cp Makefile.i386_linux24.in Makefile.i386_linux24.in.old
        sed -e "s|/usr/lib/libncurses.so|-lncurses|g" \
                Makefile.i386_linux24.in.old > Makefile.i386_linux24.in
        rm Makefile.i386_linux24.in.old
}

src_compile() {
        ./configure --with-afs-sysname=i386_linux24 --enable-transarc-paths || die
        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
}

pkg_postinst () {
        echo ">>> UPDATE CellServDB and ThisCell to your needs !!"
        echo ">>> FOLLOW THE INSTRUCTIONS IN AFS QUICK BEGINNINGS"
        echo ">>> PAGE >45 TO DO INITIAL SERVER SETUP"    fi
}
Comment 1 radu 2002-06-22 23:57:32 UTC
Created attachment 1697 [details]
the 1.3.1 ebuild

Should be tested, i've been using it succesfully for more than 1 month
Comment 2 Ryan Phillips (RETIRED) gentoo-dev 2002-07-22 22:48:04 UTC
the ebuild doesn't quite work with openafs... it doesn't patch the Makefile.in
files...

Is it ok to remove all occurances of i386_linux4?
Comment 3 Ryan Phillips (RETIRED) gentoo-dev 2002-07-30 00:09:06 UTC
committed