1
0
Fork 0
mirror of https://github.com/pygos/build.git synced 2024-05-20 12:36:14 +02:00
build/pkg/hostapd/build
David Oberhollenzer 55463cf428 Cleanup dependencies to toolchain
- crt-dev is a dependency of toolchain
 - basefiles is a dependency of toolchain
 - libstdc++ is (now also) a dependency of toolchain

This commit removes direct build dependencies to the above and replacest
them with dependencies to the toolchain package.

Signed-off-by: David Oberhollenzer <goliath@infraroot.at>
2019-03-30 23:28:30 +01:00

41 lines
976 B
Plaintext
Executable file

VERSION="2.7"
SRCDIR="hostapd-${VERSION}"
TARBALL="${SRCDIR}.tar.gz"
URL="https://w1.fi/releases/"
SHA256SUM="21b0dda3cc3abe75849437f6b9746da461f88f0ea49dd621216936f87440a141"
DEPENDS="libnl3-dev openssl-dev toolchain"
prepare() {
return
}
build() {
cp -r ${1}/* ${PKGBUILDDIR}
cp "$SCRIPTDIR/pkg/$PKGNAME/config" "$PKGBUILDDIR/hostapd/.config"
local cflags="-O2 -Os"
local ldflags=""
if [ "x$TC_HARDENING" = "xyes" ]; then
cflags="$cflags -fstack-protector-all"
ldflags="$ldflags -z noexecstack -z relro -z now"
fi
PKG_CONFIG_SYSROOT_DIR="$TCDIR/$TARGET" \
CFLAGS="-MMD -O2 $cflags" \
LDFLAGS="$ldflags" \
make CC=${TARGET}-gcc -C hostapd -j $NUMJOBS
}
deploy() {
mkdir -p "$PKGDEPLOYDIR/etc"
cat_file_override "hostapd.conf" > "$PKGDEPLOYDIR/etc/hostapd.conf"
make -C hostapd BINDIR=/bin DESTDIR="$PKGDEPLOYDIR" install
cp $SCRIPTDIR/pkg/$PKGNAME/*.{files,desc} "$PKGDEPLOYDIR"
}
check_update() {
check_update_simple "$URL" "hostapd-" "tar.gz"
}