make the install process a little clearer
authorAlan T. DeKok <aland@freeradius.org>
Wed, 15 Feb 2017 15:57:33 +0000 (10:57 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Wed, 15 Feb 2017 15:57:33 +0000 (10:57 -0500)
raddb/all.mk

index b087dc1..370f533 100644 (file)
@@ -18,8 +18,16 @@ LOCAL_MODULES :=     $(addprefix raddb/mods-enabled/,$(DEFAULT_MODULES))
 LOCAL_CERT_FILES :=    Makefile README xpextensions \
                        ca.cnf server.cnf client.cnf bootstrap
 
+#
+#  We don't create the installed certs if we're building a package,
+#  OR if OpenSSL is not available.
+#
+ifeq "$(PACKAGE)" ""
+ifneq "$(OPENSSL_LIBS)" ""
 LOCAL_CERT_PRODUCTS := $(addprefix $(R)$(raddbdir)/certs/,ca.key ca.pem \
                        client.key client.pem server.key server.pem)
+endif
+endif
 
 LEGACY_LINKS :=                $(addprefix $(R)$(raddbdir)/,users huntgroups hints)
 
@@ -112,7 +120,7 @@ $(R)$(raddbdir)/users: $(R)$(modconfdir)/files/authorize
        @[ -e $@ ] || echo LN-S $(patsubst $(R)$(raddbdir)/%,raddb/%,$@)
        @[ -e $@ ] || ln -s $(patsubst $(R)$(raddbdir)/%,./%,$<) $@
 
-ifeq ("$(PACKAGE)","")
+ifneq "$(LOCAL_CERT_PRODUCTS)" ""
 $(LOCAL_CERT_PRODUCTS):
        @echo BOOTSTRAP raddb/certs/
        @$(MAKE) -C $(R)$(raddbdir)/certs/