Date: Friday, March 4, 2011 @ 23:58:33 Author: heftig Revision: 112494
Add wimax stuff, for networkmanager Added: libeap/ libeap/repos/ libeap/trunk/ libeap/trunk/LICENSE libeap/trunk/PKGBUILD wimax-tools/ wimax-tools/repos/ wimax-tools/trunk/ wimax-tools/trunk/LICENSE wimax-tools/trunk/PKGBUILD wimax/ wimax/repos/ wimax/trunk/ wimax/trunk/LICENSE wimax/trunk/PKGBUILD wimax/trunk/wimaxd.rc ----------------------------+ libeap/trunk/LICENSE | 27 +++++++++++++++++++++ libeap/trunk/PKGBUILD | 34 +++++++++++++++++++++++++++ wimax-tools/trunk/LICENSE | 27 +++++++++++++++++++++ wimax-tools/trunk/PKGBUILD | 36 +++++++++++++++++++++++++++++ wimax/trunk/LICENSE | 27 +++++++++++++++++++++ wimax/trunk/PKGBUILD | 49 +++++++++++++++++++++++++++++++++++++++ wimax/trunk/wimaxd.rc | 53 +++++++++++++++++++++++++++++++++++++++++++ 7 files changed, 253 insertions(+) Added: libeap/trunk/LICENSE =================================================================== --- libeap/trunk/LICENSE (rev 0) +++ libeap/trunk/LICENSE 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,27 @@ +Copyright (C) 2008 Intel Corporation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Added: libeap/trunk/PKGBUILD =================================================================== --- libeap/trunk/PKGBUILD (rev 0) +++ libeap/trunk/PKGBUILD 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,34 @@ +# $Id$ +# Maintainer: Jan "heftig" Steffens <jan.steff...@gmail.com> + +pkgname=libeap +pkgver=1.5.1 +pkgrel=1 +pkgdesc="WiMAX EAP Library" +arch=(i686 x86_64) +license=('custom:BSD') +url="http://www.linuxwimax.org" +depends=(openssl) +_patchname=wpa_supplicant-0.7.2-generate-libeap-peer.patch +source=("$_patchname::$url/Download?action=AttachFile&do=get&target=$_patchname" + http://hostap.epitest.fi/releases/wpa_supplicant-0.7.3.tar.gz + LICENSE) +sha256sums=('aaaf08dc2149c0ce8d6622c2cf6b893ba899baf3df0087725974c22f44543f56' + 'd0cd50caa85346ccc376dcda5ed3c258eef19a93b3cade39d25760118ad59443' + '00337c026ccf1ac2c624c325801378129e7daa5294e98a5b79ae4ceb60b14624') + +build() { + cd "$srcdir/wpa_supplicant-0.7.3" + patch -Np1 -i "$srcdir/$_patchname" + make -C src/eap_peer +} + +package() { + cd "$srcdir/wpa_supplicant-0.7.3/src/eap_peer" + make DESTDIR="$pkgdir" install + + ln -s libeap.so.0.0.0 "$pkgdir/usr/lib/libeap.so.0" + + install -Dm 644 "$srcdir/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Property changes on: libeap/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords + Id Added: wimax/trunk/LICENSE =================================================================== --- wimax/trunk/LICENSE (rev 0) +++ wimax/trunk/LICENSE 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,27 @@ +Copyright (C) 2008 Intel Corporation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Added: wimax/trunk/PKGBUILD =================================================================== --- wimax/trunk/PKGBUILD (rev 0) +++ wimax/trunk/PKGBUILD 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,49 @@ +# $Id$ +# Maintainer: Jan "heftig" Steffens <jan.steff...@gmail.com> + +pkgname=wimax +pkgver=1.5.1 +pkgrel=1 +pkgdesc="WiMAX Network Service" +arch=(i686 x86_64) +license=('custom:BSD') +url="http://www.linuxwimax.org/" +depends=(libeap wimax-tools dhclient) +options=('!libtool') +source=("$pkgname-$pkgver.tar.gz::http://www.linuxwimax.org/Download?action=AttachFile&do=get&target=$pkgname-$pkgver.tar.gz" + LICENSE wimaxd.rc) +sha256sums=('c04d4617e99e836b78f9c4e6eb86a88bc20ab789c05eb201bb8f3846899186a5' + '00337c026ccf1ac2c624c325801378129e7daa5294e98a5b79ae4ceb60b14624' + '8446ec0148b594fc4d6f82e53484f3771fee3c5dc998f91d7fc2d58e90bbf6ee') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # Suppress a metric asston of messages + sed -i '/CFLAGS="/s/-Wall/-Wno-pointer-to-int-cast -Wno-int-to-pointer-cast/' configure + + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var \ + --with-linux=/usr \ + --with-libwimaxll=/usr \ + --enable-instrument \ + --disable-static + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + # Fix dhclient path + sed -i 's:\B/sbin/dhclient:/usr/sbin/dhclient:' \ + "$pkgdir/usr/share/wimax/dhcp_renew.sh" + grep dhclient "$pkgdir/usr/share/wimax/dhcp_renew.sh" + + install -D "$srcdir/wimaxd.rc" "$pkgdir/etc/rc.d/wimaxd" + + install -Dm 644 "$srcdir/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Property changes on: wimax/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords + Id Added: wimax/trunk/wimaxd.rc =================================================================== --- wimax/trunk/wimaxd.rc (rev 0) +++ wimax/trunk/wimaxd.rc 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,53 @@ +#!/bin/bash + +daemon_name=wimaxd + +. /etc/rc.conf +. /etc/rc.d/functions + +case "$1" in + start) + stat_busy "Starting $daemon_name daemon" + if [ ! -f /var/run/$daemon_name.wmx0.pid ] && $daemon_name -b &>/dev/null; then + add_daemon $daemon_name + stat_done + else + stat_fail + exit 1 + fi + ;; + + stop) + stat_busy "Stopping $daemon_name daemon" + [ -f /var/run/$daemon_name.wmx0.pid ] && read PID </var/run/$daemon_name.wmx0.pid + if kill $PID &>/dev/null; then + rm_daemon $daemon_name + stat_done + else + stat_fail + exit 1 + fi + ;; + + restart) + stat_busy "Restarting $daemon_name daemon" + [ -f /var/run/$daemon_name.wmx0.pid ] && read PID </var/run/$daemon_name.wmx0.pid + if kill -USR1 $PID &>/dev/null; then + add_daemon $daemon_name + stat_done + else + stat_fail + exit 1 + fi + ;; + + status) + stat_busy "Checking $daemon_name status"; + ck_status $daemon_name + ;; + + *) + echo "usage: $0 {start|stop|restart|status}" +esac + +exit 0 Property changes on: wimax/trunk/wimaxd.rc ___________________________________________________________________ Added: svn:executable + * Added: wimax-tools/trunk/LICENSE =================================================================== --- wimax-tools/trunk/LICENSE (rev 0) +++ wimax-tools/trunk/LICENSE 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,27 @@ +Copyright (C) 2008 Intel Corporation. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in + the documentation and/or other materials provided with the + distribution. + * Neither the name of Intel Corporation nor the names of its + contributors may be used to endorse or promote products derived + from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Added: wimax-tools/trunk/PKGBUILD =================================================================== --- wimax-tools/trunk/PKGBUILD (rev 0) +++ wimax-tools/trunk/PKGBUILD 2011-03-05 04:58:33 UTC (rev 112494) @@ -0,0 +1,36 @@ +# $Id$ +# Maintainer: Jan "heftig" Steffens <jan.steff...@gmail.com> + +pkgname=wimax-tools +pkgver=1.4.4 +pkgrel=1 +pkgdesc="WiMAX Tools" +arch=(i686 x86_64) +license=('custom:BSD') +url="http://www.linuxwimax.org/" +depends=(libnl glib2 sh) +options=('!libtool') +source=("$pkgname-$pkgver.tar.gz::http://www.linuxwimax.org/Download?action=AttachFile&do=get&target=$pkgname-$pkgver.tar.gz" + LICENSE) +sha256sums=('63ea9796704ae2f0e324b655398d103cdd4261d9a2e58d6a41c5574719dec4bd' + '00337c026ccf1ac2c624c325801378129e7daa5294e98a5b79ae4ceb60b14624') + +build() { + cd "$srcdir/$pkgname-$pkgver" + ./configure \ + --prefix=/usr \ + --sysconfdir=/etc \ + --localstatedir=/var + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + make DESTDIR="$pkgdir" install + + # --disable-static doesn't work + rm "$pkgdir"/usr/lib/*.a + + install -Dm 644 "$srcdir/LICENSE" \ + "$pkgdir/usr/share/licenses/$pkgname/LICENSE" +} Property changes on: wimax-tools/trunk/PKGBUILD ___________________________________________________________________ Added: svn:keywords + Id