Update to latest community sources
This commit is contained in:
parent
5db3636799
commit
83578b381c
1
.gitignore
vendored
1
.gitignore
vendored
@ -51,3 +51,4 @@ pcp-3.3.3-1.src.tar.gz
|
|||||||
/pcp-3.10.4-1.20150331git8184d99.tar.gz
|
/pcp-3.10.4-1.20150331git8184d99.tar.gz
|
||||||
/pcp-3.10.4-0.20150331git8184d99.tar.gz
|
/pcp-3.10.4-0.20150331git8184d99.tar.gz
|
||||||
/pcp-3.10.4-0.20150413git42cfcf1.tar.gz
|
/pcp-3.10.4-0.20150413git42cfcf1.tar.gz
|
||||||
|
/pcp-3.10.4.src.tar.gz
|
||||||
|
138
pcp.spec
138
pcp.spec
@ -1,14 +1,15 @@
|
|||||||
Summary: System-level performance monitoring and performance management
|
Summary: System-level performance monitoring and performance management
|
||||||
Name: pcp
|
Name: pcp
|
||||||
Version: 3.10.4
|
Version: 3.10.4
|
||||||
%global buildversion 0
|
%global buildversion 1
|
||||||
|
|
||||||
Release: 0.20150413git42cfcf1%{?dist}
|
Release: %{buildversion}%{?dist}
|
||||||
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
License: GPLv2+ and LGPLv2.1+ and CC-BY
|
||||||
URL: http://www.pcp.io
|
URL: http://www.pcp.io
|
||||||
Group: Applications/System
|
Group: Applications/System
|
||||||
Source0: %{name}-%{version}-0.20150413git42cfcf1.tar.gz
|
Source0: ftp://ftp.pcp.io/projects/pcp/download/%{name}-%{version}.src.tar.gz
|
||||||
Source1: ftp://ftp.pcp.io/projects/pcp/download/pcp-webjs.src.tar.gz
|
# From: git://sourceware.org/git/pcpfans.git --branch=webjs
|
||||||
|
Source1: pcp-webjs.src.tar.gz
|
||||||
|
|
||||||
# There are no papi/libpfm devel packages for s390 nor for some rhels, disable
|
# There are no papi/libpfm devel packages for s390 nor for some rhels, disable
|
||||||
%ifarch s390 s390x
|
%ifarch s390 s390x
|
||||||
@ -75,7 +76,7 @@ BuildRequires: cyrus-sasl-devel
|
|||||||
BuildRequires: papi-devel
|
BuildRequires: papi-devel
|
||||||
%endif
|
%endif
|
||||||
%if !%{disable_perfevent}
|
%if !%{disable_perfevent}
|
||||||
BuildRequires: libpfm-devel >= 4.4
|
BuildRequires: libpfm-devel >= 4
|
||||||
%endif
|
%endif
|
||||||
%if !%{disable_microhttpd}
|
%if !%{disable_microhttpd}
|
||||||
BuildRequires: libmicrohttpd-devel
|
BuildRequires: libmicrohttpd-devel
|
||||||
@ -262,25 +263,70 @@ Co-Pilot (PCP) client API (PMAPI) to RESTful web applications using the
|
|||||||
HTTP (PMWEBAPI) protocol.
|
HTTP (PMWEBAPI) protocol.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{disable_microhttpd}
|
|
||||||
#
|
#
|
||||||
# pcp-webjs
|
# pcp-webjs and pcp-webapp packages
|
||||||
#
|
#
|
||||||
%package webjs
|
%package webjs
|
||||||
License: ASL2.0 and MIT and CC-BY
|
License: ASL2.0 and MIT and CC-BY
|
||||||
Group: Applications/System
|
Group: Applications/Internet
|
||||||
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
# pcp-webapi provides the .../webapps base path relied on here
|
|
||||||
Requires: pcp-webapi = %{version}-%{release}
|
|
||||||
%endif
|
%endif
|
||||||
|
Requires: pcp-webapp-graphite pcp-webapp-grafana pcp-webapp-vector
|
||||||
Summary: Performance Co-Pilot (PCP) web applications
|
Summary: Performance Co-Pilot (PCP) web applications
|
||||||
URL: http://www.pcp.io
|
URL: http://www.pcp.io
|
||||||
|
|
||||||
%description webjs
|
%description webjs
|
||||||
Javascript web application content for the Performance Co-Pilot (PCP)
|
Javascript web application content for the Performance Co-Pilot (PCP)
|
||||||
web service.
|
web service.
|
||||||
|
|
||||||
|
%package webapp-vector
|
||||||
|
License: ASL2.0
|
||||||
|
Group: Applications/Internet
|
||||||
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
||||||
|
BuildArch: noarch
|
||||||
%endif
|
%endif
|
||||||
|
Summary: Vector web application for Performance Co-Pilot (PCP)
|
||||||
|
URL: https://github.com/Netflix/vector
|
||||||
|
|
||||||
|
%description webapp-vector
|
||||||
|
Vector web application for the Performance Co-Pilot (PCP).
|
||||||
|
|
||||||
|
%package webapp-grafana
|
||||||
|
License: ASL2.0
|
||||||
|
Group: Applications/Internet
|
||||||
|
Conflicts: pcp-webjs < 3.10.4
|
||||||
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
Summary: Grafana web application for Performance Co-Pilot (PCP)
|
||||||
|
URL: https://grafana.org
|
||||||
|
|
||||||
|
%description webapp-grafana
|
||||||
|
Grafana is an open source, feature rich metrics dashboard and graph
|
||||||
|
editor. This package provides a Grafana that uses the Performance
|
||||||
|
Co-Pilot (PCP) as the data repository. Other Grafana backends are
|
||||||
|
not used.
|
||||||
|
|
||||||
|
Grafana can render time series dashboards at the browser via flot.js
|
||||||
|
(more interactive, slower, for beefy browsers) or alternately at the
|
||||||
|
server via png (less interactive, faster).
|
||||||
|
|
||||||
|
%package webapp-graphite
|
||||||
|
License: ASL2.0
|
||||||
|
Group: Applications/Internet
|
||||||
|
Conflicts: pcp-webjs < 3.10.4
|
||||||
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
||||||
|
BuildArch: noarch
|
||||||
|
%endif
|
||||||
|
Summary: Graphite web application for Performance Co-Pilot (PCP)
|
||||||
|
URL: http://graphite.readthedocs.org
|
||||||
|
|
||||||
|
%description webapp-graphite
|
||||||
|
Graphite is a highly scalable real-time graphing system. This package
|
||||||
|
provides a graphite version that uses the Performance Co-Pilot (PCP)
|
||||||
|
as the data repository, and Graphites web interface renders it. The
|
||||||
|
Carbon and Whisper subsystems of Graphite are not included nor used.
|
||||||
|
|
||||||
#
|
#
|
||||||
# perl-PCP-PMDA. This is the PCP agent perl binding.
|
# perl-PCP-PMDA. This is the PCP agent perl binding.
|
||||||
@ -453,8 +499,8 @@ Group: Applications/System
|
|||||||
Summary: Performance Co-Pilot (PCP) metrics for hardware counters
|
Summary: Performance Co-Pilot (PCP) metrics for hardware counters
|
||||||
URL: http://www.pcp.io
|
URL: http://www.pcp.io
|
||||||
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
||||||
Requires: libpfm >= 4.4
|
Requires: libpfm >= 4
|
||||||
BuildRequires: libpfm-devel >= 4.4
|
BuildRequires: libpfm-devel >= 4
|
||||||
|
|
||||||
%description pmda-perfevent
|
%description pmda-perfevent
|
||||||
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
||||||
@ -592,10 +638,9 @@ rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmwebd
|
|||||||
rm -fr $RPM_BUILD_ROOT/%{_initddir}/pmwebd
|
rm -fr $RPM_BUILD_ROOT/%{_initddir}/pmwebd
|
||||||
rm -fr $RPM_BUILD_ROOT/%{_unitdir}/pmwebd.service
|
rm -fr $RPM_BUILD_ROOT/%{_unitdir}/pmwebd.service
|
||||||
rm -f $RPM_BUILD_ROOT/%{_libexecdir}/pcp/bin/pmwebd
|
rm -f $RPM_BUILD_ROOT/%{_libexecdir}/pcp/bin/pmwebd
|
||||||
%else
|
%endif
|
||||||
mv pcp-webjs/* $RPM_BUILD_ROOT/%{_datadir}/pcp/webapps
|
mv pcp-webjs/* $RPM_BUILD_ROOT/%{_datadir}/pcp/webapps
|
||||||
rmdir pcp-webjs
|
rmdir pcp-webjs
|
||||||
%endif
|
|
||||||
|
|
||||||
%if %{disable_infiniband}
|
%if %{disable_infiniband}
|
||||||
# remove pmdainfiniband on platforms lacking IB devel packages.
|
# remove pmdainfiniband on platforms lacking IB devel packages.
|
||||||
@ -684,6 +729,7 @@ exit 0
|
|||||||
getent group pcp >/dev/null || groupadd -r pcp
|
getent group pcp >/dev/null || groupadd -r pcp
|
||||||
getent passwd pcp >/dev/null || \
|
getent passwd pcp >/dev/null || \
|
||||||
useradd -c "Performance Co-Pilot" -g pcp -d %{_localstatedir}/lib/pcp -M -r -s /sbin/nologin pcp
|
useradd -c "Performance Co-Pilot" -g pcp -d %{_localstatedir}/lib/pcp -M -r -s /sbin/nologin pcp
|
||||||
|
PCP_CONFIG_DIR=%{_localstatedir}/lib/pcp/config
|
||||||
PCP_SYSCONF_DIR=%{_confdir}
|
PCP_SYSCONF_DIR=%{_confdir}
|
||||||
PCP_LOG_DIR=%{_logsdir}
|
PCP_LOG_DIR=%{_logsdir}
|
||||||
PCP_ETC_DIR=%{_sysconfdir}
|
PCP_ETC_DIR=%{_sysconfdir}
|
||||||
@ -706,6 +752,7 @@ save_configs_script()
|
|||||||
( cd "$_dir" ; find . -type f -print ) | sed -e 's/^\.\///' \
|
( cd "$_dir" ; find . -type f -print ) | sed -e 's/^\.\///' \
|
||||||
| while read _file
|
| while read _file
|
||||||
do
|
do
|
||||||
|
[ "$_file" = "control" ] && continue
|
||||||
_want=true
|
_want=true
|
||||||
if [ -f "$_new/$_file" ]
|
if [ -f "$_new/$_file" ]
|
||||||
then
|
then
|
||||||
@ -722,10 +769,15 @@ save_configs_script()
|
|||||||
# migrate and clean configs if we have had a previous in-use installation
|
# migrate and clean configs if we have had a previous in-use installation
|
||||||
[ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required
|
[ -d "$PCP_LOG_DIR" ] || exit 0 # no configuration file upgrades required
|
||||||
rm -f "$PCP_LOG_DIR/configs.sh"
|
rm -f "$PCP_LOG_DIR/configs.sh"
|
||||||
for daemon in pmcd pmie pmlogger pmproxy
|
for daemon in pmie pmlogger
|
||||||
do
|
do
|
||||||
save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon" \
|
save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_CONFIG_DIR/$daemon" \
|
||||||
/var/lib/pcp/config/$daemon /etc/$daemon /etc/pcp/$daemon /etc/sysconfig/$daemon
|
"$PCP_SYSCONF_DIR/$daemon"
|
||||||
|
done
|
||||||
|
for daemon in pmcd pmproxy
|
||||||
|
do
|
||||||
|
save_configs_script >> "$PCP_LOG_DIR/configs.sh" "$PCP_SYSCONF_DIR/$daemon"\
|
||||||
|
"$PCP_CONFIG_DIR/$daemon" /etc/$daemon /etc/sysconfig/$daemon
|
||||||
done
|
done
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
@ -989,15 +1041,36 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
|
|||||||
%attr(0775,pcp,pcp) %{_logsdir}/pmwebd
|
%attr(0775,pcp,pcp) %{_logsdir}/pmwebd
|
||||||
%{_confdir}/pmwebd
|
%{_confdir}/pmwebd
|
||||||
%config(noreplace) %{_confdir}/pmwebd/pmwebd.options
|
%config(noreplace) %{_confdir}/pmwebd/pmwebd.options
|
||||||
|
# duplicate directories from pcp and pcp-webjs, but rpm copes with that.
|
||||||
|
%dir %{_datadir}/pcp
|
||||||
%dir %{_datadir}/pcp/webapps
|
%dir %{_datadir}/pcp/webapps
|
||||||
%{_mandir}/man1/pmwebd.1*
|
%{_mandir}/man1/pmwebd.1*
|
||||||
%{_mandir}/man3/PMWEBAPI.3*
|
%{_mandir}/man3/PMWEBAPI.3*
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%if !%{disable_microhttpd}
|
|
||||||
%files webjs
|
%files webjs
|
||||||
%{_datadir}/pcp/webapps/*
|
# duplicate directories from pcp and pcp-webapi, but rpm copes with that.
|
||||||
%endif
|
%dir %{_datadir}/pcp
|
||||||
|
%dir %{_datadir}/pcp/webapps
|
||||||
|
%{_datadir}/pcp/webapps/*.png
|
||||||
|
%{_datadir}/pcp/webapps/*.ico
|
||||||
|
%{_datadir}/pcp/webapps/*.html
|
||||||
|
%{_datadir}/pcp/webapps/blinkenlights
|
||||||
|
|
||||||
|
%files webapp-grafana
|
||||||
|
%dir %{_datadir}/pcp
|
||||||
|
%dir %{_datadir}/pcp/webapps
|
||||||
|
%{_datadir}/pcp/webapps/grafana
|
||||||
|
|
||||||
|
%files webapp-graphite
|
||||||
|
%dir %{_datadir}/pcp
|
||||||
|
%dir %{_datadir}/pcp/webapps
|
||||||
|
%{_datadir}/pcp/webapps/graphite
|
||||||
|
|
||||||
|
%files webapp-vector
|
||||||
|
%dir %{_datadir}/pcp
|
||||||
|
%dir %{_datadir}/pcp/webapps
|
||||||
|
%{_datadir}/pcp/webapps/vector
|
||||||
|
|
||||||
%files manager
|
%files manager
|
||||||
%{_initddir}/pmmgr
|
%{_initddir}/pmmgr
|
||||||
@ -1082,24 +1155,13 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild"
|
|||||||
%files -n pcp-doc -f pcp-doc.list
|
%files -n pcp-doc -f pcp-doc.list
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Apr 13 2015 Lukas Berk <lberk@redhat.com> - 3.10.4-0.20150413git42cfcf1
|
* Wed Apr 15 2015 Nathan Scott <nathans@redhat.com> - 3.10.4-1
|
||||||
- Automated weekly rawhide release
|
- Update to latest PCP, pcp-webjs and Vector sources.
|
||||||
- Applied spec changes from upstream git
|
- Packaging improvements after re-review (BZ 1204467)
|
||||||
|
- Start pmlogger/pmie independent of persistent state (BZ 1185755)
|
||||||
* Tue Mar 31 2015 Lukas Berk <lberk@redhat.com> - 3.10.4-0.20150331git8184d99
|
- Fix cron error reports for disabled pmlogger service (BZ 1208699)
|
||||||
- Automated weekly rawhide release
|
- Incorporate Vector from Netflix (https://github.com/Netflix/vector)
|
||||||
- Applied spec changes from upstream git
|
- Sub-packages for pcp-webjs allowing choice and reducing used space.
|
||||||
|
|
||||||
* Mon Mar 23 2015 Lukas Berk <lberk@redhat.com> - 3.10.3-3.20150323git12b566f
|
|
||||||
- Automated weekly rawhide release
|
|
||||||
|
|
||||||
* Mon Mar 16 2015 Lukas Berk <lberk@redhat.com> - 3.10.3-0.804.g2e0fe59
|
|
||||||
- Automated weekly rawhide release
|
|
||||||
- Applied spec changes from upstream git
|
|
||||||
|
|
||||||
* Mon Mar 09 2015 Lukas Berk <lberk@redhat.com> - 3.10.3-0.750.g326298d
|
|
||||||
- Automated weekly rawhide release
|
|
||||||
- Applied spec changes from upstream git
|
|
||||||
|
|
||||||
* Wed Mar 04 2015 Dave Brolley <brolley@redhat.com> - 3.10.3-2
|
* Wed Mar 04 2015 Dave Brolley <brolley@redhat.com> - 3.10.3-2
|
||||||
- papi 5.4.1 rebuild
|
- papi 5.4.1 rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user