wok-current annotate hostapd/receipt @ rev 12862

Up: hostapd to 1.0.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu May 24 21:09:25 2012 +0000 (2012-05-24)
parents 50879362c14d
children 70b94e047471
rev   line source
gokhlayeh@5824 1 # SliTaz package receipt.
gokhlayeh@5824 2
gokhlayeh@5824 3 PACKAGE="hostapd"
slaxemulator@12862 4 VERSION="1.0"
gokhlayeh@5824 5 CATEGORY="network"
gokhlayeh@5824 6 SHORT_DESC="Daemon for wireless software access points."
gokhlayeh@7034 7 MAINTAINER="gokhlayeh@slitaz.org"
gokhlayeh@5824 8 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@5824 9 WEB_SITE="http://hostap.epitest.fi/hostapd/"
gokhlayeh@5824 10 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
gokhlayeh@5824 11
pankso@10745 12 DEPENDS="openssl libnl"
pankso@10745 13 BUILD_DEPENDS="openssl-dev libnl-dev"
pankso@10745 14
gokhlayeh@5824 15 # Rules to configure and make the package.
gokhlayeh@5824 16 compile_rules()
gokhlayeh@5824 17 {
slaxemulator@12862 18 patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch
pankso@10745 19 cp -a $stuff/config $src/hostapd/.config
slaxemulator@8637 20 mkdir -p $DESTDIR/usr/bin
pankso@10746 21 cd $src/hostapd
slaxemulator@12862 22 sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
slaxemulator@12862 23 export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)"
pankso@10746 24 make && make DESTDIR=$DESTDIR install
pankso@10746 25 }
gokhlayeh@5824 26
pankso@10746 27 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10746 28 genpkg_rules()
pankso@10746 29 {
pankso@10746 30 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
gokhlayeh@5824 31
slaxemulator@8637 32 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 33 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 34 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 35 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 36 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
pankso@10746 37 $fs/etc/hostapd
pankso@10746 38
gokhlayeh@5824 39 cp -a $_pkg/usr/bin $fs/usr
pankso@10745 40 cp -a $stuff/hostapd $fs/etc/init.d
gokhlayeh@5824 41 }