wok-6.x rev 10746

hostapd: put file copy in genpkg_rules
author Christophe Lincoln <pankso@slitaz.org>
date Mon May 30 11:03:56 2011 +0200 (2011-05-30)
parents b05d31223509
children 8d5771fa17ee
files hostapd/receipt
line diff
     1.1 --- a/hostapd/receipt	Mon May 30 11:00:41 2011 +0200
     1.2 +++ b/hostapd/receipt	Mon May 30 11:03:56 2011 +0200
     1.3 @@ -17,26 +17,23 @@
     1.4  {
     1.5  	cp -a $stuff/config $src/hostapd/.config
     1.6  	mkdir -p $DESTDIR/usr/bin
     1.7 +	cd $src/hostapd
     1.8 +	sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile &&
     1.9 +	make && make DESTDIR=$DESTDIR install
    1.10 +}
    1.11  
    1.12 -	cd $src/hostapd
    1.13 -
    1.14 -	sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile
    1.15 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.16 +genpkg_rules()
    1.17 +{
    1.18 +	mkdir -p $fs/usr $fs/etc/init.d $fs/etc/hostapd
    1.19  	
    1.20 -	make && make DESTDIR=$DESTDIR install
    1.21 -
    1.22 -	[ -d $DESTDIR/etc/hostapd ] || mkdir -p $DESTDIR/etc/hostapd
    1.23  	cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \
    1.24  		$src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \
    1.25  		$src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \
    1.26  		$src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \
    1.27  		$src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \
    1.28 -		$DESTDIR/etc/hostapd
    1.29 -}
    1.30 -
    1.31 -# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 -genpkg_rules()
    1.33 -{
    1.34 -	mkdir -p $fs/usr $fs/etc/init.d
    1.35 +		$fs/etc/hostapd
    1.36 +	
    1.37  	cp -a $_pkg/usr/bin $fs/usr
    1.38  	cp -a $stuff/hostapd $fs/etc/init.d
    1.39  }