adding patch -emptydomain

This commit is contained in:
Honza Horák 2011-11-25 15:30:36 +01:00
parent 18f1a824af
commit 967a2ed63b
2 changed files with 14 additions and 0 deletions

View File

@ -0,0 +1,12 @@
diff -up ypserv-2.26/scripts/ypinit.in.emptydomain ypserv-2.26/scripts/ypinit.in
--- ypserv-2.26/scripts/ypinit.in.emptydomain 2011-11-24 09:12:31.267702768 +0100
+++ ypserv-2.26/scripts/ypinit.in 2011-11-24 09:13:09.881700121 +0100
@@ -156,7 +156,7 @@ then
exit 1
fi
-if [ -z "$DOMAIN" ]
+if [ "${DOMAIN}x" = "x" ] || [ "${DOMAIN}" = "(none)" ]
then
echo "The local host's domain name hasn't been set. Please set it."
exit 1

View File

@ -30,6 +30,7 @@ Patch10: ypserv-2.25-portmanfix.patch
Patch11: ypserv-2.26-request.patch
Patch12: ypserv-2.26-shadow.patch
Patch13: ypserv-2.26-errmsg.patch
Patch14: ypserv-2.26-emptydomain.patch
BuildRequires: gdbm-devel
BuildRequires: systemd-units
@ -65,6 +66,7 @@ machines.
%patch11 -p1 -b .request
%patch12 -p1 -b .shadow
%patch13 -p1 -b .errmsg
%patch14 -p1 -b .emptydomain
%build
cp etc/README etc/README.etc