wok-current view hostapd/receipt @ rev 14022

Up gst-plugins-bad-dev (0.10.23)
author Dominique Corbex <domcox@slitaz.org>
date Sun Feb 17 20:04:11 2013 +0100 (2013-02-17)
parents 70b94e047471
children 7896f0694ef6
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 || return 1
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 $stuff/hostapd $fs/etc/init.d &&
33 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
34 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
35 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
36 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
37 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
38 $fs/etc/hostapd &&
39 cp -a $_pkg/usr/bin $fs/usr
40 }