wok annotate hostapd/receipt @ rev 24512

updated electric-fence (2.2.5 -> 2.2.6)
author Hans-G?nter Theisgen
date Mon Feb 21 10:26:56 2022 +0100 (2022-02-21)
parents def8459358ed
children 85d57ffe7860
rev   line source
gokhlayeh@5824 1 # SliTaz package receipt.
gokhlayeh@5824 2
gokhlayeh@5824 3 PACKAGE="hostapd"
pascal@21872 4 VERSION="2.9"
gokhlayeh@5824 5 CATEGORY="network"
gokhlayeh@5824 6 SHORT_DESC="Daemon for wireless software access points."
pankso@16395 7 MAINTAINER="pankso@slitaz.org"
pascal@15002 8 LICENSE="GPL2"
gokhlayeh@5824 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21872 10 WEB_SITE="https://w1.fi/hostapd"
pascal@21872 11 WGET_URL="${WEB_SITE%/*}/releases/$TARBALL"
pankso@16395 12 HOST_ARCH="i486 arm"
gokhlayeh@5824 13
pankso@10745 14 DEPENDS="openssl libnl"
pankso@10745 15 BUILD_DEPENDS="openssl-dev libnl-dev"
pankso@10745 16
pascal@24445 17 # What is the latest version available today?
pascal@24445 18 current_version()
pascal@24445 19 {
pascal@24445 20 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24445 21 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 22 }
pascal@24445 23
gokhlayeh@5824 24 # Rules to configure and make the package.
gokhlayeh@5824 25 compile_rules()
gokhlayeh@5824 26 {
pankso@16395 27 cd $src/hostapd &&
pankso@16395 28 cp -a $stuff/config .config &&
pankso@16395 29 sed -i "s|/usr/local/bin|/usr/bin|" Makefile &&
pankso@10746 30 make && make DESTDIR=$DESTDIR install
pankso@10746 31 }
gokhlayeh@5824 32
pankso@10746 33 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10746 34 genpkg_rules()
pankso@10746 35 {
pankso@10746 36 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
pascal@20033 37 mkdir -p $install/usr/share/man $install/usr/share/doc
gokhlayeh@5824 38
pascal@20033 39 cp -a $src/hostapd/*.[1-8] $install/usr/share/man
pascal@20033 40 cp -a $src/hostapd/README* $install/usr/share/doc
pascal@20033 41 cp -a $src/hostapd/ChangeLog $install/usr/share/doc
pascal@20033 42 cp -a $src/hostapd/*.conf $install/usr/share/doc
pascal@20033 43 cp -a $src/hostapd/*.txt $install/usr/share/doc
pascal@13400 44 cp -a $stuff/hostapd $fs/etc/init.d &&
slaxemulator@8637 45 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 46 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 47 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 48 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 49 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
pascal@13400 50 $fs/etc/hostapd &&
pascal@15002 51 cp -a $install/usr/bin $fs/usr
gokhlayeh@5824 52 }