Search
j0ke.net Open Build Service
>
Projects
>
server:ftp
>
proftpd
> Changes
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
Changes of Revision 4
[-]
[+]
Added
proftpd.spec
@@ -0,0 +1,151 @@ +# +# spec file for package proftpd (Version 1.3.1) +# +# 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.1 +Release: 5 +# +License: GPL +Group: Productivity/Networking/Ftp/Servers +# +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: krb5-devel libacl-devel libattr-devel mysql-devel openldap2-devel openssl-devel pam-devel postgresql-devel tcpd-devel +# +Url: http://www.proftpd.org/ +Source: ftp://ftp.proftpd.org/distrib/source/proftpd-%{version}.tar.bz2 +Source1: %{name}.init +# +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: mysql module for proftpd +%description sql-postgresql +mysql module for proftpd + + +%package devel +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +# +Summary: Development files for proftpd +%description devel +Development files for proftpd + + +%prep +%setup + +%build +PROFTPD_SHARED_MODS="$(for spec_mod in mod_load $(find contrib -name mod_\*.c); do echo "$(basename ${spec_mod%%.c})"; done | tr '\n' ':' | sed -e 's|:$||')" +%configure \ + --bindir=%{_sbindir} \ + --libexecdir=%{_libdir}/%{name} \ + --sysconfdir=%{_sysconfdir}/%{name} \ + --localstatedir=%{_var}/run/ \ + --enable-sendfile \ + --enable-ipv6 \ + --enable-ctrls \ + --enable-facl \ + --enable-dso \ + --enable-devel=coredump,nodaemon,nofork \ + --with-includes="%{_includedir}/mysql:%{_includedir}/pgsql" \ + --with-shared="${PROFTPD_SHARED_MODS}" +%{__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} +# +%{__rm} -rv %{buildroot}%{_libdir}/%{name}/*.la + +%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_ban.so +%{_libdir}/%{name}/mod_ctrls_admin.so +%{_libdir}/%{name}/mod_ifsession.so +%{_libdir}/%{name}/mod_ldap.so +%{_libdir}/%{name}/mod_load.so +%{_libdir}/%{name}/mod_quotatab.so +%{_libdir}/%{name}/mod_quotatab_file.so +%{_libdir}/%{name}/mod_quotatab_ldap.so +%{_libdir}/%{name}/mod_quotatab_sql.so +%{_libdir}/%{name}/mod_quotatab_radius.so +%{_libdir}/%{name}/mod_radius.so +%{_libdir}/%{name}/mod_ratio.so +%{_libdir}/%{name}/mod_readme.so +%{_libdir}/%{name}/mod_rewrite.so +%{_libdir}/%{name}/mod_site_misc.so +%{_libdir}/%{name}/mod_sql.so +%{_libdir}/%{name}/mod_tls.so +%{_libdir}/%{name}/mod_wrap.so +%{_libdir}/%{name}/mod_wrap2.so +%{_libdir}/%{name}/mod_wrap2_file.so +%{_libdir}/%{name}/mod_wrap2_sql.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.so + +%files sql-postgresql +%defattr(-,root,root,-) +%{_libdir}/%{name}/mod_sql_postgres.so + +%files devel +%defattr(-,root,root,-) +%{_includedir}/proftpd + +%changelog