rpms/arm4/devel arm4-README.fedora, NONE, 1.1 arm4-arm4.cron, NONE, 1.1 arm4-arm4.init, NONE, 1.1 arm4.spec, NONE, 1.1 import.log, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

David Carter grandcross at fedoraproject.org
Fri Apr 3 23:18:33 UTC 2009


Author: grandcross

Update of /cvs/pkgs/rpms/arm4/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv2214/devel

Modified Files:
	.cvsignore sources 
Added Files:
	arm4-README.fedora arm4-arm4.cron arm4-arm4.init arm4.spec 
	import.log 
Log Message:
* Sun Nov 30 2008 David Carter <dcarter at entertain-me.com> - 0.8.1-0.6
- Updated to latest release, which removed arm4sdk and all references
- Removed static library versions
- arm4-tests removed until new tests can be added that don't depend on the SDK




--- NEW FILE arm4-README.fedora ---
Using the arm4 package
======================

The arm4 daemon is set to run out of the box, but there are some configuration
options you should be aware of.

The default configuration file is located at /etc/arm4.conf. 'man arm4.conf'
will give more information on the options available to you.

System Configuration Changes
============================

Unless changed from the default configuration, some of the transaction
parameters won't be passed to the daemon. Add the following to
/etc/sysctl.conf:

  kernel.msgmax = 65536
  kernel.msgmnb = 65536

Failure to do so may result in messages in your system log such as
'Transaction uri msgsnd Invalid argument'

Enabling user access to ARM4
============================

The arm4_daemon has access controlled by the use of groups. A user must be a
member of the arm4 group to have access. To add a user to the group, you
can use the administrative GUIs, or you can run the following as root:

 $ usermod -a -G arm4 <username>

Archiving Data
==============

As installed, data is archived once a day. Data older than 31 days is removed.

This can be customized by modifying the cron script at /etc/cron.daily/arm4.cron.

Datastores
==========

This RPM only supports the Berkeley DB datastore. The default configuration for
Sqlite3 doesn't have all the required options, so it hasn't been built into this
installation.

What do I do if no data is collected?
=====================================

The first thing to do is check the system log. Rather than interrupt the flow of
an application, error messages are sent there.

Where can I get more information?
=================================

http://www.arm4.org/


--- NEW FILE arm4-arm4.cron ---
#!/bin/sh

# Because of the way find works, this will actually add a day to the archive
MAX_AGE='+30'

# Archive the current data
/usr/bin/arm4_control archive

# Remove older archives
find /var/lib/arm4/data/backup -ctime $MAX_AGE -exec rm -rf {} \; > /dev/null 2>&1



--- NEW FILE arm4-arm4.init ---
#!/bin/sh
#
# Startup script for the ARM4 daemon
#
# Copyright (c) 2005-2008 David Carter <dcarter at arm4.org> and others.
# All rights reserved.   This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# chkconfig: - 85 15
# description: ARM 4 application response measurement agent
# processname: arm4_daemon
# pidfile: /var/run/arm4.pid

# Source function library.
. /etc/rc.d/init.d/functions

arm4=/usr/bin/arm4_daemon
RETVAL=0

case "$1" in
  start)
        echo -n "Starting arm4: "
        daemon  $arm4
	RETVAL=$?
        echo
        [ $RETVAL = 0 ] && touch /var/lock/subsys/arm4
        ;;
  stop)
        echo -n "Shutting down arm4: "
        killproc $arm4
	RETVAL=$?
        echo
        [ $RETVAL = 0 ] && rm -f /var/lock/subsys/arm4
        [ $RETVAL = 0 ] && rm -f /var/run/arm4.pid
        ;;
  status)
        status $arm4
	RETVAL=$?
        ;;
  reload)
      	# Same as restart
        $0 stop
        $0 start
        ;;
  restart)
        $0 stop
        $0 start
        ;;
  *)
        echo "Usage: $0 {start|stop|reload|restart|status}"
        exit 1
esac

exit $RETVAL


--- NEW FILE arm4.spec ---
Name:		arm4
Version:	0.8.1
Release:	0.6%{?dist}
Summary:	Application Response Measurement V4.0

Group:		Development/System
License:	EPL
URL:		http://www.arm4.org/
Source0:	http://downloads.sourceforge.net/arm4/arm4-0.8.1.tar.gz
Source2:	arm4-README.fedora
Source3:	arm4-arm4.cron
Source4:	arm4-arm4.init
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	uuid-devel openssl-devel db4-utils db4-devel libxml2-devel sqlite-devel xerces-c-devel ant ant-javadoc
Requires:	uuid openssl db4 db4-cxx sqlite
Requires(pre): shadow-utils	

%description
An Open Source implementation of the Open Group's
Application Response Measurement (ARM) standard
version 4.0. The ARM agent allows you to measure
response times for related transactions across
multiple tiers in a distributed environment.

%package devel
Summary: Files needed to build applications using ARM
Requires: %{name} = %{version}-%{release}

Group: Development/Libraries

%description devel
Files needed to build programs using the Application Response Measurement
(ARM) V4.0 standard.

%package java
Summary: Java language bindings for applications using ARM
Requires: %{name} = %{version}-%{release}

Group: Development/Libraries

%description java
Files needed to build java language programs using the Application Response
Measurement (ARM) V4.0 standard.

#
# Location of agent databases
%define contentdir /var/lib/arm4

