This commit is contained in:
parent
014337f5c0
commit
5ee19dccdc
@ -43,7 +43,7 @@ dns_reachable() {
|
|||||||
|
|
||||||
# If there is no local nameserver and no we have no global ip addresses
|
# If there is no local nameserver and no we have no global ip addresses
|
||||||
# then we can't reach any nameservers
|
# then we can't reach any nameservers
|
||||||
if ! $(egrep -q "nameserver 127.0.0.1|::1" /etc/resolv.conf); then
|
if ! $(grep -E -q "nameserver 127.0.0.1|::1" /etc/resolv.conf); then
|
||||||
if [ -x "$(which ip)" ]; then
|
if [ -x "$(which ip)" ]; then
|
||||||
ADDRS=$(ip addr show scope global | grep inet)
|
ADDRS=$(ip addr show scope global | grep inet)
|
||||||
ROUTES=$(ip route show 0.0.0.0/0)
|
ROUTES=$(ip route show 0.0.0.0/0)
|
||||||
@ -51,7 +51,7 @@ dns_reachable() {
|
|||||||
# Get addresses of all running interfaces
|
# Get addresses of all running interfaces
|
||||||
ADDRS=$(LC_ALL=C ifconfig | grep ' addr:')
|
ADDRS=$(LC_ALL=C ifconfig | grep ' addr:')
|
||||||
# Filter out all local addresses
|
# Filter out all local addresses
|
||||||
ADDRS=$(echo "${ADDRS}" | egrep -v ':127|Scope:Host|Scope:Link')
|
ADDRS=$(echo "${ADDRS}" | grep -E -v ':127|Scope:Host|Scope:Link')
|
||||||
# Check we have a default route
|
# Check we have a default route
|
||||||
ROUTES=$(route -n | grep '^0.0.0.0 ')
|
ROUTES=$(route -n | grep '^0.0.0.0 ')
|
||||||
fi
|
fi
|
||||||
@ -76,7 +76,7 @@ dns_has_local() {
|
|||||||
# Use timeout when calling host as workaround for LP: #1752411
|
# Use timeout when calling host as workaround for LP: #1752411
|
||||||
OUT=`LC_ALL=C timeout 5 host -t soa local. 2>&1`
|
OUT=`LC_ALL=C timeout 5 host -t soa local. 2>&1`
|
||||||
if [ $? -eq 0 ] ; then
|
if [ $? -eq 0 ] ; then
|
||||||
if echo "$OUT" | egrep -vq 'has no|not found'; then
|
if echo "$OUT" | grep -E -vq 'has no|not found'; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
@ -105,8 +105,8 @@ Patch25: 0006-man-add-missing-bshell.1-symlink.patch
|
|||||||
Patch26: 0007-Ship-avahi-discover-1-bssh-1-and-bvnc-1-also-for-GTK.patch
|
Patch26: 0007-Ship-avahi-discover-1-bssh-1-and-bvnc-1-also-for-GTK.patch
|
||||||
# PATCH-FIX-UPSTREAM 0009-fix-bytestring-decoding-for-proper-display.patch mgorse@suse.com -- fix bytestring decoding for proper display.
|
# PATCH-FIX-UPSTREAM 0009-fix-bytestring-decoding-for-proper-display.patch mgorse@suse.com -- fix bytestring decoding for proper display.
|
||||||
Patch27: 0009-fix-bytestring-decoding-for-proper-display.patch
|
Patch27: 0009-fix-bytestring-decoding-for-proper-display.patch
|
||||||
Patch28: harden_avahi-daemon.service.patch
|
Patch28: harden_avahi-daemon.service.patch
|
||||||
Patch29: harden_avahi-dnsconfd.service.patch
|
Patch29: harden_avahi-dnsconfd.service.patch
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: gcc-c++
|
BuildRequires: gcc-c++
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
@ -418,8 +418,8 @@ DNS specifications for Zeroconf Computing.
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
# This is the avahi-discover command, only provided for the primary python3 flavor
|
|
||||||
|
|
||||||
|
# This is the avahi-discover command, only provided for the primary python3 flavor
|
||||||
%package -n python3-avahi-gtk
|
%package -n python3-avahi-gtk
|
||||||
Summary: A set of Avahi utilities written in Python Using python-gtk
|
Summary: A set of Avahi utilities written in Python Using python-gtk
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
|
Loading…
Reference in New Issue
Block a user