vsftpd-vl.spec 10.0 KB

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