Permalink
Browse files

Add ceton ebuild from https://gist.github.com/1337104

  • Loading branch information...
1 parent 4c417d6 commit 08269112ac117a50af2d1b11c7dce2b135301289 @tannewt committed Feb 26, 2012
Showing with 41 additions and 0 deletions.
  1. +2 −0 net-misc/ceton/Manifest
  2. +39 −0 net-misc/ceton/ceton-1.6.ebuild
@@ -0,0 +1,2 @@
+DIST ceton_infinitv_linux_driver_1_6.tar.gz 30915 RMD160 ddab57e8bd32242d483d6a599b3f3b57e5afbc5c SHA1 7de454f5cefdde03b613762b5e290a414d6b75ef SHA256 01b5c2d316820e82e5f7e7f1e596cffcd03b4f65a9d7878abc0e77768e1ed5db
+EBUILD ceton-1.6.ebuild 965 RMD160 2b96238bb5c514052e98c75fbe5918e25febc61a SHA1 f4a3f8c30e3357bb11bd6ca2fbe62855ba995374 SHA256 c8ba0542fc876397b4a443c006ea6d750a72218e50bdcafc63f5d2ff8a8033db
@@ -0,0 +1,39 @@
+# 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/firmware/ceton_infinitv_linux_driver_1_6.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
+}

0 comments on commit 0826911

Please sign in to comment.