eiwd: New package
This commit is contained in:
parent
cc322156f7
commit
63bba9b8df
|
@ -0,0 +1,2 @@
|
|||
#!/bin/sh
|
||||
exec vlogger -p daemon.info -t iwd
|
|
@ -0,0 +1,3 @@
|
|||
#!/bin/sh
|
||||
[ -r ./conf ] && . ./conf
|
||||
exec /usr/libexec/iwd ${OPTS} 2>&1
|
|
@ -0,0 +1,34 @@
|
|||
#!/bin/sh
|
||||
#
|
||||
# Simple script to generate iwd network files.
|
||||
|
||||
[ "$1" ] || {
|
||||
printf '%s\n' "usage: printf pass | ${0##*/} ssid" >&2
|
||||
exit 1
|
||||
}
|
||||
|
||||
# Read the password from 'stdin'.
|
||||
read -r pass; [ "$pass" ] || exit 1
|
||||
|
||||
# Consider all characters as single-byte.
|
||||
export LC_CTYPE=C
|
||||
|
||||
# The SSID appears verbatim in the name if it contains
|
||||
# only alphanumeric characters, spaces, underscores or
|
||||
# minus signs. Otherwise it is encoded as an equal sign
|
||||
# followed by the lower-case hex encoding of the name.
|
||||
case $1 in
|
||||
*[!A-Za-z0-9_' '-]*)
|
||||
ssid="=$(printf %s "$1" | od -vA n -t x1 | tr -d '\n ')"
|
||||
;;
|
||||
|
||||
*)
|
||||
ssid=$1
|
||||
;;
|
||||
esac
|
||||
|
||||
printf '%s\n\n' "Save this output to /var/lib/iwd/$ssid.psk" >&2
|
||||
printf '[Security]\n'
|
||||
printf 'Passphrase=%s\n' "$pass"
|
||||
printf '\nTIP: You can use this output directly as the\n' >&2
|
||||
printf ' help messages are printed to stderr.\n' >&2
|
|
@ -0,0 +1,39 @@
|
|||
# Note: The lines starting with # are ignored. To enable any of the
|
||||
# configuration options below, remove # from the beginning of a respective line.
|
||||
|
||||
# this file is not distributed upstream as of iwd 1.0 version
|
||||
# It is created as transitional config from latest version
|
||||
# Please read iwd.config(5), iwd.network(5), iwctl(1), iwmon(1) before setting
|
||||
# these parameters below
|
||||
|
||||
[EAP]
|
||||
mtu=1400
|
||||
|
||||
#[EAPoL]
|
||||
#max_4way_handshake_time=5
|
||||
|
||||
[General]
|
||||
UseDefaultInterface=True
|
||||
EnableNetworkConfiguration=True
|
||||
ControlPortOverNL80211=True
|
||||
AddressRandomization=none
|
||||
#AddressRandomization=network
|
||||
#RoamThreshold=-70
|
||||
|
||||
EnableIPv6=true
|
||||
|
||||
[Network]
|
||||
|
||||
NameResolvingService=resolvconf
|
||||
|
||||
[Scan]
|
||||
|
||||
DisablePeriodicScan=false
|
||||
DisableRoamingScan=true
|
||||
|
||||
#[Blacklist]
|
||||
|
||||
#[Rank]
|
||||
|
||||
# BandModifier5Ghz=1.0
|
||||
|
|
@ -0,0 +1,31 @@
|
|||
# Template file for 'eiwd'
|
||||
# This template is based on Marcoapc <marcoaureliopc@gmail.com> work. All credits goes to him.
|
||||
# Original source: https://notabug.org/Marcoapc/voidpkgs/src/master/srcpkgs/eiwd/template
|
||||
|
||||
pkgname=eiwd
|
||||
version=2.0
|
||||
_release=1
|
||||
revision=1
|
||||
wrksrc="iwd-${version}"
|
||||
build_style=gnu-configure
|
||||
configure_args="--disable-systemd-service --disable-dbus"
|
||||
hostmakedepends="python3-docutils pkgconf"
|
||||
makedepends="readline-devel"
|
||||
checkdepends="python3"
|
||||
short_desc="Internet Wireless Daemon without dbus"
|
||||
maintainer="O. Sánchez <o-sanchez@linuxmail.org>"
|
||||
license="LGPL-2.1-or-later"
|
||||
homepage="https://github.com/illiliti/eiwd"
|
||||
distfiles="${homepage}/releases/download/${version}-${_release}/iwd-${version}.tar.xz"
|
||||
checksum=55c54db7aab87ddabbf86f5b08308c81db86f2d0f947c197022558a7adbbf788
|
||||
conflicts="iwd"
|
||||
make_dirs="/var/lib/iwd 0600 root root
|
||||
/etc/iwd 755 root root"
|
||||
# tests depend on kernel features
|
||||
make_check=extended
|
||||
|
||||
post_install() {
|
||||
vsv iwd
|
||||
vbin ${FILESDIR}/iwd_passphrase
|
||||
vinstall ${FILESDIR}/main.conf 0644 etc/iwd/
|
||||
}
|
Loading…
Reference in New Issue