wok-current annotate hostapd/receipt @ rev 25356

updated tig (2.5.1 -> 2.5.6)
author Hans-G?nter Theisgen
date Wed Jul 27 06:32:16 2022 +0100 (2022-07-27)
parents af8d823a3077
children
rev   line source
gokhlayeh@5824 1 # SliTaz package receipt.
gokhlayeh@5824 2
gokhlayeh@5824 3 PACKAGE="hostapd"
Hans-G?nter@24646 4 VERSION="2.10"
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"
Hans-G?nter@24646 9 WEB_SITE="https://w1.fi/hostapd"
gokhlayeh@5824 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@21872 11 WGET_URL="${WEB_SITE%/*}/releases/$TARBALL"
gokhlayeh@5824 12
pankso@10745 13 DEPENDS="openssl libnl"
pankso@10745 14 BUILD_DEPENDS="openssl-dev libnl-dev"
pankso@10745 15
Hans-G?nter@24646 16 HOST_ARCH="i486 arm"
Hans-G?nter@24646 17
pascal@24445 18 # What is the latest version available today?
pascal@24445 19 current_version()
pascal@24445 20 {
pascal@24445 21 wget -O - $WEB_SITE 2>/dev/null | \
pascal@24445 22 sed "/latest/d;/$PACKAGE-[0-9]/!d;/tar/!d;s|.*$PACKAGE-\\(.*\\).tar.*|\\1|" | sort -Vr | sed q
pascal@24445 23 }
pascal@24445 24
gokhlayeh@5824 25 # Rules to configure and make the package.
gokhlayeh@5824 26 compile_rules()
gokhlayeh@5824 27 {
pankso@16395 28 cd $src/hostapd &&
pankso@16395 29 cp -a $stuff/config .config &&
pankso@16395 30 sed -i "s|/usr/local/bin|/usr/bin|" Makefile &&
Hans-G?nter@24646 31 make &&
Hans-G?nter@24646 32 make install DESTDIR=$DESTDIR
pankso@10746 33 }
gokhlayeh@5824 34
pankso@10746 35 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10746 36 genpkg_rules()
pankso@10746 37 {
Hans-G?nter@24646 38 mkdir -p $fs/usr $fs/etc/init.d
Hans-G?nter@24646 39 mkdir -p $fs/etc/hostapd
Hans-G?nter@24646 40 mkdir -p $install/usr/share/man
Hans-G?nter@24646 41 mkdir -p $install/usr/share/doc
Hans-G?nter@24646 42
Hans-G?nter@24646 43 cp -a $src/hostapd/*.[1-8] $install/usr/share/man
Hans-G?nter@24646 44 cp -a $src/hostapd/README* $install/usr/share/doc
Hans-G?nter@24646 45 cp -a $src/hostapd/ChangeLog $install/usr/share/doc
Hans-G?nter@24646 46 cp -a $src/hostapd/*.conf $install/usr/share/doc
Hans-G?nter@24646 47 cp -a $src/hostapd/*.txt $install/usr/share/doc
Hans-G?nter@24646 48 cp -a $stuff/hostapd $fs/etc/init.d
Hans-G?nter@24646 49 cp -a $src/hostapd/hostapd.accept $fs/etc/hostapd
Hans-G?nter@24646 50 cp -a $src/hostapd/hostapd.conf $fs/etc/hostapd
Hans-G?nter@24646 51 cp -a $src/hostapd/hostapd.deny $fs/etc/hostapd
Hans-G?nter@24646 52 cp -a $src/hostapd/hostapd.eap_user $fs/etc/hostapd
Hans-G?nter@24646 53 cp -a $src/hostapd/hostapd.radius_clients \
Hans-G?nter@24646 54 $fs/etc/hostapd
Hans-G?nter@24646 55 cp -a $src/hostapd/hostapd.sim_db $fs/etc/hostapd
Hans-G?nter@24646 56 cp -a $src/hostapd/hostapd.vlan $fs/etc/hostapd
Hans-G?nter@24646 57 cp -a $src/hostapd/hostapd.wpa_psk $fs/etc/hostapd
Hans-G?nter@24646 58 cp -a $src/hostapd/wired.conf $fs/etc/hostapd
Hans-G?nter@24646 59 cp -a $src/hostapd/hlr_auc_gw.milenage_db \
Hans-G?nter@24646 60 $fs/etc/hostapd
Hans-G?nter@24646 61 cp -a $install/usr/bin $fs/usr
gokhlayeh@5824 62 }