proftpd-vl.spec 13 KB

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