Re: New: net/wireless

2017-08-15 Thread Daniel Jakots
On Fri, 30 Jun 2017 14:54:27 +0100, Stuart Henderson
 wrote:
 
> I think this is OK to import.
> 
> I know there has been a desire to have something in base to handle
> this type of configuration for a while, and that would still be nice
> to have, but as-is this is quite an improvement over the shell
> scripts that I'm sure many of us have written (especially in terms of
> handling networks with dubious SSIDs).

As being one of
> some people on FreeNode's #openbsd asked me to submit a port

and it came up again today, I imported it.
Thanks to all who worked on it!

Cheers,
Daniel



Re: New: net/wireless

2017-06-30 Thread Stuart Henderson
On 2017/06/28 23:49, Gregor Best wrote:
> Hi guys,
> 
> On Mon, Jun 12, 2017 at 12:06:25PM +0100, Stuart Henderson wrote:
> > [...]
> > porting changes:
> > [...]
> 
> Done. Updated port based on Dmitrij's is attached.
> 
> > [...]
> > upstream suggestions:
> > [...]
> 
> Also done, thanks for the suggestions. Just made a new release. The port
> already reflects that.
> 
> The path for the list of scanned networks can be configured now. If it's
> not, no dump is performed.
> 
> -- 
>   Gregor

I think this is OK to import.

I know there has been a desire to have something in base to handle this
type of configuration for a while, and that would still be nice to have,
but as-is this is quite an improvement over the shell scripts that I'm
sure many of us have written (especially in terms of handling networks
with dubious SSIDs).



Re: New: net/wireless

2017-06-28 Thread Gregor Best
Hi guys,

On Mon, Jun 12, 2017 at 12:06:25PM +0100, Stuart Henderson wrote:
> [...]
> porting changes:
> [...]

Done. Updated port based on Dmitrij's is attached.

> [...]
> upstream suggestions:
> [...]

Also done, thanks for the suggestions. Just made a new release. The port
already reflects that.

The path for the list of scanned networks can be configured now. If it's
not, no dump is performed.

-- 
Gregor


net-wireless-v3.tar.gz
Description: application/tar-gz


Re: New: net/wireless

2017-06-12 Thread Stuart Henderson
On 2017/06/12 12:16, Dmitrij D. Czarkoff wrote:
> Gregor Best  wrote:
> 
> >some people on FreeNode's #openbsd asked me to submit a port for a
> >little utility I wrote that can be used to automate the "scan for my
> >wifi and configure it" process a bit.
> >
> >The networks can be configured in a plaintext file in /etc that looks
> >like this:
> >
> > device iwm0
> >
> > wpagreg ThisAintMyPassword
> > 802.1x eduroam
> > open   hochstift.freifunk.net/pad-city
> >
> >scanning and configuration is then done via
> >
> > wireless /path/to/my/config
> >
> >for example.
> >
> >For configuring 802.1x, it pokes wpa_supplicant. I'm not sure how one
> >would do a Debian-style "This port suggests another port"-message in the
> >ports system, so that might be something I'd need to add.
> >
> >So yeah, does it make sense to have in the ports tree?
> 
> I would import this port with several minor tweaks:
> 
>  1. VERSION is used only once, and this variable has no special meaning
> to ports infrastructure, so get rid of it.
>  2. There are some whitespace issues in Makefile and pkg/DESCR.
> 
> The updated tarball is attached.  OK to import?

porting changes:

- we're marking ports that use pledge in the Makefile, please add
"# uses pledge" before the WANTLIB line

- patch/sed /usr/local/sbin/wpa_cli -> ${LOCALBASE}/sbin/wpa_cli

- patch/sed /etc/wireless.conf -> ${SYSCONFDIR}/wireless.conf

upstream suggestions:

- copyright notices should be in each source code file not just in LICENSE

- /tmp/temp.XX would better as something more descriptive, perhaps
/tmp/wireless.XX

- not hugely keen on the fixed filename "if (rename(tmpname, "/tmp/nw-aps")..",
would this be better somewhere else, maybe under /var/run or /var/db?



Re: New: net/wireless

2017-06-12 Thread Josh Grosse
On Mon, Jun 12, 2017 at 12:16:29PM +0200, Dmitrij D. Czarkoff wrote:

> The updated tarball is attached.  OK to import?

I was just thinking.. the Makefile should include a line with

# uses pledge()

for tracking.  The application has been pledged

https://github.com/farhaven/wireless/blob/master/wireless.c



Re: New: net/wireless

2017-06-12 Thread Dmitrij D. Czarkoff
Gregor Best  wrote:

>some people on FreeNode's #openbsd asked me to submit a port for a
>little utility I wrote that can be used to automate the "scan for my
>wifi and configure it" process a bit.
>
>The networks can be configured in a plaintext file in /etc that looks
>like this:
>
> device iwm0
>
> wpagreg ThisAintMyPassword
> 802.1x eduroam
> open   hochstift.freifunk.net/pad-city
>
>scanning and configuration is then done via
>
> wireless /path/to/my/config
>
>for example.
>
>For configuring 802.1x, it pokes wpa_supplicant. I'm not sure how one
>would do a Debian-style "This port suggests another port"-message in the
>ports system, so that might be something I'd need to add.
>
>So yeah, does it make sense to have in the ports tree?

I would import this port with several minor tweaks:

 1. VERSION is used only once, and this variable has no special meaning
to ports infrastructure, so get rid of it.
 2. There are some whitespace issues in Makefile and pkg/DESCR.

The updated tarball is attached.  OK to import?


wireless-2.tgz
Description: application/gzip


Re: New: net/wireless

2017-06-11 Thread Henrik Friedrichsen
On Sun, Jun 04, 2017 at 09:52:57PM +0200, Gregor Best wrote:
> Hi ports-people,
> 
> some people on FreeNode's #openbsd asked me to submit a port for a
> little utility I wrote that can be used to automate the "scan for my
> wifi and configure it" process a bit.
> 

Thanks for this. Been using this for a while now, Would love to see this
in ports, maybe even in base if it qualifies. It could be called from
hostname.if and would simplify my laptop procedure quite a bit.



Re: New: net/wireless

2017-06-05 Thread Bryan C. Everly
On Sun, Jun 4, 2017 at 9:33 PM Josh Grosse  wrote:

> On Sun, Jun 04, 2017 at 09:52:57PM +0200, Gregor Best wrote:
> > So yeah, does it make sense to have in the ports tree?
>
> As a user of it for the last year, I'd appreciate it.  It
> was last posted to ports@ for consideration in September.
>
> https://www.mail-archive.com/ports@openbsd.org/msg66389.html
>
> I'm happy to be the maintainer for this still.
-- 

Thanks,
Bryan


Re: New: net/wireless

2017-06-04 Thread Josh Grosse
On Sun, Jun 04, 2017 at 09:52:57PM +0200, Gregor Best wrote:
> So yeah, does it make sense to have in the ports tree?

As a user of it for the last year, I'd appreciate it.  It
was last posted to ports@ for consideration in September.

https://www.mail-archive.com/ports@openbsd.org/msg66389.html



New: net/wireless

2017-06-04 Thread Gregor Best
Hi ports-people,

some people on FreeNode's #openbsd asked me to submit a port for a
little utility I wrote that can be used to automate the "scan for my
wifi and configure it" process a bit.

The networks can be configured in a plaintext file in /etc that looks
like this:

device iwm0

wpagreg ThisAintMyPassword
802.1x eduroam
open   hochstift.freifunk.net/pad-city

scanning and configuration is then done via

wireless /path/to/my/config

for example.

For configuring 802.1x, it pokes wpa_supplicant. I'm not sure how one
would do a Debian-style "This port suggests another port"-message in the
ports system, so that might be something I'd need to add.

So yeah, does it make sense to have in the ports tree?

-- 
Gregor


net-wireless-2.tgz
Description: application/tar-gz


[NEW] net/wireless - automatically configure wifi

2016-09-02 Thread Bryan Everly

Hi ports@,

Gregor gave me permission to submit this port with myself as 
maintainer.  It is a very handy little tool that allows you to 
automatically attach to a known list of wifi networks based on a 
configuration file.  I have this running in my /etc/crontab to, every 
minute, test if I have network connectivity and if I don't, run this 
tool followed by a dhclient call to get an IP address.  I find it very 
useful.


If someone could please review this port for me and provide feedback, 
I'd very much appreciate it.


Thanks



wireless.tar.gz
Description: application/gzip