4261 lines
136 KiB
RPMSpec
4261 lines
136 KiB
RPMSpec
Name: pcp
|
|
Version: 5.3.7
|
|
Release: 22%{?dist}
|
|
Summary: System-level performance monitoring and performance management
|
|
License: GPLv2+ and LGPLv2+ and CC-BY
|
|
URL: https://pcp.io
|
|
|
|
%global artifactory https://performancecopilot.jfrog.io/artifactory
|
|
Source0: %{artifactory}/pcp-source-release/pcp-%{version}.src.tar.gz
|
|
Patch0: redhat-bugzilla-2003956-pmdabcc-update-kernel-version-check-due-to-backporting.patch
|
|
Patch1: redhat-bugzilla-1981886-pmdasockets-backporting.patch
|
|
Patch2: redhat-bugzilla-2059461-pmie-systemd-fixup.patch
|
|
Patch3: redhat-bugzilla-2081262-pmdaproc-cgroups-fix.patch
|
|
Patch4: redhat-bugzilla-2059463-pmdapostfix-harden.patch
|
|
Patch5: redhat-bugzilla-2083897-dstat-missed-ticks.patch
|
|
Patch6: redhat-bugzilla-2111742-selinux-policy.patch
|
|
Patch7: redhat-bugzilla-2093751-sudoers-docs.patch
|
|
Patch8: redhat-bugzilla-2101574-farm-config.patch
|
|
Patch9: redhat-bugzilla-2135314-pmfind-fix.patch
|
|
Patch10: redhat-bugzilla-2139012-pmdasnmp-config.patch
|
|
Patch11: redhat-bugzilla-1981886-pcp-ss-fetchgroup.patch
|
|
Patch12: redhat-bugzilla-2159207-pmproxy-rollup-fixes.patch
|
|
Patch13: redhat-bugzilla-2139325-openmetrics-in-grafana.patch
|
|
Patch14: redhat-bugzilla-2150889-nfsclient-srcport.patch
|
|
Patch15: redhat-bugzilla-2219731-hacluster-metrics.patch
|
|
Patch16: redhat-bugzilla-2211263-pmcd-conf-rewrite.patch
|
|
Patch17: redhat-build-jsonsl.patch
|
|
Patch18: redhat-issues-RHEL-7507-pmdaopenmetrics-quoting.patch
|
|
Patch19: redhat-issues-RHEL-7501-pmlogger_farm-selinux-policy.patch
|
|
Patch20: redhat-issues-RHEL-30715-pmproxy-resp-proxy-disabled.patch
|
|
Patch21: redhat-issues-RHEL-29708-python-day-of-year-range.patch
|
|
Patch22: redhat-issues-RHEL-57796-pmcd-pmstore-corruption.patch
|
|
Patch23: redhat-issues-RHEL-57799-pmpost-symlink-handling.patch
|
|
Patch24: redhat-issues-RHEL-34586-pmproxy-pmcd-fd-leak.patch
|
|
Patch25: redhat-issues-RHEL-57788-pmdahacluster-update.patch
|
|
|
|
# The additional linker flags break out-of-tree PMDAs.
|
|
# https://bugzilla.redhat.com/show_bug.cgi?id=2043092
|
|
%undefine _package_note_flags
|
|
|
|
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
|
|
%global __python2 python2
|
|
%else
|
|
%global __python2 python
|
|
%endif
|
|
|
|
# UsrMerge was completed in EL 7, however the latest 'hostname' package in EL 7 contains "Provides: /bin/hostname". Likewise for /bin/ps from procps[-ng] packages.
|
|
%if 0%{?rhel} >= 8 || 0%{?fedora} >= 17
|
|
%global _hostname_executable /usr/bin/hostname
|
|
%global _ps_executable /usr/bin/ps
|
|
%else
|
|
%global _hostname_executable /bin/hostname
|
|
%global _ps_executable /bin/ps
|
|
%endif
|
|
|
|
%global disable_perl 0
|
|
|
|
%if 0%{?fedora} || 0%{?rhel} > 5
|
|
%global disable_selinux 0
|
|
%else
|
|
%global disable_selinux 1
|
|
%endif
|
|
|
|
%global disable_snmp 0
|
|
|
|
# No libpfm devel packages for s390, armv7hl nor for some rhels, disable
|
|
%ifarch s390 s390x armv7hl
|
|
%global disable_perfevent 1
|
|
%else
|
|
%if 0%{?fedora} >= 20 || 0%{?rhel} > 6
|
|
%global disable_perfevent 0
|
|
%else
|
|
%global disable_perfevent 1
|
|
%endif
|
|
%endif
|
|
|
|
%global disable_podman 0
|
|
|
|
# libchan, libhdr_histogram and pmdastatsd
|
|
%if 0%{?fedora} >= 29 || 0%{?rhel} > 7
|
|
%global disable_statsd 0
|
|
%else
|
|
%global disable_statsd 1
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 30 || 0%{?rhel} > 7
|
|
%global _with_python2 --with-python=no
|
|
%global disable_python2 1
|
|
%else
|
|
%global disable_python2 0
|
|
%endif
|
|
|
|
# Default for epel5 is python24, so use the (optional) python26 packages
|
|
%if 0%{?rhel} == 5
|
|
%global default_python 26
|
|
%endif
|
|
# No python3 development environment before el8
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 7
|
|
%global disable_python3 0
|
|
# Do we wish to mandate python3 use in pcp? (f22+ and el8+)
|
|
%if 0%{?fedora} >= 22 || 0%{?rhel} > 7
|
|
%global default_python 3
|
|
%endif
|
|
%else
|
|
%global disable_python3 1
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 24 || 0%{?rhel} > 7
|
|
%global perl_interpreter perl-interpreter
|
|
%else
|
|
%global perl_interpreter perl
|
|
%endif
|
|
|
|
# support for pmdabcc, check bcc.spec for supported architectures of bcc
|
|
%if 0%{?fedora} >= 25 || 0%{?rhel} > 6
|
|
%ifarch x86_64 %{power64} aarch64 s390x
|
|
%global disable_bcc 0
|
|
%else
|
|
%global disable_bcc 1
|
|
%endif
|
|
%else
|
|
%global disable_bcc 1
|
|
%endif
|
|
|
|
# support for pmdabpf, check bpf.spec for supported architectures of bpf
|
|
%if 0%{?fedora} >= 33 || 0%{?rhel} > 8
|
|
%ifarch x86_64 %{power64} aarch64 s390x
|
|
%global disable_bpf 0
|
|
%else
|
|
%global disable_bpf 1
|
|
%endif
|
|
%else
|
|
%global disable_bpf 1
|
|
%endif
|
|
|
|
# support for pmdabpftrace, check bpftrace.spec for supported architectures of bpftrace
|
|
%if 0%{?fedora} >= 30 || 0%{?rhel} > 7
|
|
%ifarch x86_64 %{power64} aarch64 s390x
|
|
%global disable_bpftrace 0
|
|
%else
|
|
%global disable_bpftrace 1
|
|
%endif
|
|
%else
|
|
%global disable_bpftrace 1
|
|
%endif
|
|
|
|
# support for pmdajson
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 6
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
%global disable_json 0
|
|
%else
|
|
%global disable_json 1
|
|
%endif
|
|
%else
|
|
%global disable_json 1
|
|
%endif
|
|
|
|
# No mssql ODBC driver on non-x86 platforms
|
|
%ifarch x86_64
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
%global disable_mssql 0
|
|
%else
|
|
%global disable_mssql 1
|
|
%endif
|
|
%else
|
|
%global disable_mssql 1
|
|
%endif
|
|
|
|
# support for pmdanutcracker (perl deps missing on rhel)
|
|
%if 0%{?rhel} == 0
|
|
%global disable_nutcracker 0
|
|
%else
|
|
%global disable_nutcracker 1
|
|
%endif
|
|
|
|
# Qt development and runtime environment missing components before el6
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
|
%global disable_qt 0
|
|
%if 0%{?fedora} != 0 || 0%{?rhel} > 7
|
|
%global default_qt 5
|
|
%endif
|
|
%else
|
|
%global disable_qt 1
|
|
%endif
|
|
|
|
# systemd services and pmdasystemd
|
|
%if 0%{?fedora} >= 19 || 0%{?rhel} >= 7
|
|
%global disable_systemd 0
|
|
%else
|
|
%global disable_systemd 1
|
|
%endif
|
|
|
|
# static probes, missing before el6 and on some architectures
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
|
%global disable_sdt 0
|
|
%else
|
|
%ifnarch ppc ppc64
|
|
%global disable_sdt 0
|
|
%else
|
|
%global disable_sdt 1
|
|
%endif
|
|
%endif
|
|
|
|
# libuv async event library
|
|
%if 0%{?fedora} >= 28 || 0%{?rhel} > 7
|
|
%global disable_libuv 0
|
|
%else
|
|
%global disable_libuv 1
|
|
%endif
|
|
|
|
%global disable_openssl 0
|
|
|
|
# rpm producing "noarch" packages
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 5
|
|
%global disable_noarch 0
|
|
%else
|
|
%global disable_noarch 1
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 24
|
|
%global disable_xlsx 0
|
|
%else
|
|
%global disable_xlsx 1
|
|
%endif
|
|
|
|
# prevent conflicting binary and man page install for pcp(1)
|
|
Conflicts: librapi < 0.16
|
|
|
|
# KVM PMDA moved into pcp (no longer using Perl, default on)
|
|
Obsoletes: pcp-pmda-kvm < 4.1.1
|
|
Provides: pcp-pmda-kvm = %{version}-%{release}
|
|
|
|
# RPM PMDA retired completely
|
|
Obsoletes: pcp-pmda-rpm < 5.3.2
|
|
Obsoletes: pcp-pmda-rpm-debuginfo < 5.3.2
|
|
|
|
# PCP REST APIs are now provided by pmproxy
|
|
Obsoletes: pcp-webapi-debuginfo < 5.0.0
|
|
Obsoletes: pcp-webapi < 5.0.0
|
|
Provides: pcp-webapi = %{version}-%{release}
|
|
|
|
# PCP discovery service now provided by pmfind
|
|
Obsoletes: pcp-manager-debuginfo < 5.2.0
|
|
Obsoletes: pcp-manager < 5.2.0
|
|
|
|
# Some older releases did not update or replace pcp-gui-debuginfo properly
|
|
%if 0%{?fedora} < 27 && 0%{?rhel} <= 7 && "%{_vendor}" == "redhat"
|
|
Obsoletes: pcp-gui-debuginfo < 4.1.1
|
|
%endif
|
|
|
|
Obsoletes: pcp-compat < 4.2.0
|
|
Obsoletes: pcp-monitor < 4.2.0
|
|
Obsoletes: pcp-collector < 4.2.0
|
|
Obsoletes: pcp-pmda-nvidia < 3.10.5
|
|
|
|
# https://fedoraproject.org/wiki/Packaging "C and C++"
|
|
BuildRequires: make
|
|
BuildRequires: gcc gcc-c++
|
|
BuildRequires: procps autoconf bison flex
|
|
BuildRequires: nss-devel
|
|
BuildRequires: avahi-devel
|
|
BuildRequires: xz-devel
|
|
BuildRequires: zlib-devel
|
|
%if !%{disable_python2}
|
|
%if 0%{?default_python} != 3
|
|
BuildRequires: python%{?default_python}-devel
|
|
%else
|
|
BuildRequires: %{__python2}-devel
|
|
%endif
|
|
%endif
|
|
%if !%{disable_python3}
|
|
BuildRequires: python3-devel
|
|
BuildRequires: python3-setuptools
|
|
%endif
|
|
BuildRequires: ncurses-devel
|
|
BuildRequires: readline-devel
|
|
BuildRequires: cyrus-sasl-devel
|
|
%if !%{disable_statsd}
|
|
# ragel unavailable on RHEL8
|
|
%if 0%{?rhel} == 0
|
|
BuildRequires: ragel
|
|
%endif
|
|
BuildRequires: chan-devel HdrHistogram_c-devel
|
|
%endif
|
|
%if !%{disable_perfevent}
|
|
BuildRequires: libpfm-devel >= 4
|
|
%endif
|
|
%if !%{disable_sdt}
|
|
BuildRequires: systemtap-sdt-devel
|
|
%endif
|
|
%if !%{disable_libuv}
|
|
BuildRequires: libuv-devel >= 1.0
|
|
%endif
|
|
%if !%{disable_openssl}
|
|
BuildRequires: openssl-devel >= 1.1.1
|
|
%endif
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 7
|
|
BuildRequires: perl-generators
|
|
%endif
|
|
BuildRequires: perl-devel perl(strict)
|
|
BuildRequires: perl(ExtUtils::MakeMaker) perl(LWP::UserAgent) perl(JSON)
|
|
BuildRequires: perl(Time::HiRes) perl(Digest::MD5)
|
|
BuildRequires: perl(XML::LibXML) perl(File::Slurp)
|
|
BuildRequires: %{_hostname_executable}
|
|
BuildRequires: %{_ps_executable}
|
|
%if !%{disable_systemd}
|
|
BuildRequires: systemd-devel systemd-rpm-macros
|
|
%endif
|
|
%if !%{disable_qt}
|
|
BuildRequires: desktop-file-utils
|
|
%if 0%{?default_qt} != 5
|
|
BuildRequires: qt4-devel >= 4.4
|
|
%else
|
|
BuildRequires: qt5-qtbase-devel
|
|
BuildRequires: qt5-qtsvg-devel
|
|
%endif
|
|
%endif
|
|
|
|
Requires: bash xz gawk sed grep coreutils diffutils findutils
|
|
Requires: which %{_hostname_executable} %{_ps_executable}
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
|
|
%if !%{disable_selinux}
|
|
# rpm boolean dependencies are supported since RHEL 8
|
|
%if 0%{?fedora} >= 35 || 0%{?rhel} >= 8
|
|
# This ensures that the pcp-selinux package and all its dependencies are
|
|
# not pulled into containers and other systems that do not use SELinux
|
|
Requires: (pcp-selinux = %{version}-%{release} if selinux-policy-targeted)
|
|
%else
|
|
Requires: pcp-selinux = %{version}-%{release}
|
|
%endif
|
|
%endif
|
|
|
|
%global _confdir %{_sysconfdir}/pcp
|
|
%global _logsdir %{_localstatedir}/log/pcp
|
|
%global _pmnsdir %{_localstatedir}/lib/pcp/pmns
|
|
%global _pmdasdir %{_localstatedir}/lib/pcp/pmdas
|
|
%global _pmdasexecdir %{_libexecdir}/pcp/pmdas
|
|
%global _testsdir %{_localstatedir}/lib/pcp/testsuite
|
|
%global _ieconfigdir %{_localstatedir}/lib/pcp/config/pmie
|
|
%global _ieconfdir %{_localstatedir}/lib/pcp/config/pmieconf
|
|
%global _selinuxdir %{_datadir}/selinux/packages/targeted
|
|
|
|
%if 0%{?fedora} >= 20 || 0%{?rhel} >= 8
|
|
%global _with_doc --with-docdir=%{_docdir}/%{name}
|
|
%endif
|
|
|
|
%if 0%{?fedora} >= 29 || 0%{?rhel} >= 8
|
|
%global _with_dstat --with-dstat-symlink=yes
|
|
%global disable_dstat 0
|
|
%else
|
|
%global _with_dstat --with-dstat-symlink=no
|
|
%global disable_dstat 1
|
|
%endif
|
|
|
|
%if !%{disable_systemd}
|
|
%global _initddir %{_libexecdir}/pcp/lib
|
|
%else
|
|
%global _initddir %{_sysconfdir}/rc.d/init.d
|
|
%global _with_initd --with-rcdir=%{_initddir}
|
|
%endif
|
|
|
|
# we never want Infiniband on s390 and armv7hl platforms
|
|
%ifarch s390 s390x armv7hl
|
|
%global disable_infiniband 1
|
|
%else
|
|
# we never want Infiniband on RHEL5 or earlier
|
|
%if 0%{?rhel} != 0 && 0%{?rhel} < 6
|
|
%global disable_infiniband 1
|
|
%else
|
|
%global disable_infiniband 0
|
|
%endif
|
|
%endif
|
|
|
|
%if !%{disable_infiniband}
|
|
%global _with_ib --with-infiniband=yes
|
|
%endif
|
|
|
|
%if %{disable_perfevent}
|
|
%global _with_perfevent --with-perfevent=no
|
|
%else
|
|
%global _with_perfevent --with-perfevent=yes
|
|
%endif
|
|
|
|
%if %{disable_podman}
|
|
%global _with_podman --with-podman=no
|
|
%else
|
|
%global _with_podman --with-podman=yes
|
|
%endif
|
|
|
|
%if %{disable_statsd}
|
|
%global _with_statsd --with-pmdastatsd=no
|
|
%else
|
|
%global _with_statsd --with-pmdastatsd=yes
|
|
%endif
|
|
|
|
%if %{disable_bcc}
|
|
%global _with_bcc --with-pmdabcc=no
|
|
%else
|
|
%global _with_bcc --with-pmdabcc=yes
|
|
%endif
|
|
|
|
%if %{disable_bpf}
|
|
%global _with_bpf --with-pmdabpf=no
|
|
%else
|
|
%global _with_bpf --with-pmdabpf=yes
|
|
%endif
|
|
|
|
%if %{disable_bpftrace}
|
|
%global _with_bpftrace --with-pmdabpftrace=no
|
|
%else
|
|
%global _with_bpftrace --with-pmdabpftrace=yes
|
|
%endif
|
|
|
|
%if %{disable_json}
|
|
%global _with_json --with-pmdajson=no
|
|
%else
|
|
%global _with_json --with-pmdajson=yes
|
|
%endif
|
|
|
|
%if %{disable_nutcracker}
|
|
%global _with_nutcracker --with-pmdanutcracker=no
|
|
%else
|
|
%global _with_nutcracker --with-pmdanutcracker=yes
|
|
%endif
|
|
|
|
%if %{disable_snmp}
|
|
%global _with_snmp --with-pmdasnmp=no
|
|
%else
|
|
%global _with_snmp --with-pmdasnmp=yes
|
|
%endif
|
|
|
|
%global pmda_remove() %{expand:
|
|
if [ %1 -eq 0 ]
|
|
then
|
|
PCP_PMDAS_DIR=%{_pmdasdir}
|
|
PCP_PMCDCONF_PATH=%{_confdir}/pmcd/pmcd.conf
|
|
if [ -f "$PCP_PMCDCONF_PATH" -a -f "$PCP_PMDAS_DIR/%2/domain.h" ]
|
|
then
|
|
(cd "$PCP_PMDAS_DIR/%2/" && ./Remove >/dev/null 2>&1)
|
|
fi
|
|
fi
|
|
}
|
|
|
|
%global install_file() %{expand:
|
|
if [ -w "%1" ]
|
|
then
|
|
(cd "%1" && touch "%2" && chmod 644 "%2")
|
|
else
|
|
echo "WARNING: Cannot write to %1, skipping %2 creation." >&2
|
|
fi
|
|
}
|
|
|
|
%global rebuild_pmns() %{expand:
|
|
if [ -w "%1" ]
|
|
then
|
|
(cd "%1" && ./Rebuild -s && rm -f "%2")
|
|
else
|
|
echo "WARNING: Cannot write to %1, skipping namespace rebuild." >&2
|
|
fi
|
|
}
|
|
|
|
%global run_pmieconf() %{expand:
|
|
if [ -w "%1" ]
|
|
then
|
|
pmieconf -c enable "%2"
|
|
else
|
|
echo "WARNING: Cannot write to %1, skipping pmieconf enable of %2." >&2
|
|
fi
|
|
}
|
|
|
|
%description
|
|
Performance Co-Pilot (PCP) provides a framework and services to support
|
|
system-level performance monitoring and performance management.
|
|
|
|
The PCP open source release provides a unifying abstraction for all of
|
|
the interesting performance data in a system, and allows client
|
|
applications to easily retrieve and process any subset of that data.
|
|
|
|
#
|
|
# pcp-conf
|
|
#
|
|
%package conf
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot run-time configuration
|
|
URL: https://pcp.io
|
|
|
|
# http://fedoraproject.org/wiki/Packaging:Conflicts "Splitting Packages"
|
|
Conflicts: pcp-libs < 3.9
|
|
|
|
%description conf
|
|
Performance Co-Pilot (PCP) run-time configuration
|
|
|
|
#
|
|
# pcp-libs
|
|
#
|
|
%package libs
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot run-time libraries
|
|
URL: https://pcp.io
|
|
Requires: pcp-conf = %{version}-%{release}
|
|
|
|
%description libs
|
|
Performance Co-Pilot (PCP) run-time libraries
|
|
|
|
#
|
|
# pcp-libs-devel
|
|
#
|
|
%package libs-devel
|
|
License: GPLv2+ and LGPLv2+
|
|
Summary: Performance Co-Pilot (PCP) development headers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
|
|
%description libs-devel
|
|
Performance Co-Pilot (PCP) headers for development.
|
|
|
|
#
|
|
# pcp-devel
|
|
#
|
|
%package devel
|
|
License: GPLv2+ and LGPLv2+
|
|
Summary: Performance Co-Pilot (PCP) development tools and documentation
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release}
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: pcp-libs-devel = %{version}-%{release}
|
|
|
|
%description devel
|
|
Performance Co-Pilot (PCP) documentation and tools for development.
|
|
|
|
#
|
|
# pcp-testsuite
|
|
#
|
|
%package testsuite
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) test suite
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release}
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: pcp-libs-devel = %{version}-%{release}
|
|
Requires: pcp-devel = %{version}-%{release}
|
|
Obsoletes: pcp-gui-testsuite < 3.9.5
|
|
# The following are inherited from pcp-collector and pcp-monitor,
|
|
# both of which are now obsoleted by the base pcp package
|
|
Requires: pcp-pmda-activemq pcp-pmda-bonding pcp-pmda-dbping pcp-pmda-ds389 pcp-pmda-ds389log
|
|
Requires: pcp-pmda-elasticsearch pcp-pmda-gpfs pcp-pmda-gpsd pcp-pmda-lustre
|
|
Requires: pcp-pmda-memcache pcp-pmda-mysql pcp-pmda-named pcp-pmda-netfilter pcp-pmda-news
|
|
Requires: pcp-pmda-nginx pcp-pmda-nfsclient pcp-pmda-pdns pcp-pmda-postfix pcp-pmda-postgresql pcp-pmda-oracle
|
|
Requires: pcp-pmda-samba pcp-pmda-slurm pcp-pmda-zimbra
|
|
Requires: pcp-pmda-dm pcp-pmda-apache
|
|
Requires: pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-mailq pcp-pmda-mounts
|
|
Requires: pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping pcp-pmda-smart
|
|
Requires: pcp-pmda-hacluster pcp-pmda-lustrecomm pcp-pmda-logger pcp-pmda-denki pcp-pmda-docker pcp-pmda-bind2
|
|
Requires: pcp-pmda-sockets
|
|
%if !%{disable_podman}
|
|
Requires: pcp-pmda-podman
|
|
%endif
|
|
%if !%{disable_statsd}
|
|
Requires: pcp-pmda-statsd
|
|
%endif
|
|
%if !%{disable_nutcracker}
|
|
Requires: pcp-pmda-nutcracker
|
|
%endif
|
|
%if !%{disable_bcc}
|
|
Requires: pcp-pmda-bcc
|
|
%endif
|
|
%if !%{disable_bpf}
|
|
Requires: pcp-pmda-bpf
|
|
%endif
|
|
%if !%{disable_bpftrace}
|
|
Requires: pcp-pmda-bpftrace
|
|
%endif
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
Requires: pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic
|
|
Requires: pcp-pmda-libvirt pcp-pmda-lio pcp-pmda-openmetrics pcp-pmda-haproxy
|
|
Requires: pcp-pmda-lmsensors pcp-pmda-netcheck pcp-pmda-rabbitmq
|
|
Requires: pcp-pmda-openvswitch pcp-pmda-mongodb
|
|
%endif
|
|
%if !%{disable_mssql}
|
|
Requires: pcp-pmda-mssql
|
|
%endif
|
|
%if !%{disable_snmp}
|
|
Requires: pcp-pmda-snmp
|
|
%endif
|
|
%if !%{disable_json}
|
|
Requires: pcp-pmda-json
|
|
%endif
|
|
Requires: pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog
|
|
Requires: pcp-system-tools
|
|
%if !%{disable_qt}
|
|
Requires: pcp-gui
|
|
%endif
|
|
Requires: bc gcc gzip bzip2
|
|
Requires: redhat-rpm-config
|
|
%if !%{disable_selinux}
|
|
Requires: selinux-policy-devel
|
|
Requires: selinux-policy-targeted
|
|
%if 0%{?rhel} == 5
|
|
Requires: setools
|
|
%else
|
|
Requires: setools-console
|
|
%endif
|
|
%endif
|
|
|
|
%description testsuite
|
|
Quality assurance test suite for Performance Co-Pilot (PCP).
|
|
# end testsuite
|
|
|
|
#
|
|
# perl-PCP-PMDA. This is the PCP agent perl binding.
|
|
#
|
|
%package -n perl-PCP-PMDA
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Perl bindings and documentation
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: %{perl_interpreter}
|
|
|
|
%description -n perl-PCP-PMDA
|
|
The PCP::PMDA Perl module contains the language bindings for
|
|
building Performance Metric Domain Agents (PMDAs) using Perl.
|
|
Each PMDA exports performance data for one specific domain, for
|
|
example the operating system kernel, Cisco routers, a database,
|
|
an application, etc.
|
|
|
|
#
|
|
# perl-PCP-MMV
|
|
#
|
|
%package -n perl-PCP-MMV
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Perl bindings for PCP Memory Mapped Values
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: %{perl_interpreter}
|
|
|
|
%description -n perl-PCP-MMV
|
|
The PCP::MMV module contains the Perl language bindings for
|
|
building scripts instrumented with the Performance Co-Pilot
|
|
(PCP) Memory Mapped Value (MMV) mechanism.
|
|
This mechanism allows arbitrary values to be exported from an
|
|
instrumented script into the PCP infrastructure for monitoring
|
|
and analysis with pmchart, pmie, pmlogger and other PCP tools.
|
|
|
|
#
|
|
# perl-PCP-LogImport
|
|
#
|
|
%package -n perl-PCP-LogImport
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Perl bindings for importing external data into PCP archives
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: %{perl_interpreter}
|
|
|
|
%description -n perl-PCP-LogImport
|
|
The PCP::LogImport module contains the Perl language bindings for
|
|
importing data in various 3rd party formats into PCP archives so
|
|
they can be replayed with standard PCP monitoring tools.
|
|
|
|
#
|
|
# perl-PCP-LogSummary
|
|
#
|
|
%package -n perl-PCP-LogSummary
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Perl bindings for post-processing output of pmlogsummary
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: %{perl_interpreter}
|
|
|
|
%description -n perl-PCP-LogSummary
|
|
The PCP::LogSummary module provides a Perl module for using the
|
|
statistical summary data produced by the Performance Co-Pilot
|
|
pmlogsummary utility. This utility produces various averages,
|
|
minima, maxima, and other calculations based on the performance
|
|
data stored in a PCP archive. The Perl interface is ideal for
|
|
exporting this data into third-party tools (e.g. spreadsheets).
|
|
|
|
#
|
|
# pcp-import-sar2pcp
|
|
#
|
|
%package import-sar2pcp
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot tools for importing sar data into PCP archive logs
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-LogImport = %{version}-%{release}
|
|
Requires: perl(XML::TokeParser)
|
|
|
|
%description import-sar2pcp
|
|
Performance Co-Pilot (PCP) front-end tools for importing sar data
|
|
into standard PCP archive logs for replay with any PCP monitoring tool.
|
|
|
|
#
|
|
# pcp-import-iostat2pcp
|
|
#
|
|
%package import-iostat2pcp
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot tools for importing iostat data into PCP archive logs
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-LogImport = %{version}-%{release}
|
|
|
|
%description import-iostat2pcp
|
|
Performance Co-Pilot (PCP) front-end tools for importing iostat data
|
|
into standard PCP archive logs for replay with any PCP monitoring tool.
|
|
|
|
#
|
|
# pcp-import-mrtg2pcp
|
|
#
|
|
%package import-mrtg2pcp
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot tools for importing MTRG data into PCP archive logs
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-LogImport = %{version}-%{release}
|
|
|
|
%description import-mrtg2pcp
|
|
Performance Co-Pilot (PCP) front-end tools for importing MTRG data
|
|
into standard PCP archive logs for replay with any PCP monitoring tool.
|
|
|
|
#
|
|
# pcp-import-ganglia2pcp
|
|
#
|
|
%package import-ganglia2pcp
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot tools for importing ganglia data into PCP archive logs
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-LogImport = %{version}-%{release}
|
|
|
|
%description import-ganglia2pcp
|
|
Performance Co-Pilot (PCP) front-end tools for importing ganglia data
|
|
into standard PCP archive logs for replay with any PCP monitoring tool.
|
|
|
|
#
|
|
# pcp-import-collectl2pcp
|
|
#
|
|
%package import-collectl2pcp
|
|
License: LGPLv2+
|
|
Summary: Performance Co-Pilot tools for importing collectl log files into PCP archive logs
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
|
|
%description import-collectl2pcp
|
|
Performance Co-Pilot (PCP) front-end tools for importing collectl data
|
|
into standard PCP archive logs for replay with any PCP monitoring tool.
|
|
|
|
#
|
|
# pcp-export-zabbix-agent
|
|
#
|
|
%package export-zabbix-agent
|
|
License: GPLv2+
|
|
Summary: Module for exporting PCP metrics to Zabbix agent
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs = %{version}-%{release}
|
|
|
|
%description export-zabbix-agent
|
|
Performance Co-Pilot (PCP) module for exporting metrics from PCP to
|
|
Zabbix via the Zabbix agent - see zbxpcp(3) for further details.
|
|
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
#
|
|
# pcp-export-pcp2elasticsearch
|
|
#
|
|
%package export-pcp2elasticsearch
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to ElasticSearch
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
Requires: python3-requests
|
|
BuildRequires: python3-requests
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
Requires: %{__python2}-requests
|
|
BuildRequires: %{__python2}-requests
|
|
%endif
|
|
|
|
%description export-pcp2elasticsearch
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
to Elasticsearch - a distributed, RESTful search and analytics engine.
|
|
See https://www.elastic.co/community for further details.
|
|
|
|
#
|
|
# pcp-export-pcp2graphite
|
|
#
|
|
%package export-pcp2graphite
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to Graphite
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
|
|
%description export-pcp2graphite
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
to graphite (http://graphite.readthedocs.org).
|
|
|
|
# pcp-export-pcp2influxdb
|
|
#
|
|
%package export-pcp2influxdb
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to InfluxDB
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
Requires: python3-requests
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
Requires: %{__python2}-requests
|
|
%endif
|
|
|
|
%description export-pcp2influxdb
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
to InfluxDB (https://influxdata.com/time-series-platform/influxdb).
|
|
|
|
#
|
|
# pcp-export-pcp2json
|
|
#
|
|
%package export-pcp2json
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics in JSON format
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
|
|
%description export-pcp2json
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
in JSON format.
|
|
|
|
#
|
|
# pcp-export-pcp2spark
|
|
#
|
|
%package export-pcp2spark
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to Apache Spark
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
|
|
%description export-pcp2spark
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
in JSON format to Apache Spark. See https://spark.apache.org/ for
|
|
further details on Apache Spark.
|
|
|
|
#
|
|
# pcp-export-pcp2xlsx
|
|
#
|
|
%if !%{disable_xlsx}
|
|
%package export-pcp2xlsx
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to Excel
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
Requires: python3-openpyxl
|
|
BuildRequires: python3-openpyxl
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
Requires: %{__python2}-openpyxl
|
|
BuildRequires: %{__python2}-openpyxl
|
|
%endif
|
|
|
|
%description export-pcp2xlsx
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
in Excel spreadsheet format.
|
|
%endif
|
|
#
|
|
# pcp-export-pcp2xml
|
|
#
|
|
%package export-pcp2xml
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics in XML format
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
|
|
%description export-pcp2xml
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
in XML format.
|
|
|
|
#
|
|
# pcp-export-pcp2zabbix
|
|
#
|
|
%package export-pcp2zabbix
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot tools for exporting PCP metrics to Zabbix
|
|
URL: https://pcp.io
|
|
Requires: pcp-libs >= %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
|
|
%description export-pcp2zabbix
|
|
Performance Co-Pilot (PCP) front-end tools for exporting metric values
|
|
to the Zabbix (https://www.zabbix.org/) monitoring software.
|
|
%endif
|
|
|
|
%if !%{disable_podman}
|
|
#
|
|
# pcp-pmda-podman
|
|
#
|
|
%package pmda-podman
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for podman containers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
|
|
%description pmda-podman
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting podman container and pod statistics via the podman REST API.
|
|
%endif
|
|
|
|
%if !%{disable_statsd}
|
|
#
|
|
# pcp-pmda-statsd
|
|
#
|
|
%package pmda-statsd
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from statsd
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: chan HdrHistogram_c
|
|
|
|
%description pmda-statsd
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting statistics from the statsd daemon.
|
|
%endif
|
|
|
|
%if !%{disable_perfevent}
|
|
#
|
|
# pcp-pmda-perfevent
|
|
#
|
|
%package pmda-perfevent
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for hardware counters
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: libpfm >= 4
|
|
BuildRequires: libpfm-devel >= 4
|
|
Obsoletes: pcp-pmda-papi < 5.0.0
|
|
Obsoletes: pcp-pmda-papi-debuginfo < 5.0.0
|
|
|
|
%description pmda-perfevent
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting hardware counters statistics through libpfm.
|
|
%endif
|
|
|
|
%if !%{disable_infiniband}
|
|
#
|
|
# pcp-pmda-infiniband
|
|
#
|
|
%package pmda-infiniband
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Infiniband HCAs and switches
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: libibmad >= 1.3.7 libibumad >= 1.3.7
|
|
BuildRequires: libibmad-devel >= 1.3.7 libibumad-devel >= 1.3.7
|
|
|
|
%description pmda-infiniband
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting Infiniband statistics. By default, it monitors the local HCAs
|
|
but can also be configured to monitor remote GUIDs such as IB switches.
|
|
%endif
|
|
|
|
#
|
|
# pcp-pmda-activemq
|
|
#
|
|
%package pmda-activemq
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for ActiveMQ
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(LWP::UserAgent)
|
|
|
|
%description pmda-activemq
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the ActiveMQ message broker.
|
|
#end pcp-pmda-activemq
|
|
|
|
#
|
|
# pcp-pmda-bind2
|
|
#
|
|
%package pmda-bind2
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for BIND servers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(LWP::UserAgent)
|
|
Requires: perl(XML::LibXML)
|
|
Requires: perl(File::Slurp)
|
|
Requires: perl-autodie
|
|
Requires: perl-Time-HiRes
|
|
|
|
%description pmda-bind2
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from BIND (Berkeley Internet Name Domain).
|
|
#end pcp-pmda-bind2
|
|
|
|
#
|
|
# pcp-pmda-redis
|
|
#
|
|
%package pmda-redis
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Redis
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-autodie
|
|
Requires: perl-Time-HiRes
|
|
Requires: perl-Data-Dumper
|
|
|
|
%description pmda-redis
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from Redis servers (redis.io).
|
|
#end pcp-pmda-redis
|
|
|
|
%if !%{disable_nutcracker}
|
|
#
|
|
# pcp-pmda-nutcracker
|
|
#
|
|
%package pmda-nutcracker
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for NutCracker (TwemCache)
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(YAML::XS::LibYAML)
|
|
Requires: perl(JSON)
|
|
|
|
%description pmda-nutcracker
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from NutCracker (TwemCache).
|
|
#end pcp-pmda-nutcracker
|
|
%endif
|
|
|
|
#
|
|
# pcp-pmda-bonding
|
|
#
|
|
%package pmda-bonding
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Bonded network interfaces
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-bonding
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about bonded network interfaces.
|
|
#end pcp-pmda-bonding
|
|
|
|
#
|
|
# pcp-pmda-dbping
|
|
#
|
|
%package pmda-dbping
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Database response times and Availablility
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-DBI
|
|
|
|
%description pmda-dbping
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Database response times and Availablility.
|
|
#end pcp-pmda-dbping
|
|
|
|
#
|
|
# pcp-pmda-ds389
|
|
#
|
|
%package pmda-ds389
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for 389 Directory Servers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
%if 0%{?rhel} <= 7
|
|
Requires: perl-LDAP
|
|
%endif
|
|
|
|
%description pmda-ds389
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about a 389 Directory Server.
|
|
#end pcp-pmda-ds389
|
|
|
|
#
|
|
# pcp-pmda-ds389log
|
|
#
|
|
%package pmda-ds389log
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for 389 Directory Server Loggers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-Date-Manip
|
|
|
|
%description pmda-ds389log
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from a 389 Directory Server log.
|
|
#end pcp-pmda-ds389log
|
|
|
|
|
|
#
|
|
# pcp-pmda-gpfs
|
|
#
|
|
%package pmda-gpfs
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for GPFS Filesystem
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-gpfs
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the GPFS filesystem.
|
|
#end pcp-pmda-gpfs
|
|
|
|
#
|
|
# pcp-pmda-gpsd
|
|
#
|
|
%package pmda-gpsd
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for a GPS Daemon
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-Time-HiRes
|
|
Requires: perl-JSON
|
|
|
|
%description pmda-gpsd
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about a GPS Daemon.
|
|
#end pcp-pmda-gpsd
|
|
|
|
#
|
|
# pcp-pmda-denki
|
|
#
|
|
%package pmda-denki
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics dealing with electrical power
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-denki
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics related to the electrical power consumed by and inside
|
|
the system.
|
|
# end pcp-pmda-denki
|
|
|
|
#
|
|
# pcp-pmda-docker
|
|
#
|
|
%package pmda-docker
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from the Docker daemon
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
|
|
%description pmda-docker
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics using the Docker daemon REST API.
|
|
#end pcp-pmda-docker
|
|
|
|
#
|
|
# pcp-pmda-lustre
|
|
#
|
|
%package pmda-lustre
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Lustre Filesytem
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-lustre
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Lustre Filesystem.
|
|
#end pcp-pmda-lustre
|
|
|
|
#
|
|
# pcp-pmda-lustrecomm
|
|
#
|
|
%package pmda-lustrecomm
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Lustre Filesytem Comms
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
|
|
%description pmda-lustrecomm
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Lustre Filesystem Comms.
|
|
#end pcp-pmda-lustrecomm
|
|
|
|
#
|
|
# pcp-pmda-memcache
|
|
#
|
|
%package pmda-memcache
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Memcached
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-memcache
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Memcached.
|
|
#end pcp-pmda-memcache
|
|
|
|
#
|
|
# pcp-pmda-mysql
|
|
#
|
|
%package pmda-mysql
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for MySQL
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(DBI) perl(DBD::mysql)
|
|
BuildRequires: perl(DBI) perl(DBD::mysql)
|
|
|
|
%description pmda-mysql
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the MySQL database.
|
|
#end pcp-pmda-mysql
|
|
|
|
#
|
|
# pcp-pmda-named
|
|
#
|
|
%package pmda-named
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Named
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-named
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Named nameserver.
|
|
#end pcp-pmda-named
|
|
|
|
# pcp-pmda-netfilter
|
|
#
|
|
%package pmda-netfilter
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Netfilter framework
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-netfilter
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Netfilter packet filtering framework.
|
|
#end pcp-pmda-netfilter
|
|
|
|
#
|
|
# pcp-pmda-news
|
|
#
|
|
%package pmda-news
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Usenet News
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-news
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Usenet News.
|
|
#end pcp-pmda-news
|
|
|
|
#
|
|
# pcp-pmda-nginx
|
|
#
|
|
%package pmda-nginx
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Nginx Webserver
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(LWP::UserAgent)
|
|
BuildRequires: perl(LWP::UserAgent)
|
|
|
|
%description pmda-nginx
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Nginx Webserver.
|
|
#end pcp-pmda-nginx
|
|
|
|
#
|
|
# pcp-pmda-oracle
|
|
#
|
|
%package pmda-oracle
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Oracle database
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl(DBI)
|
|
BuildRequires: perl(DBI)
|
|
|
|
%description pmda-oracle
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Oracle database.
|
|
#end pcp-pmda-oracle
|
|
|
|
#
|
|
# pcp-pmda-pdns
|
|
#
|
|
%package pmda-pdns
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for PowerDNS
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-Time-HiRes
|
|
|
|
%description pmda-pdns
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the PowerDNS.
|
|
#end pcp-pmda-pdns
|
|
|
|
#
|
|
# pcp-pmda-postfix
|
|
#
|
|
%package pmda-postfix
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Postfix (MTA)
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
Requires: perl-Time-HiRes
|
|
%if 0%{?fedora} > 16 || 0%{?rhel} > 5
|
|
Requires: postfix-perl-scripts
|
|
BuildRequires: postfix-perl-scripts
|
|
%endif
|
|
%if 0%{?rhel} <= 5
|
|
Requires: postfix
|
|
BuildRequires: postfix
|
|
%endif
|
|
%if "%{_vendor}" == "suse"
|
|
Requires: postfix-doc
|
|
BuildRequires: postfix-doc
|
|
%endif
|
|
|
|
%description pmda-postfix
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Postfix (MTA).
|
|
#end pcp-pmda-postfix
|
|
|
|
#
|
|
# pcp-pmda-rsyslog
|
|
#
|
|
%package pmda-rsyslog
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Rsyslog
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-rsyslog
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Rsyslog.
|
|
#end pcp-pmda-rsyslog
|
|
|
|
#
|
|
# pcp-pmda-samba
|
|
#
|
|
%package pmda-samba
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Samba
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-samba
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Samba.
|
|
#end pcp-pmda-samba
|
|
|
|
#
|
|
# pcp-pmda-slurm
|
|
#
|
|
%package pmda-slurm
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the SLURM Workload Manager
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-slurm
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from the SLURM Workload Manager.
|
|
#end pcp-pmda-slurm
|
|
|
|
%if !%{disable_snmp}
|
|
#
|
|
# pcp-pmda-snmp
|
|
#
|
|
%package pmda-snmp
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Simple Network Management Protocol
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
# There are no perl-Net-SNMP packages in rhel, disable unless non-rhel or epel5
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} < 6
|
|
Requires: perl(Net::SNMP)
|
|
%endif
|
|
|
|
%description pmda-snmp
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about SNMP.
|
|
#end pcp-pmda-snmp
|
|
%endif
|
|
|
|
#
|
|
# pcp-pmda-zimbra
|
|
#
|
|
%package pmda-zimbra
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Zimbra
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: perl-PCP-PMDA = %{version}-%{release}
|
|
|
|
%description pmda-zimbra
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Zimbra.
|
|
#end pcp-pmda-zimbra
|
|
|
|
#
|
|
# pcp-pmda-dm
|
|
#
|
|
%package pmda-dm
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Device Mapper Cache and Thin Client
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
BuildRequires: device-mapper-devel
|
|
%description pmda-dm
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Device Mapper Cache and Thin Client.
|
|
# end pcp-pmda-dm
|
|
|
|
|
|
%if !%{disable_bcc}
|
|
#
|
|
# pcp-pmda-bcc
|
|
#
|
|
%package pmda-bcc
|
|
License: ASL 2.0 and GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from eBPF/BCC modules
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: python3-bcc
|
|
Requires: python3-pcp
|
|
%description pmda-bcc
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting performance metrics from eBPF/BCC Python modules.
|
|
# end pcp-pmda-bcc
|
|
%endif
|
|
|
|
%if !%{disable_bpf}
|
|
#
|
|
# pcp-pmda-bpf
|
|
#
|
|
%package pmda-bpf
|
|
License: ASL 2.0 and GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from eBPF ELF modules
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: libbpf
|
|
BuildRequires: libbpf-devel clang llvm bpftool
|
|
%description pmda-bpf
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting performance metrics from eBPF ELF modules.
|
|
# end pcp-pmda-bpf
|
|
%endif
|
|
|
|
%if !%{disable_bpftrace}
|
|
#
|
|
# pcp-pmda-bpftrace
|
|
#
|
|
%package pmda-bpftrace
|
|
License: ASL 2.0 and GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from bpftrace scripts
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: bpftrace >= 0.9.2
|
|
Requires: python3-pcp
|
|
Requires: python3 >= 3.6
|
|
%description pmda-bpftrace
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting performance metrics from bpftrace scripts.
|
|
# end pcp-pmda-bpftrace
|
|
%endif
|
|
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
#
|
|
# pcp-pmda-gluster
|
|
#
|
|
%package pmda-gluster
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Gluster filesystem
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-gluster
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the gluster filesystem.
|
|
# end pcp-pmda-gluster
|
|
|
|
#
|
|
# pcp-pmda-nfsclient
|
|
#
|
|
%package pmda-nfsclient
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for NFS Clients
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-nfsclient
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics for NFS Clients.
|
|
#end pcp-pmda-nfsclient
|
|
|
|
#
|
|
# pcp-pmda-postgresql
|
|
#
|
|
%package pmda-postgresql
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for PostgreSQL
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
Requires: python3-psycopg2
|
|
BuildRequires: python3-psycopg2
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
Requires: %{__python2}-psycopg2
|
|
BuildRequires: %{__python2}-psycopg2
|
|
%endif
|
|
%description pmda-postgresql
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the PostgreSQL database.
|
|
#end pcp-pmda-postgresql
|
|
|
|
#
|
|
# pcp-pmda-zswap
|
|
#
|
|
%package pmda-zswap
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for compressed swap
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-zswap
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about compressed swap.
|
|
# end pcp-pmda-zswap
|
|
|
|
#
|
|
# pcp-pmda-unbound
|
|
#
|
|
%package pmda-unbound
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Unbound DNS Resolver
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-unbound
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Unbound DNS Resolver.
|
|
# end pcp-pmda-unbound
|
|
|
|
#
|
|
# pcp-pmda-mic
|
|
#
|
|
%package pmda-mic
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Intel MIC cards
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-mic
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Intel MIC cards.
|
|
# end pcp-pmda-mic
|
|
|
|
#
|
|
# pcp-pmda-haproxy
|
|
#
|
|
%package pmda-haproxy
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for HAProxy
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-haproxy
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting performance metrics from HAProxy over the HAProxy stats socket.
|
|
# end pcp-pmda-haproxy
|
|
|
|
#
|
|
# pcp-pmda-libvirt
|
|
#
|
|
%package pmda-libvirt
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from virtual machines
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
Requires: libvirt-python3 python3-lxml
|
|
BuildRequires: libvirt-python3 python3-lxml
|
|
%else
|
|
%if 0%{?rhel} == 0 || 0%{?fedora} >= 27
|
|
Requires: %{__python2}-pcp
|
|
Requires: %{__python2}-libvirt %{__python2}-lxml
|
|
BuildRequires: %{__python2}-libvirt %{__python2}-lxml
|
|
%endif
|
|
%if 0%{?rhel} > 5
|
|
Requires: %{__python2}-pcp
|
|
Requires: libvirt-%{__python2} %{__python2}-lxml
|
|
BuildRequires: libvirt-%{__python2} %{__python2}-lxml
|
|
%endif
|
|
%endif
|
|
%description pmda-libvirt
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting virtualisation statistics from libvirt about behaviour of guest
|
|
and hypervisor machines.
|
|
# end pcp-pmda-libvirt
|
|
|
|
#
|
|
# pcp-pmda-elasticsearch
|
|
#
|
|
%package pmda-elasticsearch
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Elasticsearch
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-elasticsearch
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Elasticsearch.
|
|
#end pcp-pmda-elasticsearch
|
|
|
|
#
|
|
# pcp-pmda-openvswitch
|
|
#
|
|
%package pmda-openvswitch
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Open vSwitch
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-openvswitch
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from Open vSwitch.
|
|
#end pcp-pmda-openvswitch
|
|
|
|
#
|
|
# pcp-pmda-rabbitmq
|
|
#
|
|
%package pmda-rabbitmq
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for RabbitMQ queues
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-rabbitmq
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about RabbitMQ message queues.
|
|
#end pcp-pmda-rabbitmq
|
|
|
|
#
|
|
# pcp-pmda-lio
|
|
#
|
|
%package pmda-lio
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the LIO subsystem
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
Requires: python3-rtslib
|
|
BuildRequires: python3-rtslib
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
Requires: %{__python2}-rtslib
|
|
BuildRequires: %{__python2}-rtslib
|
|
%endif
|
|
%description pmda-lio
|
|
This package provides a PMDA to gather performance metrics from the kernels
|
|
iSCSI target interface (LIO). The metrics are stored by LIO within the Linux
|
|
kernels configfs filesystem. The PMDA provides per LUN level stats, and a
|
|
summary instance per iSCSI target, which aggregates all LUN metrics within the
|
|
target.
|
|
#end pcp-pmda-lio
|
|
|
|
#
|
|
# pcp-pmda-openmetrics
|
|
#
|
|
%package pmda-openmetrics
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from OpenMetrics endpoints
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
Requires: python3-requests
|
|
BuildRequires: python3-requests
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
Requires: %{__python2}-requests
|
|
BuildRequires: %{__python2}-requests
|
|
%endif
|
|
Obsoletes: pcp-pmda-prometheus < 5.0.0
|
|
Provides: pcp-pmda-prometheus < 5.0.0
|
|
Obsoletes: pcp-pmda-vmware < 5.3.5
|
|
|
|
%description pmda-openmetrics
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
extracting metrics from OpenMetrics (https://openmetrics.io/) endpoints.
|
|
#end pcp-pmda-openmetrics
|
|
|
|
#
|
|
# pcp-pmda-lmsensors
|
|
#
|
|
%package pmda-lmsensors
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for hardware sensors
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: lm_sensors
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
# rewritten in python, so there is no longer a debuginfo package
|
|
Obsoletes: pcp-pmda-lmsensors-debuginfo < 4.2.0
|
|
%description pmda-lmsensors
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Linux hardware monitoring sensors.
|
|
# end pcp-pmda-lmsensors
|
|
|
|
#
|
|
# pcp-pmda-netcheck
|
|
#
|
|
%package pmda-netcheck
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for simple network checks
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%endif
|
|
%description pmda-netcheck
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from simple network checks.
|
|
# end pcp-pmda-netcheck
|
|
|
|
#
|
|
# pcp-pmda-mongodb
|
|
#
|
|
%package pmda-mongodb
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for MongoDB
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%if 0%{?rhel} == 0
|
|
Requires: python3-pymongo
|
|
%endif
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%if 0%{?rhel} == 0
|
|
Requires: %{__python2}-pymongo
|
|
%endif
|
|
%endif
|
|
%description pmda-mongodb
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from MongoDB.
|
|
# end pcp-pmda-mongodb
|
|
%endif
|
|
|
|
%if !%{disable_mssql}
|
|
#
|
|
# pcp-pmda-mssql
|
|
#
|
|
%package pmda-mssql
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Microsoft SQL Server
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
%if 0%{?rhel} == 0 || 0%{?rhel} > 7
|
|
Requires: python3-pyodbc
|
|
%endif
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
%if 0%{?rhel} == 0
|
|
Requires: %{__python2}-pyodbc
|
|
%endif
|
|
%endif
|
|
%description pmda-mssql
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from Microsoft SQL Server.
|
|
# end pcp-pmda-mssql
|
|
%endif
|
|
|
|
%if !%{disable_json}
|
|
#
|
|
# pcp-pmda-json
|
|
#
|
|
%package pmda-json
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for JSON data
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp
|
|
Requires: python3-jsonpointer python3-six
|
|
BuildRequires: python3-jsonpointer python3-six
|
|
%else
|
|
Requires: %{__python2}-pcp
|
|
Requires: %{__python2}-jsonpointer %{__python2}-six
|
|
BuildRequires: %{__python2}-jsonpointer %{__python2}-six
|
|
%endif
|
|
%description pmda-json
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics output in JSON.
|
|
# end pcp-pmda-json
|
|
%endif
|
|
|
|
#
|
|
# C pmdas
|
|
# pcp-pmda-apache
|
|
#
|
|
%package pmda-apache
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Apache webserver
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-apache
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Apache webserver.
|
|
# end pcp-pmda-apache
|
|
|
|
#
|
|
# pcp-pmda-bash
|
|
#
|
|
%package pmda-bash
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Bash shell
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-bash
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Bash shell.
|
|
# end pcp-pmda-bash
|
|
|
|
#
|
|
# pcp-pmda-cifs
|
|
#
|
|
%package pmda-cifs
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the CIFS protocol
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-cifs
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Common Internet Filesytem.
|
|
# end pcp-pmda-cifs
|
|
|
|
#
|
|
# pcp-pmda-cisco
|
|
#
|
|
%package pmda-cisco
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Cisco routers
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-cisco
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Cisco routers.
|
|
# end pcp-pmda-cisco
|
|
|
|
#
|
|
# pcp-pmda-gfs2
|
|
#
|
|
%package pmda-gfs2
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the GFS2 filesystem
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-gfs2
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the Global Filesystem v2.
|
|
# end pcp-pmda-gfs2
|
|
|
|
#
|
|
# pcp-pmda-logger
|
|
#
|
|
%package pmda-logger
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from arbitrary log files
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-logger
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from a specified set of log files (or pipes). The PMDA
|
|
supports both sampled and event-style metrics.
|
|
# end pcp-pmda-logger
|
|
|
|
#
|
|
# pcp-pmda-mailq
|
|
#
|
|
%package pmda-mailq
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the sendmail queue
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-mailq
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about email queues managed by sendmail.
|
|
# end pcp-pmda-mailq
|
|
|
|
#
|
|
# pcp-pmda-mounts
|
|
#
|
|
%package pmda-mounts
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for filesystem mounts
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-mounts
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about filesystem mounts.
|
|
# end pcp-pmda-mounts
|
|
|
|
#
|
|
# pcp-pmda-nvidia-gpu
|
|
#
|
|
%package pmda-nvidia-gpu
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the Nvidia GPU
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-nvidia-gpu
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Nvidia GPUs.
|
|
# end pcp-pmda-nvidia-gpu
|
|
|
|
#
|
|
# pcp-pmda-roomtemp
|
|
#
|
|
%package pmda-roomtemp
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for the room temperature
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-roomtemp
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about the room temperature.
|
|
# end pcp-pmda-roomtemp
|
|
|
|
#
|
|
# pcp-pmda-sendmail
|
|
#
|
|
%package pmda-sendmail
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for Sendmail
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-sendmail
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about Sendmail traffic.
|
|
# end pcp-pmda-sendmail
|
|
|
|
#
|
|
# pcp-pmda-shping
|
|
#
|
|
%package pmda-shping
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for shell command responses
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-shping
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about quality of service and response time measurements of
|
|
arbitrary shell commands.
|
|
# end pcp-pmda-shping
|
|
|
|
#
|
|
# pcp-pmda-smart
|
|
#
|
|
%package pmda-smart
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for S.M.A.R.T values
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: smartmontools
|
|
%description pmda-smart
|
|
This package contains the PCP Performance Metric Domain Agent (PMDA) for
|
|
collecting metrics of disk S.M.A.R.T values making use of data from the
|
|
smartmontools package.
|
|
#end pcp-pmda-smart
|
|
|
|
#
|
|
# pcp-pmda-sockets
|
|
#
|
|
%package pmda-sockets
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) per-socket metrics
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: iproute
|
|
%description pmda-sockets
|
|
This package contains the PCP Performance Metric Domain Agent (PMDA) for
|
|
collecting per-socket statistics, making use of utilities such as 'ss'.
|
|
#end pcp-pmda-sockets
|
|
|
|
#
|
|
# pcp-pmda-hacluster
|
|
#
|
|
%package pmda-hacluster
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for High Availability Clusters
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-hacluster
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about linux High Availability (HA) Clusters.
|
|
# end pcp-pmda-hacluster
|
|
|
|
#
|
|
# pcp-pmda-summary
|
|
#
|
|
%package pmda-summary
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) summary metrics from pmie
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-summary
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about other installed PMDAs.
|
|
# end pcp-pmda-summary
|
|
|
|
%if !%{disable_systemd}
|
|
#
|
|
# pcp-pmda-systemd
|
|
#
|
|
%package pmda-systemd
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from the Systemd journal
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-systemd
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics from the Systemd journal.
|
|
# end pcp-pmda-systemd
|
|
%endif
|
|
|
|
#
|
|
# pcp-pmda-trace
|
|
#
|
|
%package pmda-trace
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics for application tracing
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-trace
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about trace performance data in applications.
|
|
# end pcp-pmda-trace
|
|
|
|
#
|
|
# pcp-pmda-weblog
|
|
#
|
|
%package pmda-weblog
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) metrics from web server logs
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%description pmda-weblog
|
|
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
|
|
collecting metrics about web server logs.
|
|
# end pcp-pmda-weblog
|
|
# end C pmdas
|
|
|
|
%package zeroconf
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Zeroconf Package
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: pcp-system-tools = %{version}-%{release}
|
|
Requires: pcp-doc = %{version}-%{release}
|
|
Requires: pcp-pmda-dm = %{version}-%{release}
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
Requires: pcp-pmda-nfsclient = %{version}-%{release}
|
|
Requires: pcp-pmda-openmetrics = %{version}-%{release}
|
|
%endif
|
|
%description zeroconf
|
|
This package contains configuration tweaks and files to increase metrics
|
|
gathering frequency, several extended pmlogger configurations, as well as
|
|
automated pmie diagnosis, alerting and self-healing for the localhost.
|
|
|
|
%if !%{disable_python2}
|
|
#
|
|
# python2-pcp. This is the PCP library bindings for python.
|
|
#
|
|
%package -n %{__python2}-pcp
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Python bindings and documentation
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if 0%{?fedora} >= 26 || 0%{?rhel} > 7
|
|
# on these platforms, python2-pcp replaces python-pcp
|
|
Obsoletes: python-pcp < %{version}
|
|
%endif
|
|
%if 0%{?rhel} == 5
|
|
Requires: python%{default_python}
|
|
%else
|
|
Requires: %{__python2}
|
|
%endif
|
|
|
|
%description -n %{__python2}-pcp
|
|
This python PCP module contains the language bindings for
|
|
Performance Metric API (PMAPI) monitor tools and Performance
|
|
Metric Domain Agent (PMDA) collector tools written in Python.
|
|
%endif
|
|
|
|
%if !%{disable_python3}
|
|
#
|
|
# python3-pcp. This is the PCP library bindings for python3.
|
|
#
|
|
%package -n python3-pcp
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) Python3 bindings and documentation
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: python3
|
|
|
|
%description -n python3-pcp
|
|
This python PCP module contains the language bindings for
|
|
Performance Metric API (PMAPI) monitor tools and Performance
|
|
Metric Domain Agent (PMDA) collector tools written in Python3.
|
|
%endif
|
|
|
|
#
|
|
# pcp-system-tools
|
|
#
|
|
%package system-tools
|
|
License: GPLv2+
|
|
Summary: Performance Co-Pilot (PCP) System and Monitoring Tools
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
%if !%{disable_python2} || !%{disable_python3}
|
|
%if !%{disable_python3}
|
|
Requires: python3-pcp = %{version}-%{release}
|
|
%else
|
|
Requires: %{__python2}-pcp = %{version}-%{release}
|
|
%endif
|
|
%if !%{disable_dstat}
|
|
# https://fedoraproject.org/wiki/Packaging:Guidelines "Renaming/Replacing Existing Packages"
|
|
Provides: dstat = %{version}-%{release}
|
|
Provides: /usr/bin/dstat
|
|
Obsoletes: dstat <= 0.8
|
|
%endif
|
|
%endif
|
|
|
|
%description system-tools
|
|
This PCP module contains additional system monitoring tools written
|
|
in the Python language.
|
|
|
|
%if !%{disable_qt}
|
|
#
|
|
# pcp-gui package for Qt tools
|
|
#
|
|
%package gui
|
|
License: GPLv2+ and LGPLv2+ and LGPLv2+ with exceptions
|
|
Summary: Visualization tools for the Performance Co-Pilot toolkit
|
|
URL: https://pcp.io
|
|
Requires: pcp = %{version}-%{release} pcp-libs = %{version}-%{release}
|
|
Requires: liberation-sans-fonts
|
|
BuildRequires: hicolor-icon-theme
|
|
|
|
%description gui
|
|
Visualization tools for the Performance Co-Pilot toolkit.
|
|
The pcp-gui package primarily includes visualization tools for
|
|
monitoring systems using live and archived Performance Co-Pilot
|
|
(PCP) sources.
|
|
%endif
|
|
|
|
#
|
|
# pcp-doc package
|
|
#
|
|
%package doc
|
|
License: GPLv2+ and CC-BY
|
|
%if !%{disable_noarch}
|
|
BuildArch: noarch
|
|
%endif
|
|
Summary: Documentation and tutorial for the Performance Co-Pilot
|
|
URL: https://pcp.io
|
|
# http://fedoraproject.org/wiki/Packaging:Conflicts "Splitting Packages"
|
|
# (all man pages migrated to pcp-doc during great package split of '15)
|
|
Conflicts: pcp-pmda-infiniband < 3.10.5
|
|
|
|
%description doc
|
|
Documentation and tutorial for the Performance Co-Pilot
|
|
Performance Co-Pilot (PCP) provides a framework and services to support
|
|
system-level performance monitoring and performance management.
|
|
|
|
The pcp-doc package provides useful information on using and
|
|
configuring the Performance Co-Pilot (PCP) toolkit for system
|
|
level performance management. It includes tutorials, HOWTOs,
|
|
and other detailed documentation about the internals of core
|
|
PCP utilities and daemons, and the PCP graphical tools.
|
|
|
|
#
|
|
# pcp-selinux package
|
|
#
|
|
%if !%{disable_selinux}
|
|
%package selinux
|
|
License: GPLv2+ and CC-BY
|
|
Summary: Selinux policy package
|
|
URL: https://pcp.io
|
|
BuildRequires: selinux-policy-devel
|
|
BuildRequires: selinux-policy-targeted
|
|
%if 0%{?rhel} == 5
|
|
BuildRequires: setools
|
|
%else
|
|
BuildRequires: setools-console
|
|
%endif
|
|
Requires: policycoreutils selinux-policy-targeted
|
|
|
|
%description selinux
|
|
This package contains SELinux support for PCP. The package contains
|
|
interface rules, type enforcement and file context adjustments for an
|
|
updated policy package.
|
|
%endif
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
# the buildsubdir macro gets defined in %setup and is apparently only available in the next step (i.e. the %build step)
|
|
%global __strip %{_builddir}/%{?buildsubdir}/build/rpm/custom-strip
|
|
|
|
# fix up build version
|
|
_build=`echo %{release} | sed -e 's/\..*$//'`
|
|
sed -i "/PACKAGE_BUILD/s/=[0-9]*/=$_build/" VERSION.pcp
|
|
|
|
%if !%{disable_python2} && 0%{?default_python} != 3
|
|
export PYTHON=python%{?default_python}
|
|
%endif
|
|
%configure %{?_with_initd} %{?_with_doc} %{?_with_dstat} %{?_with_ib} %{?_with_podman} %{?_with_statsd} %{?_with_perfevent} %{?_with_bcc} %{?_with_bpf} %{?_with_bpftrace} %{?_with_json} %{?_with_snmp} %{?_with_nutcracker} %{?_with_python2}
|
|
make %{?_smp_mflags} default_pcp
|
|
|
|
%install
|
|
rm -Rf $RPM_BUILD_ROOT
|
|
BACKDIR=`pwd`
|
|
NO_CHOWN=true
|
|
DIST_ROOT=$RPM_BUILD_ROOT
|
|
DIST_TMPFILES=$BACKDIR/install.tmpfiles
|
|
DIST_MANIFEST=$BACKDIR/install.manifest
|
|
export NO_CHOWN DIST_ROOT DIST_MANIFEST DIST_TMPFILES
|
|
rm -f $DIST_MANIFEST $DIST_TMPFILES
|
|
make install_pcp
|
|
|
|
### TODO: remove these by incorporating into the actual build
|
|
|
|
# Fix stuff we do/don't want to ship
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/*.a
|
|
sed -i -e '/\.a$/d' $DIST_MANIFEST
|
|
|
|
# remove sheet2pcp until BZ 830923 and BZ 754678 are resolved.
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/sheet2pcp $RPM_BUILD_ROOT/%{_mandir}/man1/sheet2pcp.1*
|
|
sed -i -e '/sheet2pcp/d' $DIST_MANIFEST
|
|
|
|
# remove {config,platform}sz.h as these are not multilib friendly.
|
|
rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/configsz.h
|
|
sed -i -e '/configsz.h/d' $DIST_MANIFEST
|
|
rm -f $RPM_BUILD_ROOT/%{_includedir}/pcp/platformsz.h
|
|
sed -i -e '/platformsz.h/d' $DIST_MANIFEST
|
|
|
|
%if %{disable_mssql}
|
|
# remove pmdamssql on platforms lacking MSODBC driver packages.
|
|
rm -fr $RPM_BUILD_ROOT/%{_confdir}/mssql
|
|
rm -fr $RPM_BUILD_ROOT/%{_confdir}/pmieconf/mssql
|
|
rm -fr $RPM_BUILD_ROOT/%{_ieconfdir}/mssql
|
|
rm -fr $RPM_BUILD_ROOT/%{_pmdasdir}/mssql
|
|
rm -fr $RPM_BUILD_ROOT/%{_pmdasexecdir}/mssql
|
|
%endif
|
|
|
|
%if !%{disable_qt}
|
|
desktop-file-validate $RPM_BUILD_ROOT/%{_datadir}/applications/pmchart.desktop
|
|
%endif
|
|
|
|
%if 0%{?rhel} || 0%{?fedora}
|
|
# Fedora and RHEL default local only access for pmcd and pmlogger
|
|
sed -i -e '/^# .*_LOCAL=1/s/^# //' $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/{pmcd,pmlogger}
|
|
%endif
|
|
|
|
# default chkconfig off (all RPM platforms)
|
|
for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmproxy}; do
|
|
test -f "$f" || continue
|
|
sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f
|
|
done
|
|
|
|
### end TODO
|
|
|
|
PCP_GUI='pmchart|pmconfirm|pmdumptext|pmmessage|pmquery|pmsnap|pmtime'
|
|
|
|
PCP_CONF=$BACKDIR/src/include/pcp.conf
|
|
export PCP_CONF
|
|
. $BACKDIR/src/include/pcp.env
|
|
CFGFILELIST=`ls -1 $BACKDIR/debian/pcp-conf.{install,dirs}`
|
|
LIBFILELIST=`ls -1 $BACKDIR/debian/lib*.{install,dirs} | grep -F -v -- -dev.`
|
|
DEVFILELIST=`ls -1 $BACKDIR/debian/lib*-dev.{install,dirs}`
|
|
|
|
# Package split: pcp{-conf,-libs,-libs-devel,-testsuite,-import-*,-export-*}...
|
|
# The above list is ordered by file selection; files for each package are
|
|
# removed from a global set, then the base package catches all remaining.
|
|
sed -e 's/^/\//' $CFGFILELIST >pcp-conf-files
|
|
sed -e 's/^/\//' $LIBFILELIST >pcp-libs-files
|
|
sed -e 's/^/\//' $DEVFILELIST >pcp-devel-files
|
|
grep "\.h$" $DEVFILELIST | cut -f2 -d":" >pcp-libs-devel-files
|
|
grep "\.pc$" $DEVFILELIST | cut -f2 -d":" >>pcp-libs-devel-files
|
|
grep "\.so$" $DEVFILELIST | cut -f2 -d":" >>pcp-libs-devel-files
|
|
grep "\.a$" $DEVFILELIST | cut -f2 -d":" >>pcp-libs-devel-files
|
|
sed -i -e 's/^/\//' pcp-libs-devel-files
|
|
sed -i '/.h$/d' pcp-devel-files
|
|
sed -i '/.pc$/d' pcp-devel-files
|
|
sed -i '/.so$/d' pcp-devel-files
|
|
sed -i '/.a$/d' pcp-devel-files
|
|
sed -i '/\/man\//d' pcp-devel-files
|
|
sed -i '/\/include\//d' pcp-devel-files
|
|
|
|
%ifarch x86_64 ppc64 ppc64le aarch64 s390x
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-files
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-devel-files
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-devel-files
|
|
%endif
|
|
%ifarch ia64
|
|
%if "%{_vendor}" != "suse"
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-files
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-devel-files
|
|
sed -i -e 's/usr\/lib\//usr\/lib64\//' pcp-libs-devel-files
|
|
%endif
|
|
%endif
|
|
|
|
# some special cases for devel
|
|
awk '{print $NF}' $DIST_MANIFEST |\
|
|
grep -E 'pcp\/(examples|demos)|(etc/pcp|pcp/pmdas)\/(sample|simple|trivial|txmon)|bin/(pmdbg|pmclient|pmerr|genpmda)' | grep -E -v tutorials >>pcp-devel-files
|
|
|
|
# Patterns for files to be marked %%config(noreplace).
|
|
# Note: /etc/pcp.{conf,env,sh} are %%config but not noreplace
|
|
# and are treated specially below.
|
|
cat >confpath.list <<EOF
|
|
etc/zabbix/zabbix_agentd.d/
|
|
etc/sysconfig/
|
|
etc/cron.d/
|
|
etc/sasl2/
|
|
etc/pcp/
|
|
EOF
|
|
|
|
# functions to manipulate the manifest of files - keeping
|
|
# or culling given (or common) patterns from the stream.
|
|
keep() {
|
|
grep -E $@ || return 0
|
|
}
|
|
cull() {
|
|
grep -E -v $@ || return 0
|
|
}
|
|
total_manifest() {
|
|
awk '{print $NF}' $DIST_MANIFEST
|
|
}
|
|
basic_manifest() {
|
|
total_manifest | cull '/pcp-doc/|/testsuite/|/man/|/examples/'
|
|
}
|
|
|
|
#
|
|
# Files for the various subpackages. We use these subpackages
|
|
# to isolate the (somewhat exotic) dependencies for these tools.
|
|
# Likewise, for the pcp-pmda and pcp-testsuite subpackages.
|
|
#
|
|
total_manifest | keep 'tutorials|/html/|pcp-doc|man.*\.[1-9].*' | cull 'out' >pcp-doc-files
|
|
total_manifest | keep 'testsuite|etc/systemd/system|libpcp_fault|pcp/fault.h' >pcp-testsuite-files
|
|
|
|
basic_manifest | keep "$PCP_GUI|pcp-gui|applications|pixmaps|hicolor" | cull 'pmtime.h' >pcp-gui-files
|
|
basic_manifest | keep 'selinux' | cull 'tmp|testsuite' >pcp-selinux-files
|
|
basic_manifest | keep 'zeroconf|daily[-_]report|/sa$' >pcp-zeroconf-files
|
|
basic_manifest | grep -E -e 'pmiostat|pmrep|dstat|htop|pcp2csv' \
|
|
-e 'pcp-atop|pcp-dmcache|pcp-dstat|pcp-free|pcp-htop' \
|
|
-e 'pcp-ipcs|pcp-iostat|pcp-lvmcache|pcp-mpstat' \
|
|
-e 'pcp-numastat|pcp-pidstat|pcp-shping|pcp-tapestat' \
|
|
-e 'pcp-uptime|pcp-verify|pcp-ss' | \
|
|
cull 'selinux|pmlogconf|pmieconf|pmrepconf' >pcp-system-tools-files
|
|
|
|
basic_manifest | keep 'sar2pcp' >pcp-import-sar2pcp-files
|
|
basic_manifest | keep 'iostat2pcp' >pcp-import-iostat2pcp-files
|
|
basic_manifest | keep 'sheet2pcp' >pcp-import-sheet2pcp-files
|
|
basic_manifest | keep 'mrtg2pcp' >pcp-import-mrtg2pcp-files
|
|
basic_manifest | keep 'ganglia2pcp' >pcp-import-ganglia2pcp-files
|
|
basic_manifest | keep 'collectl2pcp' >pcp-import-collectl2pcp-files
|
|
basic_manifest | keep 'pcp2elasticsearch' >pcp-export-pcp2elasticsearch-files
|
|
basic_manifest | keep 'pcp2influxdb' >pcp-export-pcp2influxdb-files
|
|
basic_manifest | keep 'pcp2xlsx' >pcp-export-pcp2xlsx-files
|
|
basic_manifest | keep 'pcp2graphite' >pcp-export-pcp2graphite-files
|
|
basic_manifest | keep 'pcp2json' >pcp-export-pcp2json-files
|
|
basic_manifest | keep 'pcp2spark' >pcp-export-pcp2spark-files
|
|
basic_manifest | keep 'pcp2xml' >pcp-export-pcp2xml-files
|
|
basic_manifest | keep 'pcp2zabbix' >pcp-export-pcp2zabbix-files
|
|
basic_manifest | keep 'zabbix|zbxpcp' | cull pcp2zabbix >pcp-export-zabbix-agent-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/activemq(/|$)' >pcp-pmda-activemq-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/apache(/|$)' >pcp-pmda-apache-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bash(/|$)' >pcp-pmda-bash-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bcc(/|$)' >pcp-pmda-bcc-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bind2(/|$)' >pcp-pmda-bind2-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bonding(/|$)' >pcp-pmda-bonding-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bpf(/|$)' >pcp-pmda-bpf-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/bpftrace(/|$)' >pcp-pmda-bpftrace-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/cifs(/|$)' >pcp-pmda-cifs-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/cisco(/|$)' >pcp-pmda-cisco-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/dbping(/|$)' >pcp-pmda-dbping-files
|
|
basic_manifest | keep '(etc/pcp|pmdas|pmieconf)/dm(/|$)' >pcp-pmda-dm-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/denki(/|$)' >pcp-pmda-denki-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/docker(/|$)' >pcp-pmda-docker-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/ds389log(/|$)' >pcp-pmda-ds389log-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/ds389(/|$)' >pcp-pmda-ds389-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/elasticsearch(/|$)' >pcp-pmda-elasticsearch-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/gfs2(/|$)' >pcp-pmda-gfs2-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/gluster(/|$)' >pcp-pmda-gluster-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/gpfs(/|$)' >pcp-pmda-gpfs-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/gpsd(/|$)' >pcp-pmda-gpsd-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/hacluster(/|$)' >pcp-pmda-hacluster-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/haproxy(/|$)' >pcp-pmda-haproxy-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/infiniband(/|$)' >pcp-pmda-infiniband-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/json(/|$)' >pcp-pmda-json-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/libvirt(/|$)' >pcp-pmda-libvirt-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/lio(/|$)' >pcp-pmda-lio-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/lmsensors(/|$)' >pcp-pmda-lmsensors-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/logger(/|$)' >pcp-pmda-logger-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/lustre(/|$)' >pcp-pmda-lustre-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/lustrecomm(/|$)' >pcp-pmda-lustrecomm-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/memcache(/|$)' >pcp-pmda-memcache-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/mailq(/|$)' >pcp-pmda-mailq-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/mic(/|$)' >pcp-pmda-mic-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/mounts(/|$)' >pcp-pmda-mounts-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/mongodb(/|$)' >pcp-pmda-mongodb-files
|
|
basic_manifest | keep '(etc/pcp|pmdas|pmieconf)/mssql(/|$)' >pcp-pmda-mssql-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/mysql(/|$)' >pcp-pmda-mysql-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/named(/|$)' >pcp-pmda-named-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/netfilter(/|$)' >pcp-pmda-netfilter-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/netcheck(/|$)' >pcp-pmda-netcheck-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/news(/|$)' >pcp-pmda-news-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/nfsclient(/|$)' >pcp-pmda-nfsclient-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/nginx(/|$)' >pcp-pmda-nginx-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/nutcracker(/|$)' >pcp-pmda-nutcracker-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/nvidia(/|$)' >pcp-pmda-nvidia-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/openmetrics(/|$)' >pcp-pmda-openmetrics-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/openvswitch(/|$)' >pcp-pmda-openvswitch-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/oracle(/|$)' >pcp-pmda-oracle-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/pdns(/|$)' >pcp-pmda-pdns-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/perfevent(/|$)' >pcp-pmda-perfevent-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/podman(/|$)' >pcp-pmda-podman-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/postfix(/|$)' >pcp-pmda-postfix-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/postgresql(/|$)' >pcp-pmda-postgresql-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/rabbitmq(/|$)' >pcp-pmda-rabbitmq-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/redis(/|$)' >pcp-pmda-redis-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/roomtemp(/|$)' >pcp-pmda-roomtemp-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/rpm(/|$)' >pcp-pmda-rpm-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/rsyslog(/|$)' >pcp-pmda-rsyslog-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/samba(/|$)' >pcp-pmda-samba-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/sendmail(/|$)' >pcp-pmda-sendmail-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/shping(/|$)' >pcp-pmda-shping-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/slurm(/|$)' >pcp-pmda-slurm-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/smart(/|$)' >pcp-pmda-smart-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/snmp(/|$)' >pcp-pmda-snmp-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/sockets(/|$)' >pcp-pmda-sockets-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/statsd(/|$)' >pcp-pmda-statsd-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/summary(/|$)' >pcp-pmda-summary-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/systemd(/|$)' >pcp-pmda-systemd-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/trace(/|$)' >pcp-pmda-trace-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/unbound(/|$)' >pcp-pmda-unbound-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/weblog(/|$)' >pcp-pmda-weblog-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/zimbra(/|$)' >pcp-pmda-zimbra-files
|
|
basic_manifest | keep '(etc/pcp|pmdas)/zswap(/|$)' >pcp-pmda-zswap-files
|
|
|
|
rm -f packages.list
|
|
for pmda_package in \
|
|
activemq apache \
|
|
bash bcc bind2 bonding bpf bpftrace \
|
|
cifs cisco \
|
|
dbping denki docker dm ds389 ds389log \
|
|
elasticsearch \
|
|
gfs2 gluster gpfs gpsd \
|
|
hacluster haproxy \
|
|
infiniband \
|
|
json \
|
|
libvirt lio lmsensors logger lustre lustrecomm \
|
|
mailq memcache mic mounts mongodb mssql mysql \
|
|
named netcheck netfilter news nfsclient nginx \
|
|
nutcracker nvidia \
|
|
openmetrics openvswitch oracle \
|
|
pdns perfevent podman postfix postgresql \
|
|
rabbitmq redis roomtemp rpm rsyslog \
|
|
samba sendmail shping slurm smart snmp \
|
|
sockets statsd summary systemd \
|
|
unbound \
|
|
trace \
|
|
weblog \
|
|
zimbra zswap ; \
|
|
do \
|
|
pmda_packages="$pmda_packages pcp-pmda-$pmda_package"; \
|
|
done
|
|
|
|
for import_package in \
|
|
collectl2pcp iostat2pcp ganglia2pcp mrtg2pcp sar2pcp sheet2pcp ; \
|
|
do \
|
|
import_packages="$import_packages pcp-import-$import_package"; \
|
|
done
|
|
|
|
for export_package in \
|
|
pcp2elasticsearch pcp2graphite pcp2influxdb pcp2json \
|
|
pcp2spark pcp2xlsx pcp2xml pcp2zabbix zabbix-agent ; \
|
|
do \
|
|
export_packages="$export_packages pcp-export-$export_package"; \
|
|
done
|
|
|
|
for subpackage in \
|
|
pcp-conf pcp-gui pcp-doc pcp-libs pcp-devel pcp-libs-devel \
|
|
pcp-selinux pcp-system-tools pcp-testsuite pcp-zeroconf \
|
|
$pmda_packages $import_packages $export_packages ; \
|
|
do \
|
|
echo $subpackage >> packages.list; \
|
|
done
|
|
|
|
rm -f *-files.rpm *-tmpfiles.rpm
|
|
sort -u $DIST_MANIFEST | awk '
|
|
function loadfiles(files) {
|
|
system ("touch " files"-files");
|
|
filelist=files"-files";
|
|
while (getline < filelist) {
|
|
if (length(pkg[$0]) > 0 && pkg[$0] != files)
|
|
print "Dup: ", $0, " package: ", pkg[$0], " and ", files;
|
|
if (length(pkg[$0]) == 0)
|
|
pkg[$0] = files;
|
|
}
|
|
}
|
|
BEGIN {
|
|
while (getline < "packages.list") loadfiles($0);
|
|
while (getline < "confpath.list") conf[nconf++]=$0;
|
|
}
|
|
{
|
|
if (pkg[$NF]) p=pkg[$NF];
|
|
else p="pcp";
|
|
f=p"-files.rpm";
|
|
}
|
|
$1 == "d" {
|
|
if (match ($5, "'$PCP_RUN_DIR'")) {
|
|
printf ("%%%%ghost ") >> f;
|
|
}
|
|
if (match ($5, "'$PCP_VAR_DIR'/testsuite")) {
|
|
$3 = $4 = "pcpqa";
|
|
}
|
|
printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5) >> f
|
|
}
|
|
$1 == "f" && $6 ~ "etc/pcp\\.conf" { printf ("%%%%config ") >> f; }
|
|
$1 == "f" && $6 ~ "etc/pcp\\.env" { printf ("%%%%config ") >> f; }
|
|
$1 == "f" && $6 ~ "etc/pcp\\.sh" { printf ("%%%%config ") >> f; }
|
|
$1 == "f" {
|
|
for (i=0; i < nconf; i++) {
|
|
if ($6 ~ conf[i]) {
|
|
printf ("%%%%config(noreplace) ") >> f;
|
|
break;
|
|
}
|
|
}
|
|
if (match ($6, "'$PCP_VAR_DIR'/testsuite")) {
|
|
$3 = $4 = "pcpqa";
|
|
}
|
|
if (match ($6, "'$PCP_MAN_DIR'") || match ($6, "'$PCP_DOC_DIR'")) {
|
|
printf ("%%%%doc ") >> f;
|
|
}
|
|
printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6) >> f
|
|
}
|
|
$1 == "l" {
|
|
%if !%{disable_systemd}
|
|
if (match ($3, "'$PCP_VAR_DIR'")) {
|
|
print $3 >> p"-tmpfiles";
|
|
if (length(tmpfiles[p]) == 0) {
|
|
printf ("'$PCP_SYSTEMDTMPFILES_DIR'/%s.conf\n", p) >> f;
|
|
tmpfiles[p] = p;
|
|
}
|
|
}
|
|
%endif
|
|
print $3 >> f;
|
|
}'
|
|
|
|
%if !%{disable_systemd}
|
|
mkdir -p $DIST_ROOT/$PCP_SYSTEMDTMPFILES_DIR
|
|
sort -u $DIST_TMPFILES | awk '
|
|
function loadtmpfiles(files) {
|
|
system ("touch " files"-tmpfiles");
|
|
filelist=files"-tmpfiles";
|
|
while (getline < filelist) {
|
|
if (pkg[$0] && pkg[$0] != files)
|
|
print "Dup: ", $0, " package: ", pkg[$0], " and ", files;
|
|
pkg[$0] = files;
|
|
}
|
|
}
|
|
BEGIN {
|
|
while (getline < "packages.list") loadtmpfiles($0);
|
|
}
|
|
{
|
|
if (pkg[$2]) p=pkg[$2];
|
|
else p="pcp";
|
|
f=p".conf";
|
|
printf ("%s\n", $0) >> f;
|
|
}'
|
|
|
|
%if %{disable_mssql}
|
|