# SliTaz package receipt. PACKAGE="wpa_supplicant" VERSION="0.7.3" CATEGORY="utilities" SHORT_DESC="WPA Supplicant with support for WPA and WPA2" MAINTAINER="0dddba11@googlemail.com" DEPENDS="libssl slitaz-base-files libcrypto" BUILD_DEPENDS="openssl-dev libcrypto libcrypto-dev" TARBALL="$PACKAGE-$VERSION.tar.gz" WEB_SITE="http://hostap.epitest.fi/wpa_supplicant/" WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" CONFIG_FILES="/etc/wpa_supplicant.conf" TAGS="wireless" # Rules to configure and make the package. compile_rules() { cd $src/$PACKAGE cp -a ./defconfig ./.config make } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/bin mkdir -p $fs/etc cp -a $src/$PACKAGE/wpa_cli $fs/usr/bin cp -a $src/$PACKAGE/wpa_supplicant $fs/usr/bin cp -a $src/$PACKAGE/wpa_passphrase $fs/usr/bin # dont copy the original # cp -a $src/$PACKAGE/wpa_supplicant.conf $fs/etc # Startup script and cleaned up wpa_supplicant.conf cp -a stuff/etc $fs } # Pre and post install commands for Tazpkg. post_install() { grep -q ^WPA_OPTIONS= $1/etc/daemons.conf || cat >> $1/etc/daemons.conf <