trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Reindl Harald <h.rei...@thelounge.net>
Subject trafficserver-3.3.5 GeoIP dependency
Date Fri, 09 Aug 2013 22:49:09 GMT
Hi

looks like 3.3.5 is linking GeoIP for whatever reason

it would be a good idea to have a configure-switch to disable this
to avoid RPM dependencies added on build-machines having GeoIP-devel
installed for other package-builds and in my case ATS is used as a
fast as possible weapon for high-traffic pages providing KeepAlive
in front of a preforking-httpd

tried --disable-geoip and --without-geoip but not any effect
actually - yes i try to minimize dependencies and package
footprints resulkting in virtual servers with 600-700 MB
used disk-space on the rootfs and dist-upgrades in 2-3 minutes

[root@srv-rhsoft:/fileserver/yum-repo/fc19/x86_64]$ ls | grep trafficserver
-rw-r--r-- 1 harry verwaltung 2,4M 2013-08-10 00:30 trafficserver-3.3.5-5.fc19.20130810.rh.x86_64.rpm
-rw-r--r-- 1 harry verwaltung  48K 2013-08-10 00:30 trafficserver-devel-3.3.5-5.fc19.20130810.rh.x86_64.rpm
-rw-r--r-- 1 harry verwaltung 105K 2013-08-10 00:30 trafficserver-manpages-3.3.5-5.fc19.20130810.rh.x86_64.rpm
-rw-r--r-- 1 harry verwaltung  48K 2013-08-10 00:30 trafficserver-plugins-3.3.5-5.fc19.20130810.rh.x86_64.rpm

[root@testserver:/var/log/trafficserver]$ rpm -q --filesbypkg trafficserver
trafficserver             /etc/ld.so.conf.d/trafficserver-x86_64.conf
trafficserver             /etc/trafficserver
trafficserver             /etc/trafficserver/body_factory
trafficserver             /etc/trafficserver/body_factory/default
trafficserver             /etc/trafficserver/body_factory/default/.body_factory_info
trafficserver             /etc/trafficserver/internal
trafficserver             /etc/trafficserver/snapshots
trafficserver             /etc/trafficserver/ssl
trafficserver             /etc/trafficserver/stats.config.xml
trafficserver             /etc/trafficserver/trafficserver-release
trafficserver             /run/trafficserver
trafficserver             /usr/bin/traffic_cop
trafficserver             /usr/bin/traffic_line
trafficserver             /usr/bin/traffic_logcat
trafficserver             /usr/bin/traffic_logstats
trafficserver             /usr/bin/traffic_manager
trafficserver             /usr/bin/traffic_sac
trafficserver             /usr/bin/traffic_server
trafficserver             /usr/bin/traffic_shell
trafficserver             /usr/bin/trafficserver
trafficserver             /usr/bin/tstop
trafficserver             /usr/lib/systemd/system/trafficserver.service
trafficserver             /usr/lib/tmpfiles.d/trafficserver.conf
trafficserver             /usr/lib64/trafficserver
trafficserver             /usr/lib64/trafficserver/libatscpp11api.so.0
trafficserver             /usr/lib64/trafficserver/libatscpp11api.so.0.0.0
trafficserver             /usr/lib64/trafficserver/libtsmgmt.so.3
trafficserver             /usr/lib64/trafficserver/libtsmgmt.so.3.3.5
trafficserver             /usr/lib64/trafficserver/libtsutil.so.3
trafficserver             /usr/lib64/trafficserver/libtsutil.so.3.3.5
trafficserver             /var/cache/trafficserver
trafficserver             /var/log/trafficserver
___________________________________________________________________________________________

