--- hostap-utils-0.4.7.orig/debian/README.Debian +++ hostap-utils-0.4.7/debian/README.Debian @@ -0,0 +1,14 @@ +Hostap-utils can now support loading of binary firmware for cards that require +it. You may specify primary and secondary firmware binaries for your network +interfaces. For example, wlan0 in /etc/network/interfaces may appear as so: + +auto wlan0 +iface wlan0 inet dhcp + hostname foo + fw_primary /etc/firmware/pm010102.hex + fw_secondary /etc/firmware/rf010800.hex + +Firmware images can be downloaded from +http://www.red-bean.com/~proski/firmware/ + + -- Andres Salomon Mon, 21 Jun 2004 00:16:38 -0400 --- hostap-utils-0.4.7.orig/debian/copyright +++ hostap-utils-0.4.7/debian/copyright @@ -0,0 +1,23 @@ +This package was debianized by Francois Gurin on +Sat, 16 Mar 2002 01:32:44 -0500. + +It is now maintained by Faidon Liambotis + +It was downloaded from http://w1.fi/ + +Upstream Author: Jouni Malinen + +Copyright: + +Copyright (c) 2001-2002, SSH Communications Security Corp +Copyright (c) 2002-2004, Jouni Malinen + +This program is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License version 2 as published +by the Free Software Foundation. See COPYING for more details. + +You should have received a copy of the GNU General Public License with +your Debian GNU/Linux system, in /usr/share/common-licenses/GPL-2, or with +the Debian GNU/Linux hostap source package as the file COPYING. If not, +write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, +Boston, MA 02110-1301, USA. --- hostap-utils-0.4.7.orig/debian/preinst +++ hostap-utils-0.4.7/debian/preinst @@ -0,0 +1,60 @@ +#! /bin/sh +# preinst script +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package + + +# Remove a no-longer used conffile +rm_conffile() { + PKGNAME="$1" + CONFFILE="$2" + + if [ -e "$CONFFILE" ]; then + md5sum="`md5sum \"$CONFFILE\" | sed -e \"s/ .*//\"`" + old_md5sum="`dpkg-query -W -f='${Conffiles}' $PKGNAME | sed -n -e \"\\\\' $CONFFILE'{s/ obsolete$//;s/.* //p}\"`" + if [ "$md5sum" != "$old_md5sum" ]; then + echo "Obsolete conffile $CONFFILE has been modified by you." + echo "Saving as $CONFFILE.dpkg-bak ..." + mv -f "$CONFFILE" "$CONFFILE".dpkg-bak + else + echo "Removing obsolete conffile $CONFFILE ..." + rm -f "$CONFFILE" + fi + fi +} + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" le "1:0.4.0-1"; then + rm_conffile hostap-utils /etc/pcmcia/hostap_cs.conf + rm_conffile hostap-utils /etc/hotplug/blacklist.d/hostap-utils + rm_conffile hostap-utils /etc/discover.d/hostap-utils + fi + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- hostap-utils-0.4.7.orig/debian/rules +++ hostap-utils-0.4.7/debian/rules @@ -0,0 +1,14 @@ +#!/usr/bin/make -f + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/makefile.mk + +# Heh. Upstream has no 'install' target. +SBIN_FILES=hostap_crypt_conf hostap_diag hostap_io_debug hostap_rid prism2_param prism2_srec split_combined_hex + +install/hostap-utils:: + for F in $(SBIN_FILES); do install -D $$F debian/hostap-utils/usr/sbin/$$F; done + install -D -m 0755 debian/hostap-utils.ifup debian/hostap-utils/etc/network/if-pre-up.d/hostap-utils + +binary-install/hostap-utils:: + dh_installmodules -phostap-utils --- hostap-utils-0.4.7.orig/debian/hostap-utils.modprobe +++ hostap-utils-0.4.7/debian/hostap-utils.modprobe @@ -0,0 +1,16 @@ +# Prism2/2.5/3.0 cards are supported by both orinoco and hostap. +# hostap is a much superior driver for those cards and therefore we disable +# orinoco. +# WARNING: this has the side-effect that pure Orinoco cards will not get +# claimed by *any* driver. +# +# This assumes that you have hostap-utils installed for a reason and that you +# don't mix hostap & orinoco on the same system. +# If that's the case, you need to use driver unbinding or patch your kernel. +# In other words, YOU'RE ON YOUR OWN. +# +# cf. #370801 +blacklist orinoco_pci +blacklist orinoco_cs +blacklist orinoco_plx +blacklist hermes --- hostap-utils-0.4.7.orig/debian/compat +++ hostap-utils-0.4.7/debian/compat @@ -0,0 +1 @@ +5 --- hostap-utils-0.4.7.orig/debian/changelog +++ hostap-utils-0.4.7/debian/changelog @@ -0,0 +1,100 @@ +hostap-utils (1:0.4.7-1ubuntu1) jaunty; urgency=low + + * debian/rules: Just use dh_installmodules to install modprobe conf + * debian/control: Bump debhelper b-d to install to new path + + -- Scott James Remnant Thu, 05 Mar 2009 18:14:48 +0000 + +hostap-utils (1:0.4.7-1) unstable; urgency=low + + * New upstream release. + * Change upstream homepage to http://w1.fi/ and author's e-mail address. + * Explicity refer to /usr/share/common-licenses/GPL-2 and update FSF's + postal address. + * Remove Andres from maintainers by his request. + * Update maintainer's email address. + * Update Standards-Version to 3.7.3. + * Depend on debhelper >= 5. + * Drop hostap_cs.conf, pcmcia-cs is deprecated in favor of pcmcia-utils. + (Closes: #326115) + * Fix a missing condition negation in ifup script (Closes: #438635) + * Remove support for hotplug and discover and move the blacklist to + module-init-tools (i.e. /etc/modprobe.d/) + + -- Faidon Liambotis Sun, 27 Jan 2008 08:30:42 +0200 + +hostap-utils (1:0.4.0-1) unstable; urgency=low + + * New upstream release. + * Added myself to Uploaders. + + -- Faidon Liambotis Sat, 11 Jun 2005 15:41:47 +0300 + +hostap-utils (1:0.3.7-2) unstable; urgency=low + + * Update maintainer email address (voxel.net -> debian.org). + * Add /etc/hotplug/blacklist.d/hostap-utils, to ensure orinoco drivers + don't get loaded instead of hostap drivers by hotplug. + * Add /etc/discover.d/hostap-utils, to ensure orinoco drivers aren't + loaded by discover. Thanks to Faidon Liambotis for this. + + -- Andres Salomon Sat, 09 Apr 2005 02:32:22 -0400 + +hostap-utils (1:0.3.7-1) unstable; urgency=low + + * New upstream release. + * Drop 001-proper_cleanup.patch; upstream merged it. + * Change source package Priority to optional. + + -- Andres Salomon Wed, 09 Mar 2005 16:51:19 -0500 + +hostap-utils (1:0.2.6-1) unstable; urgency=low + + * New upstream release. + * Fix typo in README.Debian (closes: #278106). + + -- Andres Salomon Mon, 27 Dec 2004 06:47:41 -0500 + +hostap-utils (1:0.2.4-1) unstable; urgency=low + + * New maintainer; I'm taking over these packages. + * New upstream release (closes: #255293). + * Add script to interfaces' if-pre-up.d for firmware loading + via /etc/network/interfaces. + * Describe configuration w/ a README.Debian. + * Switch build system to CDBS. + + -- Andres Salomon Sun, 25 Jul 2004 03:42:20 -0400 + +hostap-utils (1:0.1.3-1) unstable; urgency=low + + * New upstream release + + -- Francois Gurin Sun, 4 Apr 2004 19:04:46 -0400 + +hostap-utils (1:0.1.2-1) unstable; urgency=low + + * New upstream release + + -- Francois Gurin Mon, 3 Nov 2003 20:49:40 -0500 + +hostap-utils (1:0.1.0-3) unstable; urgency=low + + * really fixed epoch + * fixed a pebcak issue in upload + + -- Francois Gurin Mon, 27 Oct 2003 01:33:37 -0500 + +hostap-utils (0.1.0-2) unstable; urgency=low + + * Fixed version epoch + + -- Francois Gurin Mon, 27 Oct 2003 00:50:16 -0500 + +hostap-utils (0.1.0-1) unstable; urgency=low + + * New upstream release + * Replaces hostap-utils from old source package hostap + + -- Francois Gurin Sun, 26 Oct 2003 04:43:50 -0500 + --- hostap-utils-0.4.7.orig/debian/hostap-utils.ifup +++ hostap-utils-0.4.7/debian/hostap-utils.ifup @@ -0,0 +1,42 @@ +#!/bin/sh -e + +PRISM2_SREC=/usr/sbin/prism2_srec + +if [ ! -x $PRISM2_SREC ]; then + exit 0 +fi + +load_primary() +{ + if [ ! -d /proc/net/hostap/$1 ]; then + echo "Host AP driver data for device $1 not found in procfs." + return 1 + fi + + if ! grep -q no_pri=1 /proc/net/hostap/$1/debug; then + echo "Downloading primary firmware $2 to interface $1" + $PRISM2_SREC -gs $1 $2 + $PRISM2_SREC -gp $1 $2 + fi + + return 0 +} + +load_secondary() +{ + if ! grep -q pri_only=1 /proc/net/hostap/$1/debug; then + echo "Downloading secondary (station) firmware $2 to interface $1" + $PRISM2_SREC -rp $1 $2 + fi + + return 0 +} + +if [ -n "$IF_FW_PRIMARY" ]; then + load_primary "$IFACE" "$IF_FW_PRIMARY" +fi + +if [ -n "$IF_FW_SECONDARY" ]; then + load_secondary "$IFACE" "$IF_FW_SECONDARY" +fi + --- hostap-utils-0.4.7.orig/debian/watch +++ hostap-utils-0.4.7/debian/watch @@ -0,0 +1,2 @@ +version=2 +http://w1.fi/releases/hostap-utils-(.*)\.tar\.gz debian uupdate --- hostap-utils-0.4.7.orig/debian/control +++ hostap-utils-0.4.7/debian/control @@ -0,0 +1,21 @@ +Source: hostap-utils +Section: net +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Faidon Liambotis +Build-Depends: debhelper (>= 7.0.17ubuntu3), cdbs +Standards-Version: 3.7.3 +Homepage: http://w1.fi/ + +Package: hostap-utils +Architecture: any +Depends: ${shlibs:Depends} +Description: Utility programs for Host AP driver for Intersil Prism2/2.5/3 + This is a Linux driver for wireless LAN cards based on Intersil's Prism2/2.5/3 + chipset. The driver supports a so called Host AP mode, i.e., it takes care + of IEEE 802.11 management functions in the host computer and acts as an + access point. This does not require any special firmware for the wireless + LAN card. In addition to this, it has support for normal station operations + in BSS and possible also in IBSS. + . + This packages contains binary utilities for use with hostap.