[trafficserver/el6] https://bugzilla.redhat.com/show_bug.cgi?id=683463#c36

Jan-Frode Myklebust janfrode at fedoraproject.org
Sun Mar 18 19:50:40 UTC 2012


commit fac1ad798d4ff46005be410fce4102abf344ef18
Author: Jan-Frode Myklebust <janfrode at tanso.net>
Date:   Sun Mar 18 20:48:49 2012 +0100

    https://bugzilla.redhat.com/show_bug.cgi?id=683463#c36
    
    Point default proxy.config.proxy_name to FIXME.example.com, instead
    of the name of the buildhost.
    
    Point proxy.config.ssl.server.cert.path and proxy.config.ssl.server.private_key.path
    to the standard /etc/pki locations.

 trafficserver.spec |   17 ++++++++++++++++-
 1 files changed, 16 insertions(+), 1 deletions(-)
---
diff --git a/trafficserver.spec b/trafficserver.spec
index de51543..169bd7d 100644
--- a/trafficserver.spec
+++ b/trafficserver.spec
@@ -3,7 +3,7 @@
 Summary:	Fast, scalable and extensible HTTP/1.1 compliant caching proxy server
 Name:		trafficserver
 Version:	3.0.3
-Release:	2%{?dist}
+Release:	3%{?dist}
 License:	ASL 2.0
 Group:		System Environment/Daemons
 Source0:	http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
@@ -76,6 +76,14 @@ rm -f $RPM_BUILD_ROOT/%{_libdir}/trafficserver/libtsmgmt.la
 rm -f $RPM_BUILD_ROOT/%{_libdir}/trafficserver/libtsutil.la
 rm -f $RPM_BUILD_ROOT/%{_libdir}/trafficserver/plugins/conf_remap.la
 
+# 
+perl -pi -e 's/^CONFIG.*proxy.config.proxy_name STRING.*$/CONFIG proxy.config.proxy_name STRING FIXME.example.com/' \
+	$RPM_BUILD_ROOT/etc/trafficserver/records.config
+perl -pi -e 's/^CONFIG.*proxy.config.ssl.server.cert.path.*$/CONFIG proxy.config.ssl.server.cert.path STRING \/etc\/pki\/tls\/certs\//' \
+	$RPM_BUILD_ROOT/etc/trafficserver/records.config
+perl -pi -e 's/^CONFIG.*proxy.config.ssl.server.private_key.path.*$/CONFIG proxy.config.ssl.server.private_key.path STRING \/etc\/pki\/tls\/private\//' \
+	$RPM_BUILD_ROOT/etc/trafficserver/records.config
+
 # The clean section  is only needed for EPEL and Fedora < 13
 # http://fedoraproject.org/wiki/PackagingGuidelines#.25clean
 %clean
@@ -141,6 +149,13 @@ header files, and Apache httpd style module build system.
 %attr(0644,root,root) %{_libdir}/trafficserver/*.so
 
 %changelog
+* Sun Mar 18 2012 <janfrode at tanso.net> - 3.0.3-3
+- change default proxy.config.proxy_name to FIXME.example.com instead of the
+  name of the buildhost
+- configure proxy.config.ssl.server.cert.path and
+  proxy.config.ssl.server.private_key.path to point to the standard /etc/pki/
+  locations.
+
 * Tue Mar 13 2012 <janfrode at tanso.net> - 3.0.3-2
 - exclude ppc/ppc64 since build there fails, TS-1131.
 


More information about the scm-commits mailing list