[root@testserver:/var/log/trafficserver]$ rpm -q --filesbypkg trafficserver-manpages
trafficserver-manpages    /usr/share/doc/trafficserver/etc
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/README
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/access#denied
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/access#proxy_auth_required
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/access#redirect_url
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/access#ssl_forbidden
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/cache#not_in_cache
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/cache#read_error
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/congestion#retryAfter
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/connect#dns_failed
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/connect#failed_connect
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/connect#hangup
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/default
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/interception#no_host
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/redirect#moved_temporarily
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/request#cycle_detected
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/request#no_content_length
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/request#no_host
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/request#scheme_unsupported
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/request#syntax_error
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/response#bad_response
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/response#bad_version
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/timeout#activity
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/timeout#inactivity
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/transcoding#unsupported
trafficserver-manpages    /usr/share/doc/trafficserver/etc/body_factory/default/urlrouting#no_mapping
trafficserver-manpages    /usr/share/doc/trafficserver/etc/cache.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/cluster.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/congestion.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/hosting.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/icp.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/ip_allow.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/log_hosts.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/logs_xml.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/parent.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/plugin.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/prefetch.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/records.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/remap.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/socks.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/splitdns.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/ssl_multicert.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/storage.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/update.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/vaddrs.config
trafficserver-manpages    /usr/share/doc/trafficserver/etc/volume.config
trafficserver-manpages    /usr/share/man/man1/config_alarms.1.gz
trafficserver-manpages    /usr/share/man/man1/config_cache.1.gz
trafficserver-manpages    /usr/share/man/man1/config_clock.1.gz
trafficserver-manpages    /usr/share/man/man1/config_dns.1.gz
trafficserver-manpages    /usr/share/man/man1/config_get.1.gz
trafficserver-manpages    /usr/share/man/man1/config_hard-restart.1.gz
trafficserver-manpages    /usr/share/man/man1/config_hostdb.1.gz
trafficserver-manpages    /usr/share/man/man1/config_http.1.gz
trafficserver-manpages    /usr/share/man/man1/config_icp.1.gz
trafficserver-manpages    /usr/share/man/man1/config_logging.1.gz
trafficserver-manpages    /usr/share/man/man1/config_name.1.gz
trafficserver-manpages    /usr/share/man/man1/config_network.1.gz
trafficserver-manpages    /usr/share/man/man1/config_parent.1.gz
trafficserver-manpages    /usr/share/man/man1/config_port-tunnels.1.gz
trafficserver-manpages    /usr/share/man/man1/config_remap.1.gz
trafficserver-manpages    /usr/share/man/man1/config_reset-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/config_restart.1.gz
trafficserver-manpages    /usr/share/man/man1/config_root.1.gz
trafficserver-manpages    /usr/share/man/man1/config_scheduled-update.1.gz
trafficserver-manpages    /usr/share/man/man1/config_security.1.gz
trafficserver-manpages    /usr/share/man/man1/config_set.1.gz
trafficserver-manpages    /usr/share/man/man1/config_socks.1.gz
trafficserver-manpages    /usr/share/man/man1/config_ssl.1.gz
trafficserver-manpages    /usr/share/man/man1/config_start.1.gz
trafficserver-manpages    /usr/share/man/man1/config_stop.1.gz
trafficserver-manpages    /usr/share/man/man1/config_upgrade.1.gz
trafficserver-manpages    /usr/share/man/man1/config_virtual-ip.1.gz
trafficserver-manpages    /usr/share/man/man1/show_alarms.1.gz
trafficserver-manpages    /usr/share/man/man1/show_cache-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_cache.1.gz
trafficserver-manpages    /usr/share/man/man1/show_cluster.1.gz
trafficserver-manpages    /usr/share/man/man1/show_dns-resolver.1.gz
trafficserver-manpages    /usr/share/man/man1/show_dns-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_hostdb-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_hostdb.1.gz
trafficserver-manpages    /usr/share/man/man1/show_http-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_http-trans-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_http.1.gz
trafficserver-manpages    /usr/share/man/man1/show_icp-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_icp.1.gz
trafficserver-manpages    /usr/share/man/man1/show_logging-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_logging.1.gz
trafficserver-manpages    /usr/share/man/man1/show_network.1.gz
trafficserver-manpages    /usr/share/man/man1/show_parent.1.gz
trafficserver-manpages    /usr/share/man/man1/show_port-tunnels.1.gz
trafficserver-manpages    /usr/share/man/man1/show_proxy-stats.1.gz
trafficserver-manpages    /usr/share/man/man1/show_proxy.1.gz
trafficserver-manpages    /usr/share/man/man1/show_remap.1.gz
trafficserver-manpages    /usr/share/man/man1/show_scheduled-update.1.gz
trafficserver-manpages    /usr/share/man/man1/show_security.1.gz
trafficserver-manpages    /usr/share/man/man1/show_socks.1.gz
trafficserver-manpages    /usr/share/man/man1/show_ssl.1.gz
trafficserver-manpages    /usr/share/man/man1/show_status.1.gz
trafficserver-manpages    /usr/share/man/man1/show_version.1.gz
trafficserver-manpages    /usr/share/man/man1/show_virtual-ip.1.gz
trafficserver-manpages    /usr/share/man/man1/traffic_shell.1.gz
trafficserver-manpages    /usr/share/man/man1/ts-disable.1.gz
trafficserver-manpages    /usr/share/man/man1/ts-enable.1.gz
trafficserver-manpages    /usr/share/man/man1/ts-exit.1.gz
trafficserver-manpages    /usr/share/man/man3/Apache::TS.3pm.gz
trafficserver-manpages    /usr/share/man/man3/Apache::TS::AdminClient.3pm.gz
trafficserver-manpages    /usr/share/man/man3/Apache::TS::Config::Records.3pm.gz
___________________________________________________________________________________________

