Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@wingrunr21
Created November 3, 2011 17:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save wingrunr21/1337104 to your computer and use it in GitHub Desktop.
Save wingrunr21/1337104 to your computer and use it in GitHub Desktop.
Ceton 1.7 ebuild
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit eutils versionator linux-mod
DESCRIPTION="Ceton InfiniTV Linux Drivers"
HOMEPAGE="http://cetoncorp.com/infinitv_support/linux-drivers/"
SRC_URI="http://cetoncorp.com/downloads/ceton_infinitv_linux_driver_1_7.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="virtual/linux-sources"
S="${WORKDIR}/ceton_infinitv_linux_driver"
MODULE_NAMES="ctn91xx(misc:${S})"
BUILD_TARGETS="ctn91xx"
pkg_setup() {
linux-mod_pkg_setup
BUILD_PARAMS="KERNEL_DIR=${KV_DIR} KERNEL_VERSION=${KV_FULL}"
}
src_prepare() {
cd "${S}"
rm Module.symvers
sed -e 's:KERNEL_VERSION \:=:#KERNEL_VERSION \:=:g' -i Makefile
sed -e 's:KERNEL_DIR\t\:= :#KERNEL_DIR\t\:= :g' -i Makefile
sed -e 's:ifdef CROSS_COMPILE:ifdef USE_CROSS_COMPILE:g' -i Makefile
}
src_install() {
linux-mod_src_install
insinto /etc/udev/rules.d/
doins 98-ctn91xx.rules
}
@wingrunr21
Copy link
Author

Ebuild originally from http://code.google.com/p/theebuilds/source/browse/trunk/net-misc/ceton/ceton-1.3.ebuild. Updated for version and patch for the DMA mask.

@wingrunr21
Copy link
Author

Ceton fixed the problem in version 1.5 of their drivers. Ebuild updated to version 1.6

@wingrunr21
Copy link
Author

Ebuild updated to version 1.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment