# HG changeset patch # User Christopher Rogers # Date 1297740274 0 # Node ID b155db5655e072899c0e3fe5e504fc701a8decf9 # Parent 28aad63e4fd633370a1cedcaa2fec55881f1bf84 Fixed hostapd. diff -r 28aad63e4fd6 -r b155db5655e0 hostapd/receipt --- a/hostapd/receipt Tue Feb 15 02:13:01 2011 +0000 +++ b/hostapd/receipt Tue Feb 15 03:24:34 2011 +0000 @@ -15,28 +15,30 @@ compile_rules() { cp -a stuff/config $src/hostapd/.config - mkdir -p $src/_pkg/usr/bin + mkdir -p $DESTDIR/usr/bin cd $src/hostapd - sed -i "s|/usr/local/bin|$src/_pkg/usr/bin|" Makefile + sed -i "s|/usr/local/bin|$DESTDIR/usr/bin|" Makefile - make && make DESTDIR=$PWD/_pkg install + make && make DESTDIR=$DESTDIR install + + [ -d $DESTDIR/etc/hostapd ] || mkdir -p $DESTDIR/etc/hostapd + cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \ + $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \ + $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \ + $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \ + $src/hostapd/wired.conf $src/hostapd/hlr_auc_gw.milenage_db \ + $DESTDIR/etc/hostapd + } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { - mkdir -p $fs/usr $fs/etc/hostapd $fs/etc/init.d + mkdir -p $fs/usr $fs/etc/init.d cp -a $_pkg/usr/bin $fs/usr - cp -a $src/hostapd/hostapd.accept $src/hostapd/hostapd.conf \ - $src/hostapd/hostapd.deny $src/hostapd/hostapd.eap_user \ - $src/hostapd/hostapd.radius_clients $src/hostapd/hostapd.sim_db \ - $src/hostapd/hostapd.vlan $src/hostapd/hostapd.wpa_psk \ - $src/hostapd/wired.conf $src/src/hlr_auc_gw/hlr_auc_gw.milenage_db \ - $fs/etc/hostapd - cp -a stuff/hostapd $fs/etc/init.d }