%prep
%setup -q -n arm4-%{version}
cp -a %{SOURCE2} README.fedora

%build
%configure --disable-static --enable-sqlite --disable-examples --disable-tests
make %{?_smp_mflags}

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

# These aren't really required in the final system
rm -rf %{buildroot}%{_datadir}/aclocal

#
# Move the java documentation
mv %{buildroot}%{_datadir}/doc/%{name}-%{version} \
	%{buildroot}%{_datadir}/doc/%{name}-java-%{version}

#
# Remove development versions of libraries that aren't intended for development
rm %{buildroot}%{_libdir}/libarm4db.so
rm %{buildroot}%{_libdir}/libarm4db_bdb.so
rm %{buildroot}%{_libdir}/libarm4db_sqlite.so
rm %{buildroot}%{_libdir}/libarm4db_common.so
rm %{buildroot}%{_libdir}/libArmNative.so

#
# Remove any libtool archives
rm %{buildroot}%{_libdir}/*.la

# Make our configuration dir if it doesn't exist
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
install -m 644 -p %{_builddir}/%{name}-%{version}/config/arm4.conf %{buildroot}%{_sysconfdir}
install -m 755 -p %{SOURCE4} %{buildroot}%{_sysconfdir}/rc.d/init.d/arm4
mkdir -p %{buildroot}%{contentdir}

# Install a cron job to archive and age data
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
install -m 755 -p %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.daily/arm4.cron

%pre
# Add the arm4 user and group
getent group arm4 >/dev/null || groupadd -r arm4
getent passwd arm4 >/dev/null || \
	useradd -r -g arm4 -d %{contentdir} -s /sbin/nologin \
	-c "ARM 4 Daemon" arm4
exit 0

%post
/sbin/ldconfig

# Register the arm4 service
/sbin/chkconfig --add arm4

%post devel -p /sbin/ldconfig

%post java -p /sbin/ldconfig

%preun
if [ $1 = 0 ]; then
	/sbin/service arm4 stop > /dev/null 2>&1
	/usr/bin/arm4_control remove > /dev/null 2>&1
	/sbin/chkconfig --del arm4
fi

%postun -p /sbin/ldconfig

%postun devel -p /sbin/ldconfig

%postun java -p /sbin/ldconfig

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%doc README README.fedora COPYING
%{_bindir}/arm4_control
%{_bindir}/arm4_daemon
%{_bindir}/arm4_dump
%{_bindir}/arm4_export
%{_bindir}/arm4_report
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_libdir}/libarm4db.*
%{_libdir}/libarm4db_bdb.*
%{_libdir}/libarm4db_sqlite.*
%{_libdir}/libarm4db_common.*
# The .so file is included here and not in the -devel package
# as many applications link against these libraries dynamically,
# and it is required by the standard
%{_libdir}/libarm4.so*
%{_libdir}/libarm4_null.so*
%config(noreplace) %{_sysconfdir}/arm4.conf
%{_sysconfdir}/rc.d/init.d/arm4
%{_sysconfdir}/cron.daily/arm4.cron
%attr(755,arm4,arm4) %dir %{contentdir}
#%attr(755,arm4,arm4) %dir %{contentdir}/data
#%attr(1777,arm4,arm4) %dir %{contentdir}/queue
%{_datadir}/%{name}-%{version}/arm4db.xsd

%files devel
%defattr(-,root,root,-)
%{_includedir}/*
%{_mandir}/man3/*

%files java
%defattr(-,root,root,-)
%{_datadir}/doc/%{name}-java-%{version}/apidocs
%{_libdir}/arm4*
%{_libdir}/libArmNative.*

%changelog
* Sun Nov 30 2008 David Carter <dcarter at entertain-me.com> - 0.8.1-0.6
- Updated to latest release, which removed arm4sdk and all references
- Removed static library versions
- arm4-tests removed until new tests can be added that don't depend on the SDK

* Sat Nov 1 2008 David Carter <dcarter at entertain-me.com> - 0.8-0.5
- Removed assertions that caused early exit from libraries

* Mon Oct 27 2008 David Carter <dcarter at entertain-me.com> - 0.8-0.4
- Update to latest release version
- Includes more documentation and many bug fixes. SE Linux support is
  removed as it's not yet complete.

* Thu Oct 2 2008 David Carter <dcarter at entertain-me.com> - 0.8-0.3.final
- Update to latest beta version
- Includes more documentation and many bug fixes, selinux rules

* Mon Sep 4 2008 David Carter <dcarter at entertain-me.com> - 0.8-0.2.beta3
- Update to latest beta version
- Includes more documentation and many bug fixes

* Sun Aug 3 2008 David Carter <dcarter at entertain-me.com> - 0.8-0.1.beta2
- Initial packaging as RPM


--- NEW FILE import.log ---
arm4-0_8_1-0_6_fc10:HEAD:arm4-0.8.1-0.6.fc10.src.rpm:1238800427


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/arm4/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	3 Apr 2009 20:44:42 -0000	1.1
+++ .cvsignore	3 Apr 2009 23:18:03 -0000	1.2
@@ -0,0 +1 @@
+arm4-0.8.1.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/arm4/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	3 Apr 2009 20:44:42 -0000	1.1
+++ sources	3 Apr 2009 23:18:03 -0000	1.2
@@ -0,0 +1 @@
+65b90f3e906b13bd2fb30a4873a3f9ed  arm4-0.8.1.tar.gz




More information about the scm-commits mailing list