Compare commits
5 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b37944e772 | ||
|
|
57df89be0d | ||
| 130e07524b | |||
| 7727e50369 | |||
| 5f9a24ca2e |
5 changed files with 132 additions and 21 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
virt-mem-0.2.9.tar.gz
|
||||
21
Makefile
21
Makefile
|
|
@ -1,21 +0,0 @@
|
|||
# Makefile for source rpm: virt-mem
|
||||
# $Id$
|
||||
NAME := virt-mem
|
||||
SPECFILE = $(firstword $(wildcard *.spec))
|
||||
|
||||
define find-makefile-common
|
||||
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
||||
|
||||
ifeq ($(MAKEFILE_COMMON),)
|
||||
# attept a checkout
|
||||
define checkout-makefile-common
|
||||
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
||||
endef
|
||||
|
||||
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
||||
endif
|
||||
|
||||
include $(MAKEFILE_COMMON)
|
||||
1
sources
1
sources
|
|
@ -0,0 +1 @@
|
|||
67eeb7bd7bc519a8adadc976e660791c virt-mem-0.2.9.tar.gz
|
||||
130
virt-mem.spec
Normal file
130
virt-mem.spec
Normal file
|
|
@ -0,0 +1,130 @@
|
|||
%define opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
|
||||
%define debug_package %{nil}
|
||||
|
||||
Name: virt-mem
|
||||
Version: 0.2.9
|
||||
Release: 4%{?dist}
|
||||
Summary: Management tools for virtual machines
|
||||
|
||||
Group: Development/Libraries
|
||||
License: GPLv2+
|
||||
URL: http://et.redhat.com/~rjones/virt-mem/
|
||||
Source0: http://et.redhat.com/~rjones/virt-mem/files/%{name}-%{version}.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
|
||||
ExcludeArch: ppc64
|
||||
|
||||
BuildRequires: ocaml >= 3.10.0
|
||||
BuildRequires: ocaml-ocamldoc
|
||||
BuildRequires: ocaml-findlib-devel
|
||||
BuildRequires: ocaml-camlp4-devel
|
||||
BuildRequires: ocaml-extlib-devel
|
||||
BuildRequires: ocaml-libvirt-devel >= 0.4.4.2
|
||||
BuildRequires: ocaml-xml-light-devel
|
||||
BuildRequires: ocaml-xmlrpc-light-devel
|
||||
BuildRequires: ocaml-bitstring-devel >= 1.9.7
|
||||
BuildRequires: ocaml-csv-devel
|
||||
BuildRequires: ocaml-gettext-devel
|
||||
BuildRequires: ocaml-pcre-devel
|
||||
BuildRequires: libvirt-devel >= 0.4.4
|
||||
|
||||
# Missing indirect requirements of ocaml-xmlrpc-light-devel.
|
||||
# https://bugzilla.redhat.com/show_bug.cgi?id=458265
|
||||
BuildRequires: ocaml-ocamlnet-devel
|
||||
BuildRequires: ocaml-ocamlnet-nethttpd-devel
|
||||
|
||||
# Missing indirect requirement of ocaml-pcre-devel.
|
||||
BuildRequires: pcre-devel
|
||||
|
||||
# For perldoc
|
||||
BuildRequires: perl
|
||||
|
||||
%define _use_internal_dependency_generator 0
|
||||
%define __find_requires /usr/lib/rpm/ocaml-find-requires.sh
|
||||
%define __find_provides /usr/lib/rpm/ocaml-find-provides.sh
|
||||
|
||||
%description
|
||||
These are a collection of monitoring and management tools for virtual
|
||||
machines.
|
||||
|
||||
Commands we support at the moment include:
|
||||
|
||||
virt-uname 'uname' command, shows OS version, architecture, etc.
|
||||
virt-dmesg 'dmesg' command, shows kernel messages
|
||||
virt-ps 'ps' command, shows process list
|
||||
|
||||
The general idea is that they allow you to monitor virtual machines
|
||||
without needing to log in to the machine itself or install any extra
|
||||
software inside the virtual machine. At the moment we only support
|
||||
virtual machines running Linux kernel >= 2.6, but we expect to support
|
||||
other operating systems in the future.
|
||||
|
||||
Most of the commands also offer a CSV (comma-separated values) output
|
||||
format ('virt-xx --csv'), allowing usage from scripts to update
|
||||
spreadsheets, databases or integrate with existing monitoring systems
|
||||
like Nagios.
|
||||
|
||||
The commands use libvirt to access the underlying virtualization
|
||||
system, so we support a variety of different systems such as Xen, QEMU
|
||||
and KVM, and more can be added just by adding support to libvirt.
|
||||
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
||||
%build
|
||||
%configure
|
||||
make all
|
||||
|
||||
# Build translations.
|
||||
make -C po
|
||||
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
mkdir -p $RPM_BUILD_ROOT%{_datadir}/locale
|
||||
make DESTDIR=$RPM_BUILD_ROOT install PODIR="$RPM_BUILD_ROOT%{_datadir}/locale"
|
||||
|
||||
# Find translations.
|
||||
%find_lang %{name}
|
||||
|
||||
# Strip executables.
|
||||
strip $RPM_BUILD_ROOT%{_bindir}/*
|
||||
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
|
||||
%files -f %{name}.lang
|
||||
%defattr(-,root,root,-)
|
||||
%doc COPYING README ChangeLog
|
||||
%{_bindir}/*
|
||||
%{_mandir}/man1/*
|
||||
|
||||
|
||||
%changelog
|
||||
* Tue Aug 12 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.9-4
|
||||
- ExcludeArch ppc64 (only for F-8).
|
||||
|
||||
* Thu Aug 7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.9-3
|
||||
- Added missing indirect BRs for ocaml-xmlrpc-light-devel.
|
||||
- Added missing BR ocaml-pcre-devel.
|
||||
|
||||
* Thu Aug 7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.9-1
|
||||
- New upstream release 0.2.9:
|
||||
- Fixes 64 bit builds.
|
||||
- Fixes builds on Fedora 8.
|
||||
|
||||
* Thu Aug 7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.8-3
|
||||
- Add missing BR ocaml-xmlrpc-light-devel.
|
||||
|
||||
* Thu Aug 7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.8-2
|
||||
- Add missing BR ocaml-camlp4-devel.
|
||||
|
||||
* Thu Aug 7 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.8-1
|
||||
- New upstream version.
|
||||
|
||||
* Tue Jun 10 2008 Richard W.M. Jones <rjones@redhat.com> - 0.2.4-1
|
||||
- Initial RPM release.
|
||||
Loading…
Add table
Add a link
Reference in a new issue