diff options
author | root <root@rshg054.dnsready.net> | 2012-02-11 23:14:54 +0000 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-02-11 23:14:54 +0000 |
commit | cfceb92e73d7f6a32494f0ba258b98748af43f34 (patch) | |
tree | 56f71bc4b93aa78486f4e0e0b0c5250ea977f114 /community-staging | |
parent | 9d1489b877a1fa7c2674cf1f744804db42d93bfc (diff) |
Sat Feb 11 23:14:53 UTC 2012
Diffstat (limited to 'community-staging')
-rw-r--r-- | community-staging/hostapd/PKGBUILD | 81 | ||||
-rw-r--r-- | community-staging/hostapd/config.bz2 | bin | 0 -> 1121 bytes | |||
-rw-r--r-- | community-staging/hostapd/hostap_allow-linking-with-libnl-3.2.patch | 42 | ||||
-rw-r--r-- | community-staging/hostapd/hostapd | 35 | ||||
-rw-r--r-- | community-staging/hostapd/hostapd.conf.d | 2 | ||||
-rw-r--r-- | community-staging/hostapd/hostapd.install | 20 | ||||
-rw-r--r-- | community-staging/knemo/PKGBUILD | 40 | ||||
-rw-r--r-- | community-staging/knemo/knemo.install | 11 | ||||
-rw-r--r-- | community-staging/lorcon/PKGBUILD | 27 |
9 files changed, 258 insertions, 0 deletions
diff --git a/community-staging/hostapd/PKGBUILD b/community-staging/hostapd/PKGBUILD new file mode 100644 index 000000000..4442002cd --- /dev/null +++ b/community-staging/hostapd/PKGBUILD @@ -0,0 +1,81 @@ +# $Id: PKGBUILD 64270 2012-02-11 04:20:10Z heftig $ +# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com> + +_madwifiver=0.9.4.4133 +pkgname=hostapd +pkgver=0.7.3 +pkgrel=6 +pkgdesc="daemon for wireless software access points" +arch=('i686' 'x86_64') +url="http://hostap.epitest.fi/hostapd/" +license=('custom') +depends=('openssl' 'libnl') +makedepends=() +provides=('hostapd') +conflicts=('hostapd') +backup=('etc/hostapd/hostapd.conf' + 'etc/conf.d/hostapd' + 'etc/hostapd/hlr_auc_gw.milenage_db' + 'etc/hostapd/hostapd.accept' + 'etc/hostapd/hostapd.deny' + 'etc/hostapd/hostapd.eap_user' + 'etc/hostapd/hostapd.radius_clients' + 'etc/hostapd/hostapd.sim_db' + 'etc/hostapd/hostapd.vlan' + 'etc/hostapd/hostapd.wpa_psk' + 'etc/hostapd/wired.conf') +install=hostapd.install +source=(http://hostap.epitest.fi/releases/$pkgname-$pkgver.tar.gz + ftp://ftp.archlinux.org/other/madwifi/madwifi-${_madwifiver}.tar.bz2 + hostap_allow-linking-with-libnl-3.2.patch + config.bz2 + hostapd + hostapd.conf.d) +md5sums=('91a7c8d0f090b7104152d3455a84c112' + 'ca3c3504d000e7b3d7063af46271c932' + 'e904e62b12c5d64132dd9441e8b45dce' + 'aa86f89f51b39cea75a8c15f7b376a67' + 'd570327c385f34a4af24d3a0d61cea19' + 'f169534b0f59b341f6df1a21e0344511') + +build() { + cd $srcdir/$pkgname-$pkgver + patch -Np1 -i "$srcdir/hostap_allow-linking-with-libnl-3.2.patch" + + cd hostapd + cp ../../config ./.config + + sed -i "s|/usr|$srcdir/madwifi|" .config + sed -i "s|/usr/local/bin|$pkgdir/usr/bin|" Makefile + + mkdir -p $pkgdir/usr/bin $pkgdir/etc/hostapd \ + $pkgdir/usr/man/man1 $pkgdir/usr/man/man8 \ + $pkgdir/usr/share/licenses/$pkgname $pkgdir/etc/rc.d + + make +} + +package() { + cd $srcdir/$pkgname-$pkgver/hostapd + make DESTDIR=$pkg install + + cp hlr_auc_gw.milenage_db $pkgdir/etc/hostapd + cp hostapd.accept $pkgdir/etc/hostapd + cp hostapd.conf $pkgdir/etc/hostapd + cp hostapd.deny $pkgdir/etc/hostapd + cp hostapd.eap_user $pkgdir/etc/hostapd + cp hostapd.radius_clients $pkgdir/etc/hostapd + cp hostapd.sim_db $pkgdir/etc/hostapd + cp hostapd.vlan $pkgdir/etc/hostapd + cp hostapd.wpa_psk $pkgdir/etc/hostapd + cp wired.conf $pkgdir/etc/hostapd + cp hostapd.8 $pkgdir/usr/man/man8 + cp hostapd_cli.1 $pkgdir/usr/man/man1 + cp ../COPYING $pkgdir/usr/share/licenses/hostapd + cp ../../hostapd $pkgdir/etc/rc.d + mkdir -p $pkgdir/etc/conf.d + cp ../../hostapd.conf.d $pkgdir/etc/conf.d/hostapd + + mv $pkgdir/usr/man $pkgdir/usr/share/ + sed -i 's#/etc/hostapd#/etc/hostapd/hostapd#' $pkgdir/etc/hostapd/hostapd.conf +} diff --git a/community-staging/hostapd/config.bz2 b/community-staging/hostapd/config.bz2 Binary files differnew file mode 100644 index 000000000..d11df0bd5 --- /dev/null +++ b/community-staging/hostapd/config.bz2 diff --git a/community-staging/hostapd/hostap_allow-linking-with-libnl-3.2.patch b/community-staging/hostapd/hostap_allow-linking-with-libnl-3.2.patch new file mode 100644 index 000000000..8e7cd9a97 --- /dev/null +++ b/community-staging/hostapd/hostap_allow-linking-with-libnl-3.2.patch @@ -0,0 +1,42 @@ +Subject: [RFC] hostap: Allow linking with libnl-3. +Date: Tue, 15 Nov 2011 14:30:04 -0000 +From: Ben Greear <greearb@candelatech.com> + +I needed this patch to compile against the latest +libnl code. I added this to my config file: + +CONFIG_LIBNL32=y + +Signed-hostap: Ben Greear <greearb@candelatech.com> +rediffed against 0.7.3 by Stefan Lippers-Hollmann <s.l-h@gmx.de> + +--- +:100644 100644 5caeec5... 0cc81f9... M src/drivers/drivers.mak + src/drivers/drivers.mak | 21 ++++++++++++++------- + 2 files changed, 29 insertions(+), 14 deletions(-) + +--- a/src/drivers/drivers.mak ++++ b/src/drivers/drivers.mak +@@ -31,11 +31,18 @@ NEED_SME=y + NEED_AP_MLME=y + NEED_NETLINK=y + NEED_LINUX_IOCTL=y +-DRV_LIBS += -lnl ++ifdef CONFIG_LIBNL32 ++ DRV_LIBS += -lnl-3 ++ DRV_LIBS += -lnl-genl-3 ++ DRV_CFLAGS += -DCONFIG_LIBNL20 ++ DRV_CFLAGS += -I/usr/include/libnl3/ ++else ++ DRV_LIBS += -lnl + +-ifdef CONFIG_LIBNL20 +-DRV_LIBS += -lnl-genl +-DRV_CFLAGS += -DCONFIG_LIBNL20 ++ ifdef CONFIG_LIBNL20 ++ DRV_LIBS += -lnl-genl ++ DRV_CFLAGS += -DCONFIG_LIBNL20 ++ endif + endif + endif + diff --git a/community-staging/hostapd/hostapd b/community-staging/hostapd/hostapd new file mode 100644 index 000000000..b4709d7bf --- /dev/null +++ b/community-staging/hostapd/hostapd @@ -0,0 +1,35 @@ +#!/bin/bash + +. /etc/rc.conf +. /etc/rc.d/functions +. /etc/conf.d/hostapd + +case "$1" in + start) + stat_busy "Starting hostapd" + /usr/bin/hostapd -B -P ${HOSTAPD_PID} ${HOSTAPD_CONF} &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + add_daemon hostapd + fi + ;; + stop) + stat_busy "Stopping hostapd" + [ -f ${HOSTAPD_PID} ] && kill `cat ${HOSTAPD_PID}` &> /dev/null + if [ $? -gt 0 ]; then + stat_fail + else + stat_done + rm_daemon hostapd + fi + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + *) + echo "usage: $0 {start|stop|restart}" +esac diff --git a/community-staging/hostapd/hostapd.conf.d b/community-staging/hostapd/hostapd.conf.d new file mode 100644 index 000000000..7a7bbc806 --- /dev/null +++ b/community-staging/hostapd/hostapd.conf.d @@ -0,0 +1,2 @@ +HOSTAPD_PID="/var/run/hostapd.pid" +HOSTAPD_CONF="/etc/hostapd/hostapd.conf" diff --git a/community-staging/hostapd/hostapd.install b/community-staging/hostapd/hostapd.install new file mode 100644 index 000000000..801187e71 --- /dev/null +++ b/community-staging/hostapd/hostapd.install @@ -0,0 +1,20 @@ +post_install() { + echo "> Note: You will find some config examples in" + echo "> /etc/hostapd. The default location of several" + echo "> key configuration files for hostapd are in" + echo "> /etc/hostapd as well. They are:" + echo "> hostapd.conf --> primary configuration file" + echo "> hostapd.allow --> MAC allow list" + echo "> hostapd.deny --> MAC deny list" + echo "> Also, note that there are some self-explanatory" + echo "> examples in the directory. Feel free to change the mac" + echo "> list location by defining it differently in your hostapd.conf" + echo "> file. Please, note, however. The daemon start/stop" + echo "> script assumes you have a working config file at" + echo "> /etc/hostapd/hostapd.conf. One final thing to remember." + echo "> You need to install madwifi if you want support for it." +} + +post_upgrade() { + post_install +} diff --git a/community-staging/knemo/PKGBUILD b/community-staging/knemo/PKGBUILD new file mode 100644 index 000000000..e4b1f4173 --- /dev/null +++ b/community-staging/knemo/PKGBUILD @@ -0,0 +1,40 @@ +# $Id: PKGBUILD 64272 2012-02-11 04:40:09Z heftig $ +# Maintainer: Andrea Scarpino <andrea@archlinux.org> +# Contributor: Sergej Pupykin <pupykin.s+arch@gmail.com> +# Contributor: Stefano Zamprogno <stefano dot zamprogno at gmail dot com> + +pkgname=knemo +pkgver=0.7.3 +pkgrel=2 +pkgdesc="The KDE Network Monitor" +arch=('i686' 'x86_64') +url="http://www.kde-apps.org/content/show.php?content=12956" +license=('GPL') +depends=('kdebase-workspace' 'wireless_tools' 'iw' 'libnl1' + 'gtk-update-icon-cache') +makedepends=('cmake' 'automoc4') +install=${pkgname}.install +options=('libtool') +source=("http://www.kde-apps.org/CONTENT/content-files/12956-${pkgname}-${pkgver}.tar.bz2") +md5sums=('24b5ec27b862ed7026ff643193952b78') + +build() { + cd ${srcdir} + + mkdir build + cd build + cmake ../${pkgname}-${pkgver} \ + -DCMAKE_BUILD_TYPE=Release \ + -DCMAKE_SKIP_RPATH=ON \ + -DCMAKE_INSTALL_PREFIX=/usr + make +} + +package() { + cd ${srcdir}/build + + make DESTDIR=${pkgdir} install + + # remove knemo autostart + rm -rf ${pkgdir}/usr/share/autostart +} diff --git a/community-staging/knemo/knemo.install b/community-staging/knemo/knemo.install new file mode 100644 index 000000000..0fbb3047a --- /dev/null +++ b/community-staging/knemo/knemo.install @@ -0,0 +1,11 @@ +post_install() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} + +post_upgrade() { + post_install +} + +post_remove() { + gtk-update-icon-cache -q -t -f usr/share/icons/hicolor +} diff --git a/community-staging/lorcon/PKGBUILD b/community-staging/lorcon/PKGBUILD new file mode 100644 index 000000000..889a42d31 --- /dev/null +++ b/community-staging/lorcon/PKGBUILD @@ -0,0 +1,27 @@ +# $Id: PKGBUILD 64207 2012-02-10 09:10:01Z ebelanger $ +# Maintainer: +# Contributor: Brad Fanella <bradfanella@archlinux.us> +# Contributor: fnord0 [fnord0 <AT> riseup <DOT> net] + +pkgname=lorcon-old-svn +pkgver=224 +pkgrel=2 +pkgdesc="Loss Of Radio CONnectivity: A generic library for injecting 802.11 frames" +url='http://802.11ninja.net' +license=('GPL') +arch=('i686' 'x86_64') +depends=('libnl1') +options=('!libtool') +source=("ftp://ftp.archlinux.org/other/community/lorcon-old/lorcon-old-${pkgver}.tar.bz2") +md5sums=('7a939cc8ec0d70d1b312b9fe9f0dfaf8') + +build() { + cd "${srcdir}/lorcon-old-${pkgver}" + ./configure --prefix=/usr + make +} + +package() { + cd "${srcdir}/lorcon-old-${pkgver}" + make DESTDIR="${pkgdir}" install +} |