]> git.pld-linux.org Git - packages/libutempter.git/blob - libutempter.spec
- don't give sgid to utmp-cleanup! it allow clean utmp files for anybody...
[packages/libutempter.git] / libutempter.spec
1 Summary:        Privileged helper for utmpx updates
2 Summary(es):    Programa para actualización del utmp/wtmp
3 Summary(pl):    Program pozwalaj±cy na zapisywanie w utmpx
4 Summary(pt_BR): Programa para atualização do utmp/wtmp
5 Summary(ru):    ðÒÉ×ÉÌÅÇÉÒÏ×ÁÎÎÁÑ ÐÒÏÇÒÁÍÍÁ ÄÌÑ ÉÚÍÅÎÅÎÉÊ × utmp/wtmp
6 Summary(uk):    ðÒÉצÌÅÊÏ×ÁÎÁ ÐÒÏÇÒÁÍÁ ÄÌÑ ×ÎÅÓÅÎÎÑ ÚͦΠÄÏ utmp/wtmp
7 Name:           utempter
8 Version:        0.5.5
9 Release:        3
10 License:        MIT or LGPL
11 Group:          Base
12 Source0:        %{name}-%{version}.tar.gz
13 # Source0-md5:  a628f149132e2f729bc4601e6a4f6c29
14 Patch0:         %{name}-lastlog.patch
15 Patch1:         %{name}-utmp-cleanup.patch
16 PreReq:         SysVinit >= 2.76-14
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 Obsoletes:      libutempter0
19
20 %description
21 Utempter is a utility which allows programs to log information to a
22 privileged file (/var/run/utmpx), without compromising system
23 security. It accomplishes this task by acting as a buffer between root
24 and the programs.
25
26 %description -l es
27 Programa para actualización del utmp/wtmp.
28
29 %description -l pl
30 Utempter jest programem pozwalaj±cym u¿ytkownikom na zapisywanie do
31 pliku /var/run/utmpx bez naruszania bezpieczeñstwa systemu.
32
33 %description -l pt_BR
34 O Utempter é um utilitários que permite a programas guardar informação
35 à arquivos privilegiados (/var/run/utmp), sem comprometer a segurança
36 do sistema. Ele faz esta tarefa atuando como um "buffer" entre o
37 usuário root e os programas.
38
39 %description -l ru
40 Utempter - ÜÔÏ ÕÔÉÌÉÔÁ, ËÏÔÏÒÁÑ ÐÏÚ×ÏÌÑÅÔ ÐÒÏÇÒÁÍÍÁÍ ÚÁÐÉÓÙ×ÁÔØ
41 ÉÎÆÏÒÍÁÃÉÀ × ÐÒÉ×ÉÌÅÇÉÒÏ×ÁÎÎÙÊ ÆÁÊÌ (/var/run/utmp) ÂÅÚ ÎÁÒÕÛÅÎÉÑ
42 ÓÉÓÔÅÍÎÏÊ ÂÅÚÏÐÁÓÎÏÓÔÉ. ïÎÁ ÉÓÐÏÌÎÑÅÔ ÜÔÕ ÚÁÄÁÞÕ, ×ÙÓÔÕÐÁÑ ÂÕÆÅÒÏÍ
43 ÍÅÖÄÕ root'ÏÍ É ÐÏÌØÚÏ×ÁÔÅÌØÓËÉÍÉ ÐÒÏÇÒÁÍÍÁÍÉ.
44
45 %description -l uk
46 Utempter - ÃÅ ÕÔÉ̦ÔÁ, ÝÏ ÄÏÚ×ÏÌѤ ÐÒÏÇÒÁÍÁÍ ÚÁÐÉÓÕ×ÁÔÉ ¦ÎÆÏÒÍÁæÀ ×
47 ÐÒÉצÌÅÊÏ×ÁÎÉÊ ÆÁÊÌ (/var/run/utmp) ÂÅÚ ÐÏÒÕÛÅÎÎÑ ÓÉÓÔÅÍÎϧ ÂÅÚÐÅËÉ.
48 ÷ÏÎÁ ×ÉËÏÎÕ¤ ÃÀ ÚÁÄÁÞÕ, ×ÉÓÔÕÐÁÀÞÉ ÂÕÆÅÒÏͦ֠͠root'ÏÍ ÔÁ ÐÒÏÇÒÁÍÁÍÉ
49 ËÏÒÉÓÔÕ×ÁÞÁ.
50
51 %package devel
52 Summary:        Header file for utempter library
53 Summary(pl):    Plik nag³ówkowy biblioteki utemptera
54 Group:          Development/Libraries
55 Requires:       %{name} = %{version}-%{release}
56 Obsoletes:      libutempter0-devel
57
58 %description devel
59 Header file for utempter library.
60
61 %description devel -l pl
62 Plik nag³ówkowy biblioteki utemptera.
63
64 %prep
65 %setup -q
66 %patch0 -p1
67 %patch1 -p1
68
69 %build
70 %{__make} \
71         CC="%{__cc}" \
72         RPM_OPT_FLAGS="%{rpmcflags}"
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
77 %{__make} install \
78         LIBDIR="%{_libdir}" \
79         RPM_BUILD_ROOT=$RPM_BUILD_ROOT
80
81 install -d $RPM_BUILD_ROOT/var/run
82 :> $RPM_BUILD_ROOT/var/run/utmpx
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %attr(2755,root,utmp) %{_sbindir}/utempter
93 %attr(755,root,utmp) %{_sbindir}/utmp-cleanup
94 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
95
96 %attr(664,root,utmp) %ghost /var/run/utmpx
97
98 %files devel
99 %defattr(644,root,root,755)
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_includedir}/utempter.h
This page took 0.037549 seconds and 3 git commands to generate.