|
@@ -17,7 +17,9 @@ LIBS+= -L$(LOCALBASE)/lib -L$(LOCALBASE)/ssl/lib \
|
|
# NOTE: depending on the way in which libssl was compiled you might
|
|
# NOTE: depending on the way in which libssl was compiled you might
|
|
# have to add -lz -lkrb5 (zlib and kerberos5).
|
|
# have to add -lz -lkrb5 (zlib and kerberos5).
|
|
# E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
|
|
# E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS="-lz -lkrb5"
|
|
-MOD_INSTALL_CFGS=tls.cfg
|
|
|
|
|
|
+
|
|
|
|
+# dcm: tls.cfg installed via local 'install-cfg' to update paths
|
|
|
|
+#MOD_INSTALL_CFGS=tls.cfg
|
|
|
|
|
|
DEFS+=-DOPENSER_MOD_INTERFACE
|
|
DEFS+=-DOPENSER_MOD_INTERFACE
|
|
|
|
|
|
@@ -28,3 +30,13 @@ install-tls-cert: $(cfg_prefix)/$(cfg_dir)
|
|
MAIN_NAME=$(MAIN_NAME) ./$(SCR_NAME)_cert.sh -d $(cfg_prefix)/$(cfg_dir)
|
|
MAIN_NAME=$(MAIN_NAME) ./$(SCR_NAME)_cert.sh -d $(cfg_prefix)/$(cfg_dir)
|
|
|
|
|
|
install-cfg: install-tls-cert
|
|
install-cfg: install-tls-cert
|
|
|
|
+ @$(call try_err, $(INSTALL_TOUCH) \
|
|
|
|
+ "$(cfg_prefix)/$(cfg_dir)tls.cfg.sample" )
|
|
|
|
+ @sed -e "s#/usr/local/etc/ser/#$(cfg_prefix)/$(cfg_dir)#g" \
|
|
|
|
+ -e "s#ser-selfsigned#$(MAIN_NAME)-selfsigned#g" \
|
|
|
|
+ < ./tls.cfg > "$(cfg_prefix)/$(cfg_dir)tls.cfg.sample"
|
|
|
|
+ @if [ -z "${skip_cfg_install}" -a \
|
|
|
|
+ ! -f "$(cfg_prefix)/$(cfg_dir)tls.cfg" ]; then \
|
|
|
|
+ mv -f "$(cfg_prefix)/$(cfg_dir)tls.cfg.sample" \
|
|
|
|
+ "$(cfg_prefix)/$(cfg_dir)tls.cfg" ; \
|
|
|
|
+ fi
|