pb4sd.spec 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. ##
  2. ## pb4sd.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: pb4sd
  27. Summary: POP-before-SMTP Daemon
  28. URL: -
  29. Vendor: Cable & Wireless DE
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG [EXP]
  32. Group: Mail
  33. License: PD
  34. Version: 1.0
  35. Release: 20011228
  36. # list of sources
  37. Source0: pb4sd
  38. Source1: rc.pb4sd
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20011227, perl, perl-db
  43. PreReq: OpenPKG, openpkg >= 20011227, perl, perl-db, POP
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. pb4sd is a little daemon program which watches a POP/IMAP server's
  48. logfile for successful client authentications and writes the
  49. corresponding IP addresses into a Berkeley-DB hash file. This hash
  50. file then can be used by the MTA to allow relaying access.
  51. %prep
  52. %build
  53. %install
  54. rm -rf $RPM_BUILD_ROOT
  55. %{l_shtool} mkdir -f -p -m 755 \
  56. $RPM_BUILD_ROOT%{l_prefix}/sbin \
  57. $RPM_BUILD_ROOT%{l_prefix}/man/man8 \
  58. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  59. $RPM_BUILD_ROOT%{l_prefix}/var/pb4sd
  60. %{l_shtool} install -c -m 755 \
  61. -e 's;/usr/bin/perl;%{l_prefix}/bin/perl;g' \
  62. %{SOURCE pb4sd} $RPM_BUILD_ROOT%{l_prefix}/sbin/
  63. %{l_prefix}/bin/pod2man \
  64. %{SOURCE pb4sd} >$RPM_BUILD_ROOT%{l_prefix}/man/man8/pb4sd.8
  65. %{l_shtool} install -c -m 755 \
  66. -e 's;@l_prefix@;%{l_prefix};g' \
  67. %{SOURCE rc.pb4sd} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  68. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  69. %files -f files
  70. %clean
  71. rm -rf $RPM_BUILD_ROOT