# 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
#	openafs/Makefile
#	openafs/Makefile.man
#	openafs/distinfo
#	openafs/files
#	openafs/files/afsd.in
#	openafs/files/afsserver.in
#	openafs/pkg-descr
#	openafs/pkg-plist
#
echo c - openafs
mkdir -p openafs > /dev/null 2>&1
echo x - openafs/Makefile
sed 's/^X//' >openafs/Makefile << 'cac7ccf84cc7458cb89445ad3dc2caa6'
X# New ports collection makefile for:    openafs
X# Date created:                         2010-11-06
X# Whom:                                 Ben Kaduk <kaduk@mit.edu>
X# Based on:                             port by Alec Kloss <alec@setfilepointer.com>
X#
X# $FreeBSD: ports/net/openafs/Makefile,v 1.11 2011/12/09 13:10:23 scheidell Exp $
X#
X
XPORTNAME=	openafs
XDISTVERSION=	${AFS_DISTVERSION}.${DBVERSION:S/-//g}
XCATEGORIES=	net kld
XMASTER_SITES=	http://dl.central.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
X		http://dl.openafs.org/dl/openafs/${AFS_DISTVERSION}/:openafs \
X		http://dl.central.org/dl/cellservdb/:gco \
X		http://grand.central.org/dl/cellservdb/:gco
XDISTFILES=	${PORTNAME}-${AFS_DISTVERSION}-src.tar.bz2:openafs \
X		${PORTNAME}-${AFS_DISTVERSION}-doc.tar.bz2:openafs \
X		CellServDB.${DBVERSION}:gco
XEXTRACT_ONLY=	${PORTNAME}-${AFS_DISTVERSION}-src.tar.bz2 \
X		${PORTNAME}-${AFS_DISTVERSION}-doc.tar.bz2
X
XMAINTAINER=	kaduk@mit.edu
XCOMMENT=	AFS implementation from openafs.org
X
XLICENSE=	IPLv1
XLICENSE_NAME=	IBM Public License Version 1.0
XLICENSE_FILE=	${WRKSRC}/doc/LICENSE
XLICENSE_PERMS=	auto-accept
X
XAFS_DISTVERSION=	1.6.1
XDBVERSION=	2011-08-14
X
XOPTIONS=	FUSE "Build afsd.fuse (enable fuse support)" off
X
XUSE_LDCONFIG=	yes
XPATCH_STRIP=	-p1
XUSE_BZIP2=	yes
XHAS_CONFIGURE=	yes
XUSE_RC_SUBR=	afsd afsserver
XMAKE_JOBS_UNSAFE=	yes
X
XONLY_FOR_ARCHS=	i386 amd64
X
XAFSMNTDIR?=	/afs
XAFSSTATEDIR?=	/var/${PORTNAME}
XAFSCACHEDIR?=	${AFSSTATEDIR}/cache
XPLIST_SUB+=	AFSMNTDIR=${AFSMNTDIR:C,^/,,} \
X		AFSSTATEDIR=${AFSSTATEDIR:C,^/,,} \
X		AFSCACHEDIR=${AFSCACHEDIR:C,^/,,}
X
X.include <bsd.port.pre.mk>
X
XKERNCONF?=	GENERIC
XKERNCONFDIR?=	${SRC_BASE}/sys/${ARCH}/conf
XKMODDIR=	/boot/modules
XPLIST_SUB+=	KMODDIR=${KMODDIR:C,^/,,}
X
X# Use the first component of ${KERNCONF}.
X.for K in ${KERNCONF}
X_KERNCONF?=$K
X.endfor
X
X.if !exists(${KERNCONFDIR}/${_KERNCONF})
XIGNORE=	requires kernel configuration file ${_KERNCONF} to build
X.endif
X
X.if ${OSVERSION} < 800000
XIGNORE=	supports FreeBSD 8.0 and later
X.endif
X
XCONFIGURE_ARGS=	--prefix=${PREFIX} \
X	--localstatedir=/var \
X	--mandir=${MANPREFIX}/man \
X	--with-bsd-kernel-headers=${SRC_BASE}/sys \
X	--with-bsd-kernel-build=${WRKDIR}/conf \
X	--enable-debug \
X	--enable-debug-kernel \
X	--enable-debug-lwp \
X	--includedir=${PREFIX}/include/openafs \
X	${CONFIGURE_TARGET}
X
X.if !defined(WITH_FUSE)
XCONFIGURE_ARGS+=	--disable-fuse-client
XPLIST_SUB+=	FUSE="@comment "
X.else
XLIB_DEPENDS+=	fuse.2:${PORTSDIR}/sysutils/fusefs-libs
XPLIST_SUB+=	FUSE=""
X.endif
X
XWRKSRC=		${WRKDIR}/${PORTNAME}-${AFS_DISTVERSION}
X
XCONFLICTS=	coda-server-6.[0-9]* heimdal-[0-9]*
X
X.include "Makefile.man"
X
X# Do not show users the reminder about cleandepend and depend
Xpost-extract:
X	${MKDIR} ${WRKDIR}/conf
X	cd ${KERNCONFDIR} && /usr/sbin/config -d ${WRKDIR}/conf ${_KERNCONF} >/dev/null
X
Xcreate-sample-files:
X	@${ECHO_CMD} openafs.org > ${WRKDIR}/ThisCell
X	@${ECHO_CMD} "${AFSMNTDIR}:${AFSCACHEDIR}:150000" > ${WRKDIR}/cacheinfo
X	@${INSTALL_DATA} ${DISTDIR}/CellServDB.${DBVERSION} ${WRKDIR}/CellServDB
X
Xpost-install: create-sample-files
X	@${MKDIR} ${PREFIX}/etc/openafs
X.for F in CellServDB ThisCell cacheinfo
X	@${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}.sample
X	@if [ ! -e ${PREFIX}/etc/openafs/${F} ]; then \
X		${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}; \
X	fi
X.endfor
X	${INSTALL_KLD} ${PREFIX}/lib/openafs/libafs.ko ${KMODDIR}/
X	@${RM} ${PREFIX}/lib/openafs/libafs.ko
X	@${RMDIR} ${PREFIX}/lib/openafs
X	${MKDIR} ${AFSMNTDIR} ${AFSSTATEDIR} ${AFSCACHEDIR}
X	/usr/sbin/kldxref ${KMODDIR}
X
X.include <bsd.port.post.mk>
cac7ccf84cc7458cb89445ad3dc2caa6
echo x - openafs/Makefile.man
sed 's/^X//' >openafs/Makefile.man << '7cbfa8fb5f56c799fbd705bb9881457a'
XMAN1+=	afs.1
XMAN1+=	afs_compile_et.1
XMAN1+=	afsmonitor.1
XMAN1+=	aklog.1
XMAN1+=	cmdebug.1
XMAN1+=	copyauth.1
XMAN1+=	dlog.1
XMAN1+=	fs.1
XMAN1+=	fs_apropos.1
XMAN1+=	fs_checkservers.1
XMAN1+=	fs_checkvolumes.1
XMAN1+=	fs_chgrp.1
XMAN1+=	fs_chown.1
XMAN1+=	fs_cleanacl.1
XMAN1+=	fs_copyacl.1
XMAN1+=	fs_cscpolicy.1
XMAN1+=	fs_diskfree.1
XMAN1+=	fs_examine.1
XMAN1+=	fs_exportafs.1
XMAN1+=	fs_flush.1
XMAN1+=	fs_flushall.1
XMAN1+=	fs_flushmount.1
XMAN1+=	fs_flushvolume.1
XMAN1+=	fs_getcacheparms.1
XMAN1+=	fs_getcalleraccess.1
XMAN1+=	fs_getcellstatus.1
XMAN1+=	fs_getclientaddrs.1
XMAN1+=	fs_getcrypt.1
XMAN1+=	fs_getfid.1
XMAN1+=	fs_getserverprefs.1
XMAN1+=	fs_help.1
XMAN1+=	fs_listacl.1
XMAN1+=	fs_listaliases.1
XMAN1+=	fs_listcells.1
XMAN1+=	fs_listquota.1
XMAN1+=	fs_lsmount.1
XMAN1+=	fs_memdump.1
XMAN1+=	fs_messages.1
XMAN1+=	fs_minidump.1
XMAN1+=	fs_mkmount.1
XMAN1+=	fs_monitor.1
XMAN1+=	fs_newalias.1
XMAN1+=	fs_newcell.1
XMAN1+=	fs_quota.1
XMAN1+=	fs_rmmount.1
XMAN1+=	fs_rxstatpeer.1
XMAN1+=	fs_rxstatproc.1
XMAN1+=	fs_setacl.1
XMAN1+=	fs_setcachesize.1
XMAN1+=	fs_setcbaddr.1
XMAN1+=	fs_setcell.1
XMAN1+=	fs_setclientaddrs.1
XMAN1+=	fs_setcrypt.1
XMAN1+=	fs_setquota.1
XMAN1+=	fs_setserverprefs.1
XMAN1+=	fs_setvol.1
XMAN1+=	fs_storebehind.1
XMAN1+=	fs_sysname.1
XMAN1+=	fs_trace.1
XMAN1+=	fs_uuid.1
XMAN1+=	fs_whereis.1
XMAN1+=	fs_whichcell.1
XMAN1+=	fs_wscell.1
XMAN1+=	klog.1
XMLINKS+=	klog.1 klog.krb.1
XMAN1+=	klog.krb5.1
XMAN1+=	knfs.1
XMAN1+=	kpasswd.1
XMAN1+=	livesys.1
XMAN1+=	pagsh.1
XMLINKS+=	pagsh.1 pagsh.krb.1
XMAN1+=	pts.1
XMAN1+=	pts_adduser.1
XMAN1+=	pts_apropos.1
XMAN1+=	pts_chown.1
XMAN1+=	pts_creategroup.1
XMAN1+=	pts_createuser.1
XMAN1+=	pts_delete.1
XMAN1+=	pts_examine.1
XMAN1+=	pts_help.1
XMAN1+=	pts_interactive.1
XMAN1+=	pts_listentries.1
XMAN1+=	pts_listmax.1
XMAN1+=	pts_listowned.1
XMAN1+=	pts_membership.1
XMAN1+=	pts_quit.1
XMAN1+=	pts_removeuser.1
XMAN1+=	pts_rename.1
XMAN1+=	pts_setfields.1
XMAN1+=	pts_setmax.1
XMAN1+=	pts_sleep.1
XMAN1+=	pts_source.1
XMAN1+=	restorevol.1
XMAN1+=	rxdebug.1
XMAN1+=	rxgen.1
XMAN1+=	scout.1
XMAN1+=	symlink.1
XMAN1+=	symlink_list.1
XMAN1+=	symlink_make.1
XMAN1+=	symlink_remove.1
XMAN1+=	sys.1
XMAN1+=	tokens.1
XMLINKS+=	tokens.1 tokens.krb.1
XMAN1+=	translate_et.1
XMAN1+=	udebug.1
XMAN1+=	unlog.1
XMAN1+=	up.1
XMAN1+=	vos.1
XMAN1+=	vos_addsite.1
XMAN1+=	vos_apropos.1
XMAN1+=	vos_backup.1
XMAN1+=	vos_backupsys.1
XMAN1+=	vos_changeloc.1
XMAN1+=	vos_changeaddr.1
XMAN1+=	vos_clone.1
XMAN1+=	vos_convertROtoRW.1
XMAN1+=	vos_copy.1
XMAN1+=	vos_create.1
XMAN1+=	vos_delentry.1
XMAN1+=	vos_dump.1
XMAN1+=	vos_endtrans.1
XMAN1+=	vos_examine.1
XMAN1+=	vos_help.1
XMAN1+=	vos_listaddrs.1
XMAN1+=	vos_listpart.1
XMAN1+=	vos_listvldb.1
XMAN1+=	vos_listvol.1
XMAN1+=	vos_lock.1
XMAN1+=	vos_move.1
XMAN1+=	vos_offline.1
XMAN1+=	vos_online.1
XMAN1+=	vos_partinfo.1
XMAN1+=	vos_release.1
XMAN1+=	vos_remove.1
XMAN1+=	vos_remsite.1
XMAN1+=	vos_rename.1
XMAN1+=	vos_restore.1
XMAN1+=	vos_setaddrs.1
XMAN1+=	vos_setfields.1
XMAN1+=	vos_shadow.1
XMAN1+=	vos_size.1
XMAN1+=	vos_status.1
XMAN1+=	vos_syncserv.1
XMAN1+=	vos_syncvldb.1
XMAN1+=	vos_unlock.1
XMAN1+=	vos_unlockvldb.1
XMAN1+=	vos_zap.1
XMAN1+=	xstat_cm_test.1
XMAN1+=	xstat_fs_test.1
XMAN5+=	AuthLog.5
XMAN5+=	AuthLog.dir.5
XMAN5+=	BackupLog.5
XMAN5+=	BosConfig.5
XMAN5+=	BosLog.5
XMAN5+=	CellAlias.5
XMAN5+=	CellServDB.5
XMAN5+=	FORCESALVAGE.5
XMAN5+=	FileLog.5
XMAN5+=	KeyFile.5
XMAN5+=	krb.excl.5
XMAN5+=	NetInfo.5
XMAN5+=	NetRestrict.5
XMAN5+=	NoAuth.5
XMAN5+=	SALVAGE.fs.5
XMAN5+=	SalvageLog.5
XMAN5+=	ThisCell.5
XMAN5+=	UserList.5
XMAN5+=	VLLog.5
XMAN5+=	VolserLog.5
XMAN5+=	afs.5
XMAN5+=	afs_cache.5
XMAN5+=	afs_volume_header.5
XMAN5+=	afsmonitor.5
XMAN5+=	afszcm.cat.5
XMAN5+=	bdb.DB0.5
XMAN5+=	butc.5
XMAN5+=	butc_logs.5
XMAN5+=	cacheinfo.5
XMAN5+=	fms.log.5
XMAN5+=	kaserver.DB0.5
XMAN5+=	kaserverauxdb.5
XMAN5+=	krb.conf.5
XMAN5+=	prdb.DB0.5
XMAN5+=	salvage.lock.5
XMAN5+=	sysid.5
XMAN5+=	tapeconfig.5
XMAN5+=	uss.5
XMAN5+=	uss_bulk.5
XMAN5+=	vldb.DB0.5
XMAN8+=	afsd.8
X.if defined(WITH_FUSE)
XMLINKS+=	afsd.8 afsd.fuse.8
X.endif
XMAN8+=	aklog_dynamic_auth.8
XMAN8+=	asetkey.8
XMAN8+=	backup.8
XMAN8+=	backup_adddump.8
XMAN8+=	backup_addhost.8
XMAN8+=	backup_addvolentry.8
XMAN8+=	backup_addvolset.8
XMAN8+=	backup_apropos.8
XMAN8+=	backup_dbverify.8
XMAN8+=	backup_deldump.8
XMAN8+=	backup_deletedump.8
XMAN8+=	backup_delhost.8
XMAN8+=	backup_delvolentry.8
XMAN8+=	backup_delvolset.8
XMAN8+=	backup_diskrestore.8
XMAN8+=	backup_dump.8
XMAN8+=	backup_dumpinfo.8
XMAN8+=	backup_help.8
XMAN8+=	backup_interactive.8
XMAN8+=	backup_jobs.8
XMAN8+=	backup_kill.8
XMAN8+=	backup_labeltape.8
XMAN8+=	backup_listdumps.8
XMAN8+=	backup_listhosts.8
XMAN8+=	backup_listvolsets.8
XMAN8+=	backup_quit.8
XMAN8+=	backup_readlabel.8
XMAN8+=	backup_restoredb.8
XMAN8+=	backup_savedb.8
XMAN8+=	backup_scantape.8
XMAN8+=	backup_setexp.8
XMAN8+=	backup_status.8
XMAN8+=	backup_volinfo.8
XMAN8+=	backup_volrestore.8
XMAN8+=	backup_volsetrestore.8
XMAN8+=	bos.8
XMAN8+=	bos_addhost.8
XMAN8+=	bos_addkey.8
XMAN8+=	bos_adduser.8
XMAN8+=	bos_apropos.8
XMAN8+=	bos_create.8
XMAN8+=	bos_delete.8
XMAN8+=	bos_exec.8
XMAN8+=	bos_getdate.8
XMAN8+=	bos_getlog.8
XMAN8+=	bos_getrestart.8
XMAN8+=	bos_getrestricted.8
XMAN8+=	bos_help.8
XMAN8+=	bos_install.8
XMAN8+=	bos_listhosts.8
XMAN8+=	bos_listkeys.8
XMAN8+=	bos_listusers.8
XMAN8+=	bos_prune.8
XMAN8+=	bos_removehost.8
XMAN8+=	bos_removekey.8
XMAN8+=	bos_removeuser.8
XMAN8+=	bos_restart.8
XMAN8+=	bos_salvage.8
XMAN8+=	bos_setauth.8
XMAN8+=	bos_setcellname.8
XMAN8+=	bos_setrestart.8
XMAN8+=	bos_setrestricted.8
XMAN8+=	bos_shutdown.8
XMAN8+=	bos_start.8
XMAN8+=	bos_startup.8
XMAN8+=	bos_status.8
XMAN8+=	bos_stop.8
XMAN8+=	bos_uninstall.8
XMAN8+=	bos_util.8
XMAN8+=	bosserver.8
XMAN8+=	buserver.8
XMAN8+=	butc.8
XMAN8+=	davolserver.8
XMAN8+=	dasalvager.8
XMAN8+=	dafileserver.8
XMAN8+=	dafssync-debug.8
XMAN8+=	fileserver.8
XMAN8+=	fms.8
XMAN8+=	fssync-debug_volop.8
XMAN8+=	fssync-debug_vnode.8
XMAN8+=	fssync-debug_vgcscanall.8
XMAN8+=	fssync-debug_vgcscan.8
XMAN8+=	fssync-debug_vgcquery.8
XMAN8+=	fssync-debug_vgcdel.8
XMAN8+=	fssync-debug_vgcadd.8
XMAN8+=	fssync-debug_stats.8
XMAN8+=	fssync-debug_query.8
XMAN8+=	fssync-debug_online.8
XMAN8+=	fssync-debug_offline.8
XMAN8+=	fssync-debug_move.8
XMAN8+=	fssync-debug_mode.8
XMAN8+=	fssync-debug_list.8
XMAN8+=	fssync-debug_leaveoff.8
XMAN8+=	fssync-debug_header.8
XMAN8+=	fssync-debug_error.8
XMAN8+=	fssync-debug_detach.8
XMAN8+=	fssync-debug_callback.8
XMAN8+=	fssync-debug_attach.8
XMAN8+=	fssync-debug.8
XMAN8+=	fstrace.8
XMAN8+=	fstrace_apropos.8
XMAN8+=	fstrace_clear.8
XMAN8+=	fstrace_dump.8
XMAN8+=	fstrace_help.8
XMAN8+=	fstrace_lslog.8
XMAN8+=	fstrace_lsset.8
XMAN8+=	fstrace_setlog.8
XMAN8+=	fstrace_setset.8
XMAN8+=	ka-forwarder.8
XMAN8+=	kadb_check.8
XMAN8+=	kas.8
XMAN8+=	kas_apropos.8
XMAN8+=	kas_create.8
XMAN8+=	kas_delete.8
XMAN8+=	kas_examine.8
XMAN8+=	kas_forgetticket.8
XMAN8+=	kas_help.8
XMAN8+=	kas_interactive.8
XMAN8+=	kas_list.8
XMAN8+=	kas_listtickets.8
XMAN8+=	kas_noauthentication.8
XMAN8+=	kas_quit.8
XMAN8+=	kas_setfields.8
XMAN8+=	kas_setpassword.8
XMAN8+=	kas_statistics.8
XMAN8+=	kdb.8
XMAN8+=	kas_stringtokey.8
XMAN8+=	kas_unlock.8
XMAN8+=	kaserver.8
XMAN8+=	kpwvalid.8
XMAN8+=	prdb_check.8
XMAN8+=	pt_util.8
XMAN8+=	ptserver.8
XMAN8+=	read_tape.8
XMAN8+=	rmtsysd.8
XMAN8+=	salvager.8
XMAN8+=	salvageserver.8
XMAN8+=	upclient.8
XMAN8+=	upserver.8
XMAN8+=	uss.8
XMAN8+=	uss_add.8
XMAN8+=	uss_apropos.8
XMAN8+=	uss_bulk.8
XMAN8+=	uss_delete.8
XMAN8+=	uss_help.8
XMAN8+=	vldb_check.8
XMAN8+=	vldb_convert.8
XMAN8+=	vlserver.8
XMAN8+=	voldump.8
XMAN8+=	volinfo.8
XMAN8+=	volserver.8
XMAN8+=	vsys.8
XMAN8+=	xfs_size_check.8
XMAN8+=	state_analyzer.8
7cbfa8fb5f56c799fbd705bb9881457a
echo x - openafs/distinfo
sed 's/^X//' >openafs/distinfo << 'f553964b67bf34154813688046be2e9d'
XMD5 (openafs-1.6.1-src.tar.bz2) = 7215609990a2b253f8980fc1e1da0530
XSHA256 (openafs-1.6.1-src.tar.bz2) = d05ef7f8e89b6939726d93bb46d4353e20a459890b9c3ca3065d50de408bf5b0
XSIZE (openafs-1.6.1-src.tar.bz2) = 14356434
XMD5 (openafs-1.6.1-doc.tar.bz2) = 73d9a86038e827f95de90cf56c940bf7
XSHA256 (openafs-1.6.1-doc.tar.bz2) = c41006ca12368b028f2108c972bd3de1881b5f78941bc831ff238a0344a3bec6
XSIZE (openafs-1.6.1-doc.tar.bz2) = 3481865
XMD5 (CellServDB.2011-08-14) = 3bdde6060fa41c399b278eedd12fc32a
XSHA256 (CellServDB.2011-08-14) = fa547873edda44682440d66b79d2002f7019fac520eb3a6d6d2c7e9e83ad8d89
XSIZE (CellServDB.2011-08-14) = 36836
f553964b67bf34154813688046be2e9d
echo c - openafs/files
mkdir -p openafs/files > /dev/null 2>&1
echo x - openafs/files/afsd.in
sed 's/^X//' >openafs/files/afsd.in << 'a307d8294f3960fb40ea8fddf4adb5ee'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/openafs/files/afsd.in,v 1.3 2012/01/14 08:56:21 dougb Exp $
X#
X# PROVIDE: afsd
X# REQUIRE: afsserver named
X# KEYWORD: shutdown
X#
X# We require afsserver for the (rare, untested) case when a client
X# and server are running on the same machine -- the client must not
X# start until the server is running.
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# afsd_enable (bool):	Set to NO by default.
X#			Set it to YES to enable afsd.
X#
X# Suggested values for a "large" configuration:
X# afsd_flags="-stat 2800 -daemons 5 -volumes 128"
X#
X# Suggested values for a "medium" configuration:
X# afsd_flags="-stat 2000 -daemons 3 -volumes 70"
X#
X# Suggested values for a "small" configuration:
X# afsd_flags="-stat 300 -daemons 2 -volumes 50"
X
X. /etc/rc.subr
X
Xname="afsd"
Xrcvar=afsd_enable
X
Xcommand="%%PREFIX%%/sbin/${name}"
Xcommand_args="-dynroot -fakestat-all -afsdb -memcache"
X
Xstart_precmd="afsd_prestart"
Xstart_postcmd="afsd_poststart"
Xstop_cmd="afsd_stop"
X
Xkmod="libafs"
Xvicedir="%%PREFIX%%/etc/openafs"
Xrequired_modules="libafs:afs"
Xrequired_files="${vicedir}/cacheinfo ${vicedir}/ThisCell ${vicedir}/CellServDB"
X
Xload_rc_config "$name"
X
X: ${afsd_enable:="NO"}
X: ${afsd_flags:="-stat 2800 -daemons 6 -volumes 128"}
X
Xafsd_prestart()
X{
X	local dir
X
X	# need a mountpoint and a cache dir (well, if we have a disk cache)
X	# Should use required_dirs, but no good way to extract from cacheinfo
X	for dir in $(awk -F: '{print $1, $2}' ${vicedir}/cacheinfo); do
X		if [ ! -d "${dir}" ]; then
X			err 1 "Directory ${dir} does not exist. Not starting AFS client."
X		fi
X	done
X}
X
Xafsd_poststart()
X{
X	%%PREFIX%%/bin/fs setcrypt -crypt on
X}
X
Xafsd_stop()
X{
X	local afsdir
X
X	afsdir=$(awk -F: '{print $1}' ${vicedir}/cacheinfo)
X	if ! umount $afsdir; then
X		[ -n "${rc_force}" ] && umount -f ${afsdir}
X	fi
X	kldunload ${kmod}
X}
X
Xrun_rc_command "$1"
a307d8294f3960fb40ea8fddf4adb5ee
echo x - openafs/files/afsserver.in
sed 's/^X//' >openafs/files/afsserver.in << '5a712e4cf49b57306b0039345aa49bc8'
X#!/bin/sh
X#
X# $FreeBSD: ports/net/openafs/files/afsserver.in,v 1.2 2011/06/20 07:09:36 hrs Exp $
X#
X# PROVIDE: afsserver
X# REQUIRE: networking
X# KEYWORD: shutdown
X#
X# Add the following lines to /etc/rc.conf.local or /etc/rc.conf
X# to enable this service:
X#
X# afsserver_enable (bool):	Set to NO by default.
X#				Set it to YES to enable AFS server activities.
X
X. /etc/rc.subr
X
Xname="afsserver"
Xrcvar="afsserver_enable"
X
Xcommand="%%PREFIX%%/sbin/bosserver"
X
Xstop_precmd="afsserver_prestop"
X
Xvicedir="%%PREFIX%%/etc/openafs/server"
Xrequired_files="${vicedir}/CellServDB ${vicedir}/KeyFile ${vicedir}/ThisCell ${vicedir}/UserList"
X
Xload_rc_config "$name"
X
X: ${afsserver_enable:="NO"}
X
Xafsserver_prestop()
X{
X	%%PREFIX%%/bin/bos shutdown -localauth -server localhost
X}
X
Xrun_rc_command "$1"
5a712e4cf49b57306b0039345aa49bc8
echo x - openafs/pkg-descr
sed 's/^X//' >openafs/pkg-descr << 'f0120929d49fe07442a3c71bea99f301'
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
XWWW: http://www.openafs.org/
f0120929d49fe07442a3c71bea99f301
echo x - openafs/pkg-plist
sed 's/^X//' >openafs/pkg-plist << '108b360c966dd2433d569db72bad4c16'
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
Xbin/afs_compile_et
Xbin/restorevol
Xbin/klog.krb5
Xbin/asetkey
Xbin/aklog
Xbin/afsio
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/pthread_nosigs.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/afscp.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/afs/afs_assert.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/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/libafscom_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/libafscp.a
Xlib/pam_afs.krb.so.1
Xlib/libjuafs.a
Xlib/pam_afs.so.1
Xlib/libafsrpc_pic.a
Xlib/libafsrpc.so.1.5
Xlib/libafsrpc.so.1
Xlib/libafsrpc.so
Xlib/libafsauthent_pic.a
Xlib/libafsauthent.so.1
Xlib/libafsauthent.so.1.1
Xlib/libafsauthent.so
Xlib/libkopenafs.so.1.1
Xlib/libkopenafs.so.1
Xlib/libkopenafs.so
Xlib/libkopenafs.a
Xlibexec/openafs/buserver
Xlibexec/openafs/fileserver
Xlibexec/openafs/dafileserver
Xlibexec/openafs/kaserver
Xlibexec/openafs/ptserver
Xlibexec/openafs/salvager
Xlibexec/openafs/upclient
Xlibexec/openafs/upserver
Xlibexec/openafs/vlserver
Xlibexec/openafs/volserver
Xlibexec/openafs/salvageserver
Xlibexec/openafs/dasalvager
X%%DATADIR%%/C/afszcm.cat
X%%FUSE%%sbin/afsd.fuse
Xsbin/dafssync-debug
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/rxdebug
Xsbin/bos_util
Xsbin/fms
Xsbin/fstrace
Xsbin/state_analyzer
Xsbin/salvsync-debug
Xsbin/fssync-debug
X@unexec if cmp -s %D/etc/openafs/CellServDB.sample %D/etc/openafs/CellServDB ; then rm %D/etc/openafs/CellServDB ; fi
Xetc/openafs/CellServDB.sample
X@exec if [ ! -e %D/etc/openafs/CellServDB ] ; then cp %D/etc/openafs/CellServDB.sample %D/etc/openafs/CellServDB ; fi
X@unexec if cmp -s %D/etc/openafs/ThisCell.sample %D/etc/openafs/ThisCell ; then rm %D/etc/openafs/ThisCell ; fi
Xetc/openafs/ThisCell.sample
X@exec if [ ! -e %D/etc/openafs/ThisCell ] ; then cp -p %D/etc/openafs/ThisCell.sample %D/etc/openafs/ThisCell ; fi
X@unexec if cmp -s %D/etc/openafs/cacheinfo.sample %D/etc/openafs/cacheinfo ; then rm %D/etc/openafs/cacheinfo ; fi
Xetc/openafs/cacheinfo.sample
X@exec if [ ! -e %D/etc/openafs/cacheinfo ] ; then cp -p %D/etc/openafs/cacheinfo.sample %D/etc/openafs/cacheinfo ; fi
X@dirrm include/openafs/rx
X@dirrm include/openafs/afs
X@dirrm include/openafs
X@dirrm lib/afs
X@dirrm libexec/openafs
X@dirrmtry etc/openafs
X@dirrm %%DATADIR%%/C
X@dirrm %%DATADIR%%
X@cwd /
X%%KMODDIR%%/libafs.ko
X@exec /usr/sbin/kldxref /%%KMODDIR%%
X@unexec /usr/sbin/kldxref /%%KMODDIR%%
X@exec /bin/mkdir -p %D/%%AFSMNTDIR%% %D/%%AFSSTATEDIR%% %D/%%AFSCACHEDIR%%
X@dirrmtry %%AFSMNTDIR%%
X@dirrmtry %%AFSCACHEDIR%%
X@dirrmtry %%AFSSTATEDIR%%
108b360c966dd2433d569db72bad4c16
exit

