Blame SOURCES/ypserv-2.13-nonedomain.patch

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