pureftpd.spec 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ##
  2. ## pureftpd.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2001 Cable & Wireless Deutschland GmbH
  4. ## Copyright (c) 2000-2001 Ralf S. Engelschall <rse@engelschall.com>
  5. ##
  6. ## Permission to use, copy, modify, and distribute this software for
  7. ## any purpose with or without fee is hereby granted, provided that
  8. ## the above copyright notice and this permission notice appear in all
  9. ## copies.
  10. ##
  11. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  12. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  13. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  14. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  15. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  16. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  17. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  18. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  19. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  20. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  21. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  22. ## SUCH DAMAGE.
  23. ##
  24. # package information
  25. Name: pureftpd
  26. Summary: Alternative FTP Server
  27. URL: http://www.pureftpd.org/
  28. Vendor: A.Gulbrandsen, Frank DENIS
  29. Packager: The OpenPKG Project
  30. Distribution: OpenPKG [EXP]
  31. Group: FTP
  32. License: GPL
  33. Version: 0.99.9
  34. Release: 0
  35. # list of sources
  36. Source0: http://prdownloads.sourceforge.net/pureftpd/pure-ftpd-%{version}.tar.gz
  37. Source1: rc.pureftpd
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 0.9-33
  42. PreReq: OpenPKG, openpkg >= 0.9-33
  43. AutoReq: no
  44. AutoReqProv: no
  45. %description
  46. Pure-FTPd is a fast, production-quality, standard-conformant FTP
  47. server, based upon Troll-FTPd. Unlike other popular FTP servers,
  48. it's designed to be secure in default configuration, has no known
  49. buffer overflow, it is really trivial to set up and it is especially
  50. designed for modern kernels. Features include PAM support, IPv6,
  51. chroot()ed home directories, virtual domains, built-in 'ls',
  52. anti-warez system, bounded ports for passive downloads, FXP
  53. protocol, bandwidth throttling, ratios, LDAP, XML and HTML reports,
  54. support for external programs to post-process uploads and more.
  55. %prep
  56. %setup -q -n pure-ftpd-%{version}
  57. %build
  58. CC="%{l_cc}" \
  59. CFLAGS="%{l_cflags -O}" \
  60. ./configure \
  61. --prefix=%{l_prefix} \
  62. --sysconfdir=%{l_prefix}/etc/pureftpd \
  63. --without-inetd \
  64. --without-humor \
  65. --without-cookie \
  66. --without-welcomemsg \
  67. --with-pam \
  68. --with-ftpwho \
  69. --with-virtualhosts \
  70. --with-language=english
  71. %{l_make} %{l_mflags -O}
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  75. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  76. %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
  77. %{l_shtool} install -c -m 755 -e "s;@l_prefix@;%{l_prefix};g" \
  78. %{SOURCE rc.pureftpd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  79. strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
  80. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  81. %files -f files
  82. %clean
  83. rm -rf $RPM_BUILD_ROOT