Search
j0ke.net Open Build Service
>
Projects
>
server:ftp
>
pure-ftpd
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 12
[-]
[+]
Added
pure-ftpd.spec
@@ -0,0 +1,319 @@ +# +# spec file for package pure-ftpd (Version 1.0.21) +# +# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild + + +Name: pure-ftpd +BuildRequires: mysql-devel openldap2-devel pam-devel postgresql-devel +Version: 1.0.21 +Release: 130 +Url: http://www.pureftpd.org +Source: ftp://ftp.pureftpd.org/pub/%{name}/releases/%{name}-%version.tar.bz2 +Source1: %{name}.init +Source2: %{name}.pamd +Source3: %{name}.xinetd +Source4: %{name}.xml +Source5: %{name}.firewall +Patch: %{name}-1.0.20_config.patch +Patch1: %{name}-1.0.20_doc.patch +Patch2: %{name}-1.0.20_virtualhosts.patch +Patch4: %{name}-1.0.20_config_minuid.patch +Patch5: %{name}-1.0.20_ftpwho_path.patch +Patch6: pure-ftpd-1.0.21-ldap_schema.patch +Group: Productivity/Networking/Ftp/Servers +License: BSD 3-Clause +Provides: ftp-server pureftpd +PreReq: %insserv_prereq +BuildRoot: %{_tmppath}/%{name}-%{version}-build +Summary: A Lightweight, Fast, and Secure FTP Server +PreReq: coreutils + +%description +Pure-FTPd is a fast, production-quality, and standard-conforming FTP +server, based-on Troll-FTPd. Unlike other popular FTP servers, it has +no known security flaws, is trivial to set up, and is especially +designed for modern Linux kernels (setfsuid and sendfile capabilities) +. Features include: PAM support, IPv6, chroot()ed home directories, +virtual domains, built-in LS, anti-warez system, bandwidth throttling, +FXP, bounded ports for passive downloads, upload and download ratios, +Apache log files, and more. + + + +%prep +%setup -q +%patch +%patch1 +%patch2 +%patch4 +%patch5 +%patch6 + +%build +CFLAGS="%{optflags} -DLDAP_DEPRECATED -fstack-protector" +%configure \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --with-ldap \ + --with-paranoidmsg \ + --with-altlog \ + --with-virtualhosts \ + --with-ftpwho \ + --with-mysql \ + --with-nonalnum \ + --with-pgsql \ + --with-cookie \ + --with-throttling \ + --with-ratios \ + --with-uploadscript \ + --with-diraliases \ + --with-pam \ + --with-puredb \ + --with-sysquotas \ + --with-quotas \ + --with-inetd \ + --with-tls \ + --with-boring \ + --with-largefile %_target_cpu-suse-linux +%{__make} +cat configuration-file/pure-config.pl |grep -v "^print" | grep -v "^exec" > configuration-file/pure-config-args +echo "print join(\" \", @flg);" >> configuration-file/pure-config-args + +%install +%makeinstall +%{__install} -dD -m 0755 \ + %{buildroot}%{_sysconfdir}/{init.d,%{name},%{name}/vhosts,pam.d,xinetd.d,openldap/schema} +%{__install} -m 0755 \ + configuration-file/pure-config.pl \ + configuration-file/pure-config-args \ + %{buildroot}%{_sbindir} +%{__install} -m 0644 configuration-file/pure-ftpd.conf \ + %{buildroot}%{_sysconfdir}/%{name} +%{__install} -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name} +ln -sf /etc/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} +%{__install} -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/pam.d/pure-ftpd +%{__install} -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/xinetd.d/pure-ftpd +%{__install} -m 0644 pureftpd.schema %{buildroot}%{_sysconfdir}/openldap/schema/ +%{__install} -d %{buildroot}%{_datadir}/omc/svcinfo.d/ +%{__install} -m 0644 %{S:4} %{buildroot}%{_datadir}/omc/svcinfo.d/ +%{__install} -d %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/ +%{__install} -m 644 %{S:5} %{buildroot}%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%name + +%clean +%{__rm} -rf "%{buildroot}" + +%preun +%stop_on_removal %{name} + +%post +if [ -f etc/pure-ftpd.conf ]; then + mv etc/pure-ftpd.conf etc/pure-ftpd/pure-ftpd.conf +fi + +%postun +%insserv_cleanup +%restart_on_update %{name} + +%files +%defattr(-, root, root) +%{_datadir}/omc/svcinfo.d/%name.xml +%doc AUTHORS CONTACT COPYING NEWS THANKS README README.Contrib +%doc README.Configuration-File HISTORY README.Netfilter README.Virtual-Users +%doc README.LDAP pureftpd-ldap.conf README.MySQL README.PGSQL README.TLS +%{_mandir}/man8/* +%{_bindir}/* +%{_sbindir}/* +%dir %{_sysconfdir}/openldap +%dir %{_sysconfdir}/openldap/schema +%dir %{_sysconfdir}/%{name} +%dir %{_sysconfdir}/%{name}/vhosts +%config %{_sysconfdir}/openldap/schema/pureftpd.schema +%config %{_sysconfdir}/init.d/pure-ftpd +%config %{_sysconfdir}/pam.d/pure-ftpd +%config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf +%config(noreplace) %{_sysconfdir}/xinetd.d/pure-ftpd +%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/%name + +%changelog +* Tue Apr 01 2008 mkoenig@suse.de +- remove dir /usr/share/omc/svcinfo.d as it is provided now + by filesystem +* Thu Mar 20 2008 hvogel@suse.de +- Fix ldap schema [bnc:368864] +- add Short-Description to init script +* Tue Mar 27 2007 mskibbe@suse.de +- change path to firewall script (#247352) +* Fri Mar 02 2007 mskibbe@suse.de +- change path to firewall script (#247352) +* Wed Feb 28 2007 mskibbe@suse.de +- pure-ftpd - Support for FATE #300687: Ports for SuSEfirewall + added via packages (#246931) +* Thu Jan 11 2007 mskibbe@suse.de +- change path to xml service document (fate #301713) +* Wed Dec 06 2006 mskibbe@suse.de +- add service xml document (fate #301713 ) +* Wed Sep 06 2006 mskibbe@suse.de +- fix bug Bug 203798 - Restarting the ftp server using the + "rcpure-ftpd stop/start" doesn't stop/kill the existing + client-server instances +* Mon Sep 04 2006 kukuk@suse.de +- Add pam_loginuid.so to session management +* Thu Aug 31 2006 mskibbe@suse.de +- update to version 1.0.21 which + o includes patch pure-ftpd-1.0.20-abort-transfer.patch + o Rendezvous has been renamed Bonjour + o The old PAM sample has been removed + o -F option added to pure-pw + o MAX_USER_LENGTH has been bumped to 127 due to popular demand + o pam/* can now be used if security/* doesn't exist + o simplify() simplifies paths ending by /. and /.. + o Experimental support for RFC2640 (UTF-8 filename encoding) + o The LDAP schema has been changed: FTPStatus should be a boolean + o OPTS MLST has been implemented + o SITE UTIME has been implemented + o TCP_CORK is on by default again. A new configure switch, + --without-cork, can disable it + o Correctly format %%c and %% in fakesprintf() + o The connection socket is now created with the Nagle algorithm + disabled. It was the trick to dramatically improve performance + when transfering a lot of small files + o Use CLIENT_MULTI_STATEMENTS while connecting to a MySQL server +* Mon Aug 21 2006 kukuk@suse.de +- Reorder auth section of PAM config file to make sure all modules + will always be evaluated. +* Mon Apr 10 2006 mrueckert@suse.de +- added pure-ftpd-1.0.20_config_minuid.patch: + * configuration-file/pure-ftpd.conf.in: our ftp user has uid 40. + if you want to map virtual users to this uid they would be + blocked from login. +- added pure-ftpd-1.0.20_ftpwho_path.patch: + * src/ftpwho-update.h: PAGE_SIZE is a function on + glibc-2.4/kernel-2.6.16 on ppc64. use PATH_MAX for the filename + member of the FTPWhoEntry_ struct