mirror of
https://github.com/pygos/build.git
synced 2024-11-22 11:09:46 +01:00
Add wifi command line tools
Signed-off-by: David Oberhollenzer <david.oberhollenzer@tele2.at>
This commit is contained in:
parent
7a735f1a75
commit
4bd18560dd
5 changed files with 86 additions and 0 deletions
|
@ -9,5 +9,6 @@ nftables
|
||||||
kbd
|
kbd
|
||||||
firmware-rpi3
|
firmware-rpi3
|
||||||
dhcpcd
|
dhcpcd
|
||||||
|
iw
|
||||||
linux-firmware-rpi3
|
linux-firmware-rpi3
|
||||||
linux-rpi3
|
linux-rpi3
|
||||||
|
|
35
pkg/iw/build
Executable file
35
pkg/iw/build
Executable file
|
@ -0,0 +1,35 @@
|
||||||
|
VERSION="4.14"
|
||||||
|
SRCDIR="iw-${VERSION}"
|
||||||
|
TARBALL="${SRCDIR}.tar.xz"
|
||||||
|
URL="https://mirrors.edge.kernel.org/pub/software/network/iw"
|
||||||
|
SHA256SUM="f01671c0074bfdec082a884057edba1b9efd35c89eda554638496f03b769ad89"
|
||||||
|
DEPENDS="libnl3"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
cp -r ${1}/* ${PKGBUILDDIR}
|
||||||
|
|
||||||
|
export PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET"
|
||||||
|
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
|
||||||
|
SBINDIR=/bin DESTDIR="$2" -j $NUMJOBS
|
||||||
|
}
|
||||||
|
|
||||||
|
deploy() {
|
||||||
|
local SOURCE="$1"
|
||||||
|
local DEPLOY="$2"
|
||||||
|
|
||||||
|
export PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET"
|
||||||
|
make CC="${TARGET}-gcc" PKG_CONFIG="${TARGET}-pkg-config" PREFIX= \
|
||||||
|
SBINDIR=/bin DESTDIR="$DEPLOY" install
|
||||||
|
|
||||||
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_update() {
|
||||||
|
curl --silent -L $URL | grep -o "iw-[0-9.]*tar.xz" | \
|
||||||
|
sed 's/iw-//g' | sed 's/.tar.xz//g' | \
|
||||||
|
verson_find_greatest "$VERSION"
|
||||||
|
}
|
1
pkg/iw/rootfs_files.txt
Normal file
1
pkg/iw/rootfs_files.txt
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bin/iw m 555 0 0
|
31
pkg/libnl3/build
Normal file
31
pkg/libnl3/build
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
VERSION="3.2.25"
|
||||||
|
SRCDIR="libnl-${VERSION}"
|
||||||
|
TARBALL="${SRCDIR}.tar.gz"
|
||||||
|
URL="https://www.infradead.org/~tgr/libnl/files"
|
||||||
|
SHA256SUM="8beb7590674957b931de6b7f81c530b85dc7c1ad8fbda015398bc1e8d1ce8ec5"
|
||||||
|
DEPENDS="toolchain"
|
||||||
|
|
||||||
|
prepare() {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
|
build() {
|
||||||
|
$1/configure --prefix="" --host="$TARGET" --disable-static \
|
||||||
|
--disable-cli
|
||||||
|
|
||||||
|
make -j $NUMJOBS
|
||||||
|
}
|
||||||
|
|
||||||
|
deploy() {
|
||||||
|
local SOURCE="$1"
|
||||||
|
local DEPLOY="$2"
|
||||||
|
|
||||||
|
make DESTDIR="$DEPLOY" install
|
||||||
|
cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY"
|
||||||
|
}
|
||||||
|
|
||||||
|
check_update() {
|
||||||
|
curl --silent -L "$URL" | grep -o ">libnl-[0-9.]*tar.gz<" | \
|
||||||
|
sed 's/>libnl-//g' | sed 's/.tar.gz<//g' | \
|
||||||
|
verson_find_greatest "$VERSION"
|
||||||
|
}
|
18
pkg/libnl3/rootfs_files.txt
Normal file
18
pkg/libnl3/rootfs_files.txt
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
etc/libnl m 555 0 0
|
||||||
|
etc/libnl/classid m 444 0 0
|
||||||
|
etc/libnl/pktloc m 444 0 0
|
||||||
|
lib/libnl-3.so m 777 0 0
|
||||||
|
lib/libnl-3.so.200 m 777 0 0
|
||||||
|
lib/libnl-3.so.200.20.0 m 555 0 0
|
||||||
|
lib/libnl-idiag-3.so m 777 0 0
|
||||||
|
lib/libnl-idiag-3.so.200 m 777 0 0
|
||||||
|
lib/libnl-idiag-3.so.200.20.0 m 555 0 0
|
||||||
|
lib/libnl-route-3.so m 777 0 0
|
||||||
|
lib/libnl-route-3.so.200 m 777 0 0
|
||||||
|
lib/libnl-route-3.so.200.20.0 m 555 0 0
|
||||||
|
lib/libnl-genl-3.so m 777 0 0
|
||||||
|
lib/libnl-genl-3.so.200 m 777 0 0
|
||||||
|
lib/libnl-genl-3.so.200.20.0 m 555 0 0
|
||||||
|
lib/libnl-nf-3.so m 777 0 0
|
||||||
|
lib/libnl-nf-3.so.200 m 777 0 0
|
||||||
|
lib/libnl-nf-3.so.200.20.0 m 555 0 0
|
Loading…
Reference in a new issue