proftpd-vl.spec 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434
  1. %define _prefix /usr
  2. %define _localstatedir /var/run
  3. %define _sysconfdir /etc
  4. %define _rundir /var/run/proftpd
  5. %define tarballversion 1.3.3e
  6. %define origversion 1.3.3e
  7. Summary: ProFTPd -- Professional FTP Server.
  8. Summary(ja): ProFTPd -- プロフェッショナル FTP サーバ
  9. Name: proftpd
  10. Epoch: 1
  11. Version: %{origversion}
  12. Release: 1%{?_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.3e-iconv.patch
  27. # fix build on recent kernel headers
  28. # Patch400: proftpd-1.3.1-umode.patch
  29. # security fix
  30. # nothing..
  31. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  32. BuildRequires: pam-devel, openldap-devel, openssl-devel
  33. BuildRequires: ncurses-devel, libcap-devel, libacl-devel
  34. BuildRequires: e2fsprogs-devel
  35. Requires: pam > 0.59
  36. Obsoletes: wu-ftpd, anonftp
  37. Provides: ftpserver
  38. Vendor: Project Vine
  39. Distribution: Vine Linux
  40. %description
  41. ProFTPd is an enhanced FTP server with a focus toward simplicity,
  42. security, and ease of configuration. It features a very Apache-like
  43. configuration syntax, and a highly customizable server infrastructure,
  44. including support for multiple 'virtual' FTP servers, anonymous FTP,
  45. and permission-based directory visibility.
  46. %description -l ja
  47. ProFTPd は シンプルさ, セキュリティ, 設定の容易さに焦点をあてた 優れた
  48. FTP サーバです。Apache に似た構文による設定や、複数の仮想 FTP サーバ、
  49. anonymous FTP, パーミッションベースのディレクトリ可視性のサポートを含む、
  50. 高度にカスタマイズ可能なサーバ・インターフェイスを特徴としています。
  51. %prep
  52. %setup -q -n %{name}-%{tarballversion}
  53. find . -type d -name CVS | xargs -r rm -frv
  54. # upstream fixes
  55. ## patches from mdk
  56. # use system-auth instaed of pam_pwdb
  57. %patch201 -p1
  58. # iconv patch (CharsetLocal/CharsetRemote)
  59. %patch300 -p1
  60. # fix build on recent kernel headers
  61. # %patch400 -p0
  62. # security fixes
  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/proftpd" \
  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. * Sun Apr 24 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.3e-1
  143. - new upstream release
  144. - update patch300 to fit new version
  145. - drop patch1000 (is included in new release)
  146. - add BR: e2fsprogs-devel
  147. * Wed Jan 12 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.3.2e-2
  148. - rebuild with openssl-1.0.0c
  149. * Fri Nov 5 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2e-1
  150. - new upstream release
  151. - add patch1000 for CVE-2010-4221 (TELNET_IAC)
  152. - add BRs: ncurses-devel, libcap-devel, libacl-devel
  153. * Mon Dec 28 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2c-1
  154. - new upstream release with security fix (CVE-2009-3555)
  155. * Wed Oct 21 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2b-1
  156. - new upstream release with security fix (NULL char in X.509 certificate)
  157. - add chkconfig --add in post script
  158. * Mon Jul 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2a-3
  159. - remove .{la,a}
  160. - remove headers and pkgconfig file
  161. * Mon Jul 6 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2a-2
  162. - update Source1 (sample config file for vine)
  163. set default char set to UTF-8
  164. * Fri Jul 3 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2a-1
  165. - new upstream release
  166. * Sat Apr 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 1.3.2-3
  167. - rebuild with openldap-2.4.11
  168. * Tue Mar 31 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2-2
  169. - built with openssl-0.9.8k
  170. * Sat Feb 07 2009 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.2-1
  171. - new upstream release
  172. - add configure option to activate new modules
  173. - drop patch400
  174. * Wed Jan 14 2009 Shu KONNO <owa@bg.wakwak.com> 1.3.1-6
  175. - built with openssl-0.9.8j
  176. * Mon Sep 22 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.1-5
  177. - built with openssl-0.9.8i
  178. * Sun Aug 10 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.3.1-4
  179. - add Patch400 to fix build failure at least on i386
  180. - spec in UTF-8
  181. * Tue Jul 15 2008 Shu KONNO <owa@bg.wakwak.com> 1.3.1-3
  182. - built with openssl-0.9.8h
  183. * Sun Mar 23 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.1-2
  184. - update proftpd.vine.conf (use DisplayChdir instead of DisplayFirstChdir)
  185. * Sun Mar 23 2008 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.1-1
  186. - new upstream release
  187. - drop old patches which are included in new release
  188. - update patch201, 300
  189. - build under new versioning policy
  190. * Mon Sep 10 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.3.0a-0vl1
  191. - new upstream release
  192. - built with openssl098
  193. - drop old (for 1.2.10) patches
  194. - Patch100-150 from FC8 package
  195. - Patch160-170 from upstream CVS (maybe will be fixed in 1.3.1)
  196. - update patch300 for 1.3.0
  197. - change configure option refer to FC8
  198. - add process reboot with message output when package is upgraded
  199. - docfiles list update
  200. - fix changelog ver number typo
  201. * Sun Sep 09 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 1.2.10-0vl6
  202. - add patch202 for fix timestamp (backport from 1.3.0rc1 #2798)
  203. (<WISHES:15>)
  204. - add Vendor/Distribution tag
  205. - add patch104 for fix pr_ctrls_recv_request issue
  206. - add patch103 for fix CVE-2006-6170
  207. - add patch102 for fix CVE-2006-5815
  208. - add patch101 for fix CVE-2006-6171
  209. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 1.2.10-0vl5
  210. - rebuilt with openldap-2.3.27-0vl
  211. * Sun Jul 02 2006 Satoshi MACHINO <machino@vinelinux.org> 1.2.10-0vl4
  212. - rebuilt with openldap-2.3.24-0vl1
  213. * Sun May 14 2006 Shoji Matsumoto <shom@vinelinux.org> 1.2.10-0vl3
  214. - add patch300 for iconv patch
  215. * Thu Mar 16 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl2
  216. - enable mod_ldap
  217. - add BuildRequires: openldap-devel, openssl-devel
  218. - add Patch200 from MDK to support ldap
  219. - add Patch201 from MDK to use system-auth instead of pam_pwdb
  220. (pam_pwdb is now obsolete, and will be removed in the future pam version)
  221. * Fri Sep 09 2005 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp>
  222. - 1.2.10-0vl1.1
  223. - add patch100 for fix CAN-2005-2390
  224. * Sun Sep 05 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl1
  225. - new upstream release
  226. * Tue Aug 03 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.10-0vl0.3
  227. - new upstream release (1.2.10rc3)
  228. - build for Vine Linux 3.0
  229. * Fri May 21 2004 IKEDA Katsumi <ikeda@webmasters.gr.jp> 1.2.10-0vl0.1
  230. - new upstream release
  231. - fix security issue: http://secunia.com/advisories/11527/
  232. * Tue Apr 13 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.9-0vl1
  233. - new upstream release
  234. * Wed Sep 24 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.8p-0vl1
  235. - new upstream release
  236. - fix security issue: http://xforce.iss.net/xforce/alerts/id/154
  237. * Sun Mar 9 2003 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.8-0vl1
  238. - new upstream release
  239. * Fri Dec 6 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-0vl1
  240. - new upstream release 1.2.7
  241. - add logrotate config file.
  242. - move ftp home directory from /home/ftp to /var/ftp
  243. * Mon Jun 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.6-0vl1
  244. - new upstream release 1.2.6
  245. * Mon Jun 10 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-0vl4
  246. - new upstream release 1.2.5 (stable release version)
  247. * Mon Jun 03 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-0vl3
  248. - new upstream release 1.2.5-rc3
  249. * Mon Jan 28 2002 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl2
  250. - eliminate executable bit in %doc (requierment for /usr/bin/perl)
  251. - put files in sample-configurations/ to the according directory
  252. - remove unnecessary README.* files
  253. * Thu Dec 20 2001 Toru Sagami <sagami@vinelinux.org> 1.2.5-0vl1
  254. - updated to 1.2.5rc1 for problems in file globbing
  255. * Sun Oct 21 2001 Toru Sagami <sagami@vinelinux.org>
  256. - 1.2.4-0vl1
  257. * Fri Oct 19 2001 Toru Sagami <sagami@vinelinux.org>
  258. - 1.2.3-0vl1
  259. * Sat Aug 18 2001 Toru Sagami <sagami@vinelinux.org>
  260. - 1.2.2-0vl1: update to 1.2.2 release
  261. - added more documents
  262. * Sun Jul 15 2001 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-0vl0.rc3
  263. - update to 1.2.2rc3
  264. - use macros
  265. * Mon Jun 11 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
  266. - 1.2.1-0vl3
  267. - rebuilt for VineSeed
  268. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.1-0vl2]
  269. - update to 1.2.1
  270. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0-0vl2]
  271. - build for VineSeed
  272. * Tue Feb 27 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0-0vl1]
  273. - update to 1.2.0
  274. - set Epoch 1 to update from pre* and rc* version
  275. * Tue Feb 20 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  276. - 1.2.0rc3-0vl3
  277. - removed PreReq and postun about /etc/ftpusers stuff
  278. * Mon Feb 19 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl3]
  279. - remove setup of /etc/ftpusers in %%pre script
  280. - add ftpusers.vine insted of the %%pre script
  281. - remove contrib/README.* frpm %%files
  282. - add BuildRequires: pam-devel
  283. * Mon Feb 19 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl2]
  284. - rebuild for VineSeed
  285. * Wed Feb 07 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc3-0vl1]
  286. - update to 1.2.0rc3
  287. - add 'TimesGMT FALSE' in default configuration file
  288. - build on Vine 2.1
  289. * Mon Feb 05 2001 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  290. - modified pre script to make it run by bash2 and added PreReq
  291. - remove /etc/ftpusers after uninstall
  292. * Thu Feb 01 2001 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
  293. - 1.2.0rc2-0vl8
  294. - rebuilt on VineSeed
  295. * Thu Feb 01 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl7]
  296. - remove patch from CVS to avoid 'after 5min data brake'
  297. - add passive patch insted of abobe CVS patch
  298. - revival contribute's proftpd.init.d
  299. * Tue Jan 23 2001 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl6]
  300. - fixed %pre script and remove /etc/ftpusers from files
  301. - modify Japanese summary and descriptions
  302. * Sun Dec 03 2000 Toru Sagami <czs14350@mb.infoweb.ne.jp>
  303. - actually fixed to make the package relocatable.
  304. - non-root build failure by broken %prein, which should be %pre.
  305. - dont include CVS directory in doc
  306. - add %config /etc/rc.d/init.d/proftpd
  307. * Tue Nov 14 2000 KAJIKI Yoshihiro <kajiki@ylug.org> [1.2.0rc2-0vl4]
  308. - correct config directive of the init.d script
  309. * Wed Oct 18 2000 Yoshihiro Kajiki <kajiki@ylug.org> [1.2.0rc2-0vl3]
  310. - adopt current patch from CVS to avoid the 'put on passive mode' probrem
  311. * Sun Jul 30 2000 Jun Nishii <jun@vinelinux.org>
  312. - 1.2.0rc2-0vl1
  313. - obsoletes anonftp
  314. - do not chkconfig --add in %post
  315. - requires: pam
  316. - added proftpd.vine.conf
  317. * Fri Jul 28 2000 Daisuke SUZUKI <daisuke@linux.or.jp>
  318. - libtoolize for alpha
  319. * Sat Jul 15 2000 Kazuhisa TAKEI<takei@vinelinux.org>
  320. - [1.2.0rc2]
  321. * Wed Jun 28 2000 Kazuhisa TAKEI<takei@vinelinux.org>
  322. - repackaging for VineLinux
  323. * Thu Oct 3 1999 O.Elliyasa <osman@Cable.EU.org>
  324. - Multi package creation.
  325. Created core, standalone, inetd (&doc) package creations.
  326. Added startup script for init.d
  327. Need to make the "standalone & inetd" packages being created as "noarch"
  328. - Added URL.
  329. - Added prefix to make the package relocatable.
  330. * Wed Sep 8 1999 O.Elliyasa <osman@Cable.EU.org>
  331. - Corrected inetd.conf line addition/change logic.
  332. * Sat Jul 24 1999 MacGyver <macgyver@tos.net>
  333. - Initial import of spec.