[builduser@testserver:/rpmbuild/SPECS]$ cat trafficserver.spec
%global            debug_package    %{nil}

Summary:           Apache Trafficserver
Name:              trafficserver
Version:           3.3.5
Release:           5%{?dist}
License:           ASL 2.0
Group:             System Environment/Daemons
Source0:           http://www.apache.org/dist/%{name}/%{name}-%{version}.tar.bz2
Source1:           %{name}.service
Source2:           %{name}.tmpfilesd
Patch1:            trafficserver-404-not-found.patch
URL:               http://trafficserver.apache.org/index.html
BuildRequires:     autoconf
BuildRequires:     automake
BuildRequires:     expat-devel
BuildRequires:     gcc-c++
BuildRequires:     libtool
BuildRequires:     openssl-devel
BuildRequires:     pcre-devel
BuildRequires:     tcl-devel
BuildRequires:     xz-devel
BuildRequires:     zlib-devel
Requires:          systemd

%description
Apache Traffic Server is a fast, scalable and extensible HTTP/1.1 compliant caching proxy
server

%package           devel
Summary:           Apache Traffic Server development libraries and header files
Group:             Development/Libraries
Requires:          %{name} = %{version}-%{release}
%description       devel

%package           manpages
Summary:           Trafficserver manuals
Group:             Applications/System
%description       manpages

%package           plugins
Summary:           Trafficserver plugins
Group:             Applications/System
%description       plugins

%prep
%setup -q
%patch1 -p1

%build
export CFLAGS="%{optflags} -fPIC -fPIE -fstack-protector-strong -Wno-deprecated-declarations
-Wno-error=unused-result"
export CXXFLAGS="%{optflags} -fPIC -fPIE -fstack-protector-strong -Wno-deprecated-declarations
-Wno-error=unused-result"
export LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie"
export SH_LDFLAGS="-Wl,-z,now -Wl,-z,relro,-z,noexecstack -pie"
./configure --enable-layout=Gentoo \
 --libdir=%{_libdir}/%{name} \
 --with-tcl=%{_libdir} \
 --with-jemalloc \
 --with-user=ats \
 --with-group=ats \
 --enable-linux-native-aio \
 --disable-diags \
 --disable-debug \
 --disable-hwloc \
 --with-pic \
 --enable-pie \
 --disable-static \
 --enable-shared
sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' -e
's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}

