]> git.pld-linux.org Git - packages/dropbear.git/blob - dropbear.spec
8da5812ece3362cd2ee4e8c556ceffca70d9bbfe
[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_with     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}
22 %{?with_system_libtom:BuildRequires:    libtommath-devel}
23 %{?with_pam:BuildRequires:     pam-devel}
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 This is dropbear, a smallish and friendly ssh2 daemon.
29
30 It is currently usable though betaish, requiring work in certain areas
31 before use in a production environment. If you need a small sshd to
32 run on a 4 meg laptop, then sure, use it now. But test it thoroughly
33 before using it somewhere important :)
34
35 %description -l pl.UTF-8
36 To jest dropbear - mały i przyjazny demon ssh2.
37
38 Jest aktualnie używalny, choć jest w stanie beta, wymaga pracy w
39 niektórych obszarach przed użyciem w produkcyjnym środowisku. Jeśli
40 potrzebujemy małego sshd do uruchomienia na laptopie z 4MB pamięci,
41 można używać go już teraz. Ale przed używaniem do czegoś ważniejszego
42 trzeba go porządnie przetestować :)
43
44 %prep
45 %setup -q
46 %patch0 -p1
47
48 %{?with_system_libtom:rm -r libtomcrypt libtommath}
49
50 %build
51 %{__aclocal}
52 %{__autoconf}
53 %{__autoheader}
54 %configure \
55         %{?with_system_libtom:--disable-bundled-libtom} \
56         %{__enable_disable_not system_libtom bundled-libtom} \
57         %{?with_pam:--enable-pam}
58 %{__make}
59
60 %install
61 rm -rf $RPM_BUILD_ROOT
62 install -d $RPM_BUILD_ROOT%{_mandir}/man8
63 %{__make} install \
64         DESTDIR=$RPM_BUILD_ROOT
65
66 %clean
67 rm -rf $RPM_BUILD_ROOT
68
69 %files
70 %defattr(644,root,root,755)
71 %doc CHANGES README SMALL TODO
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
76 %{_mandir}/man1/dbclient.1*
77 %{_mandir}/man1/dropbearconvert.1*
78 %{_mandir}/man1/dropbearkey.1*
79 %{_mandir}/man8/dropbear.8*
This page took 0.0428809999999999 seconds and 3 git commands to generate.