]> git.pld-linux.org Git - packages/shishi.git/blob - shishi.spec
- up to 0.0.22
[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 URL:            http://josefsson.org/shishi/
16 BuildRequires:  autoconf >= 2.59
17 BuildRequires:  automake >= 1:1.9
18 BuildRequires:  gettext-devel >= 0.12.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.2.5
24 BuildRequires:  libtool >= 2:1.5
25 BuildRequires:  pam-devel
26 BuildRequires:  rpmbuild(macros) >= 1.159
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
48 a 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 >= 0.8.8
72 Requires:       gtk-doc-common
73 Requires:       libgcrypt-devel >= 1.1.43
74 Requires:       libidn-devel >= 0.1.0
75 Requires:       libtasn1-devel >= 0.2.5
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(pre):  /bin/id
100 Requires(pre):  /usr/bin/getgid
101 Requires(pre):  /usr/sbin/useradd
102 Requires(pre):  /usr/sbin/groupadd
103 Requires(post,postun):  /sbin/chkconfig
104 Requires(postun):       /usr/sbin/groupdel
105 Requires(postun):       /usr/sbin/userdel
106 Requires:       %{name} = %{epoch}:%{version}-%{release}
107
108 %description shishid
109 shishid is a network daemon for issuing Kerberos 5 tickets.
110
111 %description shishid -l pl
112 shishid to sieciowy demon s³u¿±cy do wydawania biletów Kerberosa 5.
113
114 %package -n pam-pam_shishi
115 Summary:        PAM module for RFC 1510 (Kerberos V5) authentication
116 Summary(pl):    Modu³ PAM do uwierzytelniania RFC 1510 (Kerberos V5)
117 Group:          Libraries
118 Requires:       %{name} = %{epoch}:%{version}-%{release}
119 Obsoletes:      pam_shishi
120
121 %description -n pam-pam_shishi
122 PAM module for RFC 1510 (Kerberos V5) authentication.
123
124 %description -n pam-pam_shishi -l pl
125 Modu³ PAM do uwierzytelniania RFC 1510 (Kerberos V5).
126
127 %prep
128 %setup -q
129 %patch0 -p1
130 %patch1 -p1
131
132 rm -f po/stamp-po
133
134 # we don't have libtool 1.5a
135 %{__perl} -pi -e 's/AC_LIBTOOL_TAGS//' configure.ac
136 # incompatible with ksh
137 rm -f m4/libtool.m4
138
139 # doesn't build on sparc (too few B* constants) and wasn't packaged anyway
140 %{__perl} -pi -e 's/^(SUBDIRS.*) rsh-redone/$1/' extra/Makefile.am
141
142 %build
143 # blegh, lt incompatible with ksh - must rebuild
144 %{__libtoolize}
145 %{__aclocal} -I gl/m4 -I m4
146 %{__autoconf}
147 %{__autoheader}
148 %{__automake}
149 %configure \
150         --with-libgcrypt
151
152 %{__make}
153 %{__make} extra
154
155 %install
156 rm -rf $RPM_BUILD_ROOT
157 install -d $RPM_BUILD_ROOT{/%{_lib}/security,/etc/{sysconfig,rc.d/init.d}}
158
159 %{__make} install \
160         DESTDIR=$RPM_BUILD_ROOT
161
162 %{__make} -C extra install \
163         DESTDIR=$RPM_BUILD_ROOT
164
165 mv -f $RPM_BUILD_ROOT%{_libdir}/pam_shishi.so* $RPM_BUILD_ROOT/%{_lib}/security
166 rm -f $RPM_BUILD_ROOT%{_libdir}/pam_shishi.{la,a}
167
168 install %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/shishid
169 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/shishid
170
171 %find_lang %{name}
172
173 %clean
174 rm -rf $RPM_BUILD_ROOT
175
176 %post
177 /sbin/ldconfig
178 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
179
180 %postun
181 /sbin/ldconfig
182 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
183
184 %pre shishid
185 %groupadd -P %{name}-shishid -g 125 shishi
186 %useradd -P %{name}-shishid -u 125 -d /usr/share/empty -s /bin/false -c "shishi user" -g shishi shishi
187
188 %post shishid
189 /sbin/chkconfig --add shishid
190 if [ -f /var/lock/subsys/shishid ]; then
191         /etc/rc.d/init.d/shishid restart >&2
192 else
193         echo "Run \"/etc/rc.d/init.d/shishid start\" to start shishid daemon." >&2
194 fi
195
196 %preun shishid
197 if [ "$1" = "0" ]; then
198         if [ -f /var/lock/subsys/shishid ]; then
199                 /etc/rc.d/init.d/shishid stop >&2
200         fi
201         /sbin/chkconfig --del shishid
202 fi
203
204 %postun shishid
205 if [ "$1" = "0" ]; then
206         %userremove shishi
207         %groupremove shishi
208 fi
209
210 %files -f %{name}.lang
211 %defattr(644,root,root,755)
212 %doc AUTHORS ChangeLog NEWS README* THANKS
213 %attr(755,root,root) %{_bindir}/shisa
214 %attr(755,root,root) %{_bindir}/shishi
215 %attr(755,root,root) %{_libdir}/libshis*.so.*.*.*
216 %dir %{_sysconfdir}/shishi
217 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shisa.conf
218 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.conf
219 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.keys
220 %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/shishi/shishi.skel
221 %attr(700,root,root) %dir %{_localstatedir}/%{name}
222 %{_mandir}/man1/shisa.1*
223 %{_mandir}/man1/shishi.1*
224 %{_infodir}/shishi.info*
225
226 %files devel
227 %defattr(644,root,root,755)
228 %attr(755,root,root) %{_libdir}/libshis*.so
229 %{_libdir}/libshis*.la
230 %{_includedir}/shis*.h
231 %{_pkgconfigdir}/shishi.pc
232 %{_mandir}/man3/*
233
234 %files static
235 %defattr(644,root,root,755)
236 %{_libdir}/libshis*.a
237
238 %files shishid
239 %defattr(644,root,root,755)
240 %attr(755,root,root) %{_sbindir}/shishid
241 %attr(754,root,root) /etc/rc.d/init.d/shishid
242 %attr(640,root,root) %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/shishid
243 %{_mandir}/man1/shishid.1*
244
245 %files -n pam-pam_shishi
246 %defattr(644,root,root,755)
247 %attr(755,root,root) /%{_lib}/security/pam_shishi.so*
This page took 0.084192 seconds and 4 git commands to generate.