wu-ftpd-vl.spec 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269
  1. Summary: An FTP daemon provided by Washington University.
  2. Name: wu-ftpd
  3. Version: 2.6.2
  4. Release: 5vl0
  5. License: BSD
  6. Group: System Environment/Daemons
  7. URL: http://www.wu-ftpd.org/
  8. #Source: ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-%{version}.tar.gz
  9. Source: wu-ftpd-2.7.0-20020304.tar.bz2
  10. Source1: ftpd.log
  11. Source2: ftp.pamd
  12. Source3: wu-ftpd-xinetd
  13. Source4: ftpaccess
  14. Patch0: wu-ftpd-2.6.0-redhat.patch
  15. Patch5: wu-ftpd-2.6.0-owners.patch
  16. Provides: ftpserver
  17. BuildRequires: pam-devel, openssl-devel
  18. Prereq: fileutils, openssl
  19. #rawhide# Requires: xinetd, /etc/pam.d/system-auth
  20. Requires: /etc/pam.d/system-auth
  21. Buildroot: %{_tmppath}/%{name}-root
  22. %description
  23. The wu-ftpd package contains the wu-ftpd FTP (File Transfer Protocol)
  24. server daemon. The FTP protocol is a method of transferring files
  25. between machines on a network and/or over the Internet. Wu-ftpd's
  26. features include logging of transfers, logging of commands, on the fly
  27. compression and archiving, classification of users' type and location,
  28. per class limits, per directory upload permissions, restricted guest
  29. accounts, system wide and per directory messages, directory alias,
  30. cdpath, filename filter, and virtual host support.
  31. %prep
  32. %setup -q -n %{name}
  33. mkdir rhsconfig
  34. %patch0 -p1 -b .redhat
  35. %patch5 -p1 -b .owners
  36. find . -type d -name CVS |xargs rm -rf
  37. %configure --enable-quota --enable-pam --disable-rfc931 --enable-ratios \
  38. --enable-passwd --disable-dnsretry --enable-ls --enable-ipv6 \
  39. --enable-tls
  40. perl -pi -e "s,/\* #undef SHADOW_PASSWORD \*/,#define SHADOW_PASSWORD 1,g" src/config.h
  41. # Make the version what we want it to be
  42. cat >src/newvers.sh <<EOF
  43. echo 'char version[] = "Version wu-%{version}-%{release}";' >vers.c
  44. EOF
  45. chmod 0755 src/newvers.sh
  46. %build
  47. make
  48. %install
  49. rm -rf $RPM_BUILD_ROOT
  50. mkdir -p $RPM_BUILD_ROOT/etc $RPM_BUILD_ROOT%{_sbindir}
  51. make install DESTDIR=$RPM_BUILD_ROOT
  52. install -c -m755 util/xferstats $RPM_BUILD_ROOT%{_sbindir}
  53. cd rhsconfig
  54. install -c -m 600 ftpusers ftphosts ftpgroups ftpconversions $RPM_BUILD_ROOT/etc
  55. strip -R .comments $RPM_BUILD_ROOT%{_sbindir}/* || :
  56. mkdir -p $RPM_BUILD_ROOT/etc/{pam,logrotate}.d
  57. install -m 644 %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/ftpd
  58. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/etc/pam.d/ftp
  59. ln -sf in.ftpd $RPM_BUILD_ROOT/usr/sbin/wu.ftpd
  60. ln -sf in.ftpd $RPM_BUILD_ROOT/usr/sbin/in.wuftpd
  61. #rawhide# mkdir -p $RPM_BUILD_ROOT/etc/xinetd.d
  62. #rawhide# install -m644 %SOURCE3 $RPM_BUILD_ROOT/etc/xinetd.d/wu-ftpd
  63. install -c -m0600 %{SOURCE4} $RPM_BUILD_ROOT/etc
  64. %clean
  65. rm -rf $RPM_BUILD_ROOT
  66. %post
  67. if [ ! -f /var/log/xferlog ]; then
  68. touch /var/log/xferlog
  69. chmod 600 /var/log/xferlog
  70. fi
  71. cd /usr/share/ssl
  72. if [ ! -e certs/ftpd-rsa-key.pem ]; then
  73. (echo US
  74. echo .
  75. echo .
  76. echo .
  77. echo .
  78. echo .
  79. echo .) |openssl req -newkey rsa:1024 -nodes -out certs/ftpd-rsa.pem -x509 -days 365 -keyout private/ftpd-rsa-key.pem &>/dev/null
  80. fi
  81. %files
  82. %defattr(-,root,root)
  83. #rawhide# %config(noreplace) /etc/xinetd.d/wu-ftpd
  84. %doc README ERRATA CHANGES CONTRIBUTORS
  85. %doc doc/HOWTO doc/TODO doc/examples
  86. %{_mandir}/*/*.*
  87. %config /etc/ftp*
  88. %config /etc/pam.d/ftp
  89. %config /etc/logrotate.d/ftpd
  90. %defattr(0755,bin,bin)
  91. %{_sbindir}/*
  92. %{_bindir}/*
  93. %changelog
  94. * Thu Mar 28 2002 Yoshihiro Ota <ota@j.email.ne.jp> 2.6.2-5vl0
  95. - catch up to rawhide version 2.6.2-5
  96. - commented xinitrd related with #rawhide#
  97. * Sun Jan 06 2002 Toru Sagami <sagami@vinelinux.org> 2.6.0-14vl3
  98. - build for current develop trees (VineSeedPlus)
  99. - Conflicts: proftpd
  100. * Wed Nov 28 2001 Toru Sagami <sagami@vinelinux.org> 2.6.0-14vl2
  101. - remake wu-ftpd-2.6.1-sec.patch for 2.6.0 for security fix
  102. * Tue Jun 27 2000 Jun Nishii <jun@vinelinux.org>
  103. - rebuild on Vine Linux 2.0
  104. * Fri Jun 23 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  105. - fix up security fix
  106. * Fri Jun 23 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  107. - revert 7.0's PAM and xinetd changes for 6.2 updates
  108. * Fri Jun 23 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  109. - fix security bug w/ SITE EXEC
  110. * Thu Jun 1 2000 Nalin Dahyabhai <nalin@redhat.com>
  111. - Modify PAM configuration to use system-auth
  112. - Miscellaneous FHS fixes
  113. * Mon May 22 2000 Trond Eivind Glomsrƒi <teg@redhat.com>
  114. - Add /etc/xinetd.d/wu-ftpd
  115. * Sat May 20 2000 Bill Nottingham <notting@redhat.com>
  116. - use normal getpwnam/getpwuid for standard password files (for NIS, etc.)
  117. * Sun Mar 26 2000 Florian La Roche <Florian.LaRoche@redhat.com>
  118. - make binaries readable
  119. * Mon Mar 13 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  120. - recompile
  121. * Fri Mar 10 2000 Bernhard Rosenkraenzer <bero@redhat.com>
  122. - fix bug in configure script
  123. * Sun Mar 5 2000 Bernhard RosenkrçÏzer <bero@redhat.com>
  124. - remove the conflict between PAM and alternative passwd files and enable PAM
  125. * Sun Mar 5 2000 Bernhard RosenkrçÏzer <bero@redhat.com>
  126. - fix up behavior for missing entries in shadow password files when the
  127. non-shadow password file contains all info.
  128. This fixes the MD5 problem.
  129. - remove the nlstbug patch; it's now included in the bero patch.
  130. * Mon Feb 28 2000 Bernhard RosenkrçÏzer <bero@redhat.com>
  131. - fix up NLST behavior on broken symlinks
  132. * Sat Feb 12 2000 Bernhard RosenkrçÏzer <bero@redhat.com>
  133. - Merge some features from BeroFTPD people requested:
  134. - alternate passwd/shadow files for virtual hosts
  135. - ratios
  136. - switch to using autoconfed build - it's much better on linux.
  137. build makes some faulty assumptions based on its glibc 2.0 and
  138. kernel 2.0.x knowledge.
  139. * Fri Feb 5 2000 Bernhard RosenkrçÏzer <bero@redhat.com>
  140. - fix a bug (the port-allow ftpaccess option was broken)
  141. - handle compressed man pages
  142. * Thu Oct 21 1999 Cristian Gafton <gafton@redhat.com>
  143. - version 2.6.0, but no autoconf yet
  144. * Tue Sep 21 1999 Cristian Gafton <gafton@redhat.com>
  145. - patch for allowing logins by users that do not have a local account on the
  146. machine, but are autheticated by PAM from a different database.
  147. * Mon Sep 06 1999 Cristian Gafton <gafton@redhat.com>
  148. - fix ident patch
  149. * Tue Aug 31 1999 Michael K. Johnson <johnsonm@redhat.com>
  150. - fixed roff subtlety
  151. * Wed Aug 25 1999 <jbj@redhat.com>
  152. - fix ftpd.c mapped_path buffer overflow.
  153. * Mon Aug 23 1999 <jbj@redhat.com>
  154. - apply fix for login bug (#1599).
  155. * Sat Aug 21 1999 <jbj@redhat.com>
  156. - include all quick-fixes from ftp.vr.net (#3482,#3866).
  157. * Sat Jun 12 1999 <alan@redhat.com>
  158. - Added the new -I option to toggle the use of ident
  159. * Mon Jun 7 1999 <jbj@redhat.com>
  160. - update to 2.5.0 (pathname patch no longer needed).
  161. - use "/bin/ps -f -p #" to get correct ftpwho info (#2455).
  162. - revert glob patch in order to fix "cd ~user" (#2798) and "ls foo*" (#2944).
  163. * Mon Apr 19 1999 <ewt@redhat.com>
  164. - fixed pathname overflow patch
  165. * Sat Apr 17 1999 <ewt@redhat.com>
  166. - use libc glob function
  167. - patched up some overflows - ick.
  168. * Fri Apr 16 1999 Cristian Gafton <gafton@redhat.com>
  169. - version 2.4.2-vr17. Thank GOD! - important patches are already in. Joy an
  170. happyness will reign the world now.
  171. * Sun Mar 21 1999 Cristian Gafton <gafton@redhat.com>
  172. - auto rebuild in the new build environment (release 6)
  173. * Mon Feb 15 1999 Cristian Gafton <gafton@redhat.com>
  174. - update to 2.4.2-beta18-vr14 from ftp.vr.net
  175. * Mon Aug 3 1998 Jeff Johnson <jbj@redhat.com>
  176. - fix busted symlinks.
  177. * Thu Jul 16 1998 Jeff Johnson <jbj@redhat.com>
  178. - update to 2.4.2-beta18
  179. * Tue Jun 09 1998 Prospector System <bugs@redhat.com>
  180. - translations modified for de
  181. * Tue Jun 9 1998 Jeff Johnson <jbj@redhat.com>
  182. - updated to 2.4.2-beta17 (fix problems #679/#680)
  183. * Thu May 07 1998 Prospector System <bugs@redhat.com>
  184. - translations modified for de, fr, tr
  185. * Sun May 03 1998 Cristian Gafton <gafton@redhat.com>
  186. - fixed the ps patch for the new ps convention (use ps www instead of ps -www)
  187. * Sun Apr 12 1998 Cristian Gafton <gafton@redhat.com>
  188. - added %clean section
  189. * Sat Apr 11 1998 Cristian Gafton <gafton@redhat.com>
  190. - updated to 2.4.2b16
  191. - BuildRoot
  192. * Fri Dec 12 1997 Cristian Gafton <gafton@redhat.com>
  193. - added a patch to prevent a possible PORT command exploit
  194. - cleaned up the .linux patch to get a clean compile on glibc
  195. * Tue Oct 21 1997 Erik Troan <ewt@redhat.com>
  196. - fixed copyright field
  197. * Mon Oct 13 1997 Michael K. Johnson <johnsonm@redhat.com>
  198. - Updated to new pam conventions.
  199. * Mon Sep 22 1997 Erik Troan <ewt@redhat.com>
  200. - Updated to beta 15, which fixes a number of security holes. Release 1
  201. if for RH 4.2, release 2 is glibc based.
  202. * Mon Mar 03 1997 Michael K. Johnson <johnsonm@redhat.com>
  203. - Moved from pam.conf to pam.d
  204. * Mon Mar 03 1997 Erik Troan <ewt@redhat.com>
  205. - xferstats should look for perl in /usr/bin, not /usr/local/bin
  206. - provides the "ftpserver" virtual package
  207. * Thu Feb 13 1997 Michael K. Johnson <johnsonm@redhat.com>
  208. - Updated to beta-12, and created a new PAM patch from scratch, since
  209. the old one made massive changes to ftpd and caused some problems.