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