File jftpgw.spec of Package jftpgw
Summary: FTP proxy/gateway
Name: jftpgw
Version: 0.13.5
Release: 1
License: GPL
Group: Productivity/Networking/FTP
Packager: Leo Eraly <leo@unstable.be>
URL: http://www.mcknight.de/jftpgw/index.html
Source: http://www.mcknight.de/jftpgw/jftpgw-%{version}.tar.bz2
Source1: rc.jftpgw
Source2: sysconfig.jftpgw
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
%description
jftpgw is an FTP proxy/gateway that uses the FTP protocol
(unlike those FTP proxies that fetch an FTP file but work as an http proxy).
You can use it to make servers behind a firewall/NAT server (masquerading server)
accessible or to allow users behind such solutions to transfer files
to and from the outside of the LAN.
%prep
%setup
%build
%configure
%{__make}
%install
%{__make} install DESTDIR="%{buildroot}"
%{__mkdir_p} %{buildroot}%{_initrddir}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/xinetd.d/
%{__mkdir_p} %{buildroot}%{_sysconfdir}/sysconfig/
%{__install} -m 744 support/jftpgw.xinetd $RPM_BUILD_ROOT/etc/xinetd.d/jftpgw
%{__install} -m 744 $RPM_SOURCE_DIR/rc.jftpgw $RPM_BUILD_ROOT/etc/init.d/jftpgw
%{__install} -m 744 $RPM_SOURCE_DIR/sysconfig.jftpgw $RPM_BUILD_ROOT/etc/sysconfig/jftpgw
%{__ln_s} ../../etc/init.d/jftpgw $RPM_BUILD_ROOT/usr/sbin/rcjftpgw
%preun
if [ $1 -eq 0 ]; then
/etc/init.d/jftpgw stop &>/dev/null || :
/sbin/chkconfig --del jftpgw
fi
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-, root, root, 0755)
%doc ChangeLog COPYING README TODO
%config(noreplace) %{_sysconfdir}/jftpgw.conf
%config(noreplace) %{_sysconfdir}/sysconfig/jftpgw
%config(noreplace) %{_sysconfdir}/xinetd.d/jftpgw
%config %{_sysconfdir}/jftpgw.conf.sample
%{_sbindir}/jftpgw
%{_sbindir}/rcjftpgw
%{_mandir}/man1/jftpgw.1.gz
%{_initrddir}/jftpgw
%changelog
* Mon Apr 14 2008 Leo Eraly <leo@unstable.be> - 0.13.5-1
- Initial package