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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Fri Jun 28 22:13:36 2013 UTC (5 years, 3 months ago) by zerochaos
Branch: MAIN
Changes since 1.5: +10 -6 lines
remove old ebuild, remove udev rule in favor of improved elog messages

(Portage version: 2.1.12.2/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)

1 # Copyright 1999-2013 Gentoo Foundation
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.5 2013/06/27 04:25:33 zerochaos Exp $
4
5 EAPI=5
6
7 inherit autotools
8
9 DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
10 HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
11
12 if [[ ${PV} == 9999* ]]; then
13 inherit git-2
14 SRC_URI=""
15 EGIT_REPO_URI="git://git.osmocom.org/${PN}.git"
16 KEYWORDS=""
17 else
18 SRC_URI="mirror://gentoo/${P}.tar.xz"
19 KEYWORDS="~amd64 ~arm ~x86"
20 fi
21
22 LICENSE="GPL-2"
23 SLOT="0"
24 IUSE=""
25
26 RDEPEND="virtual/libusb:1"
27 DEPEND="${RDEPEND}"
28
29 DOCS=( ${PN}.rules )
30
31 src_unpack() {
32 if [[ ${PV} == 9999* ]]; then
33 git-2_src_unpack
34 else
35 default
36 mv ${PN} ${P} || die
37 fi
38 }
39
40 src_prepare() {
41 eautoreconf
42 }
43
44 pkg_postinst() {
45 local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules )
46 if [[ ! -f ${rulesfiles} ]]; then
47 elog "By default, only users in the usb group can capture."
48 elog "Just run 'gpasswd -a <USER> usb', then have <USER> re-login."
49 elog "Or the device can be WORLD readable and writable by installing ${PN}.rules"
50 elog "from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
51 fi
52 }

  ViewVC Help
Powered by ViewVC 1.1.20