From owner-freebsd-ports-bugs@FreeBSD.ORG Sun Jun 6 17:50:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B7CB51065678 for ; Sun, 6 Jun 2010 17:50:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (unknown [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7B9068FC25 for ; Sun, 6 Jun 2010 17:50:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o56Ho2es059200 for ; Sun, 6 Jun 2010 17:50:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o56Ho2YU059199; Sun, 6 Jun 2010 17:50:02 GMT (envelope-from gnats) Resent-Date: Sun, 6 Jun 2010 17:50:02 GMT Resent-Message-Id: <201006061750.o56Ho2YU059199@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Jason bacon Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 50462106566B for ; Sun, 6 Jun 2010 17:48:26 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 3F8138FC2A for ; Sun, 6 Jun 2010 17:48:26 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o56HmPCZ041229 for ; Sun, 6 Jun 2010 17:48:25 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o56HmPHc041228; Sun, 6 Jun 2010 17:48:25 GMT (envelope-from nobody) Message-Id: <201006061748.o56HmPHc041228@www.freebsd.org> Date: Sun, 6 Jun 2010 17:48:25 GMT From: Jason bacon To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/147567: New port: net/wifi_select X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Jun 2010 17:50:02 -0000 >Number: 147567 >Category: ports >Synopsis: New port: net/wifi_select >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jun 06 17:50:02 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Jason bacon >Release: 8.0-RELEASE >Organization: Acadix Consulting, LLC >Environment: FreeBSD sculpin.jbacon.dyndns.org 8.0-RELEASE FreeBSD 8.0-RELEASE #0: Sat Nov 21 15:48:17 UTC 2009 root@almeida.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 >Description: wifi_select is a command-line tool and service for selecting from available 802.11x stations. It allows FreeBSD users to easily connect to open, WEP, and WPA stations, and save the configuration and automatically reconnect to them later. It is meant to serve as a simple, desktop-independent WIFI configuration tool and a prototype to document procedures for other (e.g. GUI) wireless configuration utilities. >How-To-Repeat: >Fix: Patch attached with submission follows: # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # net/wifi_select # net/wifi_select/Makefile # net/wifi_select/distinfo # net/wifi_select/pkg-descr # net/wifi_select/files # net/wifi_select/files/wifi_select.in # net/wifi_select/pkg-plist # echo c - net/wifi_select mkdir -p net/wifi_select > /dev/null 2>&1 echo x - net/wifi_select/Makefile sed 's/^X//' >net/wifi_select/Makefile << '374500ac5495bb14748cd6417d8db218' X# New ports collection makefile for: wifi_select X# Date created: 2010-04-02 X# Whom: Jason Bacon X# X# $FreeBSD$ X# X XPORTNAME= wifi_select XPORTVERSION= 0.1 XCATEGORIES= net XMASTER_SITES= http://personalpages.tds.net/~jwbacon/Ports/distfiles/ \ X http://jbacon.dyndns.org/~bacon/Ports/distfiles/ X XMAINTAINER= jwbacon@tds.net XCOMMENT= Select from available wireless networks X XNO_BUILD= yes X XUSE_RC_SUBR= wifi_select X XMAN1= wifi_select.1 X Xpost-patch: X ${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/${PORTNAME} X Xdo-install: X ${MKDIR} ${PREFIX}/etc/${PORTNAME} ${DATADIR} X ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin X ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}_daemon ${PREFIX}/libexec X ${INSTALL_DATA} ${WRKSRC}/stations.conf.sample ${DATADIR} X ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.mdoc ${MAN1PREFIX}/man/man1/${PORTNAME}.1 X X.include 374500ac5495bb14748cd6417d8db218 echo x - net/wifi_select/distinfo sed 's/^X//' >net/wifi_select/distinfo << '031fba1f7a523481de356fa6b3e6eded' XMD5 (wifi_select-0.1.tar.gz) = 6c6635da0233330c59c9c05230ba9c19 XSHA256 (wifi_select-0.1.tar.gz) = e11f9f741addedb83c17e67589d9ed20a44dbfd775388679eb12997b5ce84d16 XSIZE (wifi_select-0.1.tar.gz) = 4698 031fba1f7a523481de356fa6b3e6eded echo x - net/wifi_select/pkg-descr sed 's/^X//' >net/wifi_select/pkg-descr << 'a6a2a3ebd6657f72ef9ec3d48e6bf945' XGenplist automatically creates a static plist for a port by installing it Xinto a temporary directory, and then examining the directory tree. The Xprocess is based on the instructions for plist generation in the XFreeBSD Porter's Handbook. X XWWW: http://www.neuro.mcw.edu/~bacon/FreeBSD_MRI a6a2a3ebd6657f72ef9ec3d48e6bf945 echo c - net/wifi_select/files mkdir -p net/wifi_select/files > /dev/null 2>&1 echo x - net/wifi_select/files/wifi_select.in sed 's/^X//' >net/wifi_select/files/wifi_select.in << 'a9014418c034709b2ef3e70e63a1bf81' X#!/bin/sh X# X# $FreeBSD$ X# X X# FIXME: X# Adding BEFORE: ntpdate would be nice so that ntpdate will actually X# work on a wireless laptop, but this causes a circular dependency in X# rcorder X X# PROVIDE: wifi_select X# REQUIRE: DAEMON X# KEYWORD: shutdown X X# Add the following lines to /etc/rc.conf to enable `wifi_select': X# X# wifi_select_enable="YES" X# wifi_select_flags="" X# X# See wifi_select(1) for wifi_select_flags X# X X. %%RC_SUBR%% X Xname="wifi_select" Xrcvar=`set_rcvar` X Xpidfile="/var/run/$name.pid" Xcommand="%%PREFIX%%/libexec/wifi_select_daemon" Xcommand_args="" X# required_files="%%PREFIX%%/etc/wifi_select/stations.conf" X Xstart_cmd=wifi_select_start Xstop_cmd=wifi_select_stop X Xwifi_select_daemon_bin=%%PREFIX%%/libexec/wifi_select_daemon X Xwifi_select_start() { X checkyesno wifi_select_enable && echo "Starting wifi_select." && \ X ${wifi_select_daemon_bin} X} X Xwifi_select_stop() X{ X checkyesno wifi_select_enable && echo "Stopping wifi_select." && \ X ${wifi_select_daemon_bin} -k X} X X# read configuration and set defaults Xload_rc_config "$name" X# : ${wifi_select_enable="NO"} X Xrun_rc_command "$1" X a9014418c034709b2ef3e70e63a1bf81 echo x - net/wifi_select/pkg-plist sed 's/^X//' >net/wifi_select/pkg-plist << 'e86244b490dce776096ce1546c901fcd' Xbin/wifi_select Xlibexec/wifi_select_daemon X%%DATADIR%%/stations.conf.sample X@dirrm %%DATADIR%% X@dirrmtry %%ETCDIR%% X@exec mkdir -p %D/%%ETCDIR%% e86244b490dce776096ce1546c901fcd exit >Release-Note: >Audit-Trail: >Unformatted: