cairo fix

This commit is contained in:
aliriza committed 2023-02-16 07:40:52 +00:00
1 parent b05cb8b909
commit c8d4b7b225
3 files changed
+40 -47

No files matched your search

@@ -1,10 +1,11 @@
# conf.d file for wpa_supplicant # conf.d file for wpa_supplicant
#
# uncomment this if wpa_supplicant starts up before your network interface
# is ready and it causes issues
# rc_want="dev-settle"
# Please check man 8 wpa_supplicant for more information about the options # Please check man 8 wpa_supplicant for more information about the options
# wpa_supplicant accepts. # wpa_supplicant accepts.
#
wpa_supplicant_args="" wpa_supplicant_args=""
# The dbus interface will be enabled by default if wpa_supplicant.conf is
# missing. use wpa_supplicant_dbus to explicitly enable/disable dbus interface
#wpa_supplicant_dbus=no
@@ -1,38 +1,54 @@
#!/sbin/openrc-run #!/sbin/openrc-run
# Copyright (c) 2009 Roy Marples <roy@marples.name> # Copyright (c) 2009 Roy Marples <roy@marples.name>
# All rights reserved. Released under the 2-clause BSD license. # All rights reserved. Released under the 2-clause BSD license.
supervisor=supervise-daemon
name="WPA Supplicant" command=/usr/sbin/wpa_supplicant
description="Wi-Fi Protected Access client and IEEE 802.1X supplicant" : ${wpa_supplicant_conf:=/etc/wpa_supplicant/wpa_supplicant.conf}
command=/sbin/wpa_supplicant
wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if wpa_supplicant_if=${wpa_supplicant_if:+-i}$wpa_supplicant_if
command_args="$wpa_supplicant_args $wpa_supplicant_if" command_args="$wpa_supplicant_args -B -c$wpa_supplicant_conf $wpa_supplicant_if"
name="WPA Supplicant Daemon"
default_conf=/etc/wpa_supplicant/wpa_supplicant.conf depend()
{
depend() {
need localmount need localmount
use logger dbus use logger
after bootmisc modules entropy udev-settle after bootmisc modules
before dns dhcpcd net before dns dhcpcd net
keyword -shutdown keyword -shutdown
} }
find_wireless() { find_wireless()
{
local iface= local iface=
case "$RC_UNAME" in
Linux)
for iface in /sys/class/net/*; do for iface in /sys/class/net/*; do
if [ -e "$iface"/wireless -o -e "$iface"/phy80211 ]; then if [ -e "$iface"/wireless -o \
-e "$iface"/phy80211 ]
then
echo "${iface##*/}" echo "${iface##*/}"
return 0 return 0
fi fi
done done
;;
*)
for iface in /dev/net/* $(ifconfig -l 2>/dev/null); do
if ifconfig "${iface##*/}" 2>/dev/null | \
grep -q "[ ]*ssid "
then
echo "${iface##*/}"
return 0
fi
done
;;
esac
return 1 return 1
} }
append_wireless() { append_wireless()
{
local iface= i= local iface= i=
iface=$(find_wireless) iface=$(find_wireless)
@@ -45,35 +61,11 @@ append_wireless() {
fi fi
} }
start_pre() { start_pre()
{
case " $command_args" in case " $command_args" in
*" -i"*) ;; *" -i"*) ;;
*) append_wireless;; *) append_wireless;;
esac esac
# set default conf if dbus is explicitly disabled
if [ -n "${wpa_supplicant_dbus}" ] && ! yesno "${wpa_supplicant_dbus}"; then
: ${wpa_supplicant_conf:=${default_conf}}
fi
# use default conf if it exists
if [ -f "${default_conf}" ]; then
: ${wpa_supplicant_conf:=${default_conf}}
fi
# enable default dbus if we still dont have a config
if [ -z "${wpa_supplicant_conf}" ]; then
: ${wpa_supplicant_dbus:=yes}
else
command_args="${command_args} -c$wpa_supplicant_conf"
fi
case " ${command_args}" in
*" -u"*);;
*) if yesno "{wpa_supplicant_dbus}"; then
command_args="-u ${command_args}"
fi
;;
esac
checkpath -d -m 0755 -o root:root /var/run/wpa_supplicant
} }
+1 -1
View File
@@ -8,7 +8,7 @@ email='bayramk@gmail.com'
maintainer='bk' maintainer='bk'
license=('GPLv3') license=('GPLv3')
source=("https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/cairo-$version.tar.gz") source=("https://gitlab.freedesktop.org/cairo/cairo/-/archive/$version/cairo-$version.tar.gz")
depends=(pixman libpng glib libpcre2 cairo) depends=(pixman libpng glib libpcre2)
makedepends=() makedepends=()
md5sums=('bbea11bcc63e465e58aa054b56350b04') md5sums=('bbea11bcc63e465e58aa054b56350b04')
group=(x11.libs) group=(x11.libs)