]> git.pld-linux.org Git - packages/shishi.git/blob - shishi.spec
- adapterized (sorted %verify attrs)
[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.22
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:  f613e538ed0bb990f3644bbe5f0ab444
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.59
16 BuildRequires:  automake >= 1:1.9
17 BuildRequires:  gettext-devel >= 0.12.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.2.5
23 BuildRequires:  libtool >= 2:1.5
24 BuildRequires:  pam-devel
25 BuildRequires:  rpmbuild(macros) >= 1.159
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
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):    Pliki nag³ówkowe biblioteki Shishi
68 Group:          Development/Libraries
69 Requires:       %{name} = %{epoch}:%{version}-%{release}
70 Requires:       gnutls-devel >= 0.8.8
71 Requires:       gtk-doc-common
72 Requires:       libgcrypt-devel >= 1.1.43
73 Requires:       libidn-devel >= 0.1.0
74 Requires:       libtasn1-devel >= 0.2.5
75
76 %description devel
77 Header files for Shishi library.
78
79 %description devel -l pl
80 Pliki nag³ówkowe biblioteki Shishi.
81
82 %package static
83 Summary:        Static Shishi library
84 Summary(pl):    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
92 Statyczna biblioteka Shishi.
93
94 %package shishid
95 Summary:        shishid - Kerberos 5 server
96 Summary(pl):    shishid - serwer Kerberosa 5
97 Group:          Networking/Daemons
98 Requires(post,postun):  /sbin/chkconfig
99 Requires(postun):       /usr/sbin/groupdel
100 Requires(postun):       /usr/sbin/userdel
101 Requires(pre):  /bin/id
102 Requires(pre):  /usr/bin/getgid
103 Requires(pre):  /usr/sbin/groupadd
104 Requires(pre):  /usr/sbin/useradd
105 Requires:       %{name} = %{epoch}:%{version}-%{release}
106
107 %description shishid
108 shishid is a network daemon for issuing Kerberos 5 tickets.
109
110 %description shishid -l pl
111 shishid to sieciowy demon s³u¿±cy do wydawania biletów Kerberosa 5.
112
113 %package -n pam-pam_shishi
114 Summary:        PAM module for RFC 1510 (Kerberos V5) authentication
115 Summary(pl):    Modu³ PAM do uwierzytelniania RFC 1510 (Kerberos V5)
116 Group:          Libraries
117 Requires:       %{name} = %{epoch}:%{version}-%{release}
118 Obsoletes:      pam_shishi
119
120 %description -n pam-pam_shishi
121 PAM module for RFC 1510 (Kerberos V5) authentication.
122
123 %description -n pam-pam_shishi -l pl
124 Modu³ PAM do uwierzytelniania RFC 1510 (Kerberos V5).
125
126 %prep
127 %setup -q
128 %patch0 -p1
129
130 rm -f po/stamp-po
131
132 # doesn't build on sparc (too few B* constants) and wasn't packaged anyway
133 %{__perl} -pi -e 's/^(SUBDIRS.*) rsh-redone/$1/' extra/Makefile.am
134
135 %build
136 # blegh, lt incompatible with ksh - must rebuild
137 %{__libtoolize}
138 %{__aclocal} -I gl/m4 -I m4
139 %{__autoconf}
140 %{__autoheader}
141 %{__automake}
142 %configure \
143         --with-libgcrypt
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 %groupadd -P %{name}-shishid -g 125 shishi
179 %useradd -P %{name}-shishid -u 125 -d /usr/share/empty -s /bin/false -c "shishi user" -g shishi shishi
180
181 %post shishid
182 /sbin/chkconfig --add shishid
183 if [ -f /var/lock/subsys/shishid ]; then
184         /etc/rc.d/init.d/shishid restart >&2
185 else
186         echo "Run \"/etc/rc.d/init.d/shishid start\" to start shishid daemon." >&2
187 fi
188
189 %preun shishid
190 if [ "$1" = "0" ]; then
191         if [ -f /var/lock/subsys/shishid ]; then
192                 /etc/rc.d/init.d/shishid stop >&2
193         fi
194         /sbin/chkconfig --del shishid
195 fi
196
197 %postun shishid
198 if [ "$1" = "0" ]; then
199         %userremove shishi
200         %groupremove shishi
201 fi
202
203 %files -f %{name}.lang
204 %defattr(644,root,root,755)
205 %doc AUTHORS ChangeLog NEWS README* THANKS
206 %attr(755,root,root) %{_bindir}/shisa
207 %attr(755,root,root) %{_bindir}/shishi
208 %attr(755,root,root) %{_libdir}/libshis*.so.*.*.*
209 %dir %{_sysconfdir}/shishi
210 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shisa.conf
211 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.conf
212 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.keys
213 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/shishi/shishi.skel
214 %attr(700,root,root) %dir %{_localstatedir}/%{name}
215 %{_mandir}/man1/shisa.1*
216 %{_mandir}/man1/shishi.1*
217 %{_infodir}/shishi.info*
218
219 %files devel
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{_libdir}/libshis*.so
222 %{_libdir}/libshis*.la
223 %{_includedir}/shis*.h
224 %{_pkgconfigdir}/shishi.pc
225 %{_mandir}/man3/*
226
227 %files static
228 %defattr(644,root,root,755)
229 %{_libdir}/libshis*.a
230
231 %files shishid
232 %defattr(644,root,root,755)
233 %attr(755,root,root) %{_sbindir}/shishid
234 %attr(754,root,root) /etc/rc.d/init.d/shishid
235 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/shishid
236 %{_mandir}/man1/shishid.1*
237
238 %files -n pam-pam_shishi
239 %defattr(644,root,root,755)
240 %attr(755,root,root) /%{_lib}/security/pam_shishi.so*
This page took 0.087662 seconds and 4 git commands to generate.