]> git.pld-linux.org Git - packages/dropbear.git/blob - dropbear.spec
with system libtom needs tomcrypt enabled with tommath
[packages/dropbear.git] / dropbear.spec
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:
5 %bcond_with     pam             # PAM authentication support
6 %bcond_without  system_libtom   # use system libtommath/libtomcrypt
7
8 Summary:        Dropbear - a smallish ssh2 server
9 Summary(pl.UTF-8):      Dropbear - mały serwer ssh2
10 Name:           dropbear
11 Version:        2014.66
12 Release:        1
13 License:        MIT
14 Group:          Applications/Networking
15 Source0:        https://matt.ucc.asn.au/dropbear/releases/%{name}-%{version}.tar.bz2
16 # Source0-md5:  c21a01111aa5015db038c6efdb85717d
17 Patch0:         system-libtom.patch
18 URL:            https://matt.ucc.asn.au/dropbear/dropbear.html
19 BuildRequires:  autoconf >= 2.50
20 BuildRequires:  automake
21 %{?with_system_libtom:BuildRequires:    libtomcrypt-devel >= 1.17-2}
22 %{?with_pam:BuildRequires:     pam-devel}
23 BuildRequires:  zlib-devel
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
34 %description -l pl.UTF-8
35 To jest dropbear - mały i przyjazny demon ssh2.
36
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ć :)
42
43 %prep
44 %setup -q
45 %patch0 -p1
46
47 %{?with_system_libtom:rm -r libtomcrypt libtommath}
48
49 %build
50 %{__aclocal}
51 %{__autoconf}
52 %{__autoheader}
53 %configure \
54         %{?with_system_libtom:--disable-bundled-libtom} \
55         %{__enable_disable_not system_libtom bundled-libtom} \
56         %{?with_pam:--enable-pam}
57 %{__make}
58
59 %install
60 rm -rf $RPM_BUILD_ROOT
61 install -d $RPM_BUILD_ROOT%{_mandir}/man8
62 %{__make} install \
63         DESTDIR=$RPM_BUILD_ROOT
64
65 %clean
66 rm -rf $RPM_BUILD_ROOT
67
68 %files
69 %defattr(644,root,root,755)
70 %doc CHANGES README SMALL TODO
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*
This page took 0.047136 seconds and 3 git commands to generate.