wok-6.x view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="hostapd"
4 VERSION="0.7.3"
5 CATEGORY="network"
6 SHORT_DESC="Daemon for wireless software access points."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://hostap.epitest.fi/hostapd/"
10 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
12 DEPENDS="openssl libnl"
13 BUILD_DEPENDS="openssl-dev libnl-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cp -a $stuff/config $src/hostapd/.config
19 mkdir -p $DESTDIR/usr/bin
21 cd $src/hostapd
23 sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
25 make && make DESTDIR=$DESTDIR install
27 [ -d $DESTDIR/etc/hostapd ] || mkdir -p $DESTDIR/etc/hostapd
28 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
29 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
30 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
31 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
32 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
33 $DESTDIR/etc/hostapd
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr $fs/etc/init.d
40 cp -a $_pkg/usr/bin $fs/usr
41 cp -a $stuff/hostapd $fs/etc/init.d
42 }