dcc.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121
  1. ##
  2. ## dcc.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # FIXME: rse: TODO: builds fine, but config, rc scripts, etc is missing for daemons
  24. # package information
  25. Name: dcc
  26. Summary: Distributed Checksum Clearinghouse (DCC)
  27. URL: http://www.rhyolite.com/anti-spam/dcc/
  28. Vendor: Rhyolite Software, LLC
  29. Packager: OpenPKG Foundation e.V.
  30. Distribution: OpenPKG Community
  31. Class: EVAL
  32. Group: Mail
  33. License: Open Source
  34. Version: 1.3.90
  35. Release: 20080422
  36. # list of sources
  37. Source0: http://www.rhyolite.com/anti-spam/dcc/source/dcc-%{version}.tar.Z
  38. Patch0: dcc.patch
  39. # build information
  40. Prefix: %{l_prefix}
  41. BuildRoot: %{l_buildroot}
  42. BuildPreReq: OpenPKG, openpkg >= 20060823, gcc
  43. PreReq: OpenPKG, openpkg >= 20060823
  44. BuildPreReq: milter
  45. PreReq: milter
  46. AutoReq: no
  47. AutoReqProv: no
  48. %description
  49. The Distributed Checksum Clearinghouse (DCC) is an anti-spam
  50. content filter that runs on a variety of operating systems. The
  51. DCC can be used by SMTP servers and mail user agents to detect
  52. and reject or filter spam or unsolicited bulk mail. DCC servers
  53. exchange or "flood" common checksums. The checksums include values
  54. that are constant across common variations in bulk messages,
  55. including "personalizations". The idea of the DCC is that if mail
  56. recipients could compare the mail they receive, they could recognize
  57. unsolicited bulk mail. A DCC server totals reports of checksums of
  58. messages from clients and answers queries about the total counts for
  59. checksums of mail messages. A DCC client reports the checksums for a
  60. mail message to a server and is told the total number of recipients
  61. of mail with each checksum. If one of the totals is higher than a
  62. threshold set by the client and according to local whitelists the
  63. message is unsolicited, the DCC client can log, discard, or reject
  64. the message.
  65. %track
  66. prog dcc = {
  67. version = %{version}
  68. url = http://www.rhyolite.com/anti-spam/dcc/source/
  69. regex = dcc-(__VER__)\.tar\.Z
  70. }
  71. %prep
  72. %setup -q
  73. %patch -p0
  74. %build
  75. CC="%{l_cc}" \
  76. CFLAGS="%{l_cflags -O}" \
  77. CPPFLAGS="%{l_cppflags}" \
  78. LDFLAGS="%{l_ldflags}" \
  79. ./configure \
  80. --homedir=%{l_prefix}/var/dcc/db \
  81. --bindir=%{l_prefix}/bin \
  82. --libexecdir=%{l_prefix}/libexec/dcc \
  83. --mandir=%{l_prefix}/man \
  84. --with-updatedcc_pfile=%{l_prefix}/var/dcc/updatecc.pfile \
  85. --with-installroot=$RPM_BUILD_ROOT \
  86. --with-DCC-MD5 \
  87. --with-uid=%{l_rusr} \
  88. --enable-server \
  89. --enable-dccifd \
  90. --enable-dccm \
  91. --with-sendmail=%{l_prefix} \
  92. --with-cgibin=%{l_prefix}/cgi/dcc \
  93. --with-rundir=%{l_prefix}/var/dcc/run \
  94. --with-db-memory=64 \
  95. --with-max-db-mem=128 \
  96. --with-max-log-size=0
  97. %{l_make} %{l_mflags}
  98. %install
  99. rm -rf $RPM_BUILD_ROOT
  100. %{l_make} %{l_mflags} install \
  101. DCC_SUID=`%{l_shtool} echo -e '%u'` \
  102. DCC_OWN=`%{l_shtool} echo -e '%u'` \
  103. DCC_GRP=`%{l_shtool} echo -e '%g'`
  104. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  105. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  106. %files -f files
  107. %clean
  108. rm -rf $RPM_BUILD_ROOT