diff options
author | Brian Bidulock | 2015-06-10 05:12:10 -0600 |
---|---|---|
committer | Brian Bidulock | 2015-06-10 05:12:10 -0600 |
commit | 0725a5b32e0d1bf08f40636c8ac326581372a3fe (patch) | |
tree | de6898da8ad480c136d48b79b5b39dfb3e6e5ecb | |
download | aur-0725a5b32e0d1bf08f40636c8ac326581372a3fe.tar.gz |
initial version
-rw-r--r-- | .SRCINFO | 18 | ||||
-rw-r--r-- | PKGBUILD | 39 | ||||
-rw-r--r-- | btscanner.changelog | 17 | ||||
-rw-r--r-- | btscanner.patch | 57 |
4 files changed, 131 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO new file mode 100644 index 000000000000..59137319dc8c --- /dev/null +++ b/.SRCINFO @@ -0,0 +1,18 @@ +pkgbase = btscanner + pkgdesc = Bluetooth device scanner. + pkgver = 2.1 + pkgrel = 4 + url = http://www.pentest.co.uk + changelog = btscanner.changelog + arch = i686 + arch = x86_64 + license = GPL + depends = bluez-libs + depends = libxml2 + source = http://www.pentest.co.uk/src/btscanner-2.1.tar.bz2 + source = btscanner.patch + md5sums = 587ec5847647d432eac1704b260af020 + md5sums = c1e3d85b9a01f941a111ccf747389def + +pkgname = btscanner + diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 000000000000..58649edb7ede --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,39 @@ +# Maintainer: Brian Bidulock <bidulock@openss7.org> +# Contributor: Pranay Kanwar <pranay.kanwar@gmail.com> + +pkgname=btscanner +pkgver=2.1 +pkgrel=4 +pkgdesc="Bluetooth device scanner." +url="http://www.pentest.co.uk" +depends=('bluez-libs' 'libxml2') +arch=(i686 x86_64) +license=('GPL') +changelog=$pkgname.changelog +source=(http://www.pentest.co.uk/src/$pkgname-$pkgver.tar.bz2 + $pkgname.patch) +md5sums=('587ec5847647d432eac1704b260af020' + '0b552988bffa2a843e2c52eb5f3a2f7c') + +prepare() { + cd $pkgname-$pkgver + patch -Np1 -b -z .orig -i ../$pkgname.patch + mv configure.in configure.ac + autoreconf -fiv +} + +build() { + cd $pkgname-$pkgver + ./configure --prefix=/usr --sysconf=/etc/btscanner --datadir=/usr/share/btscanner + make V=0 +} + +package() { + cd $pkgname-$pkgver + make DESTDIR="${pkgdir}" install + # this is the only documentation + install -Dm644 README "${pkgdir}/usr/share/doc/${pkgname}/README" + install -Dm644 USAGE "${pkgdir}/usr/share/doc/${pkgname}/USAGE" +} +md5sums=('587ec5847647d432eac1704b260af020' + 'c1e3d85b9a01f941a111ccf747389def') diff --git a/btscanner.changelog b/btscanner.changelog new file mode 100644 index 000000000000..a1731585414b --- /dev/null +++ b/btscanner.changelog @@ -0,0 +1,17 @@ +2014-08-01 Brian Bidulock <bidulock@openss7.org> + + * 2.1-4: + corrected buffer overflow + +2013-04-11 Brian Bidulock <bidulock@openss7.org> + + * 2.1-3 : + updated patch to compile with gcc 4.8.0 + + * btscanner.patch : + removed CFLAGS changes altogether + + * btscanner.changelog : + added changelog + +# vim: ft=changelog diff --git a/btscanner.patch b/btscanner.patch new file mode 100644 index 000000000000..71a8efeac5ec --- /dev/null +++ b/btscanner.patch @@ -0,0 +1,57 @@ +diff -up btscanner-2.1/configure.in.orig btscanner-2.1/configure.in +--- btscanner-2.1/configure.in.orig 2005-11-21 06:56:56.000000000 -0700 ++++ btscanner-2.1/configure.in 2014-08-01 05:20:15.000000000 -0600 +@@ -62,15 +62,6 @@ AC_CHECK_HEADERS([libxml/parser.h libxml + [AC_MSG_ERROR([libxml2 headers MIA])]) + 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" +- + # cfg + AC_MSG_CHECKING(the location of the config file) + AC_ARG_WITH(cfgfile, +@@ -86,7 +77,7 @@ AC_ARG_WITH(cfgdtd, + [ cfgdtd="file://$sysconfdir/btscanner.dtd" ]) + AC_MSG_RESULT($cfgdtd) + +-CFLAGS="$CFLAGS -DCFG_FILE=\\\"$cfgfile\\\" -DCFG_DTD=\\\"$cfgdtd\\\"" ++CPPFLAGS="$CPPFLAGS -DCFG_FILE=\\\"$cfgfile\\\" -DCFG_DTD=\\\"$cfgdtd\\\"" + + # output + AC_CONFIG_FILES([Makefile]) +diff -up btscanner-2.1/Makefile.am.orig btscanner-2.1/Makefile.am +--- btscanner-2.1/Makefile.am.orig 2004-11-01 04:55:33.000000000 -0700 ++++ btscanner-2.1/Makefile.am 2014-08-01 05:21:11.000000000 -0600 +@@ -23,7 +23,8 @@ + + bin_PROGRAMS = btscanner + +-INCLUDES = -I$(top_srcdir) ++AM_CFLAGS = -Wall -pthread ++AM_CPPFLAGS = -D_GNU_SOURCE + + btscanner_SOURCES = main.c main.h \ + threader.c threader.h \ +diff -up btscanner-2.1/screen.c.orig btscanner-2.1/screen.c +--- btscanner-2.1/screen.c.orig 2005-08-17 15:15:59.000000000 -0600 ++++ btscanner-2.1/screen.c 2014-08-01 05:20:15.000000000 -0600 +@@ -985,9 +985,9 @@ int screen_init_bf(void) + bdaddr_t start, end; + + screen_init_bf_retry: +- memset(&cb, 0, sizeof(cbuf_t)); +- memset(&start, 0, sizeof(cbuf_t)); +- memset(&end, 0, sizeof(cbuf_t)); ++ memset(&cb, 0, sizeof(cb)); ++ memset(&start, 0, sizeof(start)); ++ memset(&end, 0, sizeof(end)); + ret = 0; + for (dl = 1; dl && bts_run; ) { + switch(screen_textbox("Start address", BD_RE, &cb)) { |