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