]>
Commit | Line | Data |
---|---|---|
a5c1ad94 AM |
1 | # |
2 | # TODO: | |
baa0de76 | 3 | # - %%files - FHS compliance (/var/csa is invalid) |
a5c1ad94 | 4 | # |
baa0de76 | 5 | Summary: System job accounting |
2891a38e | 6 | Summary(pl.UTF-8): Rozliczanie zadań systemowych |
a5c1ad94 AM |
7 | Name: csa |
8 | Version: 2.2.0 | |
9 | Release: 0.1 | |
baa0de76 JB |
10 | License: GPL |
11 | Group: Applications/System | |
12 | # .src.rpm at ftp://oss.sgi.com/projects/csa/download/ | |
a5c1ad94 AM |
13 | Source0: %{name}-%{version}.tar.gz |
14 | # Source0-md5: 8a0f4a052cd9a6a6ad7227fc0b750345 | |
1143532a | 15 | URL: http://oss.sgi.com/projects/csa/ |
a5c1ad94 | 16 | BuildRequires: autoconf |
baa0de76 | 17 | BuildRequires: automake |
a5c1ad94 | 18 | BuildRequires: libtool |
baa0de76 | 19 | Requires: %{name}-libs = %{version}-%{release} |
a5c1ad94 AM |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
21 | ||
22 | %description | |
23 | Linux Comprehensive System Accounting (CSA) is a combination of a | |
24 | Linux kernel patch, a loadable csa kernel module, and a set of C | |
25 | programs and shell scripts. CSA provides methods for collecting | |
26 | per-process resource usage data, monitoring disk usage, and charging | |
27 | fees to specific login accounts. CSA takes this per-process accounting | |
28 | information and combines it by job identifier (jid) within system boot | |
29 | uptime periods. | |
30 | ||
39414e31 JR |
31 | %description -l pl.UTF-8 |
32 | Linux Comprehensive System Accounting (CSA) to połączenie łaty na | |
33 | jądro Linuksa, ładowalnego modułu jądra csa oraz zbioru programów w C | |
34 | i skryptów powłoki. CSA dostarcza metody do gromadzenia danych o | |
35 | wykorzystaniu zasobów przez każdy proces, monitorowania wykorzystania | |
36 | dysku oraz pobierania opłat za konkretne konta. CSA pobiera te | |
37 | informacje rozrachunkowe dla każdego procesu i łączy je po | |
baa0de76 | 38 | identyfikatorze zadania (jid - job identifier) w ramach czasu |
39414e31 | 39 | działania systemu. |
baa0de76 JB |
40 | |
41 | %package libs | |
42 | Summary: CSA library | |
2891a38e | 43 | Summary(pl.UTF-8): Biblioteka CSA |
baa0de76 JB |
44 | Group: Libraries |
45 | ||
46 | %description libs | |
47 | CSA library. | |
48 | ||
39414e31 | 49 | %description libs -l pl.UTF-8 |
baa0de76 JB |
50 | Biblioteka CSA. |
51 | ||
52 | %package devel | |
53 | Summary: Header files for CSA library | |
2891a38e | 54 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki CSA |
baa0de76 JB |
55 | Group: Development/Libraries |
56 | Requires: %{name}-libs = %{version}-%{release} | |
57 | ||
58 | %description devel | |
59 | Header files for CSA library. | |
60 | ||
39414e31 JR |
61 | %description devel -l pl.UTF-8 |
62 | Pliki nagłówkowe biblioteki CSA. | |
baa0de76 JB |
63 | |
64 | %package static | |
65 | Summary: Static CSA library | |
2891a38e | 66 | Summary(pl.UTF-8): Statyczna biblioteka CSA |
baa0de76 JB |
67 | Group: Development/Libraries |
68 | Requires: %{name}-devel = %{version}-%{release} | |
69 | ||
70 | %description static | |
71 | Static CSA library. | |
72 | ||
39414e31 | 73 | %description static -l pl.UTF-8 |
baa0de76 JB |
74 | Statyczna biblioteka CSA. |
75 | ||
a5c1ad94 | 76 | %prep |
a5c1ad94 AM |
77 | %setup -q |
78 | ||
79 | %build | |
80 | %{__libtoolize} | |
81 | %{__aclocal} | |
82 | %{__autoconf} | |
83 | %{__automake} | |
84 | %configure | |
85 | ||
86 | %install | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %{__make} install \ | |
90 | DESTDIR="$RPM_BUILD_ROOT" \ | |
91 | csainstalluser=$(id -u) \ | |
92 | csainstallgroup=$(id -g) | |
93 | ||
94 | %clean | |
95 | rm -rf $RPM_BUILD_ROOT | |
96 | ||
baa0de76 JB |
97 | %post libs -p /sbin/ldconfig |
98 | %postun libs -p /sbin/ldconfig | |
99 | ||
a5c1ad94 | 100 | %files |
a5c1ad94 | 101 | %defattr(644,root,root,755) |
baa0de76 JB |
102 | # COPYING contains additional notes |
103 | %doc AUTHORS COPYING ChangeLog NEWS README | |
104 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csa.conf | |
105 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/csa.holidays | |
a5c1ad94 | 106 | %attr(754,root,root) /etc/rc.d/init.d/csa |
a5c1ad94 AM |
107 | %attr(755,root,root) %{_sbindir}/acctdisk |
108 | %attr(755,root,root) %{_sbindir}/acctdusg | |
109 | %attr(755,root,root) %{_sbindir}/csaaddc | |
110 | %attr(755,root,root) %{_sbindir}/csachargefee | |
111 | %attr(755,root,root) %{_sbindir}/csacms | |
112 | %attr(755,root,root) %{_sbindir}/csacon | |
113 | %attr(755,root,root) %{_sbindir}/csacrep | |
114 | %attr(755,root,root) %{_sbindir}/csadrep | |
115 | %attr(755,root,root) %{_sbindir}/csaedit | |
116 | %attr(755,root,root) %{_sbindir}/csagetconfig | |
117 | %attr(755,root,root) %{_sbindir}/csajrep | |
118 | %attr(755,root,root) %{_sbindir}/csarecy | |
119 | %attr(755,root,root) %{_sbindir}/csaswitch | |
120 | %attr(755,root,root) %{_sbindir}/csaverify | |
121 | %attr(755,root,root) %{_sbindir}/csackpacct | |
122 | %attr(755,root,root) %{_sbindir}/csaperiod | |
123 | %attr(755,root,root) %{_sbindir}/csarun | |
124 | %attr(755,root,root) %{_sbindir}/dodisk | |
125 | %attr(755,root,root) %{_sbindir}/lastlogin | |
126 | %attr(755,root,root) %{_sbindir}/nulladm | |
a5c1ad94 AM |
127 | %attr(755,root,root) %{_sbindir}/csabuild |
128 | %attr(755,root,root) %{_bindir}/csacom | |
129 | %attr(755,root,root) %{_bindir}/ja | |
baa0de76 JB |
130 | %{_mandir}/*/* |
131 | # Below here should be owned by csaacct | |
132 | FIXME FIXME | |
133 | %defattr(-,csaacct,csaacct) | |
a5c1ad94 AM |
134 | /var/csa/nite/statefile |
135 | %dir /var/csa | |
136 | %dir /var/csa/day | |
137 | %dir /var/csa/fiscal | |
138 | %dir /var/csa/nite | |
139 | %dir /var/csa/sum | |
140 | %dir /var/csa/work | |
baa0de76 JB |
141 | |
142 | %files libs | |
143 | %defattr(644,root,root,755) | |
144 | %attr(755,root,root) %{_libdir}/libcsa.so.*.*.* | |
145 | ||
146 | %files devel | |
147 | %defattr(644,root,root,755) | |
148 | %attr(755,root,root) %{_libdir}/libcsa.so | |
149 | %{_libdir}/libcsa.la | |
150 | %{_includedir}/csa.h | |
151 | %{_includedir}/csa_api.h | |
152 | %{_includedir}/csaacct.h | |
153 | ||
154 | %files static | |
155 | %defattr(644,root,root,755) | |
156 | %{_libdir}/libcsa.a |