Repository: incubator-trafficcontrol
Updated Branches:
  refs/heads/master f4a93a8d2 -> 51b038af2


Updated astats version to 1.3 to account for ats 6.2.1 api changes.  Added
an astats-git-build spec file for building this plugin from the latest
commit in the git repo.

add a change log.


Project: http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/commit/7c7329ce
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/tree/7c7329ce
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/diff/7c7329ce

Branch: refs/heads/master
Commit: 7c7329cebc3a63e1a8159a729f2d4134aa318722
Parents: f4a93a8
Author: John J. Rushford <[email protected]>
Authored: Tue Apr 11 19:01:05 2017 +0000
Committer: Dan Kirkwood <[email protected]>
Committed: Tue Apr 11 16:53:04 2017 -0600

----------------------------------------------------------------------
 .../plugins/astats_over_http/CHANGELOG          |  3 +
 .../plugins/astats_over_http/README.md          |  6 ++
 .../astats_over_http/astats-git-build.spec      | 67 ++++++++++++++++++++
 .../astats_over_http/astats_over_http.spec      |  2 +-
 4 files changed, 77 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c7329ce/traffic_server/plugins/astats_over_http/CHANGELOG
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/CHANGELOG 
b/traffic_server/plugins/astats_over_http/CHANGELOG
new file mode 100644
index 0000000..83f9b7a
--- /dev/null
+++ b/traffic_server/plugins/astats_over_http/CHANGELOG
@@ -0,0 +1,3 @@
+
+04-11-2017 - bumped version to 1.3 to account for ats 6.2.1 api changes.
+

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c7329ce/traffic_server/plugins/astats_over_http/README.md
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/README.md 
b/traffic_server/plugins/astats_over_http/README.md
index 3896edd..c5d5021 100644
--- a/traffic_server/plugins/astats_over_http/README.md
+++ b/traffic_server/plugins/astats_over_http/README.md
@@ -8,3 +8,9 @@ Add to the plugin.conf:
   astats_over_http.so path=${path}
 
 start traffic server and visit http://[ip]:[port]/${path}
+
+Rpm Builds
+
+  Two spec files are provided.  astats_over_http.spec requires a tar ball of 
this directoy 
+  named astats_over_htt-.tar.gz is copied to the rpmbuild/SOURCES directory.  
The second
+  astats-git-build, checks out the source from the git repo and builds the rpm.

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c7329ce/traffic_server/plugins/astats_over_http/astats-git-build.spec
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/astats-git-build.spec 
b/traffic_server/plugins/astats_over_http/astats-git-build.spec
new file mode 100644
index 0000000..2ba729e
--- /dev/null
+++ b/traffic_server/plugins/astats_over_http/astats-git-build.spec
@@ -0,0 +1,67 @@
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+%global install_prefix "/opt"
+%global commit %(git blame --incremental astats_over_http.c | head -1 | awk 
'{print substr($1,0,7)}' )
+%global no_commits %(git log astats_over_http.c | grep '^commit' | wc -l)
+%global _find_debuginfo_dwz_opts %{nil}
+
+Name:          astats_over_http
+Version:       1.3.0
+Release:       %{no_commits}.%{commit}%{?dist}
+Epoch:    434
+Summary:       Apache Traffic Server %{name} plugin
+Vendor:                Comcast
+Group:         Applications/Communications
+License:       Apache License, Version 2.0
+URL:           
https://github.com/apache/incubator-trafficcontrol/tree/master/traffic_server/plugins/astats_over_http
+BuildRoot:     %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
+Requires:      trafficserver >= 6011
+BuildRequires: trafficserver >= 6011
+
+%description
+Apache Traffic Server plugin
+
+%prep
+rm -rf %{name}
+git clone https://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol.git
+cd incubator-trafficcontrol
+git checkout master
+git checkout %{commit} .
+cd ..
+mv incubator-trafficcontrol/traffic_server/plugins/astats_over_http %{name}
+rm -rf incubator-trafficcontrol
+%setup -D -n %{name} -T
+
+%build
+%{install_prefix}/trafficserver/bin/tsxs -v -c %{name}.c -o %{name}.so
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{install_prefix}/trafficserver/libexec/trafficserver
+DESTDIR=$RPM_BUILD_ROOT %{install_prefix}/trafficserver/bin/tsxs -v -o 
%{name}.so -i
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post
+
+%postun
+
+%files
+%defattr(-,root,root)
+/opt/trafficserver/libexec/trafficserver/%{name}.so

http://git-wip-us.apache.org/repos/asf/incubator-trafficcontrol/blob/7c7329ce/traffic_server/plugins/astats_over_http/astats_over_http.spec
----------------------------------------------------------------------
diff --git a/traffic_server/plugins/astats_over_http/astats_over_http.spec 
b/traffic_server/plugins/astats_over_http/astats_over_http.spec
index 19afdf7..309b6f7 100644
--- a/traffic_server/plugins/astats_over_http/astats_over_http.spec
+++ b/traffic_server/plugins/astats_over_http/astats_over_http.spec
@@ -19,7 +19,7 @@
 %global install_prefix "/opt"
 
 Name:          astats_over_http
-Version:       1.2
+Version:       1.3
 Release:       1%{?dist}
 Summary:       Apache Traffic Server %{name} plugin
 Vendor:                Comcast

Reply via email to