ypserv/ypserv-2.13-nonedomain.patch

23 lines
827 B
Diff
Raw Normal View History

diff -up ypserv-2.19/scripts/ypMakefile.in.nonedomain ypserv-2.19/scripts/ypMakefile.in
--- ypserv-2.19/scripts/ypMakefile.in.nonedomain 2008-09-25 13:11:50.000000000 +0200
+++ ypserv-2.19/scripts/ypMakefile.in 2008-09-25 13:11:50.000000000 +0200
2006-12-22 17:17:37 +00:00
@@ -98,10 +98,18 @@ NETMASKS = $(YPSRCDIR)/netmasks
YPSERVERS = $(YPDIR)/ypservers # List of all NIS servers for a domain
target: Makefile
2008-02-04 14:44:27 +00:00
+ifeq ($(shell /bin/domainname), (none))
2006-12-22 17:17:37 +00:00
+ @echo "Domain name cannot be (none)"
+else
2008-02-04 14:44:27 +00:00
+ifeq ($(shell /bin/domainname), )
2006-12-22 17:17:37 +00:00
+ @echo "Domain name must be set"
2008-02-04 14:44:27 +00:00
+else
2006-12-22 17:17:37 +00:00
@test ! -d $(LOCALDOMAIN) && mkdir $(LOCALDOMAIN) ; \
cd $(LOCALDOMAIN) ; \
$(NOPUSH) || $(MAKE) -f ../Makefile ypservers; \
$(MAKE) -f ../Makefile all
2008-02-04 14:44:27 +00:00
+endif
2006-12-22 17:17:37 +00:00
+endif
# If you don't want some of these maps built, feel free to comment
# them out from this list.