SliTaz Packages

Community Doc Forum Pro Shop Bugs Hg
.

Receipt for package "wpa_supplicant"

# 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 <<EOT
# wpa_supplicant daemon options
WPA_OPTIONS="-B -P/var/run/wpa_supplicant.pid -c/etc/wpa_supplicant.conf -i\$(. /etc/network.conf ; echo \$WIFI_INTERFACE)"

EOT
    # 'w' option dont exist anymore with < 0.6.9
    sed -i s/'-Bw'/'-B'/ $1/etc/daemons.conf
    sed -i s/'-B -w'/'-B'/g $1/etc/init.d/network.sh
}
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)