Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sniffle: add package #4349

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lists/to-release
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
uniflash
sniffle
1 change: 1 addition & 0 deletions lists/to-release-arm
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ hexyl
kismet
ltrace
valgrind
sniffle
53 changes: 53 additions & 0 deletions packages/sniffle/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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
}

7 changes: 7 additions & 0 deletions packages/uniflash/62-msp430uif.rules
Original file line number Diff line number Diff line change
@@ -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"
46 changes: 46 additions & 0 deletions packages/uniflash/PKGBUILD
Original file line number Diff line number Diff line change
@@ -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"
}

Loading