2 # - enable pam, see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533525 (1-2 solvable, 3 needs code)
5 %bcond_with pam # PAM authentication support (most likely incomplete)
6 %bcond_without system_libtom # use system libtommath/libtomcrypt
8 Summary: Dropbear - a smallish ssh2 server
9 Summary(pl.UTF-8): Dropbear - mały serwer ssh2
14 Group: Applications/Networking
15 Source0: https://matt.ucc.asn.au/dropbear/releases/%{name}-%{version}.tar.bz2
16 # Source0-md5: 9ad0172731e0f16623937804643b5bd8
17 URL: https://matt.ucc.asn.au/dropbear/dropbear.html
18 BuildRequires: autoconf >= 2.59
19 BuildRequires: automake
20 %{?with_system_libtom:BuildRequires: libtomcrypt-devel >= 1.17-2}
21 %{?with_pam:BuildRequires: pam-devel}
22 BuildRequires: zlib-devel
23 %{?with_system_libtom:Requires: libtomcrypt >= 1.17-2}
24 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27 This is dropbear, a smallish and friendly ssh2 daemon.
29 It is currently usable though betaish, requiring work in certain areas
30 before use in a production environment. If you need a small sshd to
31 run on a 4 meg laptop, then sure, use it now. But test it thoroughly
32 before using it somewhere important :)
34 %description -l pl.UTF-8
35 To jest dropbear - mały i przyjazny demon ssh2.
37 Jest aktualnie używalny, choć jest w stanie beta, wymaga pracy w
38 niektórych obszarach przed użyciem w produkcyjnym środowisku. Jeśli
39 potrzebujemy małego sshd do uruchomienia na laptopie z 4MB pamięci,
40 można używać go już teraz. Ale przed używaniem do czegoś ważniejszego
41 trzeba go porządnie przetestować :)
46 %{?with_system_libtom:rm -r libtomcrypt libtommath}
53 %{__enable_disable_not system_libtom bundled-libtom} \
54 %{?with_pam:--enable-pam}
58 rm -rf $RPM_BUILD_ROOT
59 install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
61 INSTALL="install -p" \
62 DESTDIR=$RPM_BUILD_ROOT
65 rm -rf $RPM_BUILD_ROOT
68 %defattr(644,root,root,755)
69 %doc CHANGES LICENSE README SMALL TODO
70 %{_sysconfdir}/%{name}
71 %attr(755,root,root) %{_bindir}/dbclient
72 %attr(755,root,root) %{_bindir}/dropbearconvert
73 %attr(755,root,root) %{_bindir}/dropbearkey
74 %attr(755,root,root) %{_sbindir}/dropbear
75 %{_mandir}/man1/dbclient.1*
76 %{_mandir}/man1/dropbearconvert.1*
77 %{_mandir}/man1/dropbearkey.1*
78 %{_mandir}/man8/dropbear.8*