01a24d4
Summary: Flexible, stable and highly-configurable FTP server
cvsextras 59a0b03
Name: proftpd
8098028
Version: 1.3.0
369976b
Release: 2%{?dist}
cvsextras 20229ab
License: GPL
01a24d4
Group: System Environment/Daemons
cvsextras 59a0b03
URL: http://www.proftpd.org/
e2e081e
Source0: ftp://ftp.proftpd.org/distrib/source/proftpd-%{version}.tar.bz2
cvsextras 59a0b03
Source1: proftpd.conf
cvsextras 59a0b03
Source2: proftpd.init
cvsextras 59a0b03
Source3: proftpd-xinetd
cvsextras 59a0b03
Source4: proftpd.logrotate
cvsextras 59a0b03
Source5: welcome.msg
2b04447
Source6: proftpd.pam
369976b
Patch0: proftpd-1.3.0-rpath.patch
01a24d4
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
e2e081e
Requires: pam >= 0.59
e2e081e
Requires(post): /sbin/chkconfig
e2e081e
Requires(preun): /sbin/service, /sbin/chkconfig
e2e081e
Requires(postun): /sbin/service
e2e081e
BuildRequires: pam-devel, ncurses-devel, pkgconfig
e2e081e
BuildRequires: openssl-devel, krb5-devel, libacl-devel
e2e081e
BuildRequires: openldap-devel, mysql-devel, zlib-devel, postgresql-devel
cvsextras 59a0b03
Provides: ftpserver
cvsextras 59a0b03
cvsextras 59a0b03
%description
cvsextras 59a0b03
ProFTPD is an enhanced FTP server with a focus toward simplicity, security,
cvsextras 59a0b03
and ease of configuration. It features a very Apache-like configuration
cvsextras 59a0b03
syntax, and a highly customizable server infrastructure, including support for
cvsextras 59a0b03
multiple 'virtual' FTP servers, anonymous FTP, and permission-based directory
cvsextras 59a0b03
visibility.
cvsextras 59a0b03
cvsextras 59a0b03
This package defaults to the standalone behaviour of ProFTPD, but all the
cvsextras 59a0b03
needed scripts to have it run by xinetd instead are included.
cvsextras 59a0b03
e2e081e
e2e081e
%package ldap
e2e081e
Summary: Module to add LDAP support to the ProFTPD FTP server
e2e081e
Group: System Environment/Daemons
e2e081e
Requires: %{name} = %{version}-%{release}
e2e081e
e2e081e
%description ldap
e2e081e
Module to add LDAP support to the ProFTPD FTP server.
e2e081e
e2e081e
e2e081e
%package mysql
e2e081e
Summary: Module to add MySQL support to the ProFTPD FTP server
e2e081e
Group: System Environment/Daemons
e2e081e
Requires: %{name} = %{version}-%{release}
e2e081e
e2e081e
%description mysql
e2e081e
Module to add MySQL support to the ProFTPD FTP server.
e2e081e
e2e081e
e2e081e
%package postgresql
e2e081e
Summary: Module to add PostgreSQL support to the ProFTPD FTP server
e2e081e
Group: System Environment/Daemons
e2e081e
Requires: %{name} = %{version}-%{release}
e2e081e
e2e081e
%description postgresql
e2e081e
Module to add PostgreSQL support to the ProFTPD FTP server.
01a24d4
cvsextras 59a0b03
cvsextras 59a0b03
%prep
e2e081e
%setup
369976b
%patch0 -p1 -b .rpath
01a24d4
cvsextras 59a0b03
cvsextras 59a0b03
%build
69af803
# Disable stripping in order to get useful debuginfo packages
69af803
%{__perl} -pi -e 's|"-s"|""|g' configure
69af803
cvsextras 59a0b03
%configure \
e2e081e
    --libexecdir="%{_libexecdir}/proftpd" \
e2e081e
    --localstatedir="%{_var}/run" \
e2e081e
    --enable-ctrls \
e2e081e
    --enable-facl \
e2e081e
    --enable-dso \
e2e081e
    --enable-ipv6 \
e2e081e
    --with-libraries="%{_libdir}/mysql" \
e2e081e
    --with-includes="%{_includedir}/mysql" \
e2e081e
    --with-modules=mod_readme:mod_auth_pam:mod_tls \
