# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # openafs-devel # openafs-devel/Makefile # openafs-devel/README # openafs-devel/pkg-descr # openafs-devel/pkg-plist # echo c - openafs-devel mkdir -p openafs-devel > /dev/null 2>&1 echo x - openafs-devel/Makefile sed 's/^X//' >openafs-devel/Makefile << 'd2fa7bc5acbe75bf5e7e837abef1cb30' X# New ports collection makefile for: openafs-devel X# Date created: 2010-04-08 X# Based on: port by Alec Kloss X# X# $FreeBSD$ X# X XPORTNAME= openafs-devel XPORTVERSION= 1.5.73.3 XCATEGORIES= net kld X#MASTER_SITES= http://dl.central.org/dl/openafs/openafs/${PORTVERSION}/ \ X#http://dl.openafs.org/dl/openafs/${PORTVERSION}/ X XMAINTAINER= kaduk@mit.edu XCOMMENT= Andrew File System implementation from openafs.org X XUSE_LDCONFIG= yes X X#DISTVERSIONSUFFIX= -src X#USE_BZIP2= yes XHAS_CONFIGURE= yes X XONLY_FOR_ARCHS= i386 amd64 XBUILD_DEPENDS= git:${PORTSDIR}/devel/git X X.if !defined(OPENAFS_ARCH) XOPENAFS_ARCH!=uname -m X.endif X X.include X X.if !defined(AFS_SYSNAME) X.if ${OSVERSION} < 800000 XIGNORE= supports FreeBSD 8.0 and later X.endif X XAFS_SYSNAME=$(OPENAFS_ARCH)_fbsd_80 X.endif X XCONFIGURE_ARGS= --prefix=${PREFIX} \ X --localstatedir=/var \ X --with-bsd-kernel-build=/usr/obj/usr/src/sys/GENERIC \ X --enable-debug \ X --enable-debug-lwp \ X --with-afs-sysname=${AFS_SYSNAME} \ X --includedir=${PREFIX}/include/openafs \ X --enable-demand-attach-fs \ X --with-krb5 KRB5CFLAGS=-I/usr/include \ X KRB5LIBS='-lkrb5 -lcom_err -lcrypto -lcrypt -lasn1 -lhx509 -lroken' \ X ${CONFIGURE_TARGET} X XWRKSRC= ${WRKDIR}/openafs X XPORTDIR=$(.CURDIR) X Xdo-fetch: X ${MKDIR} ${WRKDIR} X Xdo-extract: X @(cd ${WRKDIR} && git clone git://git.openafs.org/openafs.git) X Xdo-patch: X X Xpre-configure: X cd ${WRKSRC} && ./regen.sh X Xpost-install: X @${MKDIR} ${PREFIX}/etc/openafs X @${CP} ${WRKSRC}/src/afsd/CellServDB ${PREFIX}/etc/openafs/CellServDB.sample X @if [ ! -e ${PREFIX}/etc/CellServDB ] ; then \ X ${CP} -p ${PREFIX}/etc/openafs/CellServDB.sample ${PREFIX}/etc/CellServDB ; \ X fi X @if [ ! -e ${PREFIX}/etc/openafs/CellServDB ] ; then \ X ${LN} -s ${PREFIX}/etc/CellServDB ${PREFIX}/etc/openafs/CellServDB ; \ X fi X @${ECHO_CMD} openafs.org > ${PREFIX}/etc/openafs/ThisCell.sample X @if [ ! -e ${PREFIX}/etc/ThisCell ] ; then \ X ${CP} -p ${PREFIX}/etc/openafs/ThisCell.sample ${PREFIX}/etc/ThisCell ; \ X fi X @if [ ! -e ${PREFIX}/etc/openafs/ThisCell ] ; then \ X ${LN} -s ${PREFIX}/etc/ThisCell ${PREFIX}/etc/openafs/ThisCell ; \ X fi X ${MV} ${PREFIX}/lib/openafs/libafs.ko /boot/modules/ X kldxref /boot/modules X X.include d2fa7bc5acbe75bf5e7e837abef1cb30 echo x - openafs-devel/README sed 's/^X//' >openafs-devel/README << '6492bd331a3f54931f44b5d0553f170a' XAs you might suspect from the name, this is a development package. XIt is, however, a rather rough development package. It fetches Xsource from the head of the OpenAFS git repository, which means that Xresults may change depending on when you extract. XThe usual disclaimers apply. X XKnown issues include heap corruption in aklog (it dumps core after it gets Xtokens for the first cellname provided). I have seen a couple Xof panics that I'm not sure of the cause of, which probably Xaren't fixed. Of particular interest is whether the locking in X${WRKSRC}/src/afs/FBSD/osi_sleep.c allows you to read files, and Xallows a (relatively) clean shutdown of AFS. (Usually, I get processes Xstuck in unkillable afsslp states, which causes shutdown to hang, Xso I have to break to the debugger and reboot. This means fsck. XBut you shouldn't be running this code on a machine with data you Xcare about, anyway.) X XThe filesystem-based cache code has lots of locking problems; XWITNESS won't let afsd start with that code path. I currently Xmount afs with: X# kldload libafs X# afsd -dynroot -fakestat-all -afsdb -memcache -daemons 4 XI expect that things will go fine at that stage; the problems tend Xto show up later. X XI haven't noticed any issues with the auxilliary commands (fs, bos, Xpts, vos, etc.), but nor have I done exhaustive testing. X XHave fun, and don't crash your system too much ... X X-Ben Kaduk, 8 April 2010 6492bd331a3f54931f44b5d0553f170a echo x - openafs-devel/pkg-descr sed 's/^X//' >openafs-devel/pkg-descr << '4af80923c42616110a157cd4c0f9373c' XAFS is a distributed filesystem product, pioneered at Carnegie Mellon XUniversity and supported and developed as a product by Transarc Corporation X(now IBM Pittsburgh Labs). It offers a client-server architecture for Xfederated file sharing and replicated read-only content distribution, Xproviding location independence, scalability, security, and transparent Xmigration capabilities. AFS is available for a broad range of heterogeneous Xsystems including UNIX, Linux, MacOS X, and Microsoft Windows. X XIBM branched the source of the AFS product, and made a copy of the source Xavailable for community development and maintenance. They called the Xrelease OpenAFS. X Xhttp://www.openafs.org/ X X- bsam 4af80923c42616110a157cd4c0f9373c echo x - openafs-devel/pkg-plist sed 's/^X//' >openafs-devel/pkg-plist << 'a99ad7f4a36e6332cdf08e4ae20167b1' Xbin/rxgen Xbin/sys Xbin/pagsh.krb Xbin/udebug Xbin/pagsh Xbin/klog.krb Xbin/knfs Xbin/pts Xbin/klog Xbin/tokens.krb Xbin/scout Xbin/xstat_cm_test Xbin/kpasswd Xbin/kpwvalid Xbin/bos Xbin/unlog Xbin/tokens Xbin/livesys Xbin/up Xbin/fs Xbin/xstat_fs_test Xbin/afsmonitor Xbin/cmdebug Xbin/translate_et Xinclude/openafs/afs/param.h Xinclude/openafs/afs/stds.h Xinclude/openafs/afs/afs_sysnames.h Xinclude/openafs/afs/afs_args.h Xinclude/openafs/afs/icl.h Xinclude/openafs/afs/venus.h Xinclude/openafs/afs/debug.h Xinclude/openafs/afs/pthread_nosigs.h Xinclude/openafs/afs/assert.h Xinclude/openafs/afs/procmgmt.h Xinclude/openafs/afs/dirpath.h Xinclude/openafs/afs/fileutil.h Xinclude/openafs/afs/netutils.h Xinclude/openafs/afs/errors.h Xinclude/openafs/afs/vice.h Xinclude/openafs/afs/remote.h Xinclude/openafs/afs/ktime.h Xinclude/openafs/afs/afsutil_prototypes.h Xinclude/openafs/afs/packages.h Xinclude/openafs/afs/afsutil.h Xinclude/openafs/afs/pthread_glock.h Xinclude/openafs/afs/cmd.h Xinclude/openafs/afs/afs_atomlist.h Xinclude/openafs/afs/afs_lhash.h Xinclude/openafs/afs/softsig.h Xinclude/openafs/afs/com_err.h Xinclude/openafs/afs/error_table.h Xinclude/openafs/afs/mit-sipb-cr.h Xinclude/openafs/afs/afs.h Xinclude/openafs/afs/osi_inode.h Xinclude/openafs/afs/afs_stats.h Xinclude/openafs/afs/exporter.h Xinclude/openafs/afs/nfsclient.h Xinclude/openafs/afs/unified_afs.h Xinclude/openafs/afs/sysctl.h Xinclude/openafs/afs/rxgen_consts.h Xinclude/openafs/afs/afsint.h Xinclude/openafs/afs/afscbint.h Xinclude/openafs/afs/afssyscalls.h Xinclude/openafs/afs/xfsattrs.h Xinclude/openafs/afs/audit.h Xinclude/openafs/afs/keys.h Xinclude/openafs/afs/cellconfig.h Xinclude/openafs/afs/auth.h Xinclude/openafs/afs/ktc.h Xinclude/openafs/afs/prclient.h Xinclude/openafs/afs/prerror.h Xinclude/openafs/afs/print.h Xinclude/openafs/afs/prserver.h Xinclude/openafs/afs/ptclient.h Xinclude/openafs/afs/ptuser.h Xinclude/openafs/afs/pterror.h Xinclude/openafs/afs/ptint.h Xinclude/openafs/afs/ptserver.h Xinclude/openafs/afs/acl.h Xinclude/openafs/afs/prs_fs.h Xinclude/openafs/afs/kautils.h Xinclude/openafs/afs/kauth.h Xinclude/openafs/afs/kaport.h Xinclude/openafs/afs/bumon.h Xinclude/openafs/afs/butc.h Xinclude/openafs/afs/bubasics.h Xinclude/openafs/afs/tcdata.h Xinclude/openafs/afs/butm.h Xinclude/openafs/afs/butx.h Xinclude/openafs/afs/usd.h Xinclude/openafs/afs/dir.h Xinclude/openafs/afs/nfs.h Xinclude/openafs/afs/vnode.h Xinclude/openafs/afs/viceinode.h Xinclude/openafs/afs/volume.h Xinclude/openafs/afs/voldefs.h Xinclude/openafs/afs/partition.h Xinclude/openafs/afs/fssync.h Xinclude/openafs/afs/ihandle.h Xinclude/openafs/afs/namei_ops.h Xinclude/openafs/afs/vl_opcodes.h Xinclude/openafs/afs/vlserver.h Xinclude/openafs/afs/vldbint.h Xinclude/openafs/afs/cnvldb.h Xinclude/openafs/afs/fs_stats.h Xinclude/openafs/afs/volser.h Xinclude/openafs/afs/volint.h Xinclude/openafs/afs/budb.h Xinclude/openafs/afs/budb_errs.h Xinclude/openafs/afs/budb_client.h Xinclude/openafs/afs/bosint.h Xinclude/openafs/afs/bnode.h Xinclude/openafs/afs/gtxcurseswin.h Xinclude/openafs/afs/gtxdumbwin.h Xinclude/openafs/afs/gtxframe.h Xinclude/openafs/afs/gtxinput.h Xinclude/openafs/afs/gtxkeymap.h Xinclude/openafs/afs/gtxlightobj.h Xinclude/openafs/afs/gtxobjdict.h Xinclude/openafs/afs/gtxobjects.h Xinclude/openafs/afs/gtxtextcb.h Xinclude/openafs/afs/gtxtextobj.h Xinclude/openafs/afs/gtxwindows.h Xinclude/openafs/afs/gtxX11win.h Xinclude/openafs/afs/fsprobe.h Xinclude/openafs/afs/xstat_fs.h Xinclude/openafs/afs/xstat_cm.h Xinclude/openafs/afs/vioc.h Xinclude/openafs/afs/afs_consts.h Xinclude/openafs/afs/pagcb.h Xinclude/openafs/afs/vnode_inline.h Xinclude/openafs/afs/volume_inline.h Xinclude/openafs/afs/salvsync.h Xinclude/openafs/afs/daemon_com.h Xinclude/openafs/afs/vsutils_prototypes.h Xinclude/openafs/des.h Xinclude/openafs/des_conf.h Xinclude/openafs/des_odd.h Xinclude/openafs/des_prototypes.h Xinclude/openafs/kopenafs.h Xinclude/openafs/lock.h Xinclude/openafs/lwp.h Xinclude/openafs/potpourri.h Xinclude/openafs/preempt.h Xinclude/openafs/mit-cpyright.h Xinclude/openafs/rx/rx_prototypes.h Xinclude/openafs/rx/rx.h Xinclude/openafs/rx/rx_packet.h Xinclude/openafs/rx/xdr_prototypes.h Xinclude/openafs/rx/rxstat.h Xinclude/openafs/rx/rx_user.h Xinclude/openafs/rx/rx_event.h Xinclude/openafs/rx/rx_queue.h Xinclude/openafs/rx/rx_globals.h Xinclude/openafs/rx/rx_clock.h Xinclude/openafs/rx/rx_multi.h Xinclude/openafs/rx/rx_pthread.h Xinclude/openafs/rx/rx_lwp.h Xinclude/openafs/rx/rx_misc.h Xinclude/openafs/rx/rx_null.h Xinclude/openafs/rx/xdr.h Xinclude/openafs/rx/rxkad_prototypes.h Xinclude/openafs/rx/fcrypt.h Xinclude/openafs/rx/rxkad.h Xinclude/openafs/timer.h Xinclude/openafs/ubik.h Xinclude/openafs/ubik_int.h Xlib/afs/libacl.a Xlib/afs/libafsint.a Xlib/afs/libafsutil.a Xlib/afs/libaudit.a Xlib/afs/libauth.a Xlib/afs/libauth.krb.a Xlib/afs/libbos.a Xlib/afs/libbubasics.a Xlib/afs/libbudb.a Xlib/afs/libbutm.a Xlib/afs/libbxdb.a Xlib/afs/libcmd.a Xlib/afs/libcom_err.a Xlib/afs/libdir.a Xlib/afs/libfsprobe.a Xlib/afs/libgtx.a Xlib/afs/libkauth.a Xlib/afs/libkauth.krb.a Xlib/afs/libprocmgmt.a Xlib/afs/libprot.a Xlib/afs/libsys.a Xlib/afs/libusd.a Xlib/afs/libvldb.a Xlib/afs/libvlib.a Xlib/afs/libvolser.a Xlib/afs/libxstat_cm.a Xlib/afs/libxstat_fs.a Xlib/afs/util.a Xlib/afs/vlib.a Xlib/librxstat.a Xlib/libdes.a Xlib/liblwp.a Xlib/librx.a Xlib/librxkad.a Xlib/libafsauthent.a Xlib/libuafs.a Xlib/libubik.a Xlib/libafsrpc.a Xlib/pam_afs.krb.so.1 Xlib/libjuafs.a Xlib/pam_afs.so.1 Xlibexec/openafs/buserver Xlibexec/openafs/fileserver Xlibexec/openafs/kaserver Xlibexec/openafs/ptserver Xlibexec/openafs/salvager Xlibexec/openafs/upclient Xlibexec/openafs/upserver Xlibexec/openafs/vlserver Xlibexec/openafs/volserver Xlibexec/openafs/salvageserver Xshare/openafs/C/afszcm.cat Xsbin/prdb_check Xsbin/kas Xsbin/kdb Xsbin/rmtsysd Xsbin/pt_util Xsbin/kadb_check Xsbin/ka-forwarder Xsbin/kpwvalid Xsbin/volinfo Xsbin/afsd Xsbin/vsys Xsbin/vldb_convert Xsbin/vldb_check Xsbin/read_tape Xsbin/bosserver Xsbin/voldump Xsbin/vos Xsbin/uss Xsbin/backup Xsbin/butc Xsbin/kdump Xsbin/rxdebug Xsbin/bos_util Xsbin/fms Xsbin/fstrace X@unexec if [ -L %D/etc/openafs/CellServDB ] ; then rm %D/etc/openafs/CellServDB ; fi X@unexec if cmp -s %D/etc/openafs/CellServDB.sample %D/etc/openafs/CellServDB ; then rm %D/etc/openafs/CellServDB ; fi X@unexec if cmp -s %D/etc/openafs/CellServDB.sample %D/etc/CellServDB ; then rm %D/etc/CellServDB ; fi Xetc/openafs/CellServDB.sample X@unexec if [ -L %D/etc/openafs/ThisCell ] ; then rm %D/etc/openafs/ThisCell ; fi X@unexec if cmp -s %D/etc/openafs/ThisCell.sample %D/etc/openafs/ThisCell ; then rm %D/etc/openafs/ThisCell ; fi X@unexec if cmp -s %D/etc/openafs/ThisCell.sample %D/etc/ThisCell ; then rm %D/etc/ThisCell ; fi Xetc/openafs/ThisCell.sample X@exec if [ ! -e %D/etc/CellServDB ] ; then cp %D/etc/openafs/CellServDB.sample %D/etc/CellServDB ; fi X@exec if [ ! -e %D/etc/openafs/CellServDB ] ; then ln -s %D/etc/CellServDB %D/etc/openafs/CellServDB ; fi X@exec echo openafs.org >> %D/etc/openafs/ThisCell.sample X@exec if [ ! -e %D/etc/ThisCell ] ; then cp -p %D/etc/openafs/ThisCell.sample %D/etc/ThisCell ; fi X@exec if [ ! -e %D/etc/openafs/ThisCell ] ; then ln -s %D/etc/ThisCell %D/etc/openafs/ThisCell ; fi X@dirrm include/openafs/rx X@dirrm include/openafs/afs X@dirrm include/openafs X@dirrm lib/afs X@dirrm lib/openafs X@dirrm libexec/openafs X@dirrmtry etc/openafs X@dirrm share/openafs/C X@dirrm share/openafs X@cwd /boot/modules Xlibafs.ko a99ad7f4a36e6332cdf08e4ae20167b1 exit