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