summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--eclass/kernel-libre.eclass8
1 files changed, 7 insertions, 1 deletions
diff --git a/eclass/kernel-libre.eclass b/eclass/kernel-libre.eclass
index 77845ac..2923807 100644
--- a/eclass/kernel-libre.eclass
+++ b/eclass/kernel-libre.eclass
@@ -6,10 +6,16 @@
inherit kernel-2
EXPORT_FUNCTIONS src_unpack
-DEBLOB_CHECK="deblob-check"
KERNEL_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/linux-${PV}-libre${LIBRE_VER}.tar.bz2"
+DEBLOB_CHECK="deblob-check"
DEBLOB_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre${LIBRE_VER}/${DEBLOB_CHECK}"
+# if the package manager is capable, rename deblob-check to avoid collisions
+if [[ $EAPI -eq 2 ]]; then
+ DEBLOB_CHECK="${DEBLOB_CHECK}-${OKV}"
+ DEBLOB_URI="${DEBLOB_URI} -> ${DEBLOB_CHECK}"
+fi
+
# override the kernel-2 function as tarball is named differently
universal_unpack() {
cd ${WORKDIR}