vsftpd-vl.spec 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342
  1. %{!?tcp_wrappers:%define tcp_wrappers 1}
  2. Summary: vsftpd - Very Secure Ftp Daemon
  3. Name: vsftpd
  4. Version: 3.0.2
  5. Release: 2%{?_dist_release}
  6. License: GPL
  7. Group: System Environment/Daemons
  8. URL: https://security.appspot.com/vsftpd.html
  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 08 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.3-2
  132. - rebuilt with new toolchain
  133. - changed URL
  134. * Sat Mar 30 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 3.0.2-1
  135. - new upstream release
  136. - synced Fedora rawhide sources
  137. - deleted customized configure for IPv6 in Patch4
  138. - added Patch25 from Debian to add UTF-8 support
  139. * Mon Oct 6 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.7-1
  140. - new upstream release
  141. - update patches from FedoraCore
  142. - add Source6 from FedoraCore
  143. * Sun May 20 2007 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.5-0vl1
  144. - new upstream release
  145. - build with openssl-0.9.8e
  146. * Fri Sep 9 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.3-0vl1
  147. - new upstream release
  148. * Thu Mar 3 2005 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.2-0vl1
  149. - new upstream release
  150. - disable patch5
  151. * Sat Nov 27 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl2
  152. - rename patch1 and disable anonymous FTP
  153. * Mon Oct 18 2004 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.0.1-5vl1
  154. - build for VineSeed
  155. - remove lines about s390, pie and patch4
  156. - add %%{_datadir}/empty to %%files
  157. - rename patch1 and add "use_localtime=YES"
  158. - remove Prereq: /sbin/chkconfig, /sbin/service, /usr/sbin/usermod
  159. because they must be installed
  160. - remove Obsoletes: anonftp
  161. - remove BuildRequires: libcap-devel and Requires: libcap
  162. * Fri Oct 01 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-5
  163. - vsftpd under xinetd reads its config file (#134314)
  164. * Thu Sep 16 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-4
  165. - spec file changed, ftp dir change commented (#130119)
  166. - added doc files (#113056)
  167. * Wed Sep 08 2004 Jan Kratochvil <project-vsftpd@jankratochvil.net>
  168. - update for 2.0.1 for SSL
  169. * Fri Aug 27 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-2
  170. - vsftpd.conf file changed, default IPv6 support
  171. * Fri Aug 20 2004 Radek Vokal <rvokal@redhat.com> 2.0.1-1
  172. - tcp_wrapper patch updated, signal patch updated
  173. - upgrade to 2.0.1, fixes several bugs, RHEL and FC builds
  174. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
  175. - rebuilt
  176. * Wed May 19 2004 Bill Nottingham <notting@redhat.com> 1.2.1-6
  177. - fix the logrotate config (#116253)
  178. * Mon May 3 2004 Bill Nottingham <notting@redhat.com> 1.2.1-5
  179. - fix all references to vsftpd.conf to be /etc/vsftpd/vsftpd.conf,
  180. including in the binary (#121199, #104075)
  181. * Thu Mar 25 2004 Bill Nottingham <notting@redhat.com> 1.2.1-4
  182. - don't call malloc()/free() in signal handlers (#119136,
  183. <olivier.baudron@m4x.org>)
  184. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  185. - rebuilt
  186. * Mon Nov 24 2003 Karsten Hopp <karsten@redhat.de> 1.2.1-1
  187. - update to 1.2.1, which fixes #89765 and lot of other issues
  188. - remove manpage patch, it isn't required anymore
  189. - clean up init script
  190. - don't use script to find libs to link with (lib64 issues)
  191. * Sun Oct 12 2003 Florian La Roche <Florian.LaRoche@redhat.de>
  192. - allow compiling without tcp_wrappers support
  193. * Mon Sep 15 2003 Bill Nottingham <notting@redhat.com> 1.2.0-4
  194. - fix errant newline (#104443)
  195. * Fri Aug 8 2003 Bill Nottingham <notting@redhat.com> 1.2.0-3
  196. - tweak man page (#84584, #72798)
  197. - buildprereqs for pie (#99336)
  198. - free ride through the build system to fix (#101582)
  199. * Thu Jun 26 2003 Bill Nottingham <notting@redhat.com> 1.2.0-2
  200. - update to 1.2.0
  201. * Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
  202. - rebuilt
  203. * Mon Apr 28 2003 Bill Nottingham <notting@redhat.com> 1.1.3-9
  204. - fix tcp_wrappers usage (#89765, <dale@riyescott.com>)
  205. * Fri Feb 28 2003 Nalin Dahyabhai <nalin@redhat.com> 1.1.3-8
  206. - enable use of tcp_wrappers
  207. * Tue Feb 11 2003 Bill Nottingham <notting@redhat.com> 1.1.3-7
  208. - provide /var/ftp & /var/ftp/pub. obsolete anonftp.
  209. * Mon Feb 10 2003 Bill Nottingham <notting@redhat.com> 1.1.3-6
  210. - clean up comments in init script (#83962)
  211. * Wed Jan 22 2003 Tim Powers <timp@redhat.com>
  212. - rebuilt
  213. * Mon Dec 30 2002 Florian La Roche <Florian.LaRoche@redhat.de>
  214. - change to /etc/rc.d/init.d for better compatibility
  215. * Mon Dec 16 2002 Bill Nottingham <notting@redhat.com> 1.1.3-3
  216. - fix initscript perms
  217. - fix typo in initscript (#76587)
  218. * Fri Dec 13 2002 Bill Nottingham <notting@redhat.com> 1.1.3-2
  219. - update to 1.1.3
  220. - run standalone, don't run by default
  221. - fix reqs
  222. * Fri Nov 22 2002 Joe Orton <jorton@redhat.com> 1.1.0-3
  223. - fix use with xinetd-ipv6; add flags=IPv4 in xinetd file (#78410)
  224. * Tue Nov 12 2002 Nalin Dahyabhai <nalin@redhat.com> 1.0.1-9
  225. - remove absolute paths from PAM configuration so that the right modules get
  226. used for whichever arch we're built for on multilib systems
  227. * Thu Aug 15 2002 Elliot Lee <sopwith@redhat.com> 1.0.1-8
  228. - -D_FILE_OFFSET_BITS=64
  229. - smp make
  230. - remove forced optflags=-g for lack of supporting documentation
  231. * Fri Jun 21 2002 Tim Powers <timp@redhat.com>
  232. - automated rebuild
  233. * Thu May 23 2002 Tim Powers <timp@redhat.com>
  234. - automated rebuild
  235. * Wed Apr 10 2002 Bill Nottingham <notting@redhat.com> 1.0.1-5
  236. - don't spit out ugly errors if anonftp isn't installed (#62987)
  237. - fix horribly broken userlist setup (#62321)
  238. * Thu Feb 28 2002 Trond Eivind Glomsrød <teg@redhat.com> 1.0.1-4
  239. - s/Copyright/License/
  240. - add "missingok" to the logrotate script, so we don't get errors
  241. when nothing has happened
  242. * Wed Jan 09 2002 Tim Powers <timp@redhat.com>
  243. - automated rebuild
  244. * Wed Nov 28 2001 Bill Nottingham <notting@redhat.com>
  245. - initial packaging for RHL, munge included specfile
  246. * Thu Mar 22 2001 Seth Vidal <skvidal@phy.duke.edu>
  247. - updated to 0.0.15
  248. - added entry for vsftpd.8 man page
  249. - added entry for vsftpd.log logrotate file
  250. - added TUNING file to docs list
  251. * Wed Mar 7 2001 Seth Vidal <skvidal@phy.duke.edu>
  252. - Updated to 0.0.14
  253. - made %%files entry for man page
  254. * Wed Feb 21 2001 Seth Vidal <skvidal@phy.duke.edu>
  255. - Updated to 0.0.13
  256. * Mon Feb 12 2001 Seth Vidal <skvidal@phy.duke.edu>
  257. - Updated to 0.0.12
  258. * Wed Feb 7 2001 Seth Vidal <skvidal@phy.duke.edu>
  259. - updated to 0.0.11
  260. * Thu Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
  261. - Update to 0.0.10
  262. * Thu Feb 1 2001 Seth Vidal <skvidal@phy.duke.edu>
  263. - First RPM packaging
  264. - Stolen items from wu-ftpd's pam setup
  265. - Separated rh 7 and rh 6.X's packages
  266. - Built for Rh6