Search
j0ke.net Open Build Service
>
Projects
>
home:netmax
>
proftpd
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 6
[-]
[+]
Added
proftpd.spec
@@ -0,0 +1,161 @@ +# +# spec file for package proftpd (Version 1.3.0a) +# +# Copyright (c) 2006 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: proftpd +Version: 1.3.0a +Release: 5 +License: GPL +Group: Productivity/Networking/Ftp/Servers +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libacl-devel libattr-devel mysql-devel openldap2-devel openssl-devel pam-devel postgresql-devel tcpd-devel glibc-devel libgcc gcc gcc-c++ +%if %{sles_version} != 9 +BuildRequires: krb5-devel +%endif +Url: http://www.proftpd.org/ +Packager: Carsten Schoene <cs@linux-administrator.com> +Vendor: linux-administrator.com +Source: ftp://ftp.proftpd.org/distrib/source/proftpd-1.3.0a.tar.bz2 +Source1: %{name}.init +Patch: proftpd-1.3.0_modules_install.patch +Patch1: proftpd-1.3.0_ipv6.patch +Summary: Highly configurable GPL-licensed FTP server software + +%description +Highly configurable GPL-licensed FTP server software + + +%package sql-mysql +Group: Productivity/Networking/Ftp/Servers +Requires: %{name} = %{version} +Summary: mysql module for proftpd + +%description sql-mysql +mysql module for proftpd + + +%package sql-postgresql +Group: Productivity/Networking/Ftp/Servers +Requires: %{name} = %{version} +Summary: postgresql module for proftpd + +%description sql-postgresql +postgresql module for proftpd + + +%prep +%setup +%patch +%patch1 + +%build +%configure \ + --bindir=%{_sbindir} \ + --libexecdir=%{_libdir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --localstatedir=%{_var}/run/ \ + --enable-sendfile \ + --enable-ipv6 \ + --enable-ctrls \ + --enable-facl \ + --enable-dso \ + --with-includes="%{_includedir}/mysql:%{_includedir}/pgsql" \ + --with-shared="mod_ctrls_admin:mod_ifsession:mod_ldap:mod_load:mod_quotatab:mod_quotatab_file:mod_quotatab_ldap:mod_quotatab_sql:mod_radius:mod_ratio:mod_readme:mod_rewrite:mod_site_misc:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_tls:mod_wrap" +%{__make} + +%install +%makeinstall INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn` +%{__rm} -fv %{buildroot}%{_libdir}/%{name}/*.a +%{__install} -D -m 0644 contrib/dist/rpm/xinetd %{buildroot}%{_sysconfdir}/xinetd.d/%{name} +%{__install} -D -m 0644 contrib/dist/rpm/proftpd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name} +%{__install} -D -m 0755 %{S:1} %{buildroot}%{_sysconfdir}/init.d/%{name} +%{__ln_s} -f %{_sysconfdir}/init.d/%{name} %{buildroot}%{_sbindir}/rc%{name} + +%clean +%{__rm} -rf %{buildroot} + +%files +%defattr(-,root,root,-) +%dir %attr(0750,root,root) %{_sysconfdir}/%{name}/ +%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/proftpd.conf +%{_sysconfdir}/xinetd.d/%{name} +%{_sysconfdir}/logrotate.d/%{name} +%{_sysconfdir}/init.d/%{name} +%{_var}/run/%{name} +%{_sbindir}/rc%{name} +%{_sbindir}/ftpcount +%{_sbindir}/ftpdctl +%{_sbindir}/ftpshut +%{_sbindir}/ftptop +%{_sbindir}/ftpwho +%{_sbindir}/proftpd +%{_sbindir}/in.proftpd +%{_mandir}/man1/ftpcount.1* +%{_mandir}/man1/ftptop.1* +%{_mandir}/man1/ftpwho.1* +%{_mandir}/man5/xferlog.5* +%{_mandir}/man8/ftpdctl.8* +%{_mandir}/man8/ftpshut.8* +%{_mandir}/man8/proftpd.8* +%{_libdir}/%{name}/mod_ctrls_admin.la +%{_libdir}/%{name}/mod_ctrls_admin.so +%{_libdir}/%{name}/mod_ifsession.la +%{_libdir}/%{name}/mod_ifsession.so +%{_libdir}/%{name}/mod_ldap.la +%{_libdir}/%{name}/mod_ldap.so +%{_libdir}/%{name}/mod_load.la +%{_libdir}/%{name}/mod_load.so +%{_libdir}/%{name}/mod_quotatab.la +%{_libdir}/%{name}/mod_quotatab.so +%{_libdir}/%{name}/mod_quotatab_file.la +%{_libdir}/%{name}/mod_quotatab_file.so +%{_libdir}/%{name}/mod_quotatab_ldap.la +%{_libdir}/%{name}/mod_quotatab_ldap.so +%{_libdir}/%{name}/mod_quotatab_sql.la +%{_libdir}/%{name}/mod_quotatab_sql.so +%{_libdir}/%{name}/mod_radius.la +%{_libdir}/%{name}/mod_radius.so +%{_libdir}/%{name}/mod_ratio.la +%{_libdir}/%{name}/mod_ratio.so +%{_libdir}/%{name}/mod_readme.la +%{_libdir}/%{name}/mod_readme.so +%{_libdir}/%{name}/mod_rewrite.la +%{_libdir}/%{name}/mod_rewrite.so +%{_libdir}/%{name}/mod_site_misc.la +%{_libdir}/%{name}/mod_site_misc.so +%{_libdir}/%{name}/mod_sql.la +%{_libdir}/%{name}/mod_sql.so +%{_libdir}/%{name}/mod_tls.la +%{_libdir}/%{name}/mod_tls.so +%{_libdir}/%{name}/mod_wrap.la +%{_libdir}/%{name}/mod_wrap.so +%doc COPYING CREDITS ChangeLog INSTALL NEWS README* RELEASE_NOTES +%doc contrib/README* contrib/xferstats.holger-preiss* contrib/ftpasswd contrib/ftpquota +%doc doc/ sample-configurations/ + +%files sql-mysql +%defattr(-,root,root,-) +%{_libdir}/%{name}/mod_sql_mysql.la +%{_libdir}/%{name}/mod_sql_mysql.so + +%files sql-postgresql +%defattr(-,root,root,-) +%{_libdir}/%{name}/mod_sql_postgres.la +%{_libdir}/%{name}/mod_sql_postgres.so + +%changelog -n proftpd +* Mon Jan 22 2007 - cs@linux-administrator.com +- change buildrequirements, to fix build on sles9 + +* Wed Nov 29 2006 - mrueckert@suse.de +- update to 1.3.0a: + fixes a remote code execution. CVE-2006-5815 + (http://bugs.proftpd.org/show_bug.cgi?id=2858)