Changeset View
Changeset View
Standalone View
Standalone View
net/openafs/Makefile
Show First 20 Lines • Show All 73 Lines • ▼ Show 20 Lines | |||||
FUSE_CONFIGURE_OFF= --disable-fuse-client | FUSE_CONFIGURE_OFF= --disable-fuse-client | ||||
.include <bsd.port.pre.mk> | .include <bsd.port.pre.mk> | ||||
.if ${COMPILER_TYPE} == clang | .if ${COMPILER_TYPE} == clang | ||||
CFLAGS+= -mstackrealign | CFLAGS+= -mstackrealign | ||||
.endif | .endif | ||||
.if ${OSREL:R} >= 11 | |||||
jbeich: Maybe this port should be `DEPRECATED` instead. | |||||
Done Inline ActionsPerhaps, it is already marked BROKEN unconditionally in r481399 (2018-10-06). So it will probably be purged in less than half a year if it remains BROKEN. rene: Perhaps, it is already marked BROKEN unconditionally in r481399 (2018-10-06). So it will… | |||||
# Upstream does not support the client on 11 and newer | # Upstream does not support the client on 11 and newer | ||||
CONFIGURE_ARGS += --disable-kernel-module | CONFIGURE_ARGS += --disable-kernel-module | ||||
PLIST_SUB+= KMOD="@comment " | PLIST_SUB+= KMOD="@comment " | ||||
post-install: | post-install: | ||||
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/openafs | @${RMDIR} ${STAGEDIR}${PREFIX}/lib/openafs | ||||
.else | |||||
CONFIGURE_ARGS += --enable-kernel-module | |||||
PLIST_SUB+= KMOD= | |||||
USE_RC_SUBR+= afsd | |||||
KERNCONF?= GENERIC | |||||
KERNCONFDIR?= ${SRC_BASE}/sys/${ARCH}/conf | |||||
# Use the first component of ${KERNCONF}. | |||||
.for K in ${KERNCONF} | |||||
_KERNCONF?=$K | |||||
.endfor | |||||
.if !exists(${KERNCONFDIR}/${_KERNCONF}) | |||||
IGNORE= requires kernel configuration file ${_KERNCONF} to build | |||||
.endif | |||||
# Do not show users the reminder about cleandepend and depend | |||||
post-extract: | |||||
${MKDIR} ${WRKDIR}/conf | |||||
cd ${KERNCONFDIR} && \ | |||||
/usr/sbin/config -d ${WRKDIR}/conf ${_KERNCONF} >/dev/null | |||||
create-sample-files: | |||||
@${ECHO_CMD} openafs.org > ${WRKDIR}/ThisCell | |||||
@${ECHO_CMD} "${AFSMNTDIR}:${AFSCACHEDIR}:150000" > ${WRKDIR}/cacheinfo | |||||
${INSTALL_DATA} ${DISTDIR}/CellServDB.${DBVERSION} ${WRKDIR}/CellServDB | |||||
post-install: create-sample-files | |||||
@${MKDIR} ${STAGEDIR}${ETCDIR} | |||||
.for F in CellServDB ThisCell cacheinfo | |||||
${INSTALL_DATA} ${WRKDIR}/${F} ${STAGEDIR}${ETCDIR}/${F}.sample | |||||
.endfor | |||||
${INSTALL_KLD} ${STAGEDIR}${PREFIX}/lib/openafs/libafs.ko \ | |||||
${STAGEDIR}${KMODDIR} | |||||
@${RM} ${STAGEDIR}${PREFIX}/lib/openafs/libafs.ko | |||||
@${RMDIR} ${STAGEDIR}${PREFIX}/lib/openafs | |||||
@${MKDIR} ${STAGEDIR}${AFSMNTDIR} \ | |||||
${STAGEDIR}${AFSSTATEDIR} ${STAGEDIR}${AFSCACHEDIR} | |||||
.endif # ${OSREL} blacklist | |||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
Maybe this port should be DEPRECATED instead.