Browse code

- install ser-oob as ser-advanced - replace the path to modules in ser-advanced - install tls configuration - install ser_cert.sh script

Jan Janak authored on 23/06/2008 17:43:20
Showing 1 changed files
... ...
@@ -439,26 +439,30 @@ $(man_prefix)/$(man_dir)/man5:
439 439
 		
440 440
 # note: sed with POSIX.1 regex doesn't support |, + or ? (darwin, solaris ...) 
441 441
 install-cfg: $(cfg_prefix)/$(cfg_dir)
442
-		sed -e "s#/usr/.*lib/ser/modules/#$(modules_target)#g" \
443
-			< etc/ser.cfg > $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
444
-		chmod 644 $(cfg_prefix)/$(cfg_dir)ser.cfg.sample
442
+		sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \
443
+			< etc/ser-basic.cfg > $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
444
+		chmod 644 $(cfg-prefix)/$(cfg-dir)ser.cfg.sample
445 445
 		if [ -z "${skip_cfg_install}" -a \
446
-				! -f $(cfg_prefix)/$(cfg_dir)ser.cfg ]; then \
447
-			mv -f $(cfg_prefix)/$(cfg_dir)ser.cfg.sample \
448
-				$(cfg_prefix)/$(cfg_dir)ser.cfg; \
446
+				! -f $(cfg-prefix)/$(cfg-dir)ser.cfg ]; then \
447
+			mv -f $(cfg-prefix)/$(cfg-dir)ser.cfg.sample \
448
+				$(cfg-prefix)/$(cfg-dir)ser.cfg; \
449 449
 		fi
450
-		sed -e "s#/usr/.*lib/ser/modules/#$(modules_target)#g" \
451
-			< etc/ser-oob.cfg > $(cfg_prefix)/$(cfg_dir)ser-oob.cfg.sample
452
-		chmod 644 $(cfg_prefix)/$(cfg_dir)ser-oob.cfg.sample
450
+		sed -e "s#/usr/.*lib/ser/modules/#$(modules-target)#g" \
451
+			< etc/ser-oob.cfg > $(cfg-prefix)/$(cfg-dir)ser-advanced.cfg.sample
452
+		chmod 644 $(cfg-prefix)/$(cfg-dir)ser-advanced.cfg.sample
453 453
 		if [ -z "${skip_cfg_install}" -a \
454
-				! -f $(cfg_prefix)/$(cfg_dir)ser-oob.cfg ]; then \
455
-			mv -f $(cfg_prefix)/$(cfg_dir)ser-oob.cfg.sample \
456
-				$(cfg_prefix)/$(cfg_dir)ser-oob.cfg; \
454
+				! -f $(cfg-prefix)/$(cfg-dir)ser-advanced.cfg ]; then \
455
+			mv -f $(cfg-prefix)/$(cfg-dir)ser-advanced.cfg.sample \
456
+				$(cfg-prefix)/$(cfg-dir)ser-advanced.cfg; \
457 457
 		fi
458 458
 		# radius dictionary
459
-		$(INSTALL_TOUCH) $(cfg_prefix)/$(cfg_dir)/dictionary.ser 
460
-		$(INSTALL_CFG) etc/dictionary.ser $(cfg_prefix)/$(cfg_dir)
461
-#		$(INSTALL_CFG) etc/ser.cfg $(cfg_prefix)/$(cfg_dir)
459
+		$(INSTALL-TOUCH) $(cfg-prefix)/$(cfg-dir)/dictionary.ser 
460
+		$(INSTALL-CFG) etc/dictionary.ser $(cfg-prefix)/$(cfg-dir)
461
+
462
+		# TLS configuration
463
+		$(INSTALL-TOUCH) $(cfg-prefix)/$(cfg-dir)/tls.cfg
464
+		$(INSTALL-CFG) modules/tls/tls.cfg $(cfg-prefix)/$(cfg-dir)
465
+		modules/tls/ser_cert.sh -d $(cfg-prefix)/$(cfg-dir)
462 466
 
463 467
 install-bin: $(bin_prefix)/$(bin_dir) $(NAME)
464 468
 		$(INSTALL_TOUCH) $(bin_prefix)/$(bin_dir)/$(NAME)