diff options
Diffstat (limited to 'net-wireless/rtl-sdr/rtl-sdr-9999.ebuild')
-rw-r--r-- | net-wireless/rtl-sdr/rtl-sdr-9999.ebuild | 14 |
1 files changed, 12 insertions, 2 deletions
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 +} |