Search
j0ke.net Open Build Service
>
Projects
>
internetx
:
managed
:
testing
>
ix-inventory-system
> ix-inventory-system.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File ix-inventory-system.spec of Package ix-inventory-system (Revision 11)
Currently displaying revision
11
,
show latest
%define pkgname inventory-system Name: ix-inventory-system Release: 0 Version: 0.0.1 Url: http://www.internetx.com/ License: GPLv2 Group: System Summary: System inventory client Source0: %{pkgname}-%{version}.tar.bz2 Source1: %{pkgname}.conf BuildRoot: %{_tmppath}/%{name}-%{version}-root %if 0%{?suse_version} %define wwwdir /srv/www/inventory-system %else %define wwwdir /var/www/inventory-system %endif Requires: virt-what Requires: lshw %if 0%{?suse_version} Requires: pmtools Requires: lsb-release Requires: awk %else Requires: dmidecode Requires: redhat-lsb Requires: gawk %endif Requires: coreutils Requires: curl Requires: ethtool Requires: grep Requires: sed Requires: util-linux Requires: net-tools Requires: iproute %description System inventory reporting tool. It uses various tools to detect system information and hardware, virtualization type, serial and so on. %package server Group: System Summary: Server part of inventory-system Requires: php5-mysql %description server System inventory server includes php scripts for collecting submitted data by inventory-reporting tool. Collected data is save to mysql database. %prep %setup -n %{pkgname}-%{version} %build %install %__install -D -m755 client/%{pkgname}.sh %{buildroot}%{_sbindir}/%{pkgname} %__install -D -m755 client/cron.daily %{buildroot}%{_sysconfdir}/cron.daily/inventorysystem %__install -D -m644 %{S:1} %{buildroot}%{_sysconfdir}/%{pkgname}.conf %__install -d %{buildroot}/%{wwwdir} %__install -D -m755 client/ix-functions.sh %{buildroot}%{_sysconfdir}/inventory-system.d/ix-functions.sh %__install -m644 server/*.php %{buildroot}/%{wwwdir}/ %clean rm -rf %{buildroot} %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/%{pkgname}.conf %{_sysconfdir}/cron.daily/inventorysystem %{_sbindir}/%{pkgname} %dir %{_sysconfdir}/inventory-system.d %{_sysconfdir}/inventory-system.d/ix-functions.sh %files server %defattr(-,root,root) %dir %{wwwdir} %config(noreplace) %{wwwdir}/config.inc.php %{wwwdir}/isdf.php %{wwwdir}/status.php %doc server/*.sql %changelog