From 1bf9a62d94e2ccb73bd40955045fb5cd13c41940 Mon Sep 17 00:00:00 2001 From: CyberLeo Date: Mon, 25 Jun 2012 12:57:20 -0400 Subject: [PATCH] net/openafs: patch Makefile to handle out-of-tree kernel config (ports/164242) --- ...net_openafs_Makefile-fix_config_file.patch | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 cdn/patch/net_openafs_Makefile-fix_config_file.patch diff --git a/cdn/patch/net_openafs_Makefile-fix_config_file.patch b/cdn/patch/net_openafs_Makefile-fix_config_file.patch new file mode 100644 index 0000000..50a3a3b --- /dev/null +++ b/cdn/patch/net_openafs_Makefile-fix_config_file.patch @@ -0,0 +1,24 @@ +# http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/164242 + +--- net/openafs/Makefile 2012-01-07 17:09:35.000000000 -0600 ++++ net/openafs/Makefile 2012-01-17 07:03:44.998004247 -0600 +@@ -52,7 +52,8 @@ + .include + + KERNCONF?= GENERIC +-KERNCONFDIR?= ${SRC_BASE}/sys/${ARCH}/conf ++KRNLCONFDIR= ${SRC_BASE}/sys/${ARCH}/conf ++KERNCONFDIR?= ${KRNLCONFDIR} + KMODDIR= /boot/modules + PLIST_SUB+= KMODDIR=${KMODDIR:C,^/,,} + +@@ -97,7 +98,7 @@ + # 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 ++ cd ${KRNLCONFDIR} && /usr/sbin/config -d ${WRKDIR}/conf ${KERNCONFDIR}/${_KERNCONF} > /dev/null + + create-sample-files: + @${ECHO_CMD} openafs.org > ${WRKDIR}/ThisCell + -- 2.42.0