kismet-ubertooth: build the right plugin based on the installed version of kismet

This commit is contained in:
Zero_Chaos 2012-03-29 05:12:33 +00:00
parent 673ccb92cc
commit 3f6d4dc47b
2 changed files with 14 additions and 6 deletions

View file

@ -1 +1 @@
EBUILD kismet-ubertooth-9999.ebuild 813 RMD160 80e7757c808285965980d182d19ff8ba0022a6d3 SHA1 018118bbac15a5f625d4eac1d504c92651df732a SHA256 27049457fbc6a70d45e6e5d4dcce21fe213bd1c9e26f1c4dd8b89286a815b750
EBUILD kismet-ubertooth-9999.ebuild 1056 RMD160 a2fd776bff826e812469596c9dde1ac2d81b24c7 SHA1 0540f601e0ab79ce8b07fa0b9032a37410f08c9a SHA256 5ff0deae45b73241d44fe29f45a8703cbfba3d09f023c0cb139dd9375b0e1ba5

View file

@ -9,25 +9,33 @@ inherit subversion
DESCRIPTION="Provides basic bluetooth support in kismet"
HOMEPAGE="http://ubertooth.sourceforge.net/"
SRC_URI=""
ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/host"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~arm ~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND=">=net-wireless/kismet-2011.03.2-r1 \
DEPEND=">=net-wireless/kismet-2011.03.2-r1 \
>=net-libs/libbtbb-9999 \
>=dev-libs/libusb-1.0.0"
RDEPEND="${DEPEND}"
ESVN_REPO_URI="https://ubertooth.svn.sourceforge.net/svnroot/ubertooth/trunk/host"
src_compile() {
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
if has_version =net-wireless/kismet-9999; then
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth-phyneutral"
else
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
fi
emake KIS_SRC_DIR="/usr/include/kismet/"
}
src_install() {
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
if has_version =net-wireless/kismet-9999; then
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth-phyneutral"
else
cd "${WORKDIR}/${P}/kismet/plugin-ubertooth"
fi
emake DESTDIR="${ED}" LIBDIR="/usr/$(get_libdir)" KIS_SRC_DIR="/usr/include/kismet/" KIS_DEST_DIR="${D}/usr/" install
}