proftpd-vl.spec 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428
  1. %define _prefix /usr
  2. %define _localstatedir /var/run
  3. %define _sysconfdir /etc
  4. %define _rundir /var/run/proftpd
  5. %define tarballversion 1.3.2e
  6. %define origversion 1.3.2e
  7. Summary: ProFTPd -- Professional FTP Server.
  8. Summary(ja): ProFTPd -- プロフェッショナル FTP サーバ
  9. Name: proftpd
  10. Epoch: 1
  11. Version: %{origversion}
  12. Release: 2%{?_dist_release}
  13. License: GPL
  14. Group: System Environment/Daemons
  15. URL: http://www.proftpd.org/
  16. Source0: ftp://ftp.proftpd.org/distrib/%{name}-%{origversion}.tar.bz2
  17. Source1: proftpd.vine.conf
  18. Source2: ftpusers.vine
  19. Source3: proftpd.init
  20. Source5: welcome.msg
  21. # upstream bug fixes & security fixes
  22. # auth
  23. Patch201: proftpd-1.3.1-use-system-auth-instead-of-pam_pwdb.patch
  24. # iconv patch (CharsetLocal/CharsetRemote)
  25. # Patch300: http://www.hakusan.tsg.ne.jp/tjkawa/software/misc/proftpd-iconv/pack/proftpd-1.3.0-iconv.patch.gz
  26. Patch300: proftpd-1.3.1-iconv.patch.bz2
  27. # fix build on recent kernel headers
  28. # Patch400: proftpd-1.3.1-umode.patch
  29. # security fix
  30. Patch1000: proftpd/proftpd-1.3.2e-CVE-2010-4221.patch
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. BuildRequires: pam-devel, openldap-devel, openssl-devel
  33. BuildRequires: ncurses-devel, libcap-devel, libacl-devel
  34. Requires: pam > 0.59
  35. Obsoletes: wu-ftpd, anonftp
  36. Provides: ftpserver
  37. Vendor: Project Vine
  38. Distribution: Vine Linux
  39. %description
  40. ProFTPd is an enhanced FTP server with a focus toward simplicity,
  41. security, and ease of configuration. It features a very Apache-like
  42. configuration syntax, and a highly customizable server infrastructure,
  43. including support for multiple 'virtual' FTP servers, anonymous FTP,
  44. and permission-based directory visibility.
  45. %description -l ja
  46. ProFTPd は シンプルさ, セキュリティ, 設定の容易さに焦点をあてた 優れた
  47. FTP サーバです。Apache に似た構文による設定や、複数の仮想 FTP サーバ、
  48. anonymous FTP, パーミッションベースのディレクトリ可視性のサポートを含む、
  49. 高度にカスタマイズ可能なサーバ・インターフェイスを特徴としています。
  50. %prep
  51. %setup -q -n %{name}-%{tarballversion}
  52. find . -type d -name CVS | xargs -r rm -frv
  53. # upstream fixes
  54. ## patches from mdk
  55. # use system-auth instaed of pam_pwdb
  56. %patch201 -p1
  57. # iconv patch (CharsetLocal/CharsetRemote)
  58. %patch300 -p1
  59. # fix build on recent kernel headers
  60. # %patch400 -p0
  61. # security fixes
  62. %patch1000 -p1 -b .ZDI-CAN-925
  63. %build
  64. # Disable stripping in order to get useful debuginfo packages
  65. %{__perl} -pi -e 's|"-s"|""|g' configure
  66. %configure \
  67. --libexecdir="%{_libexecdir}/proftpd" \
  68. --localstatedir="%{_var}/run" \
  69. --enable-ctrls \
  70. --enable-facl \
  71. --enable-dso \
  72. --enable-ipv6 \
  73. --with-modules=mod_readme:mod_auth_pam:mod_tls:mod_codeconv:mod_df:\
  74. mod_ban:mod_dynmasq:mod_load:mod_ratio:mod_rewrite \
  75. --with-shared=mod_ldap:mod_quotatab:mod_quotatab_file:mod_quotatab_ldap
  76. # It seems that with _smp_mflags -lsupp tries to get linked before being built
  77. # (as of 1.3.0a-4 F7/devel with koji, happened on F8 x86_64 and F7 ppc64)
  78. %{__make}
  79. %install
  80. %{__rm} -rf %{buildroot}
  81. %{__make} install DESTDIR=%{buildroot} \
  82. rundir="%{_var}/run/proftpd" \
  83. INSTALL_USER=`id -un` \
  84. INSTALL_GROUP=`id -gn`
  85. # auth
  86. mkdir -p %{buildroot}%{_sysconfdir}/pam.d
  87. %{__install} -m 644 contrib/dist/rpm/ftp.pamd %{buildroot}%{_sysconfdir}/pam.d/ftp
  88. # logrotate
  89. mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
  90. %{__install} -m 644 contrib/dist/rpm/proftpd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/proftpd
  91. # init.d
  92. %{__install} -D -p -m 0755 %{SOURCE3} \
  93. %{buildroot}%{_sysconfdir}/rc.d/init.d/proftpd
  94. %{__install} -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/proftpd.conf
  95. %{__install} -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ftpusers
  96. %{__install} -D -p -m 0644 %{SOURCE5} %{buildroot}/%{_var}/ftp/welcome.msg
  97. touch %{buildroot}%{_sysconfdir}/ftpusers
  98. rm contrib/README.* || :
  99. # eliminate executable bit in %doc
  100. find doc/ sample-configurations/ -type f -perm +111 | xargs -r chmod -x
  101. # remove .{la,a}
  102. rm -f %{buildroot}%{_libexecdir}/proftpd/*.{la,a}
  103. # remove development files (headers and pkgconfig file)
  104. # who need these files?
  105. rm -rf %{buildroot}%{_includedir}/proftpd
  106. rm -rf %{buildroot}%{_libdir}/pkgconfig
  107. %preun
  108. if [ -d %{_rundir} ] ; then
  109. rm -rf %{_rundir}/*
  110. fi
  111. if [ $1 = 0 ] ; then
  112. /sbin/chkconfig --del proftpd
  113. fi
  114. %postun
  115. if [ $1 -ge 1 ]; then
  116. /sbin/service proftpd condrestart
  117. fi
  118. %post
  119. /sbin/chkconfig --add proftpd
  120. %clean
  121. rm -rf %{buildroot}
  122. %files
  123. %defattr(-,root,root)
  124. %doc COPYING CREDITS ChangeLog INSTALL NEWS
  125. %doc README.{LDAP,PAM,modules} doc/*
  126. %doc contrib/README contrib/xferstats.holger-preiss
  127. %doc sample-configurations/
  128. %{_sbindir}/*
  129. %{_bindir}/*
  130. %{_mandir}/*/*
  131. %{_var}/ftp/welcome.msg
  132. %dir %{_libexecdir}/proftpd/
  133. %{_libexecdir}/proftpd/mod_*
  134. %dir %{_rundir}
  135. %dir %{_var}/ftp
  136. %config %{_sysconfdir}/rc.d/init.d/proftpd
  137. %config(noreplace) %{_sysconfdir}/pam.d/ftp
  138. %config(noreplace) %{_sysconfdir}/proftpd.conf
  139. %config(noreplace) %{_sysconfdir}/ftpusers
  140. %config(noreplace) %{_sysconfdir}/logrotate.d/proftpd
  141. %changelog
  142. * Wed Jan 12 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.2e-2
  143. - rebuild with openssl-1.0.0c
  144. * Fri Nov 5 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2e-1
  145. - new upstream release
  146. - add patch1000 for CVE-2010-4221 (TELNET_IAC)
  147. - add BRs: ncurses-devel, libcap-devel, libacl-devel
  148. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2c-1
  149. - new upstream release with security fix (CVE-2009-3555)
  150. * Wed Oct 21 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2b-1
  151. - new upstream release with security fix (NULL char in X.509 certificate)
  152. - add chkconfig --add in post script
  153. * Mon Jul 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2a-3
  154. - remove .{la,a}
  155. - remove headers and pkgconfig file
  156. * Mon Jul 6 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2a-2
  157. - update Source1 (sample config file for vine)
  158. set default char set to UTF-8
  159. * Fri Jul 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2a-1
  160. - new upstream release
  161. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-3
  162. - rebuild with openldap-2.4.11
  163. * Tue Mar 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2-2
  164. - built with openssl-0.9.8k
  165. * Sat Feb 07 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2-1
  166. - new upstream release
  167. - add configure option to activate new modules
  168. - drop patch400
  169. * Wed Jan 14 2009 Shu KONNO <owa@bg.wakwak.com> 1.3.1-6
  170. - built with openssl-0.9.8j
  171. * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.1-5
  172. - built with openssl-0.9.8i
  173. * Sun Aug 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.1-4
  174. - add Patch400 to fix build failure at least on i386
  175. - spec in UTF-8
  176. * Tue Jul 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.1-3
  177. - built with openssl-0.9.8h
  178. * Sun Mar 23 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.1-2
  179. - update proftpd.vine.conf (use DisplayChdir instead of DisplayFirstChdir)
  180. * Sun Mar 23 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.1-1
  181. - new upstream release
  182. - drop old patches which are included in new release
  183. - update patch201, 300
  184. - build under new versioning policy
  185. * Mon Sep 10 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.0a-0vl1
  186. - new upstream release
  187. - built with openssl098
  188. - drop old (for 1.2.10) patches
  189. - Patch100-150 from FC8 package
  190. - Patch160-170 from upstream CVS (maybe will be fixed in 1.3.1)
  191. - update patch300 for 1.3.0
  192. - change configure option refer to FC8
  193. - add process reboot with message output when package is upgraded
  194. - docfiles list update
  195. - fix changelog ver number typo
  196. * Sun Sep 09 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.10-0vl6
  197. - add patch202 for fix timestamp (backport from 1.3.0rc1 #2798)
  198. (<WISHES:15>)
  199. - add Vendor/Distribution tag
  200. - add patch104 for fix pr_ctrls_recv_request issue
  201. - add patch103 for fix CVE-2006-6170
  202. - add patch102 for fix CVE-2006-5815
  203. - add patch101 for fix CVE-2006-6171
  204. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.10-0vl5
  205. - rebuilt with openldap-2.3.27-0vl
  206. * Sun Jul 02 2006 Satoshi MACHINO <machino@vinelinux.org> 1.2.10-0vl4
  207. - rebuilt with openldap-2.3.24-0vl1
  208. * Sun May 14 2006 Shoji Matsumoto <shom@vinelinux.org> 1.2.10-0vl3
  209. - add patch300 for iconv patch
  210. * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl2
  211. - enable mod_ldap
  212. - add BuildRequires: openldap-devel, openssl-devel
  213. - add Patch200 from MDK to support ldap
  214. - add Patch201 from MDK to use system-auth instead of pam_pwdb
  215. (pam_pwdb is now obsolete, and will be removed in the future pam version)
  216. * Fri Sep 09 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  217. - 1.2.10-0vl1.1
  218. - add patch100 for fix CAN-2005-2390
  219. * Sun Sep 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1
  220. - new upstream release
  221. * Tue Aug 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl0.3
  222. - new upstream release (1.2.10rc3)
  223. - build for Vine Linux 3.0
  224. * Fri May 21 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.2.10-0vl0.1
  225. - new upstream release
  226. - fix security issue: http://secunia.com/advisories/11527/
  227. * Tue Apr 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1
  228. - new upstream release
  229. * Wed Sep 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.8p-0vl1
  230. - new upstream release
  231. - fix security issue: http://xforce.iss.net/xforce/alerts/id/154
  232. * Sun Mar 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.8-0vl1
  233. - new upstream release
  234. * Fri Dec 6 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  235. - new upstream release 1.2.7
  236. - add logrotate config file.
  237. - move ftp home directory from /home/ftp to /var/ftp
  238. * Mon Jun 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-0vl1
  239. - new upstream release 1.2.6
  240. * Mon Jun 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-0vl4
  241. - new upstream release 1.2.5 (stable release version)
  242. * Mon Jun 03 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-0vl3
  243. - new upstream release 1.2.5-rc3
  244. * Mon Jan 28 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl2
  245. - eliminate executable bit in %doc (requierment for /usr/bin/perl)
  246. - put files in sample-configurations/ to the according directory
  247. - remove unnecessary README.* files
  248. * Thu Dec 20 2001 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl1
  249. - updated to 1.2.5rc1 for problems in file globbing
  250. * Sun Oct 21 2001 Toru Sagami <sagami@vinelinux.org>
  251. - 1.2.4-0vl1
  252. * Fri Oct 19 2001 Toru Sagami <sagami@vinelinux.org>
  253. - 1.2.3-0vl1
  254. * Sat Aug 18 2001 Toru Sagami <sagami@vinelinux.org>
  255. - 1.2.2-0vl1: update to 1.2.2 release
  256. - added more documents
  257. * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-0vl0.rc3
  258. - update to 1.2.2rc3
  259. - use macros
  260. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  261. - 1.2.1-0vl3
  262. - rebuilt for VineSeed
  263. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.1-0vl2]
  264. - update to 1.2.1
  265. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0-0vl2]
  266. - build for VineSeed
  267. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0-0vl1]
  268. - update to 1.2.0
  269. - set Epoch 1 to update from pre* and rc* version
  270. * Tue Feb 20 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  271. - 1.2.0rc3-0vl3
  272. - removed PreReq and postun about /etc/ftpusers stuff
  273. * Mon Feb 19 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl3]
  274. - remove setup of /etc/ftpusers in %%pre script
  275. - add ftpusers.vine insted of the %%pre script
  276. - remove contrib/README.* frpm %%files
  277. - add BuildRequires: pam-devel
  278. * Mon Feb 19 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl2]
  279. - rebuild for VineSeed
  280. * Wed Feb 07 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl1]
  281. - update to 1.2.0rc3
  282. - add 'TimesGMT FALSE' in default configuration file
  283. - build on Vine 2.1
  284. * Mon Feb 05 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  285. - modified pre script to make it run by bash2 and added PreReq
  286. - remove /etc/ftpusers after uninstall
  287. * Thu Feb 01 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  288. - 1.2.0rc2-0vl8
  289. - rebuilt on VineSeed
  290. * Thu Feb 01 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl7]
  291. - remove patch from CVS to avoid 'after 5min data brake'
  292. - add passive patch insted of abobe CVS patch
  293. - revival contribute's proftpd.init.d
  294. * Tue Jan 23 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl6]
  295. - fixed %pre script and remove /etc/ftpusers from files
  296. - modify Japanese summary and descriptions
  297. * Sun Dec 03 2000 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  298. - actually fixed to make the package relocatable.
  299. - non-root build failure by broken %prein, which should be %pre.
  300. - dont include CVS directory in doc
  301. - add %config /etc/rc.d/init.d/proftpd
  302. * Tue Nov 14 2000 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl4]
  303. - correct config directive of the init.d script
  304. * Wed Oct 18 2000 Yoshihiro Kajiki <kajiki@ylug.org> [1.2.0rc2-0vl3]
  305. - adopt current patch from CVS to avoid the 'put on passive mode' probrem
  306. * Sun Jul 30 2000 Jun Nishii <jun@vinelinux.org>
  307. - 1.2.0rc2-0vl1
  308. - obsoletes anonftp
  309. - do not chkconfig --add in %post
  310. - requires: pam
  311. - added proftpd.vine.conf
  312. * Fri Jul 28 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  313. - libtoolize for alpha
  314. * Sat Jul 15 2000 Kazuhisa TAKEI<takei@vinelinux.org>
  315. - [1.2.0rc2]
  316. * Wed Jun 28 2000 Kazuhisa TAKEI<takei@vinelinux.org>
  317. - repackaging for VineLinux
  318. * Thu Oct 3 1999 O.Elliyasa <osman@Cable.EU.org>
  319. - Multi package creation.
  320. Created core, standalone, inetd (&doc) package creations.
  321. Added startup script for init.d
  322. Need to make the "standalone & inetd" packages being created as "noarch"
  323. - Added URL.
  324. - Added prefix to make the package relocatable.
  325. * Wed Sep 8 1999 O.Elliyasa <osman@Cable.EU.org>
  326. - Corrected inetd.conf line addition/change logic.
  327. * Sat Jul 24 1999 MacGyver <macgyver@tos.net>
  328. - Initial import of spec.