%install
make install-strip DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}/run/%{name}
cp doc/man/*.1 %{buildroot}%{_mandir}/man1/
mv %{buildroot}%{_mandir}/man1/enable.1 %{buildroot}%{_mandir}/man1/ts-enable.1
mv %{buildroot}%{_mandir}/man1/disable.1 %{buildroot}%{_mandir}/man1/ts-disable.1
mv %{buildroot}%{_mandir}/man1/exit.1 %{buildroot}%{_mandir}/man1/ts-exit.1
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 -p %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
rm -rf %{buildroot}%{_docdir}/%{name}
rm -rf %{buildroot}%{_libdir}/perl5/
rm -f %{buildroot}%{_libdir}/%{name}/libtsmgmt.a
rm -f %{buildroot}%{_libdir}/%{name}/libtsutil.a
rm -f %{buildroot}%{_libdir}/%{name}/libtsmgmt.la
rm -f %{buildroot}%{_libdir}/%{name}/libtsutil.la
rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.la
rm -f %{buildroot}%{_libdir}/%{name}/*.la
rm -f %{buildroot}%{_datarootdir}/perl5/Apache/TS.pm
rm -f %{buildroot}%{_datarootdir}/perl5/Apache/TS/AdminClient.pm
rm -f %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config.pm
rm -f %{buildroot}%{_datarootdir}/perl5/Apache/TS/Config/Records.pm
rm -f %{buildroot}%{_bindir}/tspush
strip -s %{buildroot}%{_bindir}/traffic_cop
strip -s %{buildroot}%{_bindir}/traffic_line
strip -s %{buildroot}%{_bindir}/traffic_logcat
strip -s %{buildroot}%{_bindir}/traffic_logstats
strip -s %{buildroot}%{_bindir}/traffic_sac
strip -s %{buildroot}%{_bindir}/traffic_server
strip -s %{buildroot}%{_bindir}/traffic_shell
strip -s %{buildroot}%{_bindir}/tstop
strip -s %{buildroot}%{_libdir}/%{name}/*.so*
strip -s %{buildroot}%{_libdir}/%{name}/plugins/*.so
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/internal
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/snapshots
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/ssl
mkdir -p %{buildroot}%{_docdir}/%{name}/etc/body_factory/default
mv %{buildroot}%{_sysconfdir}/%{name}/body_factory/default/* %{buildroot}%{_docdir}/%{name}/etc/body_factory/default/
mv %{buildroot}%{_sysconfdir}/%{name}/*.config %{buildroot}%{_docdir}/%{name}/etc/
echo "%{_libdir}/%{name}" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-%{_arch}.conf

%post
%{_sbindir}/ldconfig
%{_bindir}/systemctl --system daemon-reload 2> /dev/null > /dev/null
exit 0

%pre
getent group ats >/dev/null || groupadd -r ats -g 176 &>/dev/null
getent passwd ats >/dev/null || useradd -r -u 176 -g ats -d / -s %{_sbindir}/nologin -c
"Apache Traffic Server" ats
&>/dev/null
exit 0

%files
%{_bindir}/traffic*
%{_bindir}/tstop
%dir %{_libdir}/%{name}
%dir %{_sysconfdir}/%{name}
%{_libdir}/%{name}/*.so.*
%config(noreplace) %{_sysconfdir}/%{name}/*
%attr(0770, ats, ats) %dir %{_sysconfdir}/%{name}/internal
%attr(0770, ats, ats) %dir %{_sysconfdir}/%{name}/snapshots
%attr(0750, root, ats) %dir %{_sysconfdir}/%{name}/ssl
%attr(0750, root, ats) %dir %{_sysconfdir}/%{name}/body_factory
%{_unitdir}/%{name}.service
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%attr(0770, ats, ats) %dir %{_var}/log/%{name}
%attr(0770, ats, ats) %dir /run/%{name}
%attr(0770, ats, ats) %dir %{_var}/cache/%{name}
%attr(0644, root, root) %{_sysconfdir}/ld.so.conf.d/*

%files devel
%{_bindir}/tsxs
%dir %{_includedir}/ts
%{_includedir}/ts/*
%{_libdir}/%{name}/*.so

%files manpages
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_docdir}/%{name}/*

%files plugins
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/*.so

%changelog
* Fri Aug 9 2013 Reindl Harald <h.reindl@thelounge.net>
- update to 3.3.5-dev
- move default-configurations to "trafficserver-manpages" subpackage
- move plugins to "trafficserver-plugins" package
- cleanup permissions
- ReadWriteDirectories=/etc/trafficserver/internal
- ReadWriteDirectories=/etc/trafficserver/snapshots

* Wed Jul 31 2013 Reindl Harald <h.reindl@thelounge.net>
- update to 3.2.5
- add "--with-jemalloc" to configure-flags

* Tue Jun 25 2013 Reindl Harald <h.reindl@thelounge.net>
- fix rpath and add "%{_sysconfdir}/ld.so.conf.d/trafficserver-x86_64.conf"

* Tue Jun 11 2013 Reindl Harald <h.reindl@thelounge.net>
- Cleanup SPEC and hardening build
- split manpages in sub-package
- patch 404-response from "Not Found on Accelerator" to "Not Found" to avoid fingerprinting


Mime
View raw message