adding patch -emptydomain
This commit is contained in:
parent
18f1a824af
commit
967a2ed63b
12
ypserv-2.26-emptydomain.patch
Normal file
12
ypserv-2.26-emptydomain.patch
Normal 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
|
@ -30,6 +30,7 @@ Patch10: ypserv-2.25-portmanfix.patch
|
|||||||
Patch11: ypserv-2.26-request.patch
|
Patch11: ypserv-2.26-request.patch
|
||||||
Patch12: ypserv-2.26-shadow.patch
|
Patch12: ypserv-2.26-shadow.patch
|
||||||
Patch13: ypserv-2.26-errmsg.patch
|
Patch13: ypserv-2.26-errmsg.patch
|
||||||
|
Patch14: ypserv-2.26-emptydomain.patch
|
||||||
BuildRequires: gdbm-devel
|
BuildRequires: gdbm-devel
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
@ -65,6 +66,7 @@ machines.
|
|||||||
%patch11 -p1 -b .request
|
%patch11 -p1 -b .request
|
||||||
%patch12 -p1 -b .shadow
|
%patch12 -p1 -b .shadow
|
||||||
%patch13 -p1 -b .errmsg
|
%patch13 -p1 -b .errmsg
|
||||||
|
%patch14 -p1 -b .emptydomain
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cp etc/README etc/README.etc
|
cp etc/README etc/README.etc
|
||||||
|
Loading…
Reference in New Issue
Block a user