wok-next view hostapd/receipt @ rev 13019

Up perl-berkeleydb (0.51)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Jun 09 10:39:06 2012 +0200 (2012-06-09)
parents 50879362c14d
children 70b94e047471
line source
1 # SliTaz package receipt.
3 PACKAGE="hostapd"
4 VERSION="1.0"
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 patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch
19 cp -a $stuff/config $src/hostapd/.config
20 mkdir -p $DESTDIR/usr/bin
21 cd $src/hostapd
22 sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
23 export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)"
24 make && make DESTDIR=$DESTDIR install
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
32 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
33 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
34 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
35 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
36 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
37 $fs/etc/hostapd
39 cp -a $_pkg/usr/bin $fs/usr
40 cp -a $stuff/hostapd $fs/etc/init.d
41 }