added vloopback-9999
authorAndrea Rizzolo <andrea.rizzolo@gmail.com>
Wed, 24 Nov 2010 08:00:22 +0000 (24 09:00 +0100)
committerAndrea Rizzolo <andrea.rizzolo@gmail.com>
Wed, 24 Nov 2010 08:00:22 +0000 (24 09:00 +0100)
media-video/vloopback/Manifest [new file with mode: 0644]
media-video/vloopback/vloopback-9999.ebuild [new file with mode: 0644]

diff --git a/media-video/vloopback/Manifest b/media-video/vloopback/Manifest
new file mode 100644 (file)
index 0000000..13aa783
--- /dev/null
@@ -0,0 +1 @@
+EBUILD vloopback-9999.ebuild 1683 RMD160 07018052c5b96c30e25f0ade124664b5a7217a81 SHA1 799f27cdee3674b430a5f654da0c7acc575c3bd5 SHA256 4080827edce5e55ac30c569211470574bc0ff751577bc3ce002375926886e8d1
diff --git a/media-video/vloopback/vloopback-9999.ebuild b/media-video/vloopback/vloopback-9999.ebuild
new file mode 100644 (file)
index 0000000..d08e522
--- /dev/null
@@ -0,0 +1,69 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit linux-mod eutils multilib versionator linux-info  subversion
+
+
+DESCRIPTION="vloopback allow to create pipe of videos devices"
+HOMEPAGE="http://www.lavrsen.dk/twiki/bin/view/Motion/VideoFourLinuxLoopbackDevice"
+ESVN_REPO_URI="http://www.lavrsen.dk/svn/vloopback/trunk/"
+ESVN_STORE_DIR="${PORTAGE_ACTUAL_DISTDIR-${DISTDIR}}/svn-src/"
+
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+
+CONFIG_CHECK="VIDEO_DEV"
+MODULE_NAMES="vloopback(video:)"
+BUILD_TARGETS="all"
+
+pkg_setup() {
+       ABI=${KERNEL_ABI}
+       set_arch_to_kernel
+       linux-mod_pkg_setup
+       BUILD_PARAMS="LINUX_DIR=${KV_DIR} OUTPUT_DIR=${KV_OUT_DIR}"
+}
+
+
+src_unpack() {
+       ESVN_UPDATE_CMD="svn up"
+        ESVN_FETCH_CMD="svn checkout"
+       ESVN_STORE_DIR="${DISTDIR}/svn-src"
+       subversion_src_unpack
+       cd ${S} || die
+}
+
+src_compile() {
+       emake || die "Can not compile ${PN} module!"
+}
+
+src_install() {
+       linux-mod_src_install
+       dodoc README*  COPYING 
+       insinto /usr/share/doc/${PF}
+}
+
+pkg_preinst() {
+       linux-mod_pkg_preinst
+}
+
+pkg_postinst() {
+       linux-mod_pkg_postinst
+
+       echo    
+       ewarn "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
+       einfo "Using:"
+       einfo "# modprobe vloopback dev_offset=1"
+       einfo "# vresize /dev/video0 /dev/video1 320x240 176x144 rgb24"
+       ewarn "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
+       einfo "If you use quickcam.ko do this:"
+       einfo "# echo 'options quickcam compatible=2' >> /etc/modules.d/quickcam"
+       einfo "# modules-update && modprobe -r quickcam && modprobe quickcam"
+       ewarn "=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-="
+}
+
+
+
+