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