wok annotate hostapd/receipt @ rev 14736

ntp: Up (4.2.6p5)
author Richard Dunbar <mojo@slitaz.org>
date Thu Jun 13 18:12:27 2013 +0000 (2013-06-13)
parents 70b94e047471
children 7896f0694ef6
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 {
pascal@13401 18 patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch || return 1
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
pascal@13400 32 cp -a $stuff/hostapd $fs/etc/init.d &&
slaxemulator@8637 33 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 34 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 35 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 36 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 37 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
pascal@13400 38 $fs/etc/hostapd &&
gokhlayeh@5824 39 cp -a $_pkg/usr/bin $fs/usr
gokhlayeh@5824 40 }