pureftpd.spec 3.5 KB

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