]> git.pld-linux.org Git - packages/shishi.git/blob - shishi.spec
- added fix patch - builds now
[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 Patch1:         %{name}-gnutls.patch
15 Patch2:         %{name}-fix.patch
16 URL:            http://josefsson.org/shishi/
17 BuildRequires:  autoconf >= 2.59
18 BuildRequires:  automake >= 1:1.9
19 BuildRequires:  gettext-devel >= 0.12.1
20 BuildRequires:  gnutls-devel >= 1.2.5
21 BuildRequires:  gtk-doc >= 1.1
22 BuildRequires:  libgcrypt-devel >= 1.1.43
23 BuildRequires:  libidn-devel >= 0.1.0
24 BuildRequires:  libtasn1-devel >= 0.2.5
25 BuildRequires:  libtool >= 2:1.5
26 BuildRequires:  pam-devel
27 BuildRequires:  rpmbuild(macros) >= 1.159
28 BuildRequires:  texinfo
29 Requires(post,postun):  /sbin/ldconfig
30 Provides:       group(shishi)
31 Provides:       user(shishi)
32 # should be moved to shishi-enabled inetutils-* if such packages would exist
33 Obsoletes:      shishi-telnet
34 Obsoletes:      shishi-telnetd
35 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36
37 %define         _libexecdir     %{_sbindir}
38 %define         _localstatedir  %{_var}/lib
39
40 %description
41 Shishi is a (still incomplete) implementation of the RFC 1510(bis)
42 network authentication system (known as Kerberos V5). Shishi can be
43 used to authenticate users in distributed systems.
44
45 Shishi contains a library ('libshishi') that can be used by
46 application developers to add support for RFC 1510 and a command line
47 utility ('shishi') that is used by users to interface with the
48 library, to acquire and manage tickets (and more). Included are also
49 a TELNET client and server (based on GNU InetUtils) for remote network
50 login, and a PAM module for host security. A rudimentary key
51 distribution center (KDC) daemon is included.
52
53 %description -l pl
54 Shishi to (nadal niekompletna) implementacja sieciowego systemu
55 uwierzytelniania RFC 1510(bis) (znanego jako Kerberos V5). Shishi mo¿e
56 byæ u¿ywane do uwierzytelniania u¿ytkowników w systemach
57 rozproszonych.
58
59 Shishi zawiera bibliotekê (libshishi), któr± programi¶ci mog±
60 wykorzystywaæ do dodawania obs³ugi RFC 1510 oraz narzêdzie dzia³aj±ce
61 z linii poleceñ (shishi), którym u¿ytkownicy mog± komunikowaæ siê z
62 bibliotek±, uzyskiwaæ i zarz±dzaæ biletami itp. Do³±czone s± tak¿e
63 klient i serwer TELNET (oparte na GNU InetUtils) do zdalnego logowania
64 oraz modu³ PAM do lokalnego modelu bezpieczeñstwa. Demon podstawowego
65 centrum dystrybucji kluczy (KDC) tak¿e jest za³±czony.
66
67 %package devel
68 Summary:        Header files for Shishi library
69 Summary(pl):    Pliki nag³ówkowe biblioteki Shishi
70 Group:          Development/Libraries
71 Requires:       %{name} = %{epoch}:%{version}-%{release}
72 Requires:       gnutls-devel >= 0.8.8
73 Requires:       gtk-doc-common
74 Requires:       libgcrypt-devel >= 1.1.43
75 Requires:       libidn-devel >= 0.1.0
76 Requires:       libtasn1-devel >= 0.2.5
77
78 %description devel
79 Header files for Shishi library.
80
81 %description devel -l pl
82 Pliki nag³ówkowe biblioteki Shishi.
83
84 %package static
85 Summary:        Static Shishi library
86 Summary(pl):    Statyczna biblioteka Shishi
87 Group:          Development/Libraries
88 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
89
90 %description static
91 Static Shishi library.
92
93 %description static -l pl
94 Statyczna biblioteka Shishi.
95
96 %package shishid
97 Summary:        shishid - Kerberos 5 server
98 Summary(pl):    shishid - serwer Kerberosa 5
99 Group:          Networking/Daemons
100 Requires(pre):  /bin/id
101 Requires(pre):  /usr/bin/getgid
102 Requires(pre):  /usr/sbin/useradd
103 Requires(pre):  /usr/sbin/groupadd
104 Requires(post,postun):  /sbin/chkconfig
105 Requires(postun):       /usr/sbin/groupdel
106 Requires(postun):       /usr/sbin/userdel
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 %patch2 -p1
133
134 rm -f po/stamp-po
135
136 # doesn't build on sparc (too few B* constants) and wasn't packaged anyway
137 %{__perl} -pi -e 's/^(SUBDIRS.*) rsh-redone/$1/' extra/Makefile.am
138
139 %build
140 # blegh, lt incompatible with ksh - must rebuild
141 %{__libtoolize}
142 %{__aclocal} -I gl/m4 -I m4
143 %{__autoconf}
144 %{__autoheader}
145 %{__automake}
146 %configure \
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 mv -f $RPM_BUILD_ROOT%{_libdir}/pam_shishi.so* $RPM_BUILD_ROOT/%{_lib}/security
163 rm -f $RPM_BUILD_ROOT%{_libdir}/pam_shishi.{la,a}
164
165 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/shishid
166 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/shishid
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 if [ -f /var/lock/subsys/shishid ]; then
188         /etc/rc.d/init.d/shishid restart >&2
189 else
190         echo "Run \"/etc/rc.d/init.d/shishid start\" to start shishid daemon." >&2
191 fi
192
193 %preun shishid
194 if [ "$1" = "0" ]; then
195         if [ -f /var/lock/subsys/shishid ]; then
196                 /etc/rc.d/init.d/shishid stop >&2
197         fi
198         /sbin/chkconfig --del shishid
199 fi
200
201 %postun shishid
202 if [ "$1" = "0" ]; then
203         %userremove shishi
204         %groupremove shishi
205 fi
206
207 %files -f %{name}.lang
208 %defattr(644,root,root,755)
209 %doc AUTHORS ChangeLog NEWS README* THANKS
210 %attr(755,root,root) %{_bindir}/shisa
211 %attr(755,root,root) %{_bindir}/shishi
212 %attr(755,root,root) %{_libdir}/libshis*.so.*.*.*
213 %dir %{_sysconfdir}/shishi
214 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shisa.conf
215 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.conf
216 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.keys
217 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.skel
218 %attr(700,root,root) %dir %{_localstatedir}/%{name}
219 %{_mandir}/man1/shisa.1*
220 %{_mandir}/man1/shishi.1*
221 %{_infodir}/shishi.info*
222
223 %files devel
224 %defattr(644,root,root,755)
225 %attr(755,root,root) %{_libdir}/libshis*.so
226 %{_libdir}/libshis*.la
227 %{_includedir}/shis*.h
228 %{_pkgconfigdir}/shishi.pc
229 %{_mandir}/man3/*
230
231 %files static
232 %defattr(644,root,root,755)
233 %{_libdir}/libshis*.a
234
235 %files shishid
236 %defattr(644,root,root,755)
237 %attr(755,root,root) %{_sbindir}/shishid
238 %attr(754,root,root) /etc/rc.d/init.d/shishid
239 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/shishid
240 %{_mandir}/man1/shishid.1*
241
242 %files -n pam-pam_shishi
243 %defattr(644,root,root,755)
244 %attr(755,root,root) /%{_lib}/security/pam_shishi.so*
This page took 0.042958 seconds and 4 git commands to generate.