From 7ba1cda7f228e8a62f66c49579b25d755a445062 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 20 Jul 2018 17:40:33 +0200 Subject: [PATCH] Add hostapd package Signed-off-by: David Oberhollenzer --- pkg/hostapd/build | 35 +++++++++++++++++++++++++++ pkg/hostapd/config | 47 ++++++++++++++++++++++++++++++++++++ pkg/hostapd/rootfs_files.txt | 3 +++ 3 files changed, 85 insertions(+) create mode 100755 pkg/hostapd/build create mode 100644 pkg/hostapd/config create mode 100644 pkg/hostapd/rootfs_files.txt diff --git a/pkg/hostapd/build b/pkg/hostapd/build new file mode 100755 index 0000000..e0f4130 --- /dev/null +++ b/pkg/hostapd/build @@ -0,0 +1,35 @@ +VERSION="2.6" +SRCDIR="hostapd-${VERSION}" +TARBALL="${SRCDIR}.tar.gz" +URL="https://w1.fi/releases/" +SHA256SUM="01526b90c1d23bec4b0f052039cc4456c2fd19347b4d830d1d58a0a6aea7117d" +DEPENDS="libnl3 openssl" + +prepare() { + return +} + +build() { + cp -r ${1}/* ${PKGBUILDDIR} + cp "$SCRIPTDIR/pkg/$PKGNAME/config" "$PKGBUILDDIR/hostapd/.config" + + export PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET" + make CC=${TARGET}-gcc -C hostapd -j $NUMJOBS +} + +deploy() { + local SOURCE="$1" + local DEPLOY="$2" + + mkdir -p "$DEPLOY/etc" + cat_file_override "hostapd.conf" > "$DEPLOY/etc/hostapd.conf" + + make -C hostapd BINDIR=/bin DESTDIR="$DEPLOY" install + cp "$SCRIPTDIR/pkg/$PKGNAME/rootfs_files.txt" "$DEPLOY" +} + +check_update() { + curl --silent -L "$URL" | grep -o ">hostapd-[0-9.]*tar.gz<" | \ + sed 's/>hostapd-//g' | sed 's/.tar.gz