wok-next annotate hostapd/receipt @ rev 10745

hostapd: Fix receipt (missing $stuff)
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 11:00:41 2011 +0200 (2011-05-30)
parents b155db5655e0
children 50879362c14d
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 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@5824 9 WEB_SITE="http://hostap.epitest.fi/hostapd/"
gokhlayeh@5824 10 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
gokhlayeh@5824 11
pankso@10745 12 DEPENDS="openssl libnl"
pankso@10745 13 BUILD_DEPENDS="openssl-dev libnl-dev"
pankso@10745 14
gokhlayeh@5824 15 # Rules to configure and make the package.
gokhlayeh@5824 16 compile_rules()
gokhlayeh@5824 17 {
pankso@10745 18 cp -a $stuff/config $src/hostapd/.config
slaxemulator@8637 19 mkdir -p $DESTDIR/usr/bin
gokhlayeh@5824 20
gokhlayeh@5824 21 cd $src/hostapd
gokhlayeh@5824 22
slaxemulator@8637 23 sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
gokhlayeh@5824 24
slaxemulator@8637 25 make && make DESTDIR=$DESTDIR install
slaxemulator@8637 26
slaxemulator@8637 27 [ -d $DESTDIR/etc/hostapd ] || mkdir -p $DESTDIR/etc/hostapd
slaxemulator@8637 28 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 29 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 30 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 31 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 32 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
slaxemulator@8637 33 $DESTDIR/etc/hostapd
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 cp -a $_pkg/usr/bin $fs/usr
pankso@10745 41 cp -a $stuff/hostapd $fs/etc/init.d
gokhlayeh@5824 42 }