-diff -Naur proftpd-1.2.8-orig/modules/mod_ls.c proftpd-1.2.8/modules/mod_ls.c
---- proftpd-1.2.8-orig/modules/mod_ls.c Mon Feb 24 19:15:17 2003
-+++ proftpd-1.2.8/modules/mod_ls.c Thu Mar 20 01:45:46 2003
-@@ -30,6 +30,10 @@
+diff -Nur proftpd-1.2.0pre1/modules/mod_ls.c proftpd-1.2.0pre1.pld/modules/mod_ls.c
+--- proftpd-1.2.0pre1/modules/mod_ls.c Sun Oct 18 04:24:41 1998
++++ proftpd-1.2.0pre1.pld/modules/mod_ls.c Wed Feb 10 17:02:17 1999
+@@ -23,7 +23,9 @@
+ */
#include "conf.h"
-
+-
+#if ((__GLIBC__ == 2) && (__GLIBC_MINOR__ >= 1))
+#include <asm/types.h>
+#endif /* GNU libc-2.1 */
-+
#ifndef GLOB_ABORTED
#define GLOB_ABORTED GLOB_ABEND
#endif
-diff -Naur proftpd-1.2.8-orig/config.h.in proftpd-1.2.8/config.h.in
---- proftpd-1.2.8-orig/config.h.in Tue Feb 25 19:56:37 2003
-+++ proftpd-1.2.8/config.h.in Thu Mar 20 01:40:47 2003
-@@ -133,7 +133,7 @@
- #undef inline
+diff -ruN proftpd-1.1.6pl2-old/config.h.in proftpd-1.1.6pl2/config.h.in
+--- proftpd-1.1.6pl2-old/config.h.in Mon Sep 7 21:15:42 1998
++++ proftpd-1.1.6pl2/config.h.in Fri Sep 18 22:35:32 1998
+@@ -69,7 +69,7 @@
+ #undef ino_t
- /* Define to `int' if <sys/types.h> doesn't define. */
--#undef mode_t
-+/* #undef mode_t */
+ /* Define to `mode_t' if <sys/types.h> doesn't define. */
+-#undef umode_t
++/* #undef umode_t */
- /* Define to `long' if <sys/types.h> doesn't define. */
- #undef off_t
+ /* Define if your system has _pw_stayopen variable (Irix specific?) */
+ #undef HAVE__PW_STAYOPEN
Summary(pt_BR): Servidor FTP profissional, com sintaxe de configuração semelhante à do apache
Summary(zh_CN): Ò×ÓÚ¹ÜÀíµÄ,°²È«µÄ FTP ·þÎñÆ÷
Name: proftpd
-Version: 1.2.8
-Release: 2
+Version: 1.2.5
+Release: 5
Epoch: 1
License: GPL
Group: Daemons
%prep
%setup -q
-#%patch0 -p1
-#%patch1 -p1
-#%patch2 -p1
-#%patch3 -p1
-#%patch4 -p1
-#%patch5 -p1
-#%patch6 -p1
-#%patch7 -p1
-#%patch8 -p1
-#%patch9 -p1
-#%patch10 -p0
-#%patch11 -p1
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p0
+%patch11 -p1
install -m644 %{SOURCE7} contrib/mod_tcpd.c
%build
RUN_DIR=%{_localstatedir} ; export RUN_DIR
%configure \
--enable-autoshadow \
- --with-modules=mod_ratio:mod_readme\
- %{?_with_ldap::mod_ldap}\
- %{?_with_quota::mod_quota}\
- %{?_with_linuxprivs::mod_linuxprivs}\
- %{?_with_mysql::mod_sql:mod_sql_mysql} \
- %{?!_without_ipv6:--enable-ipv6}\
- %{?_without_ssl:--disable-tls}\
+ --with-modules=mod_ratio:mod_readme%{?!_without_ipv6::mod_tcpd}%{?!_without_pam::mod_pam}%{?_with_ldap::mod_ldap}%{?_with_quota::mod_quota}%{?_with_linuxprivs::mod_linuxprivs}%{?_with_mysql::mod_sql:mod_sql_mysql} \
+ %{?!_without_ipv6:--enable-ipv6} \
+ %{?_without_ssl:--disable-tls} \
--enable-sendfile
-# %{?!_without_pam::auth_mod_pam}\
-# %{?!_without_ipv6::mod_tcpd}\
%{__make}
%files common
%defattr(644,root,root,755)
%doc sample-configurations/{virtual,anonymous}.conf ChangeLog README
-%doc contrib/README.modules README.PAM
-%doc README.mod_sql README.LDAP doc/*html
+%doc README.linux-* contrib/README.modules README.IPv6 README.PAM
+%doc README.TLS README.mod_sql README.LDAP doc/*html
%attr(750,root,ftp) %dir %{_sysconfdir}
%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*.conf