e2e081e
    --with-shared=mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres
e2e081e
01a24d4
%{__make} %{?_smp_mflags}
01a24d4
cvsextras 59a0b03
cvsextras 59a0b03
%install
01a24d4
%{__rm} -rf %{buildroot}
e2e081e
%{__make} install DESTDIR=%{buildroot} \
e2e081e
    rundir="%{_var}/run/proftpd" \
01a24d4
    INSTALL_USER=`id -un` \
01a24d4
    INSTALL_GROUP=`id -gn`
e2e081e
%{__install} -D -p -m 0640 %{SOURCE1} \
8098028
    %{buildroot}%{_sysconfdir}/proftpd.conf
e2e081e
%{__install} -D -p -m 0755 %{SOURCE2} \
8098028
    %{buildroot}%{_sysconfdir}/rc.d/init.d/proftpd
e2e081e
%{__install} -D -p -m 0640 %{SOURCE3} \
8098028
    %{buildroot}%{_sysconfdir}/xinetd.d/xproftpd
e2e081e
%{__install} -D -p -m 0644 %{SOURCE4} \
8098028
    %{buildroot}%{_sysconfdir}/logrotate.d/proftpd
e2e081e
%{__install} -D -p -m 0644 %{SOURCE5} %{buildroot}/var/ftp/welcome.msg
e2e081e
%{__install} -D -p -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/pam.d/proftpd
01a24d4
%{__mkdir_p} %{buildroot}/var/ftp/uploads
01a24d4
%{__mkdir_p} %{buildroot}/var/ftp/pub
01a24d4
%{__mkdir_p} %{buildroot}/var/log/proftpd
cvsextras 59a0b03
touch %{buildroot}%{_sysconfdir}/ftpusers
cvsextras 59a0b03
01a24d4
01a24d4
%clean
01a24d4
%{__rm} -rf %{buildroot}
01a24d4
01a24d4
cvsextras 59a0b03
%post
e2e081e
if [ $1 -eq 1 ]; then
01a24d4
    /sbin/chkconfig --add proftpd
01a24d4
    IFS=":"; cat /etc/passwd | \
01a24d4
    while { read username nu nu gid nu nu nu nu; }; do \
01a24d4
        if [ $gid -lt 100 -a "$username" != "ftp" ]; then
01a24d4
            echo $username >> %{_sysconfdir}/ftpusers
01a24d4
        fi
01a24d4
    done
cvsextras 59a0b03
fi
cvsextras 59a0b03
cvsextras 59a0b03
%preun
e2e081e
if [ $1 -eq 0 ]; then
2b04447
    /sbin/service proftpd stop &>/dev/null || :
01a24d4
    /sbin/chkconfig --del proftpd
2b04447
    /sbin/service xinetd reload &>/dev/null || :
e2e081e
    if [ -d %{_var}/run/proftpd ]; then
