summaryrefslogtreecommitdiff
path: root/sys-kernel/libre-sources/libre-sources-2.6.29.3.ebuild
blob: 6968b1caa589fab43eaef636ea365b038b3c4145 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
K_SECURITY_UNSUPPORTED="1"
ETYPE="sources"
inherit kernel-2
detect_version

DESCRIPTION="Full sources for the BLOB free version of the Linux kernel"
HOMEPAGE="http://www.fsfla.org/svnwiki/selibre/linux-libre/"
SRC_URI="http://www.linux-libre.fsfla.org/pub/linux-libre/releases/${PV}-libre/linux-${PV}-libre.tar.bz2"

KEYWORDS="~amd64 x86"

# use our own unpack function as tarball is laid out differently
universal_unpack() {
	cd ${WORKDIR}
	unpack linux-${KV_FULL}.tar.bz2
	S=${WORKDIR}/linux-${KV_FULL}
	mv ${WORKDIR}/linux-${PV} ${WORKDIR}/linux-${KV_FULL} \
		|| die "Unable to move source tree to ${KV_FULL}."
	cd ${S}

	# remove all backup files
	find . -iname "*~" -exec rm {} \; 2> /dev/null
}

src_unpack() {
	# patches included in tarball
	UNIPATCH_LIST_DEFAULT=""

	kernel-2_src_unpack
}