wok-current annotate hostapd/receipt @ rev 8637

Fixed hostapd.
author Christopher Rogers <slaxemulator@gmail.com>
date Tue Feb 15 03:24:34 2011 +0000 (2011-02-15)
parents af022550edde
children b05d31223509
rev   line source
gokhlayeh@5824 1 # SliTaz package receipt.
gokhlayeh@5824 2
gokhlayeh@5824 3 PACKAGE="hostapd"
gokhlayeh@6342 4 VERSION="0.7.3"
gokhlayeh@5824 5 CATEGORY="network"
gokhlayeh@5824 6 SHORT_DESC="Daemon for wireless software access points."
gokhlayeh@7034 7 MAINTAINER="gokhlayeh@slitaz.org"
gokhlayeh@5824 8 DEPENDS="openssl libnl"
gokhlayeh@5824 9 BUILD_DEPENDS="openssl-dev libnl-dev"
gokhlayeh@5824 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@5824 11 WEB_SITE="http://hostap.epitest.fi/hostapd/"
gokhlayeh@5824 12 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
gokhlayeh@5824 13
gokhlayeh@5824 14 # Rules to configure and make the package.
gokhlayeh@5824 15 compile_rules()
gokhlayeh@5824 16 {
gokhlayeh@5824 17 cp -a stuff/config $src/hostapd/.config
slaxemulator@8637 18 mkdir -p $DESTDIR/usr/bin
gokhlayeh@5824 19
gokhlayeh@5824 20 cd $src/hostapd
gokhlayeh@5824 21
slaxemulator@8637 22 sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
gokhlayeh@5824 23
slaxemulator@8637 24 make && make DESTDIR=$DESTDIR install
slaxemulator@8637 25
slaxemulator@8637 26 [ -d $DESTDIR/etc/hostapd ] || mkdir -p $DESTDIR/etc/hostapd
slaxemulator@8637 27 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 28 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 29 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 30 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 31 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
slaxemulator@8637 32 $DESTDIR/etc/hostapd
slaxemulator@8637 33
gokhlayeh@5824 34 }
gokhlayeh@5824 35
gokhlayeh@5824 36 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@5824 37 genpkg_rules()
gokhlayeh@5824 38 {
slaxemulator@8637 39 mkdir -p $fs/usr $fs/etc/init.d
gokhlayeh@5824 40
gokhlayeh@5824 41 cp -a $_pkg/usr/bin $fs/usr
gokhlayeh@5824 42
gokhlayeh@5824 43 cp -a stuff/hostapd $fs/etc/init.d
gokhlayeh@5824 44 }