wok view hostapd/receipt @ rev 16344

Add: cellwriter (a grid-entry natural handwriting input panel with virtual keyboard)
author Christophe Lincoln <pankso@slitaz.org>
date Sat Apr 12 18:58:11 2014 +0200 (2014-04-12)
parents 7896f0694ef6
children fa39e0a3612e
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://hostap.epitest.fi/hostapd/"
11 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
13 DEPENDS="openssl libnl"
14 BUILD_DEPENDS="openssl-dev libnl-dev"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch || return 1
20 cp -a $stuff/config $src/hostapd/.config
21 mkdir -p $DESTDIR/usr/bin
22 cd $src/hostapd
23 sed -i "s|/usr/local/bin|/usr/bin|" Makefile
24 export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)"
25 make && make DESTDIR=$DESTDIR install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
33 cp -a $stuff/hostapd $fs/etc/init.d &&
34 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
35 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
36 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
37 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
38 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
39 $fs/etc/hostapd &&
40 cp -a $install/usr/bin $fs/usr
41 }