diff --git a/lists/to-release b/lists/to-release index e69de29bb2d..6790c321426 100644 --- a/lists/to-release +++ b/lists/to-release @@ -0,0 +1,2 @@ +uniflash +sniffle diff --git a/lists/to-release-arm b/lists/to-release-arm index fdbe37fc9bd..e243029c55c 100644 --- a/lists/to-release-arm +++ b/lists/to-release-arm @@ -4,3 +4,4 @@ hexyl kismet ltrace valgrind +sniffle diff --git a/packages/sniffle/PKGBUILD b/packages/sniffle/PKGBUILD new file mode 100644 index 00000000000..b15e3494df4 --- /dev/null +++ b/packages/sniffle/PKGBUILD @@ -0,0 +1,53 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=sniffle +_pkgname=Sniffle +pkgver=v1.10.0.r102.g9c57a71 +pkgrel=1 +pkgdesc='A sniffer for Bluetooth 5 and 4.x LE.' +arch=('aarch64') +groups=('blackarch' 'blackarch-bluetooth') +url='https://github.com/nccgroup/Sniffle' +license=('GPL-3.0') +depends=('python' 'python-pyserial') +makedepends=('git' 'arm-none-eabi-gcc' 'cmake') +source=("git+https://github.com/nccgroup/$_pkgname.git" + "https://dr-download.ti.com/software-development/software-development-kit-sdk/MD-BPlR3djvTV/7.41.00.17/simplelink_cc13xx_cc26xx_sdk_7_41_00_17.run") +sha512sums=('SKIP' + '255f90b03deffde785385c5e4606fa159f4cc49d9fdf847ee53cc7cf0bd6eb03155e5f8a937174d852416bb708c39b910536f1fb3a8d41a1770b24dd89eb7465') + +pkgver() { + cd $_pkgname + + ( set -o pipefail + git describe --long --tags --abbrev=7 2>/dev/null | + sed 's/\([^-]*-g\)/r\1/;s/-/./g' || + printf "%s.%s" "$(git rev-list --count HEAD)" \ + "$(git rev-parse --short=7 HEAD)" + ) +} + +prepare() { + chmod +x simplelink_cc13xx_cc26xx_sdk_7_41_00_17.run + ./simplelink_cc13xx_cc26xx_sdk_7_41_00_17.run --prefix "$srcdir" --mode unattended +} + +build() { + cd simplelink_cc13xx_cc26xx_sdk_7_41_00_17 + + make build-gcc XDC_INSTALL_DIR="../xdctools_3_62_01_15_core" \ + SYSCONFIG_TOOL="../sysconfig_1.18.1/sysconfig_cli.sh" \ + CMAKE="cmake" \ + PYTHON="python" \ + GCC_ARMCOMPILER="/usr" +} + +package() { + cd $_pkgname/fw + + make DESTDIR="$pkgdir" + + install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" *.md +} + diff --git a/packages/uniflash/62-msp430uif.rules b/packages/uniflash/62-msp430uif.rules new file mode 100644 index 00000000000..c219dcb0226 --- /dev/null +++ b/packages/uniflash/62-msp430uif.rules @@ -0,0 +1,7 @@ +#TI MSP430UIF +ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0010",MODE="0666" +ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0013",MODE="0666" +ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0014",MODE="0666" +ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0203",MODE="0666" +ATTRS{idVendor}=="2047",ATTRS{idProduct}=="0204",MODE="0666" +ATTRS{idVendor}=="0451",ATTRS{idProduct}=="f432",MODE="0666" diff --git a/packages/uniflash/PKGBUILD b/packages/uniflash/PKGBUILD new file mode 100644 index 00000000000..7394840ca77 --- /dev/null +++ b/packages/uniflash/PKGBUILD @@ -0,0 +1,46 @@ +# This file is part of BlackArch Linux ( https://www.blackarch.org/ ). +# See COPYING for license details. + +pkgname=uniflash +pkgver=8.7.0.4818 +pkgrel=1 +pkgdesc="Universal Flash Programmer for Texas Instruments devices. Provides a single interface for programming Flash memory and executing Flash based operations on supported targets." +arch=('i686' 'x86_64') +url="https://processors.wiki.ti.com/index.php/Category:CCS_UniFlash" +license=('custom:TECHNOLOGY SOFTWARE PUBLICLY AVAILABLE by Texas Instruments Incorporated') +depends=('gconf' 'libudev0-shim' 'libusb-compat' 'libcanberra') +optdepends=( + 'python2: The SimpleLink CC31xx/CC32xx families require Python2.7' +) +source=(${pkgname}_sl.$pkgver.run::https://dr-download.ti.com/software-development/software-programming-tool/MD-QeJBJLj8gq/8.7.0/${pkgname}_sl.$pkgver.run + 62-msp430uif.rules) +noextract=("${pkgname}_sl.$pkgver.run" ) +options=(!strip) +sha512sums=('bd6e5933b3efaa3743f374ff1bdce4912236328be3a9105e9d7bda4f4c04b19b56bd61f20da8e0ab60a3f64a525b0a337d990023108e02bdd679e02d85492799' + '144993d8e63a7b9c30f5f41acc578513a78f92bf5180124b6d755069045194b935daeec294749be5013cfdfb21f7f00ee3152392d1b3d886f0ce20d58e41cd31') + +DLAGENTS=('https::/usr/bin/curl -fLC - --cookie nada -o %o %u') +prepare() { + cd "$srcdir" + + msg "If you continue you will accept the license, more information at https://processors.wiki.ti.com/index.php/Category:CCS_UniFlash." + chmod +x ${pkgname}_sl.$pkgver.run +} + +package() { + cd "$srcdir" + + ./${pkgname}_sl.$pkgver.run --unattendedmodeui none --mode unattended --prefix $pkgdir/opt/ti/uniflash + cd "$pkgdir/opt/ti/uniflash" + + sed -s "s|$pkgdir||g" -i UniFlash.desktop + install -d "$pkgdir/usr/share/applications" + install -m 644 "$pkgdir/opt/ti/uniflash/UniFlash.desktop" "$pkgdir/usr/share/applications/UniFlash.desktop" + + cd "TICloudAgentHostApp/install_scripts/" + install -d "$pkgdir/etc/udev/rules.d/" + install -m 644 -D "70-mm-no-ti-emulators.rules" "$pkgdir/etc/udev/rules.d/72-mm-no-ti-emulators.rules" + install -m 644 -D "71-ti-permissions.rules" "$pkgdir/etc/udev/rules.d/73-ti-permissions.rules" + install -m 644 "$srcdir/62-msp430uif.rules" "$pkgdir/etc/udev/rules.d/62-msp430uif.rules" +} +