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