diff options
author | hrs <hrs@FreeBSD.org> | 2011-06-20 15:09:36 +0800 |
---|---|---|
committer | hrs <hrs@FreeBSD.org> | 2011-06-20 15:09:36 +0800 |
commit | 83ace48c18779efc9cf8bfec173b31c37201772f (patch) | |
tree | f239eb5fcadb2fc9ca220024959d7942f78df10b /net/openafs | |
parent | 999f70961a5552d38be94c7ffea19bbe60c8257f (diff) | |
download | freebsd-ports-gnome-83ace48c18779efc9cf8bfec173b31c37201772f.tar.gz freebsd-ports-gnome-83ace48c18779efc9cf8bfec173b31c37201772f.tar.zst freebsd-ports-gnome-83ace48c18779efc9cf8bfec173b31c37201772f.zip |
Update to 1.6.0pre6.
Submitted by: Benjamin Kaduk (maintainer)
Diffstat (limited to 'net/openafs')
-rw-r--r-- | net/openafs/Makefile | 67 | ||||
-rw-r--r-- | net/openafs/distinfo | 8 | ||||
-rw-r--r-- | net/openafs/files/afsd.in | 34 | ||||
-rw-r--r-- | net/openafs/files/afsserver.in | 6 | ||||
-rw-r--r-- | net/openafs/files/patch-src__afs__Makefile.in | 26 | ||||
-rw-r--r-- | net/openafs/files/patch-src__afs__afs_call.c | 12 | ||||
-rw-r--r-- | net/openafs/files/patch-src__venus__Makefile.in | 11 | ||||
-rw-r--r-- | net/openafs/pkg-plist | 9 |
8 files changed, 108 insertions, 65 deletions
diff --git a/net/openafs/Makefile b/net/openafs/Makefile index 792601755386..1dddd392d549 100644 --- a/net/openafs/Makefile +++ b/net/openafs/Makefile @@ -7,7 +7,7 @@ # PORTNAME= openafs -DISTVERSION= 1.6.0pre3 +DISTVERSION= 1.6.0pre6 CATEGORIES= net kld MASTER_SITES= http://dl.central.org/dl/openafs/candidate/${DISTVERSION}/:openafs \ http://dl.openafs.org/dl/openafs/candidate/${DISTVERSION}/:openafs \ @@ -26,37 +26,36 @@ OPTIONS= FUSE "Build afsd.fuse (enable fuse support)" off USE_LDCONFIG= yes PATCH_STRIP= -p1 - USE_BZIP2= yes HAS_CONFIGURE= yes USE_RC_SUBR= afsd afsserver ONLY_FOR_ARCHS= i386 amd64 -KERNELDIR= /usr/obj/usr/src/sys/GENERIC +.include <bsd.port.pre.mk> + +KERNCONF?= GENERIC +KERNCONFDIR?= ${SRC_BASE}/sys/${ARCH}/conf KMODDIR= /boot/modules -.include <bsd.port.pre.mk> +.if !exists(${KERNCONFDIR}/${KERNCONF}) +IGNORE= requires kernel configuration file ${KERNCONF} to build +.endif .if ${OSVERSION} < 800000 IGNORE= supports FreeBSD 8.0 and later .endif -.if !exists(${KERNELDIR}/opt_global.h) -IGNORE= OpenAFS requires opt_global.h from kernel build tree -.endif - CONFIGURE_ARGS= --prefix=${PREFIX} \ --localstatedir=/var \ - --mandir=${PREFIX}/man \ - --with-bsd-kernel-build=${KERNELDIR} \ + --mandir=${MANPREFIX}/man \ + --with-bsd-kernel-headers=${SRC_BASE}/sys \ + --with-bsd-kernel-build=${WRKDIR}/conf \ --enable-debug \ --enable-debug-kernel \ --enable-debug-lwp \ - --includedir=${LOCALBASE}/include/openafs \ - ${CONFIGURE_TARGET} -# --with-krb5 KRB5CFLAGS=-I/usr/include \ -# KRB5LIBS='-lkrb5 -lcom_err -lcrypto -lcrypt -lasn1 -lhx509 -lroken' \ + --includedir=${PREFIX}/include/openafs \ + ${CONFIGURE_TARGET} .if !defined(WITH_FUSE) CONFIGURE_ARGS+= --disable-fuse-client @@ -72,30 +71,26 @@ CONFLICTS= heimdal-[0-9]* .include "Makefile.man" -post-install: +post-extract: + ${MKDIR} ${WRKDIR}/conf + cd ${KERNCONFDIR} && /usr/sbin/config -d ${WRKDIR}/conf ${KERNCONF} + +create-sample-files: + @${ECHO_CMD} openafs.org > ${WRKDIR}/ThisCell + @${ECHO_CMD} '/afs:/usr/vice/cache:150000' > ${WRKDIR}/cacheinfo + @${INSTALL_DATA} ${DISTDIR}/CellServDB ${WRKDIR}/CellServDB + +post-install: create-sample-files @${MKDIR} ${PREFIX}/etc/openafs - @${CP} ${DISTDIR}/CellServDB ${PREFIX}/etc/openafs/CellServDB.sample - @if [ ! -e ${PREFIX}/etc/openafs/CellServDB ] ; then \ - ${CP} -p ${PREFIX}/etc/openafs/CellServDB.sample ${PREFIX}/etc/openafs/CellServDB ; \ - fi - @${ECHO_CMD} openafs.org > ${PREFIX}/etc/openafs/ThisCell.sample - @if [ ! -e ${PREFIX}/etc/openafs/ThisCell ] ; then \ - ${CP} -p ${PREFIX}/etc/openafs/ThisCell.sample ${PREFIX}/etc/openafs/ThisCell ; \ - fi - @${ECHO_CMD} '/afs:/usr/vice/cache:150000' > ${PREFIX}/etc/openafs/cacheinfo.sample - @if [ ! -e ${PREFIX}/etc/openafs/cacheinfo ] ; then \ - ${CP} -p ${PREFIX}/etc/openafs/cacheinfo.sample ${PREFIX}/etc/openafs/cacheinfo; \ +.for F in CellServDB ThisCell cacheinfo + @${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}.sample + @if [ ! -e ${PREFIX}/etc/openafs/${F} ]; then \ + ${INSTALL_DATA} ${WRKDIR}/${F} ${PREFIX}/etc/openafs/${F}; \ fi - ${MV} ${PREFIX}/lib/openafs/libafs.ko ${KMODDIR}/ +.endfor + ${INSTALL_KLD} ${PREFIX}/lib/openafs/libafs.ko ${KMODDIR}/ + @${RM} ${PREFIX}/lib/openafs/libafs.ko @${RMDIR} ${PREFIX}/lib/openafs - kldxref ${KMODDIR} - -pre-deinstall: - @if cmp -s ${PREFIX}/etc/openafs/CellServDB ${PREFIX}/etc/openafs/CellServDB.sample; then \ - ${RM} ${PREFIX}/etc/openafs/CellServDB; fi - @if cmp -s ${PREFIX}/etc/openafs/ThisCell ${PREFIX}/etc/openafs/ThisCell.sample; then \ - ${RM} ${PREFIX}/etc/openafs/ThisCell; fi - @if cmp -s ${PREFIX}/etc/openafs/cacheinfo ${PREFIX}/etc/openafs/cacheinfo.sample; then \ - ${RM} ${PREFIX}/etc/openafs/cacheinfo; fi + /usr/sbin/kldxref ${KMODDIR} .include <bsd.port.post.mk> diff --git a/net/openafs/distinfo b/net/openafs/distinfo index b724b782837e..f46fc4bf23e6 100644 --- a/net/openafs/distinfo +++ b/net/openafs/distinfo @@ -1,6 +1,6 @@ -SHA256 (openafs-1.6.0pre3-src.tar.bz2) = 4e37553bbd2b9152dc1f78f116421ecf76e799b92dab8bdb544bdda4e9ac0249 -SIZE (openafs-1.6.0pre3-src.tar.bz2) = 14309287 -SHA256 (openafs-1.6.0pre3-doc.tar.bz2) = 78436aa438a8b4ca76e4080e3dc1746aeaebbf7bd7b42dcbe59112a74067f083 -SIZE (openafs-1.6.0pre3-doc.tar.bz2) = 3474560 +SHA256 (openafs-1.6.0pre6-src.tar.bz2) = 34a9c959949b1a8395bc299656fb7aaae1087ee85d00d9823606db9d4d8413e5 +SIZE (openafs-1.6.0pre6-src.tar.bz2) = 14308775 +SHA256 (openafs-1.6.0pre6-doc.tar.bz2) = 53db2ee049a00522072c79ea63916e8621ae4498a68e9002157c4ecaa8d61216 +SIZE (openafs-1.6.0pre6-doc.tar.bz2) = 3474552 SHA256 (CellServDB) = 3a1c77b82e714a6e131dfd93397f08bd2ba5f5cede7997494a39b3d61fe31f8b SIZE (CellServDB) = 36891 diff --git a/net/openafs/files/afsd.in b/net/openafs/files/afsd.in index 87b500f7cf2d..efb67354aac8 100644 --- a/net/openafs/files/afsd.in +++ b/net/openafs/files/afsd.in @@ -13,8 +13,8 @@ # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# afsd_enable (bool): Set to NO by default. -# Set it to YES to enable afsd. +# afsd_enable (bool): Set to NO by default. +# Set it to YES to enable afsd. # # Suggested values for a "large" configuration: # afsd_flags="-stat 2800 -daemons 5 -volumes 128" @@ -49,31 +49,31 @@ load_rc_config "$name" afsd_prestart() { - local dir + local dir - # need a mountpoint and a cache dir (well, if we have a disk cache) - # Should use required_dirs, but no good way to extract from cacheinfo - for dir in $(awk -F: '{print $1, $2}' ${vicedir}/cacheinfo); do - if [ ! -d "${dir}" ]; then - err 1 "Directory ${dir} does not exist. Not starting AFS client." - fi - done + # need a mountpoint and a cache dir (well, if we have a disk cache) + # Should use required_dirs, but no good way to extract from cacheinfo + for dir in $(awk -F: '{print $1, $2}' ${vicedir}/cacheinfo); do + if [ ! -d "${dir}" ]; then + err 1 "Directory ${dir} does not exist. Not starting AFS client." + fi + done } afsd_poststart() { - %%PREFIX%%/bin/fs setcrypt -crypt on + %%PREFIX%%/bin/fs setcrypt -crypt on } afsd_stop() { - local afsdir + local afsdir - afsdir=$(awk -F: '{print $1}' ${vicedir}/cacheinfo) - if ! umount $afsdir; then - [ -n "${rc_force}" ] && umount -f ${afsdir} - fi - kldunload ${kmod} + afsdir=$(awk -F: '{print $1}' ${vicedir}/cacheinfo) + if ! umount $afsdir; then + [ -n "${rc_force}" ] && umount -f ${afsdir} + fi + kldunload ${kmod} } run_rc_command "$1" diff --git a/net/openafs/files/afsserver.in b/net/openafs/files/afsserver.in index 531caa3c449c..299a4a764ca8 100644 --- a/net/openafs/files/afsserver.in +++ b/net/openafs/files/afsserver.in @@ -9,8 +9,8 @@ # Add the following lines to /etc/rc.conf.local or /etc/rc.conf # to enable this service: # -# afsserver_enable (bool): Set to NO by default. -# Set it to YES to enable AFS server activities. +# afsserver_enable (bool): Set to NO by default. +# Set it to YES to enable AFS server activities. . /etc/rc.subr @@ -30,7 +30,7 @@ load_rc_config "$name" afsserver_prestop() { - %%PREFIX%%/bin/bos shutdown -localauth -server localhost + %%PREFIX%%/bin/bos shutdown -localauth -server localhost } run_rc_command "$1" diff --git a/net/openafs/files/patch-src__afs__Makefile.in b/net/openafs/files/patch-src__afs__Makefile.in new file mode 100644 index 000000000000..296fa29278b8 --- /dev/null +++ b/net/openafs/files/patch-src__afs__Makefile.in @@ -0,0 +1,26 @@ +--- ./src/afs/Makefile.in.orig 2011-05-27 13:35:30.000000000 -0400 ++++ ./src/afs/Makefile.in 2011-06-16 13:27:08.000000000 -0400 +@@ -36,8 +36,6 @@ + gencat --new afszcm.cat afs_trace.msf ;; \ + *_darwin_* ) \ + gencat -new afszcm.cat afs_trace.msf ;; \ +- i386_fbsd*) \ +- echo No gencat for ${SYS_NAME} ;; \ + * ) \ + gencat afszcm.cat afs_trace.msf ;; \ + esac +@@ -87,13 +85,7 @@ + ${DESTDIR}${includedir}/afs/osi_inode.h + ${INSTALL_DATA} ${srcdir}/sysctl.h ${DESTDIR}${includedir}/afs/sysctl.h + ${INSTALL_DATA} unified_afs.h ${DESTDIR}${includedir}/afs/unified_afs.h +- case ${SYS_NAME} in \ +- i386_fbsd*) \ +- echo skipping afszcm.cat install for ${SYS_NAME} ;; \ +- *) \ +- ${INSTALL_DATA} afszcm.cat \ +- ${DESTDIR}${afsdatadir}/C/afszcm.cat ;; \ +- esac ++ ${INSTALL_DATA} afszcm.cat ${DESTDIR}${afsdatadir}/C/afszcm.cat + case ${SYS_NAME} in \ + *linux*) \ + ${INSTALL_DATA} ${srcdir}/${MKAFS_OSTYPE}/osi_vfs.h \ diff --git a/net/openafs/files/patch-src__afs__afs_call.c b/net/openafs/files/patch-src__afs__afs_call.c new file mode 100644 index 000000000000..49f0e420042b --- /dev/null +++ b/net/openafs/files/patch-src__afs__afs_call.c @@ -0,0 +1,12 @@ +--- ./src/afs/afs_call.c.orig 2011-06-16 13:25:10.000000000 -0400 ++++ ./src/afs/afs_call.c 2011-06-16 13:26:19.000000000 -0400 +@@ -1253,7 +1253,9 @@ + afs_warn("afs: WARM "); + afs_warn("shutting down of: vcaches... "); + ++#if !defined(AFS_FBSD_ENV) + afs_FlushAllVCaches(); ++#endif + + afs_warn("CB... "); + diff --git a/net/openafs/files/patch-src__venus__Makefile.in b/net/openafs/files/patch-src__venus__Makefile.in new file mode 100644 index 000000000000..9415f9c5d784 --- /dev/null +++ b/net/openafs/files/patch-src__venus__Makefile.in @@ -0,0 +1,11 @@ +--- ./src/venus/Makefile.in.orig 2011-06-16 13:45:41.000000000 -0400 ++++ ./src/venus/Makefile.in 2011-06-16 13:53:49.000000000 -0400 +@@ -298,6 +298,8 @@ + hp_ux11* ) \ + ${INSTALL_SCRIPT} kdump.sh.hp_ux11 ${DESTDIR}${sbindir}/kdump; \ + ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \ ++ *_fbsd* ) \ ++ ;; \ + *) \ + ${INSTALL_PROGRAM} kdump-build ${DESTDIR}${sbindir}/kdump ;; \ + esac diff --git a/net/openafs/pkg-plist b/net/openafs/pkg-plist index 147578a25d95..c30b9a585217 100644 --- a/net/openafs/pkg-plist +++ b/net/openafs/pkg-plist @@ -180,7 +180,7 @@ lib/afs/libbudb.a lib/afs/libbutm.a lib/afs/libbxdb.a lib/afs/libcmd.a -lib/afs/libcom_err.a +lib/afs/libafscom_err.a lib/afs/libdir.a lib/afs/libfsprobe.a lib/afs/libgtx.a @@ -233,7 +233,7 @@ libexec/openafs/vlserver libexec/openafs/volserver libexec/openafs/salvageserver libexec/openafs/dasalvager -share/openafs/C/afszcm.cat +%%DATADIR%%/C/afszcm.cat %%FUSE%%sbin/afsd.fuse sbin/dafssync-debug sbin/prdb_check @@ -256,7 +256,6 @@ sbin/vos sbin/uss sbin/backup sbin/butc -sbin/kdump sbin/rxdebug sbin/bos_util sbin/fms @@ -279,8 +278,8 @@ etc/openafs/cacheinfo.sample @dirrm lib/afs @dirrm libexec/openafs @dirrmtry etc/openafs -@dirrm share/openafs/C -@dirrm share/openafs +@dirrm %%DATADIR%%/C +@dirrm %%DATADIR%% @cwd /boot/modules libafs.ko @exec kldxref /boot/modules |