wok-6.x rev 16395
UP: hostapd (2.1), fix libnl missing pkgconfig file and add to ARM with rfkill
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 16 03:02:41 2014 +0200 (2014-04-16) |
parents | 345481aca32f |
children | 233707dcd752 |
files | hostapd/receipt hostapd/stuff/hostap_allow-linking-with-libnl-3.2.patch libnl-dev/receipt libnl-tools/receipt libnl/receipt rfkill/receipt |
line diff
1.1 --- a/hostapd/receipt Tue Apr 15 18:32:55 2014 +0200 1.2 +++ b/hostapd/receipt Wed Apr 16 03:02:41 2014 +0200 1.3 @@ -1,14 +1,15 @@ 1.4 # SliTaz package receipt. 1.5 1.6 PACKAGE="hostapd" 1.7 -VERSION="1.0" 1.8 +VERSION="2.1" 1.9 CATEGORY="network" 1.10 SHORT_DESC="Daemon for wireless software access points." 1.11 -MAINTAINER="gokhlayeh@slitaz.org" 1.12 +MAINTAINER="pankso@slitaz.org" 1.13 LICENSE="GPL2" 1.14 TARBALL="$PACKAGE-$VERSION.tar.gz" 1.15 WEB_SITE="http://hostap.epitest.fi/hostapd/" 1.16 WGET_URL="http://hostap.epitest.fi/releases/$TARBALL" 1.17 +HOST_ARCH="i486 arm" 1.18 1.19 DEPENDS="openssl libnl" 1.20 BUILD_DEPENDS="openssl-dev libnl-dev" 1.21 @@ -16,12 +17,9 @@ 1.22 # Rules to configure and make the package. 1.23 compile_rules() 1.24 { 1.25 - patch -Np1 -i $stuff/hostap_allow-linking-with-libnl-3.2.patch || return 1 1.26 - cp -a $stuff/config $src/hostapd/.config 1.27 - mkdir -p $DESTDIR/usr/bin 1.28 - cd $src/hostapd 1.29 - sed -i "s|/usr/local/bin|/usr/bin|" Makefile 1.30 - export CFLAGS="$CFLAGS $(pkg-config --cflags libnl-3.0)" 1.31 + cd $src/hostapd && 1.32 + cp -a $stuff/config .config && 1.33 + sed -i "s|/usr/local/bin|/usr/bin|" Makefile && 1.34 make && make DESTDIR=$DESTDIR install 1.35 } 1.36
2.1 --- a/hostapd/stuff/hostap_allow-linking-with-libnl-3.2.patch Tue Apr 15 18:32:55 2014 +0200 2.2 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 2.3 @@ -1,12 +0,0 @@ 2.4 -diff -up wpa_supplicant-1.0-rc2/src/drivers/drivers.mak.foo wpa_supplicant-1.0-rc2/src/drivers/drivers.mak 2.5 ---- wpa_supplicant-1.0-rc2/src/drivers/drivers.mak.foo 2012-03-02 16:11:43.176448714 -0600 2.6 -+++ wpa_supplicant-1.0-rc2/src/drivers/drivers.mak 2012-03-02 16:12:29.759866341 -0600 2.7 -@@ -48,7 +48,7 @@ NEED_RFKILL=y 2.8 - ifdef CONFIG_LIBNL32 2.9 - DRV_LIBS += -lnl-3 2.10 - DRV_LIBS += -lnl-genl-3 2.11 -- DRV_CFLAGS += -DCONFIG_LIBNL20 2.12 -+ DRV_CFLAGS += -DCONFIG_LIBNL20 `pkg-config --cflags libnl-3.0` 2.13 - else 2.14 - ifdef CONFIG_LIBNL_TINY 2.15 - DRV_LIBS += -lnl-tiny
3.1 --- a/libnl-dev/receipt Tue Apr 15 18:32:55 2014 +0200 3.2 +++ b/libnl-dev/receipt Wed Apr 16 03:02:41 2014 +0200 3.3 @@ -19,6 +19,7 @@ 3.4 cp -a $install/usr/include $fs/usr 3.5 cp -a $install/usr/lib/*.*a $fs/usr/lib 3.6 cp -a $install/usr/lib/libnl $fs/usr/lib 3.7 + cp -a $install/usr/lib/pkgconfig $fs/usr/lib 3.8 find $fs/usr/lib -type f -name "*.so" -exec rm -f {} \; 3.9 } 3.10
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 4.2 +++ b/libnl-tools/receipt Wed Apr 16 03:02:41 2014 +0200 4.3 @@ -0,0 +1,20 @@ 4.4 +# SliTaz package receipt. 4.5 + 4.6 +PACKAGE="libnl-tools" 4.7 +VERSION="3.2.13" 4.8 +CATEGORY="network" 4.9 +SHORT_DESC="The netlink tiny tools." 4.10 +MAINTAINER="pascal.bellard@slitaz.org" 4.11 +LICENSE="LGPL2.1" 4.12 +WEB_SITE="http://people.suug.ch/~tgr/libnl" 4.13 +HOST_ARCH="i486 arm" 4.14 + 4.15 +WANTED="libnl" 4.16 +DEPENDS="libnl" 4.17 + 4.18 +# Rules to gen a SliTaz package suitable for Tazpkg. 4.19 +genpkg_rules() 4.20 +{ 4.21 + mkdir -p $fs/usr 4.22 + cp -a $install/usr/sbin $fs/usr 4.23 +}
5.1 --- a/libnl/receipt Tue Apr 15 18:32:55 2014 +0200 5.2 +++ b/libnl/receipt Wed Apr 16 03:02:41 2014 +0200 5.3 @@ -17,7 +17,9 @@ 5.4 # Rules to configure and make the package. 5.5 compile_rules() 5.6 { 5.7 - ./configure $CONFIGURE_ARGS && 5.8 + ./configure \ 5.9 + --sysconfdir=/etc \ 5.10 + $CONFIGURE_ARGS && 5.11 make && make install 5.12 } 5.13 5.14 @@ -25,6 +27,7 @@ 5.15 genpkg_rules() 5.16 { 5.17 mkdir -p $fs/usr/lib 5.18 + cp -a $install/etc $fs 5.19 cp -a $install/usr/lib/*.so* $fs/usr/lib 5.20 cp -a $install/usr/lib/libnl $fs/usr/lib 5.21 find $fs/usr/lib -type f -name "*.a*" -exec rm -f {} \;
6.1 --- a/rfkill/receipt Tue Apr 15 18:32:55 2014 +0200 6.2 +++ b/rfkill/receipt Wed Apr 16 03:02:41 2014 +0200 6.3 @@ -1,20 +1,22 @@ 6.4 # SliTaz package receipt. 6.5 6.6 PACKAGE="rfkill" 6.7 -VERSION="0.4" 6.8 +VERSION="0.5" 6.9 CATEGORY="system-tools" 6.10 SHORT_DESC="Utility to query the state of the rfkill switches" 6.11 MAINTAINER="slaxemulator@gmail.com" 6.12 LICENSE="MIT" 6.13 -TARBALL="$PACKAGE-$VERSION.tar.bz2" 6.14 +TARBALL="$PACKAGE-$VERSION.tar.xz" 6.15 WEB_SITE="http://linuxwireless.org/en/users/Documentation/rfkill" 6.16 -WGET_URL="http://wireless.kernel.org/download/$PACKAGE/$TARBALL" 6.17 +WGET_URL="https://www.kernel.org/pub/software/network/rfkill/$TARBALL" 6.18 TAGS="kernel" 6.19 +HOST_ARCH="i486 arm" 6.20 + 6.21 +BUILD_DEPENDS="wget" 6.22 6.23 # Rules to configure and make the package. 6.24 compile_rules() 6.25 { 6.26 - cd $src 6.27 sed -i 's/BINDIR) rfkill/BINDIR)/' Makefile 6.28 sed -i 's/-m 755 -t/-m 755 rfkill/' Makefile 6.29 sed -i 's/man8\/ rfkill\.8\.gz/man8\//' Makefile