summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-wireless/rtl-sdr/ChangeLog7
-rw-r--r--net-wireless/rtl-sdr/rtl-sdr-9999.ebuild14
2 files changed, 18 insertions, 3 deletions
diff --git a/net-wireless/rtl-sdr/ChangeLog b/net-wireless/rtl-sdr/ChangeLog
index efd25b667465..a4047a0de2c0 100644
--- a/net-wireless/rtl-sdr/ChangeLog
+++ b/net-wireless/rtl-sdr/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-wireless/rtl-sdr
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/ChangeLog,v 1.2 2012/07/05 21:39:50 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/ChangeLog,v 1.3 2012/08/11 09:09:08 chithanh Exp $
+
+ 11 Aug 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org>
+ rtl-sdr-9999.ebuild:
+ Install udev rules file to documentation directory and notify user of its
+ purpose.
05 Jul 2012; Chí-Thanh Christopher Nguyễn <chithanh@gentoo.org> metadata.xml:
Assign maintainership to radio herd.
diff --git a/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild b/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild
index a63d730c3147..9c5c9f3d0c13 100644
--- a/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild
+++ b/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild
@@ -1,9 +1,9 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.1 2012/04/12 23:40:25 chithanh Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-wireless/rtl-sdr/rtl-sdr-9999.ebuild,v 1.2 2012/08/11 09:09:08 chithanh Exp $
EAPI=4
-inherit autotools git-2
+inherit autotools base git-2
DESCRIPTION="turns your Realtek RTL2832 based DVB dongle into a SDR receiver"
HOMEPAGE="http://sdr.osmocom.org/trac/wiki/rtl-sdr"
@@ -18,6 +18,16 @@ IUSE=""
RDEPEND="virtual/libusb:1"
DEPEND="${RDEPEND}"
+DOCS=( ${PN}.rules )
+
src_prepare() {
eautoreconf
}
+
+pkg_postinst() {
+ local rulesfiles=( "${EPREFIX}"/etc/udev/rules.d/*${PN}.rules )
+ if [[ ! -f ${rulesfiles} ]]; then
+ elog "In order to allow users outside the usb group to capture samples, install"
+ elog "${PN}.rules from the documentation directory to ${EPREFIX}/etc/udev/rules.d/"
+ fi
+}