Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

77 lines (63 sloc) 1.841 kB
Summary: Allegro FTP daemon
Name: aftpd
Version: __VERSION__
Release: %{release}
License: LLGPL
Group: System Environment/Daemons
#Prereq: chkconfig
Requires: logrotate
URL: http://opensource.franz.com/aftpd/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Provides: ftpserver
# Don't attempt to make the debuginfo package
%define debug_package %{nil}
%description
Allegro FTPd is an FTP server for Linux written in Allegro
Common Lisp. Because it is written in Common Lisp, one class of
security issues, related to buffer overflows, has been eliminated.
%prep
%setup -q
%build
make
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/etc/init.d
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
mkdir -p $RPM_BUILD_ROOT/usr/sbin
mkdir -p $RPM_BUILD_ROOT%{_libdir}
mkdir -p $RPM_BUILD_ROOT/usr/share/doc/aftpd-__VERSION__
make ROOT=$RPM_BUILD_ROOT install
# Need to re-make the aftpd symbolic link here so that rpm knows about it.
rm $RPM_BUILD_ROOT/%{_sbindir}/aftpd
ln -s %{_libdir}/aftpd/aftpd $RPM_BUILD_ROOT/%{_sbindir}/aftpd
mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
cp aftpd.logrotate $RPM_BUILD_ROOT/etc/logrotate.d/aftpd
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
/etc/init.d/aftpd
%{_libdir}/aftpd
/usr/sbin/aftpd
%config(noreplace) /etc/aftpd.cl
%config(noreplace) /etc/logrotate.d/aftpd
%doc BUGS ChangeLog readme.txt binary-license.txt
%post
/sbin/chkconfig --add aftpd
%preun
if [ $1 = 0 ]; then
/sbin/service aftpd stop > /dev/null 2>&1
/sbin/chkconfig --del aftpd
fi
exit 0
%postun
if [ "$1" != 0 ]; then
/sbin/service aftpd condrestart 2>&1 > /dev/null
fi
exit 0
%changelog
* Thu Mar 15 2012 Kevin Layer <layer@franz.com>
- Update Makefile and .spec file; use 9.0.beta
* Tue Feb 21 2006 Ahmon Dancy <dancy@dancy> - 1.0.28-1
- Initial build.
Jump to Line
Something went wrong with that request. Please try again.