aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabor Pali <pali.gabor@gmail.com>2021-08-16 00:11:20 +0000
committerAshish SHUKLA <ashish@FreeBSD.org>2021-08-16 00:13:51 +0000
commit3c7566742a2933aa66944737a7db447ca6f596ae (patch)
treed16991aeb7a03ad2045ccc687bd677d5f07b812a
parentb6553022250402c9581bea38a207aca42c1708fb (diff)
downloadports-3c7566742a2933aa66944737a7db447ca6f596ae.tar.gz
ports-3c7566742a2933aa66944737a7db447ca6f596ae.zip
net/wifibox: New port: Wireless card driver
Wifibox deploys a Linux guest to drive a wireless networking card on the FreeBSD host system with the help of PCI pass-through. There have been guides on the Internet to suggest the use of such techniques to improve the wireless networking experience on FreeBSD, of which Wifibox tries to implement as a single easy-to-use software package. PR: 257682
-rw-r--r--net/Makefile1
-rw-r--r--net/wifibox/Makefile29
-rw-r--r--net/wifibox/distinfo5
-rw-r--r--net/wifibox/pkg-descr7
-rw-r--r--net/wifibox/pkg-plist33
5 files changed, 75 insertions, 0 deletions
diff --git a/net/Makefile b/net/Makefile
index 46f4650893a3..2866c992bbbe 100644
--- a/net/Makefile
+++ b/net/Makefile
@@ -1547,6 +1547,7 @@
SUBDIR += webalizer-geodb
SUBDIR += whois
SUBDIR += widentd
+ SUBDIR += wifibox
SUBDIR += wireguard
SUBDIR += wireguard-go
SUBDIR += wireguard-kmod
diff --git a/net/wifibox/Makefile b/net/wifibox/Makefile
new file mode 100644
index 000000000000..63ff64008bba
--- /dev/null
+++ b/net/wifibox/Makefile
@@ -0,0 +1,29 @@
+PORTNAME= wifibox
+PORTVERSION= 0.3.1
+CATEGORIES= net
+
+MAINTAINER= pali.gabor@gmail.com
+COMMENT= Wireless card driver via virtualized Linux
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+ONLY_FOR_ARCHS= amd64
+EXTRACT_ONLY= ${GH_ACCOUNT}-${GH_PROJECT}-${GH_TAGNAME_EXTRACT}_GH0.tar.gz
+
+RUN_DEPENDS= grub2-bhyve>0:sysutils/grub2-bhyve
+
+USE_GITHUB= yes
+GH_ACCOUNT= pgj
+GH_PROJECT= freebsd-wifibox
+
+IMAGE_FILE= freebsd-wifibox-appliance.20210808.img.xz
+
+MASTER_SITES+= https://github.com/pgj/freebsd-wifibox-image/releases/download/snapshot-20210808/
+DISTFILES+= ${IMAGE_FILE}
+
+NO_BUILD= yes
+MAKE_ENV+= IMGXZ=${DISTDIR}/${IMAGE_FILE} \
+ VERSION=${PORTVERSION}
+
+.include <bsd.port.mk>
diff --git a/net/wifibox/distinfo b/net/wifibox/distinfo
new file mode 100644
index 000000000000..e2313051c27e
--- /dev/null
+++ b/net/wifibox/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1628389833
+SHA256 (freebsd-wifibox-appliance.20210808.img.xz) = 371df235ff0c1025668cf14740411a0d740fe7e1b5f07cf55a0f94ea11f22fb7
+SIZE (freebsd-wifibox-appliance.20210808.img.xz) = 115929104
+SHA256 (pgj-freebsd-wifibox-0.3.1_GH0.tar.gz) = d48edb7c11603b474e17afff24c6d58749cb3e83491237ff7ea865f524810dd9
+SIZE (pgj-freebsd-wifibox-0.3.1_GH0.tar.gz) = 9099
diff --git a/net/wifibox/pkg-descr b/net/wifibox/pkg-descr
new file mode 100644
index 000000000000..24d37a75c1a2
--- /dev/null
+++ b/net/wifibox/pkg-descr
@@ -0,0 +1,7 @@
+Wifibox deploys a Linux guest to drive a wireless networking card on
+the FreeBSD host system with the help of PCI pass-through. There have
+been guides on the Internet to suggest the use of such techniques to
+improve the wireless networking experience on FreeBSD, of which
+Wifibox tries to implement as a single easy-to-use software package.
+
+WWW: https://github.com/pgj/freebsd-wifibox
diff --git a/net/wifibox/pkg-plist b/net/wifibox/pkg-plist
new file mode 100644
index 000000000000..305b10470f49
--- /dev/null
+++ b/net/wifibox/pkg-plist
@@ -0,0 +1,33 @@
+@sample etc/wifibox/bhyve.conf.sample
+@sample etc/wifibox/interfaces.conf.sample
+@sample etc/wifibox/udhcpd.conf.sample
+@sample etc/wifibox/wpa_supplicant.conf.sample
+@sample etc/devd/wifibox.conf.sample
+etc/rc.d/wifibox
+man/man8/wifibox.8.gz
+sbin/wifibox
+share/wifibox/device.map
+share/wifibox/grub.cfg
+share/wifibox/disk.img
+@preunexec /usr/bin/find /var/log/wifibox -type f -delete
+@preunexec /usr/bin/find /var/run/wifibox -type f -delete
+@preunexec /usr/bin/find /var/run/wifibox -type l -exec /bin/rm -f {} \;
+@dir /var/log/wifibox
+@dir /var/run/wifibox/appliance/cache
+@dir /var/run/wifibox/appliance/empty
+@dir /var/run/wifibox/appliance/lib/apk
+@dir /var/run/wifibox/appliance/lib/chrony
+@dir /var/run/wifibox/appliance/lib/iptables
+@dir /var/run/wifibox/appliance/lib/misc
+@dir /var/run/wifibox/appliance/lib/udhcpd
+@dir /var/run/wifibox/appliance/lib
+@dir /var/run/wifibox/appliance/local
+@dir /var/run/wifibox/appliance/log/chrony
+@dir /var/run/wifibox/appliance/log
+@dir /var/run/wifibox/appliance/mail
+@dir /var/run/wifibox/appliance/opt
+@dir /var/run/wifibox/appliance/spool/cron
+@dir /var/run/wifibox/appliance/spool
+@dir /var/run/wifibox/appliance/tmp
+@dir /var/run/wifibox/appliance
+@dir /var/run/wifibox