You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficcontrol.apache.org by ne...@apache.org on 2018/10/17 19:44:48 UTC

[trafficcontrol] 02/08: Add TO RPM description plugin list

This is an automated email from the ASF dual-hosted git repository.

neuman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/trafficcontrol.git

commit c416439c701b78bf12a5921e0bfb3cc22d904873
Author: Robert Butts <ro...@apache.org>
AuthorDate: Thu Jul 12 16:06:25 2018 -0600

    Add TO RPM description plugin list
---
 traffic_ops/build/build_rpm.sh     | 4 ++--
 traffic_ops/build/traffic_ops.spec | 5 ++++-
 2 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/traffic_ops/build/build_rpm.sh b/traffic_ops/build/build_rpm.sh
index 9fec83c..b7cf92b 100755
--- a/traffic_ops/build/build_rpm.sh
+++ b/traffic_ops/build/build_rpm.sh
@@ -29,7 +29,6 @@ function importFunctions() {
 	. "$functions_sh"
 }
 
-
 # ---------------------------------------
 function initBuildArea() {
 	echo "Initializing the build area."
@@ -53,7 +52,8 @@ function initBuildArea() {
 	cp -p bin/supermicro_udev_mapper.pl "$to_ort_dest"
 	tar -czvf "$to_ort_dest".tgz -C "$RPMBUILD"/SOURCES $(basename "$to_ort_dest") || \
 		 { echo "Could not create tar archive $to_ort_dest: $?"; exit 1; }
-	
+
+	export PLUGINS=$(grep -l -P '(?<!func )AddPlugin\(' ${TO_DIR}/traffic_ops_golang/plugin/*.go | xargs -I '{}' basename {} '.go')
 	echo "The build area has been initialized."
 }
 
diff --git a/traffic_ops/build/traffic_ops.spec b/traffic_ops/build/traffic_ops.spec
index b47251e..4d428ae 100644
--- a/traffic_ops/build/traffic_ops.spec
+++ b/traffic_ops/build/traffic_ops.spec
@@ -44,7 +44,10 @@ Requires(postun): /usr/sbin/userdel
 %define PACKAGEDIR %{prefix}
 
 %description
-Installs Traffic Ops.
+Traffic Ops is the tool for administration (configuration and monitoring) of all components in a Traffic Control CDN.
+
+This package provides Traffic Ops with the following plugins:
+%{getenv:PLUGINS}
 
 Built: %(date) by %{getenv: USER}