ftpproxy/ftpproxy.spec

Name: ftpproxy
Summary: FTP proxy server
Version: 1.2.3
Release: 2.2
License: GPL
Group: System Environment/Daemons
URL: http://www.ftpproxy.org/
Description: FTP proxy server.

CentOS 7 x86_64

The build was succesful. The following RPMs were generated:

Build Status

CentOS 6 x86_64

The build was succesful. The following RPMs were generated:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag

Summary: FTP proxy server
Name: ftpproxy
Version: 1.2.3
Release: 2.2%{?dist}
License: GPL
Group: System Environment/Daemons
URL: http://www.ftpproxy.org/

Source: http://www.ftpproxy.org/download/ftpproxy-%{version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: ctags

%description
FTP proxy server.

%prep
%setup

### FIXME: Make buildsystem use standard autotools directories (Fix upstream please)
%{__perl} -pi.orig -e '
		s|/usr/local/sbin|\$(sbindir)|g;
		s|/usr/local/man|\$(mandir)|g;
	' Makefile

%{__cat} <<EOF >ftpproxy.xinet
# default: off
# description: ftpproxy is an FTP proxy server.

service ftpproxy
{
	disable         = yes
	socket_type     = stream
	protocol        = tcp
	port            = 2121
	type		= UNLISTED
	wait            = no
	user            = ftp
	server          = %{_sbindir}/ftp.proxy
        server_args     = -b -B
}
EOF

%build
%{__make} %{?_smp_mflags}

%install
%{__rm} -rf %{buildroot}
### FIXME: Create directories. (Please fix upstream)
%{__install} -d -m0755 %{buildroot}%{_sbindir} \
			%{buildroot}%{_mandir}/man1/
%makeinstall

%{__install} -Dp -m0644 ftpproxy.xinet %{buildroot}%{_sysconfdir}/xinetd.d/ftpproxy

### Prevent dependency pollution (akanga)
%{__chmod} a-x samples/sample-ccp.rc

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc HISTORY LICENSE doc/*.txt samples/
%doc %{_mandir}/man1/ftp.proxy.1*
%config(noreplace) %{_sysconfdir}/xinetd.d/ftpproxy
%{_sbindir}/ftp.proxy

%changelog
* Sat Apr 08 2006 Dries Verachtert <dries@ulyssis.org> - 1.2.3-2.2
- Rebuild for Fedora Core 5.

* Tue Aug 17 2004 Dag Wieers <dag@wieers.com> - 1.2.3-2
- Get rid of dependency on akanga. (Jeremy A. Rosengren)

* Fri Jul 30 2004 Dag Wieers <dag@wieers.com> - 1.2.3-1
- Updated to release 1.2.3.

* Wed Dec 31 2003 Dag Wieers <dag@wieers.com> - 1.2.2-0
- Initial package. (using DAR)