diff --git a/.gitignore b/.gitignore index 3e9a2e1..829ca07 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,4 @@ pcp-3.3.3-1.src.tar.gz /pcp-3.8.5.src.tar.gz /pcp-3.8.6.src.tar.gz /pcp-3.8.9.src.tar.gz +/pcp-3.8.10.src.tar.gz diff --git a/pcp.spec b/pcp.spec index 0116c34..05e735c 100644 --- a/pcp.spec +++ b/pcp.spec @@ -1,6 +1,6 @@ Summary: System-level performance monitoring and performance management Name: pcp -Version: 3.8.9 +Version: 3.8.10 %define buildversion 1 Release: %{buildversion}%{?dist} @@ -11,8 +11,9 @@ Source0: pcp-%{version}.src.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: procps autoconf bison flex -BuildRequires: avahi-devel BuildRequires: nss-devel +BuildRequires: rpm-devel +BuildRequires: avahi-devel BuildRequires: python-devel BuildRequires: ncurses-devel BuildRequires: readline-devel @@ -307,7 +308,7 @@ rm -fr $RPM_BUILD_ROOT/%{_pmdasdir}/infiniband %endif # default chkconfig off for Fedora and RHEL -for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmwebd,pmproxy}; do +for f in $RPM_BUILD_ROOT/%{_initddir}/{pcp,pmcd,pmlogger,pmie,pmwebd,pmmgr,pmproxy}; do sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f done @@ -388,21 +389,25 @@ exit 0 %preun if [ "$1" -eq 0 ] then - # - # Stop daemons before erasing the package - # + # stop daemons before erasing the package /sbin/service pmlogger stop >/dev/null 2>&1 /sbin/service pmie stop >/dev/null 2>&1 /sbin/service pmproxy stop >/dev/null 2>&1 /sbin/service pmwebd stop >/dev/null 2>&1 + /sbin/service pmmgr stop >/dev/null 2>&1 /sbin/service pmcd stop >/dev/null 2>&1 /sbin/chkconfig --del pcp >/dev/null 2>&1 /sbin/chkconfig --del pmcd >/dev/null 2>&1 /sbin/chkconfig --del pmlogger >/dev/null 2>&1 /sbin/chkconfig --del pmie >/dev/null 2>&1 + /sbin/chkconfig --del pmmgr >/dev/null 2>&1 /sbin/chkconfig --del pmwebd >/dev/null 2>&1 /sbin/chkconfig --del pmproxy >/dev/null 2>&1 + + # cleanup namespace state/flag, may still exist + PCP_PMNS_DIR=%{_pmnsdir} + rm -f "$PCP_PMNS_DIR/.NeedRebuild" >/dev/null 2>&1 fi %post @@ -439,18 +444,19 @@ done chown -R pcp:pcp %{_logsdir}/pmcd 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmlogger 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmie 2>/dev/null +chown -R pcp:pcp %{_logsdir}/pmmgr 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmwebd 2>/dev/null chown -R pcp:pcp %{_logsdir}/pmproxy 2>/dev/null touch "$PCP_PMNS_DIR/.NeedRebuild" chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" -# we only need this manual Rebuild as long as pmcd is condstart below -[ -f "$PCP_PMNS_DIR/root" ] || ( cd "$PCP_PMNS_DIR" && ./Rebuild -sud ) /sbin/chkconfig --add pmcd >/dev/null 2>&1 /sbin/service pmcd condrestart /sbin/chkconfig --add pmlogger >/dev/null 2>&1 /sbin/service pmlogger condrestart /sbin/chkconfig --add pmie >/dev/null 2>&1 /sbin/service pmie condrestart +/sbin/chkconfig --add pmmgr >/dev/null 2>&1 +/sbin/service pmmgr condrestart /sbin/chkconfig --add pmwebd >/dev/null 2>&1 /sbin/service pmwebd condrestart /sbin/chkconfig --add pmproxy >/dev/null 2>&1 @@ -491,6 +497,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %{_initddir}/pmcd %{_initddir}/pmlogger %{_initddir}/pmie +%{_initddir}/pmmgr %{_initddir}/pmwebd %{_initddir}/pmproxy %{_mandir}/man5/* @@ -504,6 +511,7 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %config(noreplace) %{_confdir}/pmcd/pmcd.conf %config(noreplace) %{_confdir}/pmcd/pmcd.options %config(noreplace) %{_confdir}/pmcd/rc.local +%config(noreplace) %{_confdir}/pmmgr/pmmgr.options %config(noreplace) %{_confdir}/pmwebd/pmwebd.options %config(noreplace) %{_confdir}/pmproxy/pmproxy.options %dir %attr(0775,pcp,pcp) %{_confdir}/pmie @@ -608,6 +616,9 @@ chmod 644 "$PCP_PMNS_DIR/.NeedRebuild" %defattr(-,root,root) %changelog +* Wed Jan 15 2014 Nathan Scott - 3.8.10-1 +- Update to latest PCP sources. + * Thu Dec 12 2013 Nathan Scott - 3.8.9-1 - Reduce set of exported symbols from DSO PMDAs (BZ 1025694) - Symbol-versioning for PCP shared libraries (BZ 1037771) diff --git a/sources b/sources index 54cc312..aa764a1 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -6c0972a66adbfa8abc740d3f1512b443 pcp-3.8.9.src.tar.gz +d2aa385991f524618b7ac15a0fea7625 pcp-3.8.10.src.tar.gz