vsftpd-vl.spec 10 KB

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