dcc.spec 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. ##
  2. ## dcc.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2007 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2007 Ralf S. Engelschall <http://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. # FIXME: rse: TODO: builds fine, but config, rc scripts, etc is missing for daemons
  25. # package information
  26. Name: dcc
  27. Summary: Distributed Checksum Clearinghouse (DCC)
  28. URL: http://www.rhyolite.com/anti-spam/dcc/
  29. Vendor: Rhyolite Software, LLC
  30. Packager: OpenPKG Foundation e.V.
  31. Distribution: OpenPKG Community
  32. Class: EVAL
  33. Group: Mail
  34. License: Open Source
  35. Version: 1.3.71
  36. Release: 20071109
  37. # list of sources
  38. Source0: http://www.rhyolite.com/anti-spam/dcc/source/dcc-%{version}.tar.Z
  39. Patch0: dcc.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20060823, gcc
  44. PreReq: OpenPKG, openpkg >= 20060823
  45. BuildPreReq: milter
  46. PreReq: milter
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. The Distributed Checksum Clearinghouse (DCC) is an anti-spam
  51. content filter that runs on a variety of operating systems. The
  52. DCC can be used by SMTP servers and mail user agents to detect
  53. and reject or filter spam or unsolicited bulk mail. DCC servers
  54. exchange or "flood" common checksums. The checksums include values
  55. that are constant across common variations in bulk messages,
  56. including "personalizations". The idea of the DCC is that if mail
  57. recipients could compare the mail they receive, they could recognize
  58. unsolicited bulk mail. A DCC server totals reports of checksums of
  59. messages from clients and answers queries about the total counts for
  60. checksums of mail messages. A DCC client reports the checksums for a
  61. mail message to a server and is told the total number of recipients
  62. of mail with each checksum. If one of the totals is higher than a
  63. threshold set by the client and according to local whitelists the
  64. message is unsolicited, the DCC client can log, discard, or reject
  65. the message.
  66. %track
  67. prog dcc = {
  68. version = %{version}
  69. url = http://www.rhyolite.com/anti-spam/dcc/source/
  70. regex = dcc-(__VER__)\.tar\.Z
  71. }
  72. %prep
  73. %setup -q
  74. %patch -p0
  75. %build
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. CPPFLAGS="%{l_cppflags}" \
  79. LDFLAGS="%{l_ldflags}" \
  80. ./configure \
  81. --homedir=%{l_prefix}/var/dcc/db \
  82. --bindir=%{l_prefix}/bin \
  83. --libexecdir=%{l_prefix}/libexec/dcc \
  84. --mandir=%{l_prefix}/man \
  85. --with-updatedcc_pfile=%{l_prefix}/var/dcc/updatecc.pfile \
  86. --with-installroot=$RPM_BUILD_ROOT \
  87. --with-DCC-MD5 \
  88. --with-uid=%{l_rusr} \
  89. --enable-server \
  90. --enable-dccifd \
  91. --enable-dccm \
  92. --with-sendmail=%{l_prefix} \
  93. --with-cgibin=%{l_prefix}/cgi/dcc \
  94. --with-rundir=%{l_prefix}/var/dcc/run \
  95. --with-db-memory=64 \
  96. --with-max-db-mem=128 \
  97. --with-max-log-size=0
  98. %{l_make} %{l_mflags}
  99. %install
  100. rm -rf $RPM_BUILD_ROOT
  101. %{l_make} %{l_mflags} install \
  102. DCC_SUID=`%{l_shtool} echo -e '%u'` \
  103. DCC_OWN=`%{l_shtool} echo -e '%u'` \
  104. DCC_GRP=`%{l_shtool} echo -e '%g'`
  105. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  106. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  107. %files -f files
  108. %clean
  109. rm -rf $RPM_BUILD_ROOT