wok-current view hostapd/receipt @ rev 25586

Fix linux build with gcc > 6 again
author Stanislas Leduc <shann@slitaz.org>
date Mon May 29 12:23:26 2023 +0000 (19 months ago)
parents af8d823a3077
children
line source
1 # SliTaz package receipt.
3 PACKAGE="hostapd"
4 VERSION="2.10"
5 CATEGORY="network"
6 SHORT_DESC="Daemon for wireless software access points."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="https://w1.fi/hostapd"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="${WEB_SITE%/*}/releases/$TARBALL"
13 DEPENDS="openssl libnl"
14 BUILD_DEPENDS="openssl-dev libnl-dev"
16 HOST_ARCH="i486 arm"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - $WEB_SITE 2>/dev/null | \
22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 cd $src/hostapd &&
29 cp -a $stuff/config .config &&
30 sed -i "s|/usr/local/bin|/usr/bin|" Makefile &&
31 make &&
32 make install DESTDIR=$DESTDIR
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr $fs/etc/init.d
39 mkdir -p $fs/etc/hostapd
40 mkdir -p $install/usr/share/man
41 mkdir -p $install/usr/share/doc
43 cp -a $src/hostapd/*.[1-8] $install/usr/share/man
44 cp -a $src/hostapd/README* $install/usr/share/doc
45 cp -a $src/hostapd/ChangeLog $install/usr/share/doc
46 cp -a $src/hostapd/*.conf $install/usr/share/doc
47 cp -a $src/hostapd/*.txt $install/usr/share/doc
48 cp -a $stuff/hostapd $fs/etc/init.d
49 cp -a $src/hostapd/hostapd.accept $fs/etc/hostapd
50 cp -a $src/hostapd/hostapd.conf $fs/etc/hostapd
51 cp -a $src/hostapd/hostapd.deny $fs/etc/hostapd
52 cp -a $src/hostapd/hostapd.eap_user $fs/etc/hostapd
53 cp -a $src/hostapd/hostapd.radius_clients \
54 $fs/etc/hostapd
55 cp -a $src/hostapd/hostapd.sim_db $fs/etc/hostapd
56 cp -a $src/hostapd/hostapd.vlan $fs/etc/hostapd
57 cp -a $src/hostapd/hostapd.wpa_psk $fs/etc/hostapd
58 cp -a $src/hostapd/wired.conf $fs/etc/hostapd
59 cp -a $src/hostapd/hlr_auc_gw.milenage_db \
60 $fs/etc/hostapd
61 cp -a $install/usr/bin $fs/usr
62 }