wok annotate hostapd/receipt @ rev 15648

Up libparserutils (0.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Dec 10 15:54:17 2013 +0000 (2013-12-10)
parents 7896f0694ef6
children fa39e0a3612e
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"
pascal@15002 8 LICENSE="GPL2"
gokhlayeh@5824 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
gokhlayeh@5824 10 WEB_SITE="http://hostap.epitest.fi/hostapd/"
gokhlayeh@5824 11 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL"
gokhlayeh@5824 12
pankso@10745 13 DEPENDS="openssl libnl"
pankso@10745 14 BUILD_DEPENDS="openssl-dev libnl-dev"
pankso@10745 15
gokhlayeh@5824 16 # Rules to configure and make the package.
gokhlayeh@5824 17 compile_rules()
gokhlayeh@5824 18 {
pascal@13401 19 patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch || return 1
pankso@10745 20 cp -a $stuff/config $src/hostapd/.config
slaxemulator@8637 21 mkdir -p $DESTDIR/usr/bin
pankso@10746 22 cd $src/hostapd
pascal@15388 23 sed -i "s|/usr/local/bin|/usr/bin|" Makefile
slaxemulator@12862 24 export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)"
pankso@10746 25 make && make DESTDIR=$DESTDIR install
pankso@10746 26 }
gokhlayeh@5824 27
pankso@10746 28 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10746 29 genpkg_rules()
pankso@10746 30 {
pankso@10746 31 mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
gokhlayeh@5824 32
pascal@13400 33 cp -a $stuff/hostapd $fs/etc/init.d &&
slaxemulator@8637 34 cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
slaxemulator@8637 35 $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
slaxemulator@8637 36 $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
slaxemulator@8637 37 $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
slaxemulator@8637 38 $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
pascal@13400 39 $fs/etc/hostapd &&
pascal@15002 40 cp -a $install/usr/bin $fs/usr
gokhlayeh@5824 41 }