]> git.pld-linux.org Git - SPECS.git/blob - sftp.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / sftp.spec
1 Summary:        sftp: a ftp-replacement over an rsh/ssh tunnel
2 Summary(pl.UTF-8):      Zamiennik ftp działający poprzez tunel rsh/ssh
3 Name:           sftp
4 Version:        0.9.9
5 Release:        9
6 License:        GPL
7 Group:          Applications/Networking
8 Source0:        http://www.xbill.org/sftp/download/old/%{name}-%{version}.tar.gz
9 # Source0-md5:  9880c86ed928997da069bdb108bf4ad9
10 Patch0:         %{name}-DESTDIR.patch
11 Patch1:         %{name}-open.patch
12 Patch2:         format-security.patch
13 BuildRequires:  autoconf
14 BuildRequires:  automake
15 BuildRequires:  readline-devel >= 4.1
16 BuildRequires:  ncurses-devel >= 5.2
17 URL:            http://www.xbill.org/sftp/
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %description
21 sftp is an ftp replacement that runs over an ssh tunnel. Two programs
22 are included - sftp and sftpserv. When sftp is run and a host is
23 connected to (either by running 'sftp remotehost' or 'open remotehost'
24 from the sftp prompt), an ssh connection is initiated to the remote
25 host, and sftpserv is run. From within sftp, all of the normal FTP
26 commands are present: open, close, get, put, pwd, cd, ls, lcd, quit,
27 etc. There's also exec, which runs a program on the remote end.
28
29 %description -l pl.UTF-8
30 sftp jest zamiennikiem ftp działającym poprzez tunel ssh. Dołączone są
31 dwa programy - sftp i sftpserv.
32
33 %prep
34 %setup -q
35 %patch0 -p1
36 %patch1 -p1
37 %patch2 -p1
38
39 %build
40 %{__aclocal}
41 %{__autoconf}
42 %configure
43 %{__make}
44
45 %install
46 rm -rf $RPM_BUILD_ROOT
47
48 %{__make} install \
49         DESTDIR=$RPM_BUILD_ROOT
50
51 mv $RPM_BUILD_ROOT%{_bindir}/sftp \
52         $RPM_BUILD_ROOT%{_bindir}/sftpc
53 mv $RPM_BUILD_ROOT%{_mandir}/man1/sftp.1 \
54         $RPM_BUILD_ROOT%{_mandir}/man1/sftpc.1
55
56 %clean
57 rm -rf $RPM_BUILD_ROOT
58
59 %files
60 %defattr(644,root,root,755)
61 %doc README Changelog
62 %attr(755,root,root) %{_bindir}/*
63 %{_mandir}/man?/*
This page took 0.244142 seconds and 3 git commands to generate.