e2e081e
        rm -rf %{_var}/run/proftpd/*
01a24d4
    fi
cvsextras 59a0b03
fi
cvsextras 59a0b03
cvsextras 59a0b03
%postun
cvsextras 59a0b03
if [ $1 -ge 1 ]; then
2b04447
    /sbin/service proftpd condrestart &>/dev/null || :
cvsextras 59a0b03
fi
cvsextras 59a0b03
cvsextras 59a0b03
cvsextras 59a0b03
%files
01a24d4
%defattr(-, root, root, 0755)
01a24d4
%doc COPYING CREDITS ChangeLog NEWS README*
01a24d4
%doc doc/* sample-configurations/
01a24d4
%dir %{_localstatedir}/run/proftpd/
cvsextras 59a0b03
%config(noreplace) %{_sysconfdir}/proftpd.conf
01a24d4
%config(noreplace) %{_sysconfdir}/xinetd.d/xproftpd
cvsextras 59a0b03
%config %{_sysconfdir}/ftpusers
369976b
%config(noreplace) %{_sysconfdir}/pam.d/proftpd
369976b
%config(noreplace) %{_sysconfdir}/logrotate.d/proftpd
cvsextras 59a0b03
%{_sysconfdir}/rc.d/init.d/proftpd
cvsextras 59a0b03
%{_mandir}/*/*
cvsextras 59a0b03
%{_bindir}/*
e2e081e
%dir %{_libexecdir}/proftpd/
e2e081e
%{_libexecdir}/proftpd/mod_sql.so
e2e081e
%exclude %{_libexecdir}/proftpd/*.a
e2e081e
%exclude %{_libexecdir}/proftpd/*.la
cvsextras 59a0b03
%{_sbindir}/*
01a24d4
%dir /var/ftp/
01a24d4
%attr(331, ftp, ftp) %dir /var/ftp/uploads/
01a24d4
%dir /var/ftp/pub/
cvsextras 59a0b03
%config(noreplace) /var/ftp/welcome.msg
01a24d4
%attr(750, root, root) %dir /var/log/proftpd/
01a24d4
e2e081e
%files ldap
e2e081e
%defattr(-, root, root, 0755)
e2e081e
%dir %{_libexecdir}/proftpd/
e2e081e
%{_libexecdir}/proftpd/mod_ldap.so
e2e081e
e2e081e
%files mysql
e2e081e
%defattr(-, root, root, 0755)
e2e081e
%dir %{_libexecdir}/proftpd/
e2e081e
%{_libexecdir}/proftpd/mod_sql_mysql.so
e2e081e
e2e081e
%files postgresql
e2e081e
%defattr(-, root, root, 0755)
e2e081e
%dir %{_libexecdir}/proftpd/
e2e081e
%{_libexecdir}/proftpd/mod_sql_postgres.so
e2e081e
cvsextras 59a0b03
cvsextras 59a0b03
%changelog
369976b
* Fri Apr 28 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-2
369976b
- Mark pam.d and logrotate.d config files as noreplace.
369976b
- Include patch to remove -rpath to DESTDIR/usr/sbin/ in the proftpd binary
369976b
  when DSO is enabled (#190122).
369976b
e2e081e
* Fri Apr 21 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-1
e2e081e
- Update to 1.3.0 final.
e2e081e
- Remove no longer needed PostgreSQL and OpenSSL detection workarounds.
e2e081e
- Remove explicit conflicts on wu-ftpd, anonftp and vsftpd to let people
e2e081e
  install more than one ftp daemon (what for? hmm...) (#189023).
e2e081e
- Enable LDAP, MySQL and PostgreSQL as DSOs by default, and stuff them in
e2e081e
  new sub-packages. This won't introduce any regression since they weren't
e2e081e
  enabled by default.
e2e081e
- Remove useless explicit requirements.
e2e081e
- Rearrange scriplets requirements.
e2e081e
- Enable ctrls (controls via ftpdctl) and facl (POSIX ACLs).
e2e081e
- Using --disable-static makes the build fail, so exclude .a files in %%files.
e2e081e
- Silence harmless IPv6 failure message at startup when IPv6 isn't available.
e2e081e
0d048a5
* Tue Mar  7 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-0.2.rc4
0d048a5
- Update to 1.3.0rc4 (bugfix release).
0d048a5
c844f73
* Mon Mar  6 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-0.2.rc3
c844f73
- FC5 rebuild.
c844f73
8098028
* Thu Feb  9 2006 Matthias Saou <http://freshrpms.net/> 1.3.0-0.1.rc3
8098028
- Update to 1.3.0rc3, which builds with the latest openssl.
8098028
7a29a56
* Thu Nov 17 2005 Matthias Saou <http://freshrpms.net/> 1.2.10-7
8098028
- Rebuild against new openssl library... not.
7a29a56
562037e
* Wed Jul 13 2005 Matthias Saou <http://freshrpms.net/> 1.2.10-6
2b04447
- The provided pam.d file no longer works, use our own based on the one from
2b04447
  the vsftpd package (#163026).
2b04447
- Rename the pam.d file we use from 'ftp' to 'proftpd'.
2b04447
- Update deprecated AuthPAMAuthoritative in the config file (see README.PAM).
2b04447
69af803
* Tue May 10 2005 Matthias Saou <http://freshrpms.net/> 1.2.10-4
69af803
- Disable stripping in order to get useful debuginfo packages.
69af803
69af803
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net> 1.2.10-3
5b2a912
- rebuilt
5b2a912
01a24d4
* Tue Nov 16 2004 Matthias Saou <http://freshrpms.net/> 1.2.10-2
01a24d4
- Bump release to provide Extras upgrade path.
01a24d4
01a24d4
* Wed Sep 22 2004 Matthias Saou <http://freshrpms.net/> 1.2.10-1
01a24d4
- Updated to release 1.2.10.
01a24d4
01a24d4
* Tue Jun 22 2004 Matthias Saou <http://freshrpms.net/> 1.2.9-8
01a24d4
- Added ncurses-devel build requires to fix the ftptop utility.
01a24d4
01a24d4
* Fri Feb 26 2004 Magnus-swe <Magnus-swe@telia.com> 1.2.9-7
01a24d4
- Fixed the scoreboard and pidfile issues.
01a24d4
01a24d4
* Fri Jan  9 2004 Matthias Saou <http://freshrpms.net/> 1.2.9-6
01a24d4
- Pass /var/run/proftpd as localstatedir to configure to fix pid and
01a24d4
  scoreboard file problems.
01a24d4
01a24d4
* Wed Dec 10 2003 Matthias Saou <http://freshrpms.net/> 1.2.9-4
01a24d4
- Fixed the MySQL include path, thanks to Jim Richardson.
01a24d4
- Renamed the postgres conditional build to postgresql.
01a24d4
01a24d4
* Tue Nov 11 2003 Matthias Saou <http://freshrpms.net/> 1.2.9-3
01a24d4
- Renamed the xinetd service to xproftpd to avoid conflict.
01a24d4
- Only HUP the standalone proftpd through logrotate if it's running.
01a24d4
01a24d4
* Fri Nov  7 2003 Matthias Saou <http://freshrpms.net/> 1.2.9-2
01a24d4
- Rebuild for Fedora Core 1.
01a24d4
- Modified the init script to make it i18n aware.
01a24d4
01a24d4
* Fri Oct 31 2003 Matthias Saou <http://freshrpms.net/> 1.2.9-1
01a24d4
- Update to 1.2.9.
01a24d4
01a24d4
* Wed Sep 24 2003 Matthias Saou <http://freshrpms.net/>
01a24d4
- Update to 1.2.8p to fix secutiry vulnerability.
01a24d4
- Fix the TLS build option at last, enable it by default.
01a24d4
01a24d4
* Mon Aug  4 2003 Matthias Saou <http://freshrpms.net/>
01a24d4
- Minor fixes in included README files.
01a24d4
01a24d4
* Mon Mar 31 2003 Matthias Saou <http://freshrpms.net/>
01a24d4
- Rebuilt for Red Hat Linux 9.
01a24d4
01a24d4
* Thu Mar 13 2003 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.8.
cvsextras 59a0b03
- Remove the renamed linuxprivs module.
cvsextras 59a0b03
- Added TLS module build option.
cvsextras 59a0b03
01a24d4
* Fri Dec 13 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Fix change for ScoreboardFile in the default conf, thanks to Sven Hoexter.
cvsextras 59a0b03
01a24d4
* Mon Dec  9 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.7.
cvsextras 59a0b03
01a24d4
* Thu Sep 26 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Rebuilt for Red Hat Linux 8.0.
cvsextras 59a0b03
01a24d4
* Tue Sep 17 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.6.
cvsextras 59a0b03
- Fixed typo in the config for "AllowForeignAddress" thanks to Michel Kraus.
cvsextras 59a0b03
- Removed obsolete user install patch.
cvsextras 59a0b03
- Added "modular" ldap, mysql and postgresql support.
cvsextras 59a0b03
01a24d4
* Mon Jun 10 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.5.
cvsextras 59a0b03
- Changed the welcome.msg to config so that it doesn't get replaced.
cvsextras 59a0b03
01a24d4
* Fri May  3 2002 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Rebuilt against Red Hat Linux 7.3.
cvsextras 59a0b03
- Added the %%{?_smp_mflags} expansion.
cvsextras 59a0b03
01a24d4
* Tue Oct 23 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Changed the default config file : Where the pid file is stored, addedd
cvsextras 59a0b03
  an upload authorization in anon server, and separate anon logfiles.
cvsextras 59a0b03
- Updated welcome.msg to something nicer.
cvsextras 59a0b03
01a24d4
* Fri Oct 19 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.4, since 1.2.3 had a nasty umask bug.
cvsextras 59a0b03
01a24d4
* Sat Aug 18 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.2 final.
cvsextras 59a0b03
- Changed the default config file a lot.
cvsextras 59a0b03
01a24d4
* Wed Apr 25 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.2rc2.
cvsextras 59a0b03
01a24d4
* Mon Apr  1 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Update to 1.2.2rc1.
cvsextras 59a0b03
01a24d4
* Tue Mar 20 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Added a DenyFilter to prevent a recently discovered DOS attack.
cvsextras 59a0b03
  This is only useful for fresh installs since the config file is not
cvsextras 59a0b03
  overwritten.
cvsextras 59a0b03
01a24d4
* Fri Mar  2 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Upgraded to 1.2.1.
cvsextras 59a0b03
- New init script (added condrestart).
cvsextras 59a0b03
01a24d4
* Tue Feb 27 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Upgraded to 1.2.0 final.
cvsextras 59a0b03
01a24d4
* Tue Feb  6 2001 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Upgraded to 1.2.0rc3 (at last a new version!)
cvsextras 59a0b03
- Modified the spec file to support transparent upgrades
cvsextras 59a0b03
01a24d4
* Wed Nov  8 2000 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
- Upgraded to the latest CVS to fix the "no PORT command" bug
cvsextras 59a0b03
- Fixed the ftpuser creation script
cvsextras 59a0b03
- Modified the default config file to easily change to an anonymous
cvsextras 59a0b03
  server
cvsextras 59a0b03
01a24d4
* Sun Oct 15 2000 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
  [proftpd-1.2.0rc2-2]
cvsextras 59a0b03
- Updated the spec file and build process for RedHat 7.0
cvsextras 59a0b03
- Added xinetd support
cvsextras 59a0b03
- Added logrotate.d support
cvsextras 59a0b03
01a24d4
* Fri Jul 28 2000 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
  [proftpd-1.2.0rc2-1]
cvsextras 59a0b03
- Upgraded to 1.2.0rc2
cvsextras 59a0b03
cvsextras 59a0b03
- Upgraded to 1.2.0rc1
01a24d4
* Sat Jul 22 2000 Matthias Saou <http://freshrpms.net/>
cvsextras 59a0b03
  [proftpd-1.2.0rc1-1]
cvsextras 59a0b03
- Upgraded to 1.2.0rc1
cvsextras 59a0b03
- Re-did the whole spec file (it's hopefully cleaner now)
cvsextras 59a0b03
- Made a patch to be able to build the RPM as an other user than root
cvsextras 59a0b03
- Added default pam support (but without /etc/shells check)
cvsextras 59a0b03
- Rewrote the rc.d script (mostly exit levels and ftpshut stuff)
cvsextras 59a0b03
- Modified the default configuration file to not display a version number
cvsextras 59a0b03
- Changed the package to standalone in one single RPM easily changeable
cvsextras 59a0b03
  to inetd (for not-so-newbie users)
cvsextras 59a0b03
- Fixed the ftpusers generating shell script (missing "nu"s for me...)
cvsextras 59a0b03
- Removed mod_ratio (usually used with databases modules anyway)
cvsextras 59a0b03
- Removed the prefix (relocations a rarely used on non-X packages)
cvsextras 59a0b03
- Gzipped the man pages
cvsextras 59a0b03
cvsextras 59a0b03
* Thu Oct 03 1999 O.Elliyasa <osman@Cable.EU.org>
cvsextras 59a0b03
- Multi package creation.
cvsextras 59a0b03
  Created core, standalone, inetd (&doc) package creations.
cvsextras 59a0b03
  Added startup script for init.d
cvsextras 59a0b03
  Need to make the "standalone & inetd" packages being created as "noarch"
cvsextras 59a0b03
- Added URL.
cvsextras 59a0b03
- Added prefix to make the package relocatable.
cvsextras 59a0b03
cvsextras 59a0b03
* Wed Sep 08 1999 O.Elliyasa <osman@Cable.EU.org>
cvsextras 59a0b03
- Corrected inetd.conf line addition/change logic.
cvsextras 59a0b03
cvsextras 59a0b03
* Sat Jul 24 1999 MacGyver <macgyver@tos.net>
cvsextras 59a0b03
- Initial import of spec.
cvsextras 59a0b03