Ravenports generated: 18 Jan 2021 12:16
[ravenports.git] / bucket_58 / rspamd
1 # Buildsheet autogenerated by ravenadm tool -- Do not edit.
2
3 NAMEBASE=               rspamd
4 VERSION=                2.7
5 KEYWORDS=               mail
6 VARIANTS=               standard
7 SDESC[standard]=        Fast, free and open-source spam filtering system
8 HOMEPAGE=               https://rspamd.com/
9 CONTACT=                nobody
10
11 DOWNLOAD_GROUPS=        main
12 SITES[main]=            GITHUB/vstakhov:rspamd:2.7
13 DISTFILE[1]=            generated:main
14 DF_INDEX=               1
15 SPKGS[standard]=        single
16
17 OPTIONS_AVAILABLE=      none
18 OPTIONS_STANDARD=       none
19
20 BUILD_DEPENDS=          ragel:primary:standard
21 BUILDRUN_DEPENDS=       icu:single:standard
22                         libsodium:single:standard
23                         luajit:single:standard
24 RUN_DEPENDS=            nss:caroot:standard
25
26 USERS=                  rspamd
27 GROUPS=                 rspamd
28 USERGROUP_SPKG=         single
29
30 USES=                   cmake perl:build pkgconfig sqlite ssl pcre
31 GNOME_COMPONENTS=       glib
32
33 FPC_EQUIVALENT=         mail/rspamd
34
35 PLIST_SUB=              RSPAMDVERSION=2.7
36                         JQUERY=3.5.1
37 RC_SUBR=                rspamd:single
38 SUB_FILES=              pkg-message-single
39                         rspamd.newsyslog.conf.sample
40
41 CMAKE_ARGS=             -DCONFDIR={{PREFIX}}/etc/rspamd
42                         -DLOGDIR=/var/log/rspamd
43                         -DDBDIR=/var/db/rspamd
44                         -DRUNDIR=/var/run/rspamd
45                         -DMANDIR={{MANPREFIX}}/man
46                         -DCMAKE_INSTALL_PREFIX={{PREFIX}}
47                         -DBUILD_PORT=yes
48                         -DLIBDIR={{PREFIX}}/lib/rspamd
49
50 post-install:
51         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rspamadm
52         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rspamc
53         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/rspamd
54         ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/rspamd/*.so
55         ${MKDIR}\
56                 ${STAGEDIR}/var/log/rspamd \
57                 ${STAGEDIR}/var/db/rspamd \
58                 ${STAGEDIR}/var/run/rspamd \
59                 ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
60         ${INSTALL_DATA} ${WRKDIR}/rspamd.newsyslog.conf.sample \
61                 ${STAGEDIR}${PREFIX}/etc/rspamd/
62         ${LN} -s etc/rspamd/rspamd.newsyslog.conf \
63                 ${STAGEDIR}${PREFIX}/etc/newsyslog.conf.d
64
65 [FILE:160:descriptions/desc.single]
66 Rspamd is fast, modular and lightweight spam filter. It is designed to work
67 with big amount of mail and can be easily extended with own filters written
68 in lua.
69
70
71 [FILE:105:distinfo]
72 e2606c18f0d9b1e7eee86907bd8545e0dcda83b1642ddf58915d5d44a53e3df0      5126227 vstakhov-rspamd-2.7.tar.gz
73
74
75 [FILE:5850:manifests/plist.single]
76 @sample etc/rspamd/rspamd.newsyslog.conf.sample
77 bin/
78  rspamadm
79  rspamadm-%%RSPAMDVERSION%%
80  rspamc
81  rspamc-%%RSPAMDVERSION%%
82  rspamd
83  rspamd-%%RSPAMDVERSION%%
84  rspamd_stats
85 etc/newsyslog.conf.d/rspamd.newsyslog.conf
86 etc/rspamd/
87  actions.conf
88  cgp.inc
89  common.conf
90  composites.conf
91  groups.conf
92  logging.inc
93  metrics.conf
94  modules.conf
95  options.inc
96  rspamd.conf
97  settings.conf
98  statistic.conf
99  worker-controller.inc
100  worker-fuzzy.inc
101  worker-normal.inc
102  worker-proxy.inc
103 etc/rspamd/maps.d/
104  dmarc_whitelist.inc
105  maillist.inc
106  mid.inc
107  mime_types.inc
108  redirectors.inc
109  spf_dkim_whitelist.inc
110  surbl-whitelist.inc
111 etc/rspamd/modules.d/
112  antivirus.conf
113  arc.conf
114  asn.conf
115  chartable.conf
116  clickhouse.conf
117  dcc.conf
118  dkim.conf
119  dkim_signing.conf
120  dmarc.conf
121  elastic.conf
122  emails.conf
123  external_services.conf
124  force_actions.conf
125  forged_recipients.conf
126  fuzzy_check.conf
127  greylist.conf
128  hfilter.conf
129  history_redis.conf
130  http_headers.conf
131  maillist.conf
132  metadata_exporter.conf
133  metric_exporter.conf
134  mid.conf
135  milter_headers.conf
136  mime_types.conf
137  multimap.conf
138  mx_check.conf
139  neural.conf
140  once_received.conf
141  p0f.conf
142  phishing.conf
143  ratelimit.conf
144  rbl.conf
145  redis.conf
146  regexp.conf
147  replies.conf
148  reputation.conf
149  rspamd_update.conf
150  spamassassin.conf
151  spamtrap.conf
152  spf.conf
153  surbl.conf
154  trie.conf
155  url_redirector.conf
156  whitelist.conf
157 etc/rspamd/scores.d/
158  content_group.conf
159  fuzzy_group.conf
160  headers_group.conf
161  hfilter_group.conf
162  mime_types_group.conf
163  mua_group.conf
164  phishing_group.conf
165  policies_group.conf
166  rbl_group.conf
167  statistics_group.conf
168  subject_group.conf
169  surbl_group.conf
170  whitelist_group.conf
171 lib/rspamd/
172  librspamd-actrie.so
173  librspamd-ev.so
174  librspamd-kann.so
175  librspamd-replxx.so
176  librspamd-server.so
177 share/man/man1/
178  rspamadm.1.gz
179  rspamc.1.gz
180 share/man/man8/rspamd.8.gz
181 share/rspamd/effective_tld_names.dat
182 share/rspamd/elastic/
183  kibana.json
184  rspamd_template.json
185 share/rspamd/languages/
186  af.json
187  an.json
188  ar.json
189  bg.json
190  bn.json
191  br.json
192  cs.json
193  cy.json
194  da.json
195  de.json
196  en.json
197  es.json
198  et.json
199  eu.json
200  fa.json
201  fi.json
202  fr.json
203  ga.json
204  hi.json
205  hr.json
206  hu.json
207  id.json
208  is.json
209  it.json
210  lt.json
211  lv.json
212  mr.json
213  ms.json
214  ne.json
215  nl.json
216  no.json
217  pa.json
218  pl.json
219  pt.json
220  ro.json
221  ru.json
222  sl.json
223  so.json
224  sq.json
225  sr.json
226  stop_words
227  sv.json
228  sw.json
229  tr.json
230  uk.json
231  ur.json
232  vi.json
233 share/rspamd/lualib/
234  ansicolors.lua
235  argparse.lua
236  fun.lua
237  global_functions.lua
238  lpegre.lua
239  lua_auth_results.lua
240  lua_bayes_learn.lua
241  lua_cfg_transform.lua
242  lua_clickhouse.lua
243  lua_dkim_tools.lua
244  lua_fuzzy.lua
245  lua_lexer.lua
246  lua_maps.lua
247  lua_maps_expressions.lua
248  lua_meta.lua
249  lua_mime.lua
250  lua_redis.lua
251  lua_settings.lua
252  lua_smtp.lua
253  lua_stat.lua
254  lua_tcp_sync.lua
255  lua_urls_compose.lua
256  lua_util.lua
257  lua_verdict.lua
258  lupa.lua
259  plugins_stats.lua
260  rescore_utility.lua
261  tableshape.lua
262 share/rspamd/lualib/lua_content/
263  ical.lua
264  init.lua
265  pdf.lua
266 share/rspamd/lualib/lua_ffi/
267  common.lua
268  dkim.lua
269  init.lua
270  linalg.lua
271  spf.lua
272 share/rspamd/lualib/lua_magic/
273  heuristics.lua
274  init.lua
275  patterns.lua
276  types.lua
277 share/rspamd/lualib/lua_scanners/
278  avast.lua
279  clamav.lua
280  common.lua
281  dcc.lua
282  fprot.lua
283  icap.lua
284  init.lua
285  kaspersky_av.lua
286  kaspersky_se.lua
287  oletools.lua
288  p0f.lua
289  razor.lua
290  savapi.lua
291  sophos.lua
292  spamassassin.lua
293  vadesecure.lua
294  virustotal.lua
295 share/rspamd/lualib/lua_selectors/
296  common.lua
297  extractors.lua
298  init.lua
299  maps.lua
300  transforms.lua
301 share/rspamd/lualib/plugins/
302  neural.lua
303  rbl.lua
304 share/rspamd/lualib/rspamadm/
305  clickhouse.lua
306  configgraph.lua
307  confighelp.lua
308  configwizard.lua
309  cookie.lua
310  corpus_test.lua
311  dns_tool.lua
312  fuzzy_convert.lua
313  fuzzy_stat.lua
314  grep.lua
315  keypair.lua
316  mime.lua
317  rescore.lua
318  stat_convert.lua
319  template.lua
320  vault.lua
321 share/rspamd/plugins/
322  antivirus.lua
323  arc.lua
324  asn.lua
325  bayes_expiry.lua
326  clickhouse.lua
327  clustering.lua
328  dcc.lua
329  dkim_signing.lua
330  dmarc.lua
331  dynamic_conf.lua
332  elastic.lua
333  emails.lua
334  external_services.lua
335  force_actions.lua
336  forged_recipients.lua
337  fuzzy_collect.lua
338  greylist.lua
339  hfilter.lua
340  history_redis.lua
341  http_headers.lua
342  ip_score.lua
343  maillist.lua
344  maps_stats.lua
345  metadata_exporter.lua
346  metric_exporter.lua
347  mid.lua
348  milter_headers.lua
349  mime_types.lua
350  multimap.lua
351  mx_check.lua
352  neural.lua
353  once_received.lua
354  p0f.lua
355  phishing.lua
356  ratelimit.lua
357  rbl.lua
358  replies.lua
359  reputation.lua
360  rspamd_update.lua
361  settings.lua
362  spamassassin.lua
363  spamtrap.lua
364  spf.lua
365  trie.lua
366  url_redirector.lua
367  whitelist.lua
368 share/rspamd/rules/
369  bitcoin.lua
370  bounce.lua
371  content.lua
372  forwarding.lua
373  headers_checks.lua
374  html.lua
375  mid.lua
376  misc.lua
377  rspamd.lua
378  subject_checks.lua
379 share/rspamd/rules/controller/
380  init.lua
381  maps.lua
382  neural.lua
383  selectors.lua
384 share/rspamd/rules/regexp/
385  compromised_hosts.lua
386  headers.lua
387  misc.lua
388  upstream_spam_filters.lua
389 share/rspamd/www/
390  README.md
391  apple-touch-icon.png
392  browserconfig.xml
393  favicon-16x16.png
394  favicon-32x32.png
395  favicon.ico
396  index.html
397  mstile-150x150.png
398  safari-pinned-tab.svg
399 share/rspamd/www/css/
400  FooTable.Glyphicons.css
401  bootstrap.min.css
402  d3evolution.css
403  font-glyphicons.css
404  footable.standalone.min.css
405  nprogress.css
406  prism.css
407  rspamd.css
408  svg-with-js.min.css
409 share/rspamd/www/fonts/
410  glyphicons-halflings-regular.ttf
411  glyphicons-halflings-regular.woff
412  glyphicons-halflings-regular.woff2
413 share/rspamd/www/img/
414  asc.png
415  desc.png
416  rspamd_logo_navbar.png
417 share/rspamd/www/js/main.js
418 share/rspamd/www/js/app/
419  config.js
420  graph.js
421  history.js
422  rspamd.js
423  selectors.js
424  stats.js
425  symbols.js
426  upload.js
427 share/rspamd/www/js/lib/
428  bootstrap.bundle.min.js
429  codejar.min.js
430  d3.min.js
431  d3evolution.min.js
432  d3pie.min.js
433  fontawesome.min.js
434  footable.min.js
435  jquery-%%JQUERY%%.min.js
436  jquery.stickytabs.min.js
437  linenumbers.min.js
438  nprogress.min.js
439  prism.js
440  require.min.js
441  solid.min.js
442  visibility.min.js
443 @dir /var/db/rspamd
444 @dir /var/log/rspamd
445 @dir /var/run/rspamd
446
447
448 [FILE:449:files/pkg-message-single.in]
449 ======================================================================
450  - Add the following line to /etc/rc.conf to enable rspamd:
451
452      rspamd_enable="YES"
453
454  - A symbolic link to %%ETCDIR%%/rspamd.newsyslog.conf
455    has been created in the /usr/local/etc/newsyslog.conf.d directory.
456    You can edit %%ETCDIR%%/rspamd.newsyslog.conf
457    to change log file rotation configuration.
458 ======================================================================
459
460
461 [FILE:1259:files/rspamd.in]
462 #!/bin/sh
463
464 # PROVIDE: rspamd
465 # REQUIRE: LOGIN redis
466 # BEFORE:  mail
467 # KEYWORD: shutdown
468 #
469 # Add the following line to /etc/rc.conf to enable rspamd:
470 #
471 # rspamd_enable (bool):         Set to "NO" by default.
472 #                               Set it to "YES" to enable rspamd.
473 #
474 # rspamd_user (str):            Default to "rspamd".
475 #
476 # rspamd_group (str):           Default to "rspamd".
477 #
478 # rspamd_flags (str):           Default to "-c %%PREFIX%%/etc/rspamd.conf".
479
480 . /etc/rc.subr
481
482 name=rspamd
483 rcvar=rspamd_enable
484
485 load_rc_config $name
486
487 : ${rspamd_enable:="NO"}
488 : ${rspamd_user="rspamd"}
489 : ${rspamd_group="rspamd"}
490 : ${rspamd_flags="-c %%PREFIX%%/etc/rspamd/rspamd.conf"}
491
492 pidfile=${rspamd_pidfile:-"/var/run/rspamd/rspamd.pid"}
493
494 command=%%PREFIX%%/bin/rspamd
495 command_adm=%%PREFIX%%/bin/rspamadm
496 restart_precmd="rspamd_checkconfig"
497 reload_precmd="rspamd_checkconfig"
498 configtest_cmd="rspamd_checkconfig"
499 reopenlog_cmd="reopenlog_cmd"
500
501 required_files=%%PREFIX%%/etc/rspamd/rspamd.conf
502 command_args="-u ${rspamd_user} -g ${rspamd_group}"
503 extra_commands="reload configtest reopenlog"
504 stop_postcmd="rm -f $pidfile"
505 sig_reload="HUP"
506
507 rspamd_checkconfig()
508 {
509         echo "Performing sanity check on rspamd configuration:"
510         eval ${command_adm} configtest ${rspamd_flags}
511 }
512
513 reopenlog_cmd()
514 {
515         pkill -USR1 -F $pidfile
516 }
517
518 run_rc_command "$1"
519
520
521 [FILE:467:files/rspamd.newsyslog.conf.sample.in]
522 # newsyslog configuration file for rspamd(8)
523 #
524 # Link (or copy) rspamd.newsyslog.conf to %%PREFIX%%/etc/newsyslog.conf.d/
525 # to take care of log rotation.
526 #
527 # ln -s %%PREFIX%%/etc/rspamd/rspamd.newsyslog.conf %%PREFIX%%/etc/newsyslog.conf.d
528 #
529 # See newsyslog.conf(5) for details.
530 #
531 # logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
532 /var/log/rspamd/rspamd.log      rspamd:rspamd   644   7    *    @T00  JC    /var/run/rspamd/rspamd.pid 30
533