]>
Commit | Line | Data |
---|---|---|
075a17e6 ER |
1 | # TODO |
2 | # - enable pam, see also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=533525 (1-2 solvable, 3 needs code) | |
3 | # | |
4 | # Conditional build: | |
7f727505 | 5 | %bcond_with pam # PAM authentication support (most likely incomplete) |
c43c706b | 6 | %bcond_without system_libtom # use system libtommath/libtomcrypt |
075a17e6 | 7 | |
6be0e7e8 | 8 | Summary: Dropbear - a smallish ssh2 server |
d9e1d748 | 9 | Summary(pl.UTF-8): Dropbear - mały serwer ssh2 |
bc80c1ce | 10 | Name: dropbear |
7680d141 | 11 | Version: 2018.76 |
59b1eb62 | 12 | Release: 2 |
7f727505 | 13 | License: MIT and BSD |
bc80c1ce | 14 | Group: Applications/Networking |
06bf3309 | 15 | Source0: https://matt.ucc.asn.au/dropbear/releases/%{name}-%{version}.tar.bz2 |
7680d141 | 16 | # Source0-md5: c3912f7fcdcc57c99937e4a79480d2c2 |
06bf3309 | 17 | URL: https://matt.ucc.asn.au/dropbear/dropbear.html |
7f727505 | 18 | BuildRequires: autoconf >= 2.59 |
6be0e7e8 | 19 | BuildRequires: automake |
c43c706b | 20 | %{?with_system_libtom:BuildRequires: libtomcrypt-devel >= 1.17-2} |
06bf3309 | 21 | %{?with_pam:BuildRequires: pam-devel} |
bc80c1ce | 22 | BuildRequires: zlib-devel |
a47cfb2b | 23 | %{?with_system_libtom:Requires: libtomcrypt >= 1.17-2} |
bc80c1ce | 24 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
25 | ||
26 | %description | |
27 | This is dropbear, a smallish and friendly ssh2 daemon. | |
28 | ||
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 :) | |
33 | ||
3046c2b2 JR |
34 | %description -l pl.UTF-8 |
35 | To jest dropbear - mały i przyjazny demon ssh2. | |
6be0e7e8 | 36 | |
3046c2b2 JR |
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ć :) | |
6be0e7e8 | 42 | |
bc80c1ce | 43 | %prep |
44 | %setup -q | |
a3183add ER |
45 | |
46 | %{?with_system_libtom:rm -r libtomcrypt libtommath} | |
bc80c1ce | 47 | |
48 | %build | |
bc80c1ce | 49 | %{__aclocal} |
50 | %{__autoconf} | |
51 | %{__autoheader} | |
7680d141 | 52 | export OLDCFLAGS=set # hack for configure to respect our optflags |
075a17e6 | 53 | %configure \ |
a3183add | 54 | %{__enable_disable_not system_libtom bundled-libtom} \ |
075a17e6 | 55 | %{?with_pam:--enable-pam} |
bc80c1ce | 56 | %{__make} |
57 | ||
58 | %install | |
59 | rm -rf $RPM_BUILD_ROOT | |
bff92f98 | 60 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/%{name} |
197af5d2 | 61 | %{__make} install \ |
56a0b347 | 62 | INSTALL="install -p" \ |
197af5d2 AG |
63 | DESTDIR=$RPM_BUILD_ROOT |
64 | ||
bc80c1ce | 65 | %clean |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %files | |
69 | %defattr(644,root,root,755) | |
7680d141 | 70 | %doc CHANGES LICENSE README SMALL |
bff92f98 | 71 | %{_sysconfdir}/%{name} |
075a17e6 ER |
72 | %attr(755,root,root) %{_bindir}/dbclient |
73 | %attr(755,root,root) %{_bindir}/dropbearconvert | |
74 | %attr(755,root,root) %{_bindir}/dropbearkey | |
75 | %attr(755,root,root) %{_sbindir}/dropbear | |
06bf3309 ER |
76 | %{_mandir}/man1/dbclient.1* |
77 | %{_mandir}/man1/dropbearconvert.1* | |
78 | %{_mandir}/man1/dropbearkey.1* | |
075a17e6 | 79 | %{_mandir}/man8/dropbear.8* |