]> git.pld-linux.org Git - packages/shishi.git/blob - shishi.spec
- updated to 0.0.33
[packages/shishi.git] / shishi.spec
1 Summary:        Shishi - an implementation of RFC 1510(bis) (Kerberos V5 authentication)
2 Summary(pl.UTF-8):      Shishi - implementacja RFC 1510(bis) (uwierzytelniania Kerberos V5)
3 Name:           shishi
4 Version:        0.0.33
5 Release:        1
6 Epoch:          0
7 License:        GPL v3+
8 Group:          Libraries
9 Source0:        http://josefsson.org/shishi/releases/%{name}-%{version}.tar.gz
10 # Source0-md5:  2c94e2223d544742d54b96b23cdf6bc0
11 Source1:        %{name}-shishid.init
12 Source2:        %{name}-shishid.sysconfig
13 Patch0:         %{name}-info.patch
14 URL:            http://josefsson.org/shishi/
15 BuildRequires:  autoconf >= 2.61
16 BuildRequires:  automake >= 1:1.10
17 BuildRequires:  gettext-devel >= 0.16.1
18 BuildRequires:  gnutls-devel >= 1.2.5
19 BuildRequires:  gtk-doc >= 1.1
20 BuildRequires:  libgcrypt-devel >= 1.1.43
21 BuildRequires:  libidn-devel >= 0.1.0
22 BuildRequires:  libtasn1-devel >= 0.3.1
23 BuildRequires:  libtool >= 2:1.5
24 BuildRequires:  pam-devel
25 BuildRequires:  rpmbuild(macros) >= 1.268
26 BuildRequires:  texinfo
27 Requires(post,postun):  /sbin/ldconfig
28 Provides:       group(shishi)
29 Provides:       user(shishi)
30 # should be moved to shishi-enabled inetutils-* if such packages would exist
31 Obsoletes:      shishi-telnet
32 Obsoletes:      shishi-telnetd
33 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35 %define         _libexecdir     %{_sbindir}
36 %define         _localstatedir  %{_var}/lib
37
38 %description
39 Shishi is a (still incomplete) implementation of the RFC 1510(bis)
40 network authentication system (known as Kerberos V5). Shishi can be
41 used to authenticate users in distributed systems.
42
43 Shishi contains a library ('libshishi') that can be used by
44 application developers to add support for RFC 1510 and a command line
45 utility ('shishi') that is used by users to interface with the
46 library, to acquire and manage tickets (and more). Included are also a
47 TELNET client and server (based on GNU InetUtils) for remote network
48 login, and a PAM module for host security. A rudimentary key
49 distribution center (KDC) daemon is included.
50
51 %description -l pl.UTF-8
52 Shishi to (nadal niekompletna) implementacja sieciowego systemu
53 uwierzytelniania RFC 1510(bis) (znanego jako Kerberos V5). Shishi może
54 być używane do uwierzytelniania użytkowników w systemach
55 rozproszonych.
56
57 Shishi zawiera bibliotekę (libshishi), którą programiści mogą
58 wykorzystywać do dodawania obsługi RFC 1510 oraz narzędzie działające
59 z linii poleceń (shishi), którym użytkownicy mogą komunikować się z
60 biblioteką, uzyskiwać i zarządzać biletami itp. Dołączone są także
61 klient i serwer TELNET (oparte na GNU InetUtils) do zdalnego logowania
62 oraz moduł PAM do lokalnego modelu bezpieczeństwa. Demon podstawowego
63 centrum dystrybucji kluczy (KDC) także jest załączony.
64
65 %package devel
66 Summary:        Header files for Shishi library
67 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki Shishi
68 Group:          Development/Libraries
69 Requires:       %{name} = %{epoch}:%{version}-%{release}
70 Requires:       gnutls-devel >= 1.2.5
71 Requires:       gtk-doc-common
72 Requires:       libgcrypt-devel >= 1.1.43
73 Requires:       libidn-devel >= 0.1.0
74 Requires:       libtasn1-devel >= 0.3.1
75
76 %description devel
77 Header files for Shishi library.
78
79 %description devel -l pl.UTF-8
80 Pliki nagłówkowe biblioteki Shishi.
81
82 %package static
83 Summary:        Static Shishi library
84 Summary(pl.UTF-8):      Statyczna biblioteka Shishi
85 Group:          Development/Libraries
86 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
87
88 %description static
89 Static Shishi library.
90
91 %description static -l pl.UTF-8
92 Statyczna biblioteka Shishi.
93
94 %package shishid
95 Summary:        shishid - Kerberos 5 server
96 Summary(pl.UTF-8):      shishid - serwer Kerberosa 5
97 Group:          Networking/Daemons
98 Requires(post,postun):  /sbin/chkconfig
99 Requires(post,preun):   rc-scripts
100 Requires(postun):       /usr/sbin/groupdel
101 Requires(postun):       /usr/sbin/userdel
102 Requires(pre):  /bin/id
103 Requires(pre):  /usr/bin/getgid
104 Requires(pre):  /usr/sbin/groupadd
105 Requires(pre):  /usr/sbin/useradd
106 Requires:       %{name} = %{epoch}:%{version}-%{release}
107
108 %description shishid
109 shishid is a network daemon for issuing Kerberos 5 tickets.
110
111 %description shishid -l pl.UTF-8
112 shishid to sieciowy demon służący do wydawania biletów Kerberosa 5.
113
114 %package -n pam-pam_shishi
115 Summary:        PAM module for RFC 1510 (Kerberos V5) authentication
116 Summary(pl.UTF-8):      Moduł PAM do uwierzytelniania RFC 1510 (Kerberos V5)
117 Group:          Libraries
118 Requires:       %{name} = %{epoch}:%{version}-%{release}
119 Obsoletes:      pam_shishi
120
121 %description -n pam-pam_shishi
122 PAM module for RFC 1510 (Kerberos V5) authentication.
123
124 %description -n pam-pam_shishi -l pl.UTF-8
125 Moduł PAM do uwierzytelniania RFC 1510 (Kerberos V5).
126
127 %prep
128 %setup -q
129 %patch0 -p1
130
131 # doesn't build on sparc (too few B* constants) and wasn't packaged anyway
132 %{__perl} -pi -e 's/^(SUBDIRS.*) rsh-redone/$1/' extra/Makefile.am
133
134 %build
135 %{__libtoolize}
136 %{__aclocal} -I gl/m4 -I m4
137 %{__autoconf}
138 %{__autoheader}
139 %{__automake}
140 %configure \
141         --with-libgcrypt \
142         --with-pam-dir=/%{_lib}/security
143
144 %{__make}
145 %{__make} extra
146
147 %install
148 rm -rf $RPM_BUILD_ROOT
149 install -d $RPM_BUILD_ROOT{/%{_lib}/security,/etc/{sysconfig,rc.d/init.d}}
150
151 %{__make} install \
152         DESTDIR=$RPM_BUILD_ROOT
153
154 %{__make} -C extra install \
155         DESTDIR=$RPM_BUILD_ROOT
156
157 rm -f $RPM_BUILD_ROOT/%{_lib}/security/pam_shishi.{la,a}
158
159 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/shishid
160 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/shishid
161 rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
162
163 %find_lang %{name}
164
165 %clean
166 rm -rf $RPM_BUILD_ROOT
167
168 %post
169 /sbin/ldconfig
170 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
171
172 %postun
173 /sbin/ldconfig
174 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
175
176 %pre shishid
177 %groupadd -P %{name}-shishid -g 125 shishi
178 %useradd -P %{name}-shishid -u 125 -d /usr/share/empty -s /bin/false -c "shishi user" -g shishi shishi
179
180 %post shishid
181 /sbin/chkconfig --add shishid
182 %service shishid restart "shishid daemon"
183
184 %preun shishid
185 if [ "$1" = "0" ]; then
186         %service shishid stop
187         /sbin/chkconfig --del shishid
188 fi
189
190 %postun shishid
191 if [ "$1" = "0" ]; then
192         %userremove shishi
193         %groupremove shishi
194 fi
195
196 %files -f %{name}.lang
197 %defattr(644,root,root,755)
198 %doc AUTHORS ChangeLog NEWS README* THANKS
199 %attr(755,root,root) %{_bindir}/ccache2shishi
200 %attr(755,root,root) %{_bindir}/shisa
201 %attr(755,root,root) %{_bindir}/shishi
202 %attr(755,root,root) %{_sbindir}/keytab2shishi
203 %attr(755,root,root) %{_libdir}/libshis*.so.*.*.*
204 %dir %{_sysconfdir}/shishi
205 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shisa.conf
206 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.conf
207 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.keys
208 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.skel
209 %attr(700,root,root) %dir %{_localstatedir}/%{name}
210 %{_mandir}/man1/ccache2shishi.1*
211 %{_mandir}/man1/keytab2shishi.1*
212 %{_mandir}/man1/shisa.1*
213 %{_mandir}/man1/shishi.1*
214 %{_infodir}/shishi.info*
215
216 %files devel
217 %defattr(644,root,root,755)
218 %attr(755,root,root) %{_libdir}/libshis*.so
219 %{_libdir}/libshis*.la
220 %{_includedir}/shis*.h
221 %{_pkgconfigdir}/shishi.pc
222 %{_mandir}/man3/*
223
224 %files static
225 %defattr(644,root,root,755)
226 %{_libdir}/libshis*.a
227
228 %files shishid
229 %defattr(644,root,root,755)
230 %attr(755,root,root) %{_sbindir}/shishid
231 %attr(754,root,root) /etc/rc.d/init.d/shishid
232 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/shishid
233 %{_mandir}/man1/shishid.1*
234
235 %files -n pam-pam_shishi
236 %defattr(644,root,root,755)
237 %attr(755,root,root) /%{_lib}/security/pam_shishi.so*
This page took 0.043427 seconds and 4 git commands to generate.