Import wireless, from Gregor Best (upstream)
tweaks from czarkoff and sthen, ok sthen a while ago From DESCR: wireless scans for and configures wireless networks on OpenBSD. It uses ifconfig(8) to do most of the heavy lifting and basically just interprets and applies scan results. and to quote sthen: 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).
This commit is contained in:
parent
89e32dec6a
commit
aa09be2471
24
net/wireless/Makefile
Normal file
24
net/wireless/Makefile
Normal file
@ -0,0 +1,24 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2017/08/15 16:05:14 danj Exp $
|
||||
|
||||
COMMENT = automatically scan for and configure wireless networks
|
||||
GH_ACCOUNT = farhaven
|
||||
GH_PROJECT = wireless
|
||||
GH_TAGNAME = v3
|
||||
|
||||
CATEGORIES = net
|
||||
|
||||
# BSD
|
||||
PERMIT_PACKAGE_CDROM = Yes
|
||||
|
||||
# uses pledge
|
||||
WANTLIB = c
|
||||
|
||||
post-extract:
|
||||
sed -ie "s,/usr/local/bin/wpa_cli,${LOCALBASE}/sbin/wpa_cli,g" ${WRKSRC}/wireless.c
|
||||
sed -ie "s,/etc/wireless.conf,${SYSCONFDIR}/wireless.conf,g" ${WRKSRC}/wireless.c
|
||||
|
||||
do-install:
|
||||
${INSTALL_PROGRAM} ${WRKSRC}/wireless ${PREFIX}/bin
|
||||
${INSTALL_MAN} ${WRKSRC}/wireless.8 ${PREFIX}/man/man8
|
||||
|
||||
.include <bsd.port.mk>
|
2
net/wireless/distinfo
Normal file
2
net/wireless/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (wireless-3.tar.gz) = ALlKFY1aO4v+3vyCXxTIK2k3WI2kdba24nymy0YkyG0=
|
||||
SIZE (wireless-3.tar.gz) = 9039
|
3
net/wireless/pkg/DESCR
Normal file
3
net/wireless/pkg/DESCR
Normal file
@ -0,0 +1,3 @@
|
||||
wireless scans for and configures wireless networks on OpenBSD. It uses
|
||||
ifconfig(8) to do most of the heavy lifting and basically just
|
||||
interprets and applies scan results.
|
3
net/wireless/pkg/PLIST
Normal file
3
net/wireless/pkg/PLIST
Normal file
@ -0,0 +1,3 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2017/08/15 16:05:14 danj Exp $
|
||||
@bin bin/wireless
|
||||
@man man/man8/wireless.8
|
Loading…
x
Reference in New Issue
Block a user