This commit is contained in:
commit
a34539417d
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
81
pcp-2.5.0-SuSE.diff
Normal file
81
pcp-2.5.0-SuSE.diff
Normal file
@ -0,0 +1,81 @@
|
||||
diff -ur pcp-2.5.0/configure.in pcp-2.5.0.SuSE/configure.in
|
||||
--- pcp-2.5.0/configure.in 2005-11-29 02:39:26.000000000 +0100
|
||||
+++ pcp-2.5.0.SuSE/configure.in 2006-01-16 16:22:45.462489138 +0100
|
||||
@@ -1215,11 +1215,6 @@
|
||||
break
|
||||
fi
|
||||
done
|
||||
- if test -x /usr/lib/rpm/brp-compress
|
||||
- then
|
||||
- have_gzipped_manpages=true
|
||||
- have_bzip2ed_manpages=false
|
||||
- fi
|
||||
fi
|
||||
else
|
||||
pcp_man_dir=`eval echo $mandir`
|
||||
@@ -1229,6 +1224,11 @@
|
||||
echo "FATAL ERROR: could not find find pcp_man_dir directory."
|
||||
exit 1
|
||||
fi
|
||||
+if test -x /usr/lib/rpm/brp-compress
|
||||
+then
|
||||
+ have_gzipped_manpages=true
|
||||
+ have_bzip2ed_manpages=false
|
||||
+fi
|
||||
AC_SUBST(pcp_man_dir)
|
||||
AC_SUBST(have_gzipped_manpages)
|
||||
AC_SUBST(have_bzip2ed_manpages)
|
||||
@@ -1324,6 +1324,9 @@
|
||||
if test $target_os = irix
|
||||
then
|
||||
pcp_doc_dir=/usr/pcp/doc
|
||||
+ elif test -x /sbin/SuSEconfig
|
||||
+ then
|
||||
+ pcp_doc_dir=/usr/share/doc/packages/pcp
|
||||
else
|
||||
if test -d /usr/share/doc/packages
|
||||
then
|
||||
@@ -1349,6 +1352,9 @@
|
||||
if test $target_os = irix
|
||||
then
|
||||
pcp_demos_dir=/var/pcp/demos
|
||||
+ elif test -x /sbin/SuSEconfig
|
||||
+ then
|
||||
+ pcp_demos_dir=/var/lib/pcp/demos
|
||||
else
|
||||
if test -d /usr/share/demos
|
||||
then
|
||||
diff -ur pcp-2.5.0/src/pmdas/cisco/GNUmakefile pcp-2.5.0.SuSE/src/pmdas/cisco/GNUmakefile
|
||||
--- pcp-2.5.0/src/pmdas/cisco/GNUmakefile 2005-11-29 02:52:32.000000000 +0100
|
||||
+++ pcp-2.5.0.SuSE/src/pmdas/cisco/GNUmakefile 2006-01-16 12:46:38.444340290 +0100
|
||||
@@ -49,6 +49,7 @@
|
||||
|
||||
install: default
|
||||
$(INSTALL) -m 755 -d $(PMDADIR)
|
||||
+ $(INSTALL) -m 755 -d $(PMIE)
|
||||
$(INSTALL) -m 755 $(IAM) $(PMDADIR)/pmda$(IAM)
|
||||
$(INSTALL) -m 755 probe parse Install Remove $(PMDADIR)
|
||||
$(INSTALL) -m 644 $(DFILES) root help pmns domain.h $(PMDADIR)
|
||||
diff -ur pcp-2.5.0/src/pmdas/shping/GNUmakefile pcp-2.5.0.SuSE/src/pmdas/shping/GNUmakefile
|
||||
--- pcp-2.5.0/src/pmdas/shping/GNUmakefile 2005-11-29 02:53:55.000000000 +0100
|
||||
+++ pcp-2.5.0.SuSE/src/pmdas/shping/GNUmakefile 2006-01-16 12:47:12.428062067 +0100
|
||||
@@ -49,6 +49,7 @@
|
||||
|
||||
install: default
|
||||
$(INSTALL) -m 755 -d $(PMDADIR)
|
||||
+ $(INSTALL) -m 755 -d $(PMIE)
|
||||
$(INSTALL) -m 755 $(IAM) $(PMDADIR)/pmda$(IAM)
|
||||
$(INSTALL) -m 755 Install Remove $(PMDADIR)
|
||||
$(INSTALL) -m 644 GNUmakefile.install $(PMDADIR)/Makefile
|
||||
diff -ur pcp-2.5.0/src/pmpost/GNUmakefile pcp-2.5.0.SuSE/src/pmpost/GNUmakefile
|
||||
--- pcp-2.5.0/src/pmpost/GNUmakefile 2005-11-29 02:47:22.000000000 +0100
|
||||
+++ pcp-2.5.0.SuSE/src/pmpost/GNUmakefile 2006-01-13 13:55:30.200846770 +0100
|
||||
@@ -34,7 +34,7 @@
|
||||
include $(BUILDRULES)
|
||||
|
||||
install: default
|
||||
- $(INSTALL) -m 4755 -o root $(CMDTARGET) $(PCP_BINADM_DIR)/$(CMDTARGET)
|
||||
+ $(INSTALL) -m 4750 -o root -g trusted $(CMDTARGET) $(PCP_BINADM_DIR)/$(CMDTARGET)
|
||||
|
||||
default_pcp: default
|
||||
|
42
pcp-2.5.0-ndbm.diff
Normal file
42
pcp-2.5.0-ndbm.diff
Normal file
@ -0,0 +1,42 @@
|
||||
===========================================================================
|
||||
Index: src/include/impl.h
|
||||
===========================================================================
|
||||
|
||||
--- a/src/include/impl.h 2006-05-25 12:27:12.000000000 +1000
|
||||
+++ b/src/include/impl.h 2006-05-25 12:27:12.000000000 +1000
|
||||
@@ -16,7 +16,7 @@
|
||||
#include <netinet/in.h>
|
||||
#include <arpa/inet.h>
|
||||
#include <netdb.h>
|
||||
-#if defined(HAVE_NDBM_H)
|
||||
+#if (defined __sgi) && (defined mips) && (defined HAVE_NDBM_H)
|
||||
#include <ndbm.h>
|
||||
#endif
|
||||
#include <time.h>
|
||||
@@ -654,7 +654,7 @@
|
||||
bozo - unknown size of long !!!
|
||||
#endif
|
||||
|
||||
-#ifdef HAVE_NDBM_H
|
||||
+#if (defined __sgi) && (defined mips) && (defined HAVE_NDBM_H)
|
||||
/*
|
||||
* If you use help files created via "newhelp -v1" and ndbm(3B), then
|
||||
* this is the key you should use, i.e. dptr -> __pmHelpKey and
|
||||
@@ -664,6 +664,8 @@
|
||||
int ident; /* PMID or InDom */
|
||||
int type;
|
||||
} __pmHelpKey;
|
||||
+
|
||||
+extern char *__pmGetText(DBM *, int, int);
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -676,8 +678,6 @@
|
||||
#define PM_TEXT_PMID 4
|
||||
#define PM_TEXT_INDOM 8
|
||||
|
||||
-extern char *__pmGetText(DBM *, int, int);
|
||||
-
|
||||
/*
|
||||
* Quick-and-dirty pool memory allocator ...
|
||||
*/
|
3
pcp-2.5.0.src.tar.gz
Normal file
3
pcp-2.5.0.src.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:eff19fdca0fbf57e0c60049a3ba57210b96770fe44e5ab81a8189e423f4017b8
|
||||
size 1396887
|
183
pcp.changes
Normal file
183
pcp.changes
Normal file
@ -0,0 +1,183 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 16 16:20:58 CEST 2006 - schwab@suse.de
|
||||
|
||||
- Set datadir.
|
||||
- Use RPM_OPT_FLAGS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 2 17:46:18 CEST 2006 - rw@suse.de
|
||||
|
||||
- Remove fake dependency on gdbm-devel headers. (#177730)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 25 21:39:19 CET 2006 - mls@suse.de
|
||||
|
||||
- Convert neededforbuild to BuildRequires
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 16 17:04:58 CET 2006 - rw@suse.de
|
||||
|
||||
- Update to version 2.5.0. (FATE 153129)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 20 16:32:42 CEST 2005 - rw@suse.de
|
||||
|
||||
- Fix permission of a demo directory. (#129486)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Apr 9 20:30:07 CEST 2005 - coolo@suse.de
|
||||
|
||||
- Fix gcc4 compilation
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 12 14:38:06 CET 2004 - ro@suse.de
|
||||
|
||||
- Correct permissions handling for pmpost
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 18 05:21:36 CEST 2004 - nashif@suse.de
|
||||
|
||||
- Update to version 2.4.0
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Apr 28 16:52:27 CEST 2004 - nashif@suse.de
|
||||
|
||||
- #39324: fixes for SuSE and 2.6 kernels in general from SGI
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Mar 16 07:19:24 CET 2004 - nashif@suse.de
|
||||
|
||||
- Update to version 2.3.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 5 17:08:13 CET 2003 - ro@suse.de
|
||||
|
||||
- package according to permissions.secure and add run_permissions
|
||||
- don't build as root
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 21 15:43:49 CEST 2003 - nashif@suse.de
|
||||
|
||||
- update to version 2.3.1
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 19 07:10:26 CEST 2003 - nashif@suse.de
|
||||
|
||||
- Update to version 2.3.0
|
||||
- Fixed file list
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Apr 11 00:52:01 CEST 2003 - ro@suse.de
|
||||
|
||||
- fix build with coreutils
|
||||
(deprecated calling syntax for head,tail,sort)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 20 15:16:34 CET 2003 - ro@suse.de
|
||||
|
||||
- make it compile with latest glibc (pcp-2.2.2-st_mtime.patch)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Dec 2 18:15:37 CET 2002 - ro@suse.de
|
||||
|
||||
- include errno.h where needed
|
||||
- use yacc instead of bison for now (make it compile)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 16 18:18:55 CEST 2002 - nashif@suse.de
|
||||
|
||||
- Fixed bug #17954: Added PreReq
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Apr 25 11:40:56 CEST 2002 - coolo@suse.de
|
||||
|
||||
- fix build for x86_64 and s390x
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 15 18:31:58 CET 2002 - nashif@suse.de
|
||||
|
||||
- fix bug #13321: made init script pmie LSB compliant
|
||||
- Added header note
|
||||
- Status returns correct value
|
||||
- Fixed pcp init script: status did not work
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 18 08:02:29 CET 2002 - nashif@suse.de
|
||||
|
||||
- Update to version 2.2.2
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 6 16:51:03 CET 2001 - nashif@suse.de
|
||||
|
||||
- Removed START_ variable
|
||||
- Changed escaped { to non escaped to stop awk from complaining
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 9 23:20:50 CEST 2001 - nashif@suse.de
|
||||
|
||||
- Update to version 2.2.1
|
||||
- Fixed bug # 9068
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jun 7 02:39:24 CEST 2001 - nashif@suse.de
|
||||
|
||||
- fixed configure.in
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 9 20:42:05 CEST 2001 - mfabian@suse.de
|
||||
|
||||
- bzip2 sources
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 15 16:57:21 CET 2001 - nashif@suse.de
|
||||
|
||||
- added -fpic to fix compile error on ia64
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Feb 9 07:02:18 MET 2001 - nashif@suse.de
|
||||
|
||||
- Update headers
|
||||
- Modified init scripts
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Dec 3 17:29:42 MET 2000 - nashif@suse.de
|
||||
|
||||
- Fixed %post (exit before insserv)
|
||||
- Added sub-package pcp-mysql
|
||||
- Added mysql PMDA to monitor mysql sessions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Nov 30 15:29:22 MET 2000 - nashif@suse.de
|
||||
|
||||
- Update to 2.2.11
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Nov 29 18:15:47 CET 2000 - ro@suse.de
|
||||
|
||||
- move rcscript to etc/init.d
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Nov 26 18:29:28 MET 2000 - nashif@suse.de
|
||||
|
||||
- Use insserv
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 30 04:32:01 MET 2000 - nashif@suse.de
|
||||
|
||||
- Update to version 2.2.10
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 27 03:19:06 MEST 2000 - nashif@suse.de
|
||||
|
||||
- Update to 2.1.7
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 7 14:13:33 CEST 2000 - kukuk@suse.de
|
||||
|
||||
- Fix for SPARC
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 24 09:30:43 CEST 2000 - nashif@suse.de
|
||||
|
||||
- Initial Release (2.1.4)
|
||||
|
299
pcp.spec
Normal file
299
pcp.spec
Normal file
@ -0,0 +1,299 @@
|
||||
#
|
||||
# spec file for package pcp (Version 2.5.0)
|
||||
#
|
||||
# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||
# This file and all modifications and additions to the pristine
|
||||
# package are under the same license as the package itself.
|
||||
#
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# norootforbuild
|
||||
|
||||
Name: pcp
|
||||
BuildRequires: gcc-c++
|
||||
Version: 2.5.0
|
||||
Release: 14
|
||||
Summary: Performance Co-Pilot (system-level performance monitoring)
|
||||
License: GPL
|
||||
URL: http://oss.sgi.com/projects/pcp
|
||||
Group: System/Monitoring
|
||||
Source: pcp-%{version}.src.tar.gz
|
||||
Patch0: pcp-%{version}-SuSE.diff
|
||||
Patch1: pcp-%{version}-ndbm.diff
|
||||
PreReq: %insserv_prereq %fillup_prereq permissions
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
|
||||
%description
|
||||
Performance Co-Pilot (PCP) is a framework and services to support
|
||||
system-level performance monitoring and performance management.
|
||||
|
||||
|
||||
|
||||
Authors:
|
||||
--------
|
||||
SGI OSS <owner-pcp@oss.sgi.com>
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
%patch0 -p1
|
||||
%patch1 -p1
|
||||
|
||||
%build
|
||||
%{suse_update_config -f}
|
||||
autoconf
|
||||
YACC="yacc" ./configure \
|
||||
--bindir=%{_bindir} \
|
||||
--mandir=%{_mandir} \
|
||||
--libdir=%{_libdir} \
|
||||
--datadir=%{_datadir}/pcp \
|
||||
--sysconfdir=/etc/pcp \
|
||||
--sbindir=/usr/lib/pcp \
|
||||
--localstatedir=/var/lib/pcp
|
||||
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS" \
|
||||
/usr/bin/gmake default_pcp
|
||||
|
||||
%install
|
||||
DIST_ROOT=$RPM_BUILD_ROOT
|
||||
DIST_MANIFEST=`pwd`/install.manifest
|
||||
export DIST_ROOT DIST_MANIFEST
|
||||
rm -f $DIST_MANIFEST
|
||||
/usr/bin/gmake install_pcp
|
||||
# local setting
|
||||
install -d $RPM_BUILD_ROOT/usr/sbin
|
||||
./install-sh -S ../../etc/init.d/pcp /usr/sbin/rcpcp
|
||||
./install-sh -S ../../etc/init.d/pmie /usr/sbin/rcpmie
|
||||
./install-sh -S ../../etc/init.d/pmproxy /usr/sbin/rcpmproxy
|
||||
set +x
|
||||
PCP_CONF=src/include/pcp.conf
|
||||
export PCP_CONF
|
||||
. src/include/pcp.env
|
||||
sort $DIST_MANIFEST | uniq | $PCP_AWK_PROG '
|
||||
$1 == "d" { printf ("%%%%dir %%%%attr(%%s,root,root) %%s\n", $2, $5); }
|
||||
$1 == "f" { if ( match ($6, "'$PCP_VAR_DIR'/config") ||
|
||||
match ($6, "'$PCP_SYSCONFIG_DIR'") ) {
|
||||
printf ("%%%%config ");
|
||||
}
|
||||
if (match ($6, "'$PCP_MAN_DIR'") || match ($6, "'$PCP_DOC_DIR'")) {
|
||||
printf ("%%%%doc ");
|
||||
}
|
||||
g = $4;
|
||||
if (g == "trusted") {
|
||||
printf ("%%%%verify(not mode group) ");
|
||||
} else if (g == "bin") {
|
||||
g = "root";
|
||||
}
|
||||
printf ("%%%%attr(%%s,root,%%s) %s\n", $2, g, $6); }
|
||||
$1 == "l" { printf "%%%%attr(-,root,root) %%s\n", $3; }
|
||||
' > files.rpm
|
||||
set -x
|
||||
|
||||
%clean
|
||||
[ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ] || rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%verifyscript
|
||||
%verify_permissions -e /usr/lib/pcp/pmpost
|
||||
|
||||
%files -f files.rpm
|
||||
|
||||
%preun
|
||||
if [ "$1" -eq 0 ]
|
||||
then
|
||||
#
|
||||
# Stop daemons before erasing the package
|
||||
#
|
||||
if [ -f /etc/pcp.env ] ; then
|
||||
. /etc/pcp.env
|
||||
$PCP_RC_DIR/pcp stop >/dev/null 2>&1
|
||||
$PCP_RC_DIR/pmie stop >/dev/null 2>&1
|
||||
[ -x $PCP_RC_DIR/pmproxy ] && $PCP_RC_DIR/pmproxy stop >/dev/null 2>&1
|
||||
rm -f $PCP_VAR_DIR/pmns/.NeedRebuild
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%postun
|
||||
%insserv_cleanup
|
||||
exit 0
|
||||
|
||||
%post
|
||||
%run_permissions
|
||||
if [ -f /etc/pcp.env ] ; then
|
||||
. /etc/pcp.env
|
||||
. $PCP_SHARE_DIR/lib/rc-proc.sh
|
||||
touch $PCP_VAR_DIR/pmns/.NeedRebuild
|
||||
chmod 644 $PCP_VAR_DIR/pmns/.NeedRebuild
|
||||
if [ ! -f $PCP_VAR_DIR/pmns/root ]
|
||||
then
|
||||
if [ -f $PCP_VAR_DIR/pmns/root.saved ]
|
||||
then
|
||||
# restore the previous pmns after upgrade
|
||||
mv $PCP_VAR_DIR/pmns/root.saved $PCP_VAR_DIR/pmns/root
|
||||
else
|
||||
# empty initial name space (prior to Rebuild)
|
||||
echo "root {" >$PCP_VAR_DIR/pmns/root
|
||||
echo "}" >>$PCP_VAR_DIR/pmns/root
|
||||
fi
|
||||
chmod 644 $PCP_VAR_DIR/pmns/root
|
||||
else
|
||||
# root pmns already exists, so we need to restore
|
||||
# pmcd.conf and pmcd.options if they were saved.
|
||||
for f in $PCP_PMCDCONF_PATH $PCP_PMCDOPTIONS_PATH
|
||||
do
|
||||
if [ -f $f -a -f $f.rpmsave ]
|
||||
then
|
||||
mv $f $f.rpmnew
|
||||
mv $f.rpmsave $f
|
||||
fi
|
||||
done
|
||||
fi
|
||||
#
|
||||
# delete *.rpmorig turds that are the same as their new version
|
||||
find $PCP_VAR_DIR/config -name \*.rpmorig -print \
|
||||
| while read f
|
||||
do
|
||||
if diff $f `basename $f .rpmorig` >/dev/null 2>&1
|
||||
then
|
||||
rm -f $f
|
||||
fi
|
||||
done
|
||||
x=$PCP_SHARE_DIR/lib/.migrate_pcp_var_dir
|
||||
[ -x $x ] && $x
|
||||
fi
|
||||
%{fillup_and_insserv pcp}
|
||||
exit 0
|
||||
|
||||
%triggerpostun -- pcp < 2.1.9
|
||||
#
|
||||
# Fix for bug where pcp-2.1.6 %postun script would chkconfig pcp off
|
||||
# and remove the .NeedRebuild and .NeedUpdate files. This was done
|
||||
# *after* the %post script of the new version, causing upgrade havoc.
|
||||
#
|
||||
if [ "$1" -gt 0 ]
|
||||
then
|
||||
. /etc/pcp.env
|
||||
. $PCP_SHARE_DIR/lib/rc-proc.sh
|
||||
touch $PCP_VAR_DIR/pmns/.NeedRebuild
|
||||
chmod 644 $PCP_VAR_DIR/pmns/.NeedRebuild
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%triggerun -- pcp < 2.2.0-18
|
||||
#
|
||||
# first half of fix for bug #825229 where upgrade
|
||||
# clobbers $PCP_VAR_DIR/pmns/root
|
||||
#
|
||||
if [ "$1" -gt 0 ]
|
||||
then
|
||||
. /etc/pcp.env
|
||||
if [ -f $PCP_VAR_DIR/pmns/root ]
|
||||
then
|
||||
cp $PCP_VAR_DIR/pmns/root $PCP_VAR_DIR/pmns/root.saved
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%triggerpostun -- pcp < 2.2.0-18
|
||||
#
|
||||
# second half of the fix for bug #825229
|
||||
#
|
||||
if [ "$1" -gt 0 ]
|
||||
then
|
||||
. /etc/pcp.env
|
||||
if [ ! -f $PCP_VAR_DIR/pmns/root ]
|
||||
then
|
||||
if [ -f $PCP_VAR_DIR/pmns/root.saved ]
|
||||
then
|
||||
mv $PCP_VAR_DIR/pmns/root.saved $PCP_VAR_DIR/pmns/root
|
||||
else
|
||||
# empty initial name space (prior to Rebuild)
|
||||
echo "root {" >$PCP_VAR_DIR/pmns/root
|
||||
echo "}" >>$PCP_VAR_DIR/pmns/root
|
||||
fi
|
||||
chmod 644 $PCP_VAR_DIR/pmns/root
|
||||
fi
|
||||
fi
|
||||
exit 0
|
||||
|
||||
%changelog -n pcp
|
||||
* Fri Jun 16 2006 - schwab@suse.de
|
||||
- Set datadir.
|
||||
- Use RPM_OPT_FLAGS.
|
||||
* Fri Jun 02 2006 - rw@suse.de
|
||||
- Remove fake dependency on gdbm-devel headers. (#177730)
|
||||
* Wed Jan 25 2006 - mls@suse.de
|
||||
- Convert neededforbuild to BuildRequires
|
||||
* Mon Jan 16 2006 - rw@suse.de
|
||||
- Update to version 2.5.0. (FATE 153129)
|
||||
* Thu Oct 20 2005 - rw@suse.de
|
||||
- Fix permission of a demo directory. (#129486)
|
||||
* Sat Apr 09 2005 - coolo@suse.de
|
||||
- Fix gcc4 compilation
|
||||
* Fri Nov 12 2004 - ro@suse.de
|
||||
- Correct permissions handling for pmpost
|
||||
* Mon Oct 18 2004 - nashif@suse.de
|
||||
- Update to version 2.4.0
|
||||
* Wed Apr 28 2004 - nashif@suse.de
|
||||
- #39324: fixes for SuSE and 2.6 kernels in general from SGI
|
||||
* Tue Mar 16 2004 - nashif@suse.de
|
||||
- Update to version 2.3.2
|
||||
* Wed Nov 05 2003 - ro@suse.de
|
||||
- package according to permissions.secure and add run_permissions
|
||||
- don't build as root
|
||||
* Mon Jul 21 2003 - nashif@suse.de
|
||||
- update to version 2.3.1
|
||||
* Thu Jun 19 2003 - nashif@suse.de
|
||||
- Update to version 2.3.0
|
||||
- Fixed file list
|
||||
* Fri Apr 11 2003 - ro@suse.de
|
||||
- fix build with coreutils
|
||||
(deprecated calling syntax for head,tail,sort)
|
||||
* Mon Jan 20 2003 - ro@suse.de
|
||||
- make it compile with latest glibc (pcp-2.2.2-st_mtime.patch)
|
||||
* Mon Dec 02 2002 - ro@suse.de
|
||||
- include errno.h where needed
|
||||
- use yacc instead of bison for now (make it compile)
|
||||
* Fri Aug 16 2002 - nashif@suse.de
|
||||
- Fixed bug #17954: Added PreReq
|
||||
* Thu Apr 25 2002 - coolo@suse.de
|
||||
- fix build for x86_64 and s390x
|
||||
* Fri Feb 15 2002 - nashif@suse.de
|
||||
- fix bug #13321: made init script pmie LSB compliant
|
||||
- Added header note
|
||||
- Status returns correct value
|
||||
- Fixed pcp init script: status did not work
|
||||
* Fri Jan 18 2002 - nashif@suse.de
|
||||
- Update to version 2.2.2
|
||||
* Thu Dec 06 2001 - nashif@suse.de
|
||||
- Removed START_ variable
|
||||
- Changed escaped { to non escaped to stop awk from complaining
|
||||
* Mon Jul 09 2001 - nashif@suse.de
|
||||
- Update to version 2.2.1
|
||||
- Fixed bug # 9068
|
||||
* Thu Jun 07 2001 - nashif@suse.de
|
||||
- fixed configure.in
|
||||
* Wed May 09 2001 - mfabian@suse.de
|
||||
- bzip2 sources
|
||||
* Thu Mar 15 2001 - nashif@suse.de
|
||||
- added -fpic to fix compile error on ia64
|
||||
* Fri Feb 09 2001 - nashif@suse.de
|
||||
- Update headers
|
||||
- Modified init scripts
|
||||
* Sun Dec 03 2000 - nashif@suse.de
|
||||
- Fixed %%post (exit before insserv)
|
||||
- Added sub-package pcp-mysql
|
||||
- Added mysql PMDA to monitor mysql sessions
|
||||
* Thu Nov 30 2000 - nashif@suse.de
|
||||
- Update to 2.2.11
|
||||
* Wed Nov 29 2000 - ro@suse.de
|
||||
- move rcscript to etc/init.d
|
||||
* Sun Nov 26 2000 - nashif@suse.de
|
||||
- Use insserv
|
||||
* Mon Oct 30 2000 - nashif@suse.de
|
||||
- Update to version 2.2.10
|
||||
* Wed Sep 27 2000 - nashif@suse.de
|
||||
- Update to 2.1.7
|
||||
* Fri Jul 07 2000 - kukuk@suse.de
|
||||
- Fix for SPARC
|
||||
* Wed May 24 2000 - nashif@suse.de
|
||||
- Initial Release (2.1.4)
|
Loading…
Reference in New Issue
Block a user