vsftpd-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324
  1. %{!?tcp_wrappers:%define tcp_wrappers 1}
  2. Summary: vsftpd - Very Secure Ftp Daemon
  3. Name: vsftpd
  4. Version: 2.0.7
  5. Release: 1%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Daemons
  8. URL: http://vsftpd.beasts.org/
  9. Source: ftp://vsftpd.beasts.org/users/cevans/%{name}-%{version}.tar.gz
  10. Source1: vsftpd.xinetd
  11. Source2: vsftpd.pam
  12. Source3: vsftpd.ftpusers
  13. Source4: vsftpd.user_list
  14. Source5: vsftpd.init
  15. Source6: vsftpd_conf_migrate.sh
  16. Patch1: vsftpd-2.0.1-vine-20041227.patch
  17. Patch2: vsftpd-1.0.1-missingok.patch
  18. Patch3: vsftpd-2.0.1-tcp_wrappers.patch
  19. Patch4: vsftpd-1.5.1-libs.patch
  20. Patch5: vsftpd-2.0.2-signal.patch
  21. Patch6: vsftpd-1.2.1-conffile.patch
  22. Patch7: vsftpd-2.0.1-build_ssl.patch
  23. Patch8: vsftpd-2.0.1-server_args.patch
  24. Patch9: vsftpd-2.0.1-dir.patch
  25. Patch11: vsftpd-1.2.1-nonrootconf.patch
  26. Patch13: vsftpd-2.0.3-background.patch
  27. Patch14: vsftpd-2.0.3-daemonize_fds.patch
  28. Patch17: vsftpd-2.0.3-pam_hostname.patch
  29. Patch18: vsftpd-close-std-fds.patch
  30. Patch19: vsftpd-2.0.5-default_ipv6.patch
  31. Patch20: vsftpd-2.0.5-add_ipv6_option.patch
  32. Patch21: vsftpd-2.0.5-correct_comments.patch
  33. Patch22: vsftpd-2.0.5-man.patch
  34. Patch23: vsftpd-2.0.4-filter.patch
  35. Patch26: vsftpd-2.0.5-bind_denied.patch
  36. Patch29: vsftpd-2.0.5-pasv_dot.patch
  37. Patch30: vsftpd-2.0.5-pam_end.patch
  38. Patch31: vsftpd-2.0.5-write_race.patch
  39. Patch32: vsftpd-2.0.5-fix_unique.patch
  40. Patch34: vsftpd-2.0.5-underscore_uname.patch
  41. Patch35: vsftpd-2.0.5-uname_size.patch
  42. Patch36: vsftpd-2.0.5-greedy.patch
  43. Patch37: vsftpd-2.0.6-userlist_log.patch
  44. Patch38: vsftpd-2.0.6-listen.patch
  45. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  46. %if %{tcp_wrappers}
  47. BuildPrereq: tcp_wrappers
  48. %endif
  49. BuildRequires: pam-devel
  50. Requires: pam
  51. BuildRequires: libcap-devel
  52. Requires: libcap
  53. BuildRequires: openssl-devel
  54. Requires: openssl
  55. Requires: logrotate
  56. Provides: ftpserver
  57. %description
  58. vsftpd is a Very Secure FTP daemon. It was written completely from
  59. scratch.
  60. %prep
  61. %setup -q -n %{name}-%{version}
  62. %patch1 -p1 -b .vine
  63. %patch2 -p1 -b .mok
  64. %if %{tcp_wrappers}
  65. %patch3 -p1 -b .tcp_wrappers
  66. %endif
  67. %patch4 -p1 -b .libs
  68. cp %{SOURCE1} .
  69. %patch5 -p1 -b .signal
  70. %patch6 -p1
  71. %patch7 -p1 -b .build_ssl
  72. %patch8 -p1 -b .server_args
  73. %patch9 -p1 -b .dir
  74. %patch11 -p1 -b .nonrootconf
  75. %patch13 -p1 -b .background
  76. %patch14 -p1 -b .fds
  77. %patch17 -p1 -b .old-pam
  78. %patch18 -p1 -b .close-fds
  79. %patch19 -p1 -b .ipv6
  80. %patch20 -p1 -b .ipv6opt
  81. %patch21 -p1 -b .comments
  82. %patch22 -p1 -b .manp
  83. %patch23 -p1 -b .filter
  84. %patch26 -p1 -b .bind_denied
  85. %patch29 -p1 -b .pasv_dot
  86. %patch30 -p1 -b .pam_end
  87. %patch31 -p1 -b .write_race
  88. %patch32 -p1 -b .fix_unique
  89. %patch34 -p1 -b .underscore_uname
  90. %patch35 -p1 -b .uname_size
  91. %patch36 -p1 -b .greedy
  92. %patch37 -p1 -b .userlist_log
  93. %patch38 -p1 -b .listen
  94. %build
  95. make CFLAGS="$RPM_OPT_FLAGS -fpie -pipe" \
  96. LINK="-pie -lssl" \
  97. %{?_smp_mflags}
  98. %install
  99. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  100. mkdir -p $RPM_BUILD_ROOT/usr/sbin
  101. mkdir -p $RPM_BUILD_ROOT/etc
  102. mkdir -p $RPM_BUILD_ROOT/etc/{vsftpd,pam.d,logrotate.d,rc.d/init.d}
  103. mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man{5,8}
  104. install -m 755 vsftpd $RPM_BUILD_ROOT/usr/sbin/vsftpd
  105. install -m 600 vsftpd.conf $RPM_BUILD_ROOT/etc/vsftpd/vsftpd.conf
  106. install -m 644 vsftpd.conf.5 $RPM_BUILD_ROOT/%{_mandir}/man5/
  107. install -m 644 vsftpd.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
  108. install -m 644 RedHat/vsftpd.log $RPM_BUILD_ROOT/etc/logrotate.d/vsftpd.log
  109. install -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/pam.d/vsftpd
  110. install -m 600 %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/ftpusers
  111. install -m 600 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/user_list
  112. install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/vsftpd
  113. install -m 744 %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/vsftpd/vsftpd_conf_migrate.sh
  114. mkdir -p $RPM_BUILD_ROOT/var/ftp/pub
  115. mkdir -p $RPM_BUILD_ROOT/%{_datadir}/empty
  116. %clean
  117. [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
  118. %post
  119. /sbin/chkconfig --add vsftpd
  120. #/usr/sbin/usermod -d /var/ftp ftp >/dev/null 2>&1 || :
  121. %preun
  122. if [ $1 = 0 ]; then
  123. /sbin/service vsftpd stop > /dev/null 2>&1
  124. /sbin/chkconfig --del vsftpd
  125. fi
  126. %files
  127. %defattr(-,root,root)
  128. /usr/sbin/vsftpd
  129. /etc/rc.d/init.d/vsftpd
  130. %dir /etc/vsftpd
  131. %config(noreplace) /etc/vsftpd/*
  132. %config(noreplace) /etc/pam.d/vsftpd
  133. %config(noreplace) /etc/logrotate.d/vsftpd.log
  134. %doc FAQ INSTALL BUGS AUDIT Changelog LICENSE README README.security REWARD SPEED TODO BENCHMARKS COPYING SECURITY/ EXAMPLE/ TUNING SIZE vsftpd.xinetd
  135. %{_mandir}/man5/vsftpd.conf.*
  136. %{_mandir}/man8/vsftpd.*
  137. /var/ftp
  138. %{_datadir}/empty
  139. %changelog
  140. * Mon Oct 6 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.7-1
  141. - new upstream release
  142. - update patches from FedoraCore
  143. - add Source6 from FedoraCore
  144. * Sun May 20 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.5-0vl1
  145. - new upstream release
  146. - build with openssl-0.9.8e
  147. * Fri Sep 9 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.3-0vl1
  148. - new upstream release
  149. * Thu Mar 3 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.2-0vl1
  150. - new upstream release
  151. - disable patch5
  152. * Mon Nov 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl2
  153. - rename patch1 and disable anonymous FTP
  154. * Mon Oct 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl1
  155. - build for VineSeed
  156. - remove lines about s390, pie and patch4
  157. - add %%{_datadir}/empty to %%files
  158. - rename patch1 and add "use_localtime=YES"
  159. - remove Prereq: /sbin/chkconfig, /sbin/service, /usr/sbin/usermod
  160. because they must be installed
  161. - remove Obsoletes: anonftp
  162. - remove BuildRequires: libcap-devel and Requires: libcap
  163. * Fri Oct 01 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-5
  164. - vsftpd under xinetd reads its config file (#134314)
  165. * Thu Sep 16 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-4
  166. - spec file changed, ftp dir change commented (#130119)
  167. - added doc files (#113056)
  168. * Wed Sep 08 2004 Jan Kratochvil <project-vsftpd@jankratochvil.net>
  169. - update for 2.0.1 for SSL
  170. * Fri Aug 27 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-2
  171. - vsftpd.conf file changed, default IPv6 support
  172. * Fri Aug 20 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-1
  173. - tcp_wrapper patch updated, signal patch updated
  174. - upgrade to 2.0.1, fixes several bugs, RHEL and FC builds
  175. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  176. - rebuilt
  177. * Wed May 19 2004 Bill Nottingham <notting@redhat.com> 1.2.1-6
  178. - fix the logrotate config (#116253)
  179. * Mon May 3 2004 Bill Nottingham <notting@redhat.com> 1.2.1-5
  180. - fix all references to vsftpd.conf to be /etc/vsftpd/vsftpd.conf,
  181. including in the binary (#121199, #104075)
  182. * Thu Mar 25 2004 Bill Nottingham <notting@redhat.com> 1.2.1-4
  183. - don't call malloc()/free() in signal handlers (#119136,
  184. <olivier.baudron@m4x.org>)
  185. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  186. - rebuilt
  187. * Mon Nov 24 2003 Karsten Hopp <karsten@redhat.de> 1.2.1-1
  188. - update to 1.2.1, which fixes #89765 and lot of other issues
  189. - remove manpage patch, it isn't required anymore
  190. - clean up init script
  191. - don't use script to find libs to link with (lib64 issues)
  192. * Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  193. - allow compiling without tcp_wrappers support
  194. * Mon Sep 15 2003 Bill Nottingham <notting@redhat.com> 1.2.0-4
  195. - fix errant newline (#104443)
  196. * Fri Aug 8 2003 Bill Nottingham <notting@redhat.com> 1.2.0-3
  197. - tweak man page (#84584, #72798)
  198. - buildprereqs for pie (#99336)
  199. - free ride through the build system to fix (#101582)
  200. * Thu Jun 26 2003 Bill Nottingham <notting@redhat.com> 1.2.0-2
  201. - update to 1.2.0
  202. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  203. - rebuilt
  204. * Mon Apr 28 2003 Bill Nottingham <notting@redhat.com> 1.1.3-9
  205. - fix tcp_wrappers usage (#89765, <dale@riyescott.com>)
  206. * Fri Feb 28 2003 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-8
  207. - enable use of tcp_wrappers
  208. * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 1.1.3-7
  209. - provide /var/ftp & /var/ftp/pub. obsolete anonftp.
  210. * Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 1.1.3-6
  211. - clean up comments in init script (#83962)
  212. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  213. - rebuilt
  214. * Mon Dec 30 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  215. - change to /etc/rc.d/init.d for better compatibility
  216. * Mon Dec 16 2002 Bill Nottingham <notting@redhat.com> 1.1.3-3
  217. - fix initscript perms
  218. - fix typo in initscript (#76587)
  219. * Fri Dec 13 2002 Bill Nottingham <notting@redhat.com> 1.1.3-2
  220. - update to 1.1.3
  221. - run standalone, don't run by default
  222. - fix reqs
  223. * Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 1.1.0-3
  224. - fix use with xinetd-ipv6; add flags=IPv4 in xinetd file (#78410)
  225. * Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-9
  226. - remove absolute paths from PAM configuration so that the right modules get
  227. used for whichever arch we're built for on multilib systems
  228. * Thu Aug 15 2002 Elliot Lee <sopwith@redhat.com> 1.0.1-8
  229. - -D_FILE_OFFSET_BITS=64
  230. - smp make
  231. - remove forced optflags=-g for lack of supporting documentation
  232. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  233. - automated rebuild
  234. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  235. - automated rebuild
  236. * Wed Apr 10 2002 Bill Nottingham <notting@redhat.com> 1.0.1-5
  237. - don't spit out ugly errors if anonftp isn't installed (#62987)
  238. - fix horribly broken userlist setup (#62321)
  239. * Thu Feb 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.1-4
  240. - s/Copyright/License/
  241. - add "missingok" to the logrotate script, so we don't get errors
  242. when nothing has happened
  243. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  244. - automated rebuild
  245. * Wed Nov 28 2001 Bill Nottingham <notting@redhat.com>
  246. - initial packaging for RHL, munge included specfile
  247. * Thu Mar 22 2001 Seth Vidal <skvidal@phy.duke.edu>
  248. - updated to 0.0.15
  249. - added entry for vsftpd.8 man page
  250. - added entry for vsftpd.log logrotate file
  251. - added TUNING file to docs list
  252. * Wed Mar 7 2001 Seth Vidal <skvidal@phy.duke.edu>
  253. - Updated to 0.0.14
  254. - made %%files entry for man page
  255. * Wed Feb 21 2001 Seth Vidal <skvidal@phy.duke.edu>
  256. - Updated to 0.0.13
  257. * Mon Feb 12 2001 Seth Vidal <skvidal@phy.duke.edu>
  258. - Updated to 0.0.12
  259. * Wed Feb 7 2001 Seth Vidal <skvidal@phy.duke.edu>
  260. - updated to 0.0.11
  261. * Fri Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
  262. - Update to 0.0.10
  263. * Fri Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
  264. - First RPM packaging
  265. - Stolen items from wu-ftpd's pam setup
  266. - Separated rh 7 and rh 6.X's packages
  267. - Built for Rh6