|
|
|
name=hostapd
|
|
|
|
version=2.6
|
|
|
|
update_url="http://w1.fi/$name/"
|
|
|
|
|
|
|
|
define_option '!rtlxdrv: Build with support for RTL8188{C|CU|CUS} wifi chips'
|
|
|
|
|
|
|
|
dlextract "http://w1.fi/releases/$name-$version.tar.gz" \
|
|
|
|
'eaa56dce9bd8f1d195eb62596eab34c7'
|
|
|
|
|
|
|
|
if option rtlxdrv; then
|
|
|
|
dlfile 'https://raw.githubusercontent.com/pritambaral/hostapd-rtl871xdrv/601a3f19d78393018f39a2e38ad14bf2e3315a0a/rtlxdrv.patch' \
|
|
|
|
'fef4f428e4aae71f5202a61f656952da'
|
|
|
|
fi
|
|
|
|
header_end
|
|
|
|
|
|
|
|
cd "$name-$version"
|
|
|
|
option rtlxdrv patch -p1 -i ../rtlxdrv.patch
|
|
|
|
|
|
|
|
cd "$name"
|
|
|
|
cp defconfig .config
|
|
|
|
option rtlxdrv echo CONFIG_DRIVER_RTW=y >> .config
|
|
|
|
make
|
|
|
|
|
|
|
|
install -Dm755 -t "$dir_install/$dir_prefix/$dir_bindir" "$name" "${name}_cli"
|
|
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man1" "${name}_cli.1"
|
|
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_mandir/man8" "${name}.8"
|
|
|
|
install -Dm644 -t "$dir_install/$dir_prefix/$dir_docdir/$name" \
|
|
|
|
$name.accept $name.conf $name.deny $name.eap_user $name.radius_clients \
|
|
|
|
$name.sim_db $name.vlan $name.wpa_psk wired.conf hlr_auc_gw.milenage_db
|
|
|
|
|
|
|
|
# vim:set tabstop=4 shiftwidth=4 syntax=sh expandtab:
|