summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDominik George (natureshadow) <gentoo@naturalnik.de>2009-04-29 19:54:40 +0000
committerDominik George (natureshadow) <gentoo@naturalnik.de>2009-04-29 19:54:40 +0000
commitb6353002d88418ec829aebe20860ba85ca471c56 (patch)
tree7c75ba8b888457b25911f135ee502c963e1c38f5 /net-wireless
parentsci-visualization/tulip: remove skel.metadata.xml (diff)
downloadsunrise-b6353002d88418ec829aebe20860ba85ca471c56.tar.gz
sunrise-b6353002d88418ec829aebe20860ba85ca471c56.tar.bz2
sunrise-b6353002d88418ec829aebe20860ba85ca471c56.zip
net-wireless/btscanner: New ebuild for bug #267865
svn path=/sunrise/; revision=8456
Diffstat (limited to 'net-wireless')
-rw-r--r--net-wireless/btscanner/ChangeLog9
-rw-r--r--net-wireless/btscanner/Manifest6
-rw-r--r--net-wireless/btscanner/btscanner-2.1.ebuild45
-rw-r--r--net-wireless/btscanner/files/btscanner-2.1-btscanner.xml.patch15
-rw-r--r--net-wireless/btscanner/files/btscanner-2.1-configure.in.patch19
-rw-r--r--net-wireless/btscanner/metadata.xml10
6 files changed, 104 insertions, 0 deletions
diff --git a/net-wireless/btscanner/ChangeLog b/net-wireless/btscanner/ChangeLog
new file mode 100644
index 000000000..7ba861e3d
--- /dev/null
+++ b/net-wireless/btscanner/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-wireless/btscanner
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+ 29 Apr 2009; Dominik George (natureshadow) <gentoo@naturalnik.de>
+ +btscanner-2.1.ebuild, +files/btscanner-2.1-btscanner.xml.patch,
+ +files/btscanner-2.1-configure.in.patch, +metadata.xml:
+ New ebuild for bug #267865
+
diff --git a/net-wireless/btscanner/Manifest b/net-wireless/btscanner/Manifest
new file mode 100644
index 000000000..8e8bde3d6
--- /dev/null
+++ b/net-wireless/btscanner/Manifest
@@ -0,0 +1,6 @@
+AUX btscanner-2.1-btscanner.xml.patch 570 RMD160 96203bfc959c30f13468712a68efddf80860e396 SHA1 ac29d90d4a9f3437d02ea7d78567d98d602248cb SHA256 20b600996eb665f57cda1b97cf638e5bbf8680f73331559f1d8a8842d7ef5bc2
+AUX btscanner-2.1-configure.in.patch 815 RMD160 a0f3586976240842a1d09255c93989e32c2d1346 SHA1 1d1b8d39569bc71b0a345dc4633e05373cfef7df SHA256 6f41d90cdb9f808f158a9898923fa03e38e6045bdc16c3741ac6d6ccfac29e6b
+DIST btscanner-2.1.tar.bz2 442492 RMD160 ada5323aae528a017215c38ea5dd08ddeddc1b55 SHA1 9396bc977ea9b33ebf4f699628f0cdd66688529d SHA256 7fc6e81dc64bdfe8bbca23aea9cd74d7be5a29210ef9620704c180b1a0f929d0
+EBUILD btscanner-2.1.ebuild 1019 RMD160 94f5b5509955fe87f420f0e2a2801890255e2d12 SHA1 bd521de0b28896b4e8eb5e14f411a959ebb5f4a7 SHA256 1348d7ee9cc913b1ae4c1964f985cd2560aaf3fdb1b55226d801d8bc0bd05df2
+MISC ChangeLog 346 RMD160 8c0fcb941bee50abf465bb45007db93902dfd5c3 SHA1 b5ea51948514333898398d4fad4111369f2b0853 SHA256 2da80e170b1276a8e7ef75c1437b5dd4e767ae0221720dc6c3343480b77ba1f0
+MISC metadata.xml 403 RMD160 3668d791af8d290317b3950ea0f994aa41aeaf88 SHA1 e8f56f5ede6dd592526436aaf299eb79cd2133e1 SHA256 94232371a63e6d5d277d02a4190fe86ab3bf16cc213a1d8c6a5268fc7141dfb6
diff --git a/net-wireless/btscanner/btscanner-2.1.ebuild b/net-wireless/btscanner/btscanner-2.1.ebuild
new file mode 100644
index 000000000..a2a3642d0
--- /dev/null
+++ b/net-wireless/btscanner/btscanner-2.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+inherit eutils autotools
+
+DESCRIPTION="Extract information from Bluetooth devices"
+HOMEPAGE="http://www.pentest.co.uk"
+SRC_URI="http://www.pentest.co.uk/src/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="net-wireless/bluez-libs
+ sys-libs/ncurses
+ dev-lang/perl
+ dev-libs/libxml2"
+RDEPEND="${DEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Apply patch to strip -Wimplicit-function-dec
+ epatch "${FILESDIR}"/${P}-configure.in.patch
+
+ # Apply patch for moved DTD and oui.txt
+ epatch "${FILESDIR}"/${P}-btscanner.xml.patch
+
+ # Reconfigure
+ eautoreconf
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ # Move DTD file
+ dodir /usr/share/btscanner || die "dodir failed"
+ mv "${D}"/etc/btscanner.dtd "${D}"/usr/share/btscanner
+ mv "${D}"/usr/share/oui.txt "${D}"/usr/share/btscanner
+
+ dodoc AUTHORS README USAGE || die "dodoc failed"
+}
diff --git a/net-wireless/btscanner/files/btscanner-2.1-btscanner.xml.patch b/net-wireless/btscanner/files/btscanner-2.1-btscanner.xml.patch
new file mode 100644
index 000000000..2649d7b0d
--- /dev/null
+++ b/net-wireless/btscanner/files/btscanner-2.1-btscanner.xml.patch
@@ -0,0 +1,15 @@
+diff -Naur btscanner-2.1/btscanner.xml btscanner-2.1.new/btscanner.xml
+--- btscanner-2.1/btscanner.xml 2004-11-01 12:56:41.000000000 +0100
++++ btscanner-2.1.new/btscanner.xml 2009-04-29 17:37:30.000000000 +0200
+@@ -1,9 +1,9 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+-<!DOCTYPE btscanner SYSTEM "file:///usr/local/etc/btscanner.dtd">
++<!DOCTYPE btscanner SYSTEM "file:///usr/share/btscanner/btscanner.dtd">
+ <btscanner>
+ <files>
+ <log>btscanner.log</log>
+- <oui>/usr/local/share/oui.txt</oui>
++ <oui>/usr/share/btscanner/oui.txt</oui>
+ <store>~/bts</store>
+ </files>
+
diff --git a/net-wireless/btscanner/files/btscanner-2.1-configure.in.patch b/net-wireless/btscanner/files/btscanner-2.1-configure.in.patch
new file mode 100644
index 000000000..585260a5c
--- /dev/null
+++ b/net-wireless/btscanner/files/btscanner-2.1-configure.in.patch
@@ -0,0 +1,19 @@
+diff -Naur btscanner-2.1/configure.in btscanner-2.1.new/configure.in
+--- btscanner-2.1/configure.in 2005-11-21 14:56:56.000000000 +0100
++++ btscanner-2.1.new/configure.in 2009-04-29 21:50:42.000000000 +0200
+@@ -63,13 +63,7 @@
+ AC_HAVE_LIBRARY(xml2,,[AC_MSG_ERROR([libxml2 not found])])
+
+ # CFLAGS
+-CFLAGS="$CFLAGS -Wall -pthread -Wshadow -Wbad-function-cast \
+- -Wformat -Wimplicit-function-dec -Wparentheses -Wsign-compare \
+- -Wstrict-prototypes -Wtrigraphs -Wundef -Wuninitialized \
+- -W -Wunused -Wformat-security -Wmissing-braces -Wbad-function-cast \
+- -Wcast-qual -falign-functions -falign-labels -falign-loops\
+- -pedantic -fstrict-aliasing -D_GNU_SOURCE -std=c99"
+-# -fstack-check -fbounds-check"
++CFLAGS="$CFLAGS -D=_GNU_SOURCE -std=c99"
+
+ # cfg
+ AC_MSG_CHECKING(the location of the config file)
+
diff --git a/net-wireless/btscanner/metadata.xml b/net-wireless/btscanner/metadata.xml
new file mode 100644
index 000000000..46eb0dd7d
--- /dev/null
+++ b/net-wireless/btscanner/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>maintainer-wanted</herd>
+ <longdescription lang="en">
+ BTscanner is an ncurses-based program that scans the neighborhood
+ for Bluetooth devices and lists information about them,
+ including manufacturer, vulnerabilities and many more.
+ </longdescription>
+</pkgmetadata>