Blame SOURCES/ypserv-2.13-nonedomain.patch

b0f15a
diff -up ./scripts/ypMakefile.in.nonedomain ./scripts/ypMakefile.in
b0f15a
--- ./scripts/ypMakefile.in.nonedomain	2013-05-06 18:30:46.772434725 +0200
b0f15a
+++ ./scripts/ypMakefile.in	2013-05-06 18:31:59.429495323 +0200
b0f15a
@@ -106,10 +106,18 @@ NETMASKS    = $(YPSRCDIR)/netmasks
b0f15a
 YPSERVERS = $(YPDIR)/ypservers	# List of all NIS servers for a domain
b0f15a
 
b0f15a
 target: Makefile
b0f15a
+ifeq ($(shell /bin/domainname), (none))
b0f15a
+	@echo "Domain name cannot be (none)"
b0f15a
+else
b0f15a
+ifeq ($(shell /bin/domainname), )
b0f15a
+	@echo "Domain name must be set"
b0f15a
+else
b0f15a
 	@test ! -d $(LOCALDOMAIN) && mkdir $(LOCALDOMAIN) ; \
b0f15a
 	cd $(LOCALDOMAIN)  ; \
b0f15a
 	$(NOPUSH) || $(MAKE) -f ../Makefile ypservers; \
b0f15a
 	$(MAKE) -f ../Makefile all
b0f15a
+endif
b0f15a
+endif
b0f15a
 
b0f15a
 # If you don't want some of these maps built, feel free to comment
b0f15a
 # them out from this list.