ports/147567: New port: net/wifi_select

Jason bacon jwbacon at tds.net
Sun Jun 6 17:50:02 UTC 2010


>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 at 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 <jwbacon at tds.net>
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 at 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 <bsd.port.mk>
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="<set as needed>"
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 at dirrm %%DATADIR%%
X at dirrmtry %%ETCDIR%%
X at exec mkdir -p %D/%%ETCDIR%%
e86244b490dce776096ce1546c901fcd
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list