]>
Commit | Line | Data |
---|---|---|
b1fb8c81 | 1 | Summary: Privledged helper for utmp/wtmp updates |
2 | Name: utempter | |
3 | Version: 0.5 | |
4 | Release: 2 | |
5 | Copyright: MIT | |
6 | Group: Base | |
8558607f | 7 | Group(pl): Podstawy |
b1fb8c81 | 8 | Source: %{name}-%{version}.tar.gz |
8edf1616 | 9 | Prereq: %{_sbindir}/groupadd, fileutils |
b1fb8c81 | 10 | BuildRoot: /tmp/%{name}-%{version}-root |
dd80edbc | 11 | |
12 | %description | |
13 | Utempter is a utility which allows programs to log information to a | |
b1fb8c81 | 14 | privledged file (/var/run/utmp), without compromising system security. It |
15 | accomplishes this task by acting as a buffer between root and the programs. | |
16 | ||
17 | %package devel | |
18 | Summary: utempter library header files | |
19 | Group: Development/Libraties | |
8558607f | 20 | Group(pl): Programowanie/Biblioteki |
b1fb8c81 | 21 | Requires: %{name} = %{version} |
22 | ||
23 | %description devel | |
24 | utempter library header files. | |
dd80edbc | 25 | |
26 | %prep | |
b1fb8c81 | 27 | %setup -q |
dd80edbc | 28 | |
29 | %build | |
b1fb8c81 | 30 | make |
dd80edbc | 31 | |
32 | %install | |
33 | rm -rf $RPM_BUILD_ROOT | |
34 | make PREFIX=$RPM_BUILD_ROOT install | |
35 | ||
b1fb8c81 | 36 | strip --strip-unneeded $RPM_BUILD_ROOT/usr/{lib/lib*.so.*.*,sbin/*} |
37 | ||
dd80edbc | 38 | %pre |
8edf1616 | 39 | %{_sbindir}/groupadd -r -f utmp |
dd80edbc | 40 | |
41 | %post | |
42 | /sbin/ldconfig | |
43 | ||
44 | if [ -f /var/log/wtmp ]; then | |
45 | chown root.utmp /var/log/wtmp | |
46 | chmod 664 /var/log/wtmp | |
47 | fi | |
48 | ||
49 | if [ -f /var/run/utmp ]; then | |
50 | chown root.utmp /var/run/utmp | |
51 | chmod 664 /var/run/utmp | |
52 | fi | |
53 | ||
54 | %postun -p /sbin/ldconfig | |
55 | ||
56 | %clean | |
57 | rm -rf $RPM_BUILD_ROOT | |
58 | ||
59 | %files | |
b1fb8c81 | 60 | %defattr(644,root,root,755) |
8edf1616 | 61 | %attr(2755,root,utmp) %{_sbindir}/utempter |
aa7c5076 | 62 | %attr(0755,root,root) %{_libdir}/lib*.so.*.* |
b1fb8c81 | 63 | |
64 | %files devel | |
65 | %defattr(644,root,root,755) | |
aa7c5076 | 66 | %attr(0755,root,root) %{_libdir}/lib*.so |
8edf1616 | 67 | %{_includedir}/utempter.h |
b1fb8c81 | 68 | |
69 | %changelog | |
70 |