first commit

This commit is contained in:
2026-08-21 15:21:29 +02:00
parent e8c6f98182
commit bcb8f9532f
22 changed files with 1980 additions and 0 deletions
+31
View File
@@ -0,0 +1,31 @@
#!/bin/sh
set -eu
ROOT=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
VERSION=0.1.0
PKGROOT="/tmp/librenet-scanner-debroot-$$"
trap 'rm -rf "$PKGROOT"' EXIT HUP INT TERM
OUT="$ROOT/dist"
rm -rf "$PKGROOT"
mkdir -p "$PKGROOT/DEBIAN" \
"$PKGROOT/usr/lib/python3/dist-packages/librenet_scanner" \
"$PKGROOT/usr/bin" \
"$PKGROOT/usr/share/applications" \
"$PKGROOT/usr/share/icons/hicolor/scalable/apps" \
"$PKGROOT/usr/share/doc/librenet-scanner" \
"$OUT"
cp "$ROOT/packaging/debian/control" "$PKGROOT/DEBIAN/control"
cp "$ROOT/src/librenet_scanner/"*.py "$PKGROOT/usr/lib/python3/dist-packages/librenet_scanner/"
cat > "$PKGROOT/usr/bin/librenet-scanner" <<'EOS'
#!/bin/sh
exec python3 -m librenet_scanner "$@"
EOS
chmod 0755 "$PKGROOT/usr/bin/librenet-scanner"
cp "$ROOT/assets/librenet-scanner.desktop" "$PKGROOT/usr/share/applications/"
cp "$ROOT/assets/librenet-scanner.svg" "$PKGROOT/usr/share/icons/hicolor/scalable/apps/"
cp "$ROOT/README.md" "$PKGROOT/usr/share/doc/librenet-scanner/README.md"
cp "$ROOT/LICENSE" "$PKGROOT/usr/share/doc/librenet-scanner/LICENSE"
find "$PKGROOT" -type d -exec chmod 0755 {} +
find "$PKGROOT" -type f -exec chmod 0644 {} +
chmod 0755 "$PKGROOT/usr/bin/librenet-scanner" "$PKGROOT/DEBIAN"
dpkg-deb --root-owner-group --build "$PKGROOT" "$OUT/librenet-scanner_${VERSION}_all.deb"
echo "$OUT/librenet-scanner_${VERSION}_all.deb"
+12
View File
@@ -0,0 +1,12 @@
Package: librenet-scanner
Version: 0.1.0
Section: net
Priority: optional
Architecture: all
Maintainer: Local package <root@localhost>
Depends: python3, python3-pyside6.qtwidgets, nmap, arp-scan, iproute2, xdg-utils, iputils-ping
Suggests: konsole, remmina
Description: scanner reseau graphique libre pour Linux
LibreNet Scanner fournit une interface Qt simple pour decouvrir les hotes,
adresses MAC, constructeurs et services d'un reseau en utilisant Nmap et
arp-scan comme moteurs externes.