/[gentoo-x86]/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild
Gentoo

Diff of /net-wireless/rtl-sdr/rtl-sdr-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.4 Revision 1.5
1# Copyright 1999-2013 Gentoo Foundation 1# Copyright 1999-2013 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.4 2013/06/05 02:30:45 zerochaos Exp $ 3# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.5 2013/06/27 04:25:33 zerochaos Exp $
4 4
5EAPI=5 5EAPI=5
6
6inherit autotools 7inherit autotools udev
7 8
8DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver" 9DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
9HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr" 10HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
10 11
11if [[ ${PV} == 9999* ]]; then 12if [[ ${PV} == 9999* ]]; then
38 39
39src_prepare() { 40src_prepare() {
40 eautoreconf 41 eautoreconf
41} 42}
42 43
43pkg_postinst() { 44src_install() {
44 local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules ) 45 udev_dorules rtl-sdr.rules
45 if [[ ! -f ${rulesfiles} ]]; then 46 default
46 elog "In order to allow users outside the usb group to capture samples, install" 47 rm "${ED}"/usr/share/doc/${PF}/rtl-sdr.rules
47 elog "${PN}.rules from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
48 fi
49} 48}

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20