wok view hostapd/receipt @ rev 15029

partclone: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Aug 12 09:47:27 2013 +0000 (2013-08-12)
parents aa1e6d5cc0d6
children 4f3e82a679d0
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|$DESTDIR/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 }