net-wireless/btscanner - 2.1 (pentoo)

Search

Install

Install this version:

emerge -a =net-wireless/btscanner-2.1

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =net-wireless/btscanner-2.1

Or alternatively:

emerge --autounmask-write -a =net-wireless/btscanner-2.1

Package Information

Description:
A utility for bluetooth scanning and discovery
Homepage:
https://www.pentest.co.uk/downloads.html
License:
GPL-2

Ebuild Details

Version EAPI Keywords Slot
2.1 8 ~amd64 ~x86 0
View Raw Ebuild
# Copyright 1999-2023 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit autotools

DESCRIPTION="A utility for bluetooth scanning and discovery"
HOMEPAGE="https://www.pentest.co.uk/downloads.html"
#SRC_URI="https://www.pentest.co.uk/src/${P}.tar.bz2"
SRC_URI="https://dev.pentoo.ch/~blshkv/distfiles/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="net-wireless/bluez:=
	>=dev-libs/libxml2-2.6
	>sys-libs/ncurses-5.4:=[tinfo]"
RDEPEND="${DEPEND}"

src_prepare() {
	sed -i -e 's/-Wimplicit-function-dec //g' configure.in
	sed -i 's#-std=c99#-std=gnu99#g' configure.in
	eapply "${FILESDIR}/fix-buffer-overflow.patch"
	eapply "${FILESDIR}/fix-typo-config.patch"
	eapply_user
	mv configure.in configure.ac
	eautoreconf
	sed -i -e '/dtd/ s:/usr/local/:/:' -e '/oui/ s:local/share:share/btscanner:' btscanner.xml
}
src_configure() {
	econf --datadir="/usr/share/btscanner"
	sed -i 's/-lform -lmenu -lncurses/-lformw -lmenuw -lncursesw -ltinfow/' Makefile
}
src_install() {
	DESTDIR="${ED}" emake install
	dodoc AUTHORS ChangeLog README NEWS TODO USAGE
}

Inherited Eclasses

Dependencies

DEPEND

net-wireless/bluez:=
	>=dev-libs/libxml2-2.6
	>sys-libs/ncurses-5.4:=[tinfo]

RDEPEND

net-wireless/bluez:=
	>=dev-libs/libxml2-2.6
	>sys-libs/ncurses-5.4:=[tinfo]

Manifest for 2.1

Type File Size Source URLs
DIST btscanner-2.1.tar.bz2 442492 bytes https://dev.pentoo.ch/~blshkv/distfiles/btscanner-2.1.tar.bz2