+++ /dev/null
-# $NetBSD: Makefile,v 1.81 2022/06/28 11:34:34 wiz Exp $
-
-DISTNAME= rspamd-3.1
-PKGREVISION= 2
-CATEGORIES= mail
-MASTER_SITES= ${MASTER_SITE_GITHUB:=rspamd/}
-
-MAINTAINER= bartosz.kuzma@gmail.com
-HOMEPAGE= https://www.rspamd.com/
-COMMENT= Fast, free and open-source spam filtering system
-LICENSE= 2-clause-bsd
-
-DEPENDS+= ${LUA_PKGPREFIX}-lpeg-[0-9]*:../../devel/lua-lpeg
-DEPENDS+= ragel-[0-9]*:../../devel/ragel
-
-GCC_REQD+= 8
-
-USE_CMAKE= yes
-USE_TOOLS+= perl pkg-config
-USE_LANGUAGES= c99 c++
-BUILD_DEFS+= VARBASE
-
-LUA_VERSIONS_ACCEPTED= 54 53 52 51
-
-.include "../../mk/bsd.prefs.mk"
-
-.if ${OPSYS} == "NetBSD" && ${OPSYS_VERSION} < 099915
-USE_PKGSRC_GCC= yes
-USE_PKGSRC_GCC_RUNTIME= yes
-.endif
-
-CPPFLAGS.SunOS+= -D__EXTENSIONS__
-
-CMAKE_INSTALL_NAME_DIR= ${PREFIX}/lib/rspamd
-LDFLAGS+= ${COMPILER_RPATH_FLAG}${PREFIX}/lib/rspamd
-TEST_TARGET= run-test
-
-RSPAMD_USER?= rspamd
-RSPAMD_GROUP?= rspamd
-PKG_GROUPS= ${RSPAMD_GROUP}
-PKG_USERS= ${RSPAMD_USER}:${RSPAMD_GROUP}
-
-PKG_GROUPS_VARS= RSPAMD_GROUP
-PKG_USERS_VARS= RSPAMD_USER
-
-PKG_GECOS.${RSPAMD_USER}= rspamd user
-
-PKG_SYSCONFSUBDIR= rspamd
-
-EGDIR= ${PREFIX}/share/examples/${PKGBASE}
-LOGDIR= ${VARBASE}/log/rspamd
-DBDIR= ${VARBASE}/db/rspamd
-RUNDIR= ${VARBASE}/run/rspamd
-
-FILES_SUBST+= RSPAMD_USER=${RSPAMD_USER}
-FILES_SUBST+= RSPAMD_GROUP=${RSPAMD_GROUP}
-
-RCD_SCRIPTS= rspamd
-SMF_METHODS= rspamd
-
-CMAKE_ARGS+= -DMANDIR:PATH=${PREFIX}/${PKGMANDIR}
-CMAKE_ARGS+= -DLOGDIR:PATH=${LOGDIR}
-CMAKE_ARGS+= -DRUNDIR:PATH=${VARBASE}/run/rspamd
-CMAKE_ARGS+= -DDBDIR:PATH=${DBDIR}
-CMAKE_ARGS+= -DCONFDIR:PATH=${PKG_SYSCONFDIR}
-CMAKE_ARGS+= -DEXAMPLESDIR:PATH=${EGDIR}
-CMAKE_ARGS+= -DRSPAMD_USER=${RSPAMD_USER}
-CMAKE_ARGS+= -DRSPAMD_GROUP=${RSPAMD_GROUP}
-# Torch requires LuaJIT2, but LuaJIT2 only supports Lua 5.1
-CMAKE_ARGS+= -DENABLE_LUAJIT=OFF
-
-# Assumes inotify == Linux
-CMAKE_ARGS.SunOS+= -DHAVE_INOTIFY_INIT=NO
-
-REPLACE_PERL+= utils/rspamd_stats.pl
-
-MAKE_DIRS+= ${PKG_SYSCONFDIR}/maps.d
-MAKE_DIRS+= ${PKG_SYSCONFDIR}/modules.d
-MAKE_DIRS+= ${PKG_SYSCONFDIR}/scores.d
-
-OWN_DIRS_PERMS+= ${DBDIR} ${RSPAMD_USER} ${RSPAMD_GROUP} 0700
-OWN_DIRS_PERMS+= ${LOGDIR} ${RSPAMD_USER} ${RSPAMD_GROUP} 0750
-OWN_DIRS_PERMS+= ${RUNDIR} ${RSPAMD_USER} ${RSPAMD_GROUP} 0755
-
-.include "cfgfiles.mk"
-
-.for file in ${CFGFILES}
-CONF_FILES+= ${EGDIR}/${file} ${PKG_SYSCONFDIR}/${file}
-.endfor
-
-###
-### Generate list of config files
-###
-.PHONY: cfgfiles
-cfgfiles:
- ${RUN} ${RECURSIVE_MAKE} extract
- @${ECHO} "# \$$NetBSD\$$" > ${.CURDIR}/cfgfiles.mk
- @${ECHO} "# Do not edit, regenerate using 'make cfgfiles'" >> ${.CURDIR}/cfgfiles.mk
- ${RUN} cd ${WRKSRC}/conf && ${FIND} * -type f | ${SORT} \
- | ${TR} '\n' ' ' | ${SED} 's, $$,,' \
- | ${AWK} '{print("CFGFILES=\t" $$0)}' >> ${.CURDIR}/cfgfiles.mk
- @${ECHO} >> ${.CURDIR}/cfgfiles.mk
-
-post-extract:
- ${FIND} ${WRKSRC}/conf -type d -exec ${CHMOD} ${PKGDIRMODE} {} \;
- ${FIND} ${WRKSRC}/conf -type f -exec ${CHMOD} ${DOCMODE} {} \;
-
-.include "../../databases/hiredis/buildlink3.mk"
-.include "../../databases/sqlite3/buildlink3.mk"
-.include "../../devel/fann/buildlink3.mk"
-.include "../../devel/glib2/buildlink3.mk"
-.include "../../devel/libevent/buildlink3.mk"
-.include "../../lang/lua/buildlink3.mk"
-.include "../../mail/gmime/buildlink3.mk"
-.include "../../security/openssl/buildlink3.mk"
-.include "../../security/libsodium/buildlink3.mk"
-.include "../../sysutils/file/buildlink3.mk"
-.include "../../textproc/icu/buildlink3.mk"
-.include "../../mk/bsd.pkg.mk"
+++ /dev/null
-@comment $NetBSD: PLIST,v 1.23 2021/12/21 15:00:41 triaxx Exp $
-bin/rspamadm
-bin/rspamadm-${PKGVERSION}
-bin/rspamc
-bin/rspamc-${PKGVERSION}
-bin/rspamd
-bin/${PKGNAME}
-bin/rspamd_stats
-lib/rspamd/librspamd-actrie.so
-lib/rspamd/librspamd-ev.so
-lib/rspamd/librspamd-kann.so
-lib/rspamd/librspamd-replxx.so
-lib/rspamd/librspamd-server.so
-man/man1/rspamadm.1
-man/man1/rspamc.1
-man/man8/rspamd.8
-share/examples/rspamd/actions.conf
-share/examples/rspamd/cgp.inc
-share/examples/rspamd/common.conf
-share/examples/rspamd/composites.conf
-share/examples/rspamd/groups.conf
-share/examples/rspamd/logging.inc
-share/examples/rspamd/maps.d/dmarc_whitelist.inc
-share/examples/rspamd/maps.d/maillist.inc
-share/examples/rspamd/maps.d/mid.inc
-share/examples/rspamd/maps.d/mime_types.inc
-share/examples/rspamd/maps.d/redirectors.inc
-share/examples/rspamd/maps.d/spf_dkim_whitelist.inc
-share/examples/rspamd/maps.d/surbl-whitelist.inc
-share/examples/rspamd/metrics.conf
-share/examples/rspamd/modules.conf
-share/examples/rspamd/modules.d/antivirus.conf
-share/examples/rspamd/modules.d/arc.conf
-share/examples/rspamd/modules.d/asn.conf
-share/examples/rspamd/modules.d/aws_s3.conf
-share/examples/rspamd/modules.d/chartable.conf
-share/examples/rspamd/modules.d/clickhouse.conf
-share/examples/rspamd/modules.d/dcc.conf
-share/examples/rspamd/modules.d/dkim.conf
-share/examples/rspamd/modules.d/dkim_signing.conf
-share/examples/rspamd/modules.d/dmarc.conf
-share/examples/rspamd/modules.d/elastic.conf
-share/examples/rspamd/modules.d/emails.conf
-share/examples/rspamd/modules.d/external_relay.conf
-share/examples/rspamd/modules.d/external_services.conf
-share/examples/rspamd/modules.d/force_actions.conf
-share/examples/rspamd/modules.d/forged_recipients.conf
-share/examples/rspamd/modules.d/fuzzy_check.conf
-share/examples/rspamd/modules.d/greylist.conf
-share/examples/rspamd/modules.d/hfilter.conf
-share/examples/rspamd/modules.d/history_redis.conf
-share/examples/rspamd/modules.d/http_headers.conf
-share/examples/rspamd/modules.d/maillist.conf
-share/examples/rspamd/modules.d/metadata_exporter.conf
-share/examples/rspamd/modules.d/metric_exporter.conf
-share/examples/rspamd/modules.d/mid.conf
-share/examples/rspamd/modules.d/milter_headers.conf
-share/examples/rspamd/modules.d/mime_types.conf
-share/examples/rspamd/modules.d/multimap.conf
-share/examples/rspamd/modules.d/mx_check.conf
-share/examples/rspamd/modules.d/neural.conf
-share/examples/rspamd/modules.d/once_received.conf
-share/examples/rspamd/modules.d/p0f.conf
-share/examples/rspamd/modules.d/phishing.conf
-share/examples/rspamd/modules.d/ratelimit.conf
-share/examples/rspamd/modules.d/rbl.conf
-share/examples/rspamd/modules.d/redis.conf
-share/examples/rspamd/modules.d/regexp.conf
-share/examples/rspamd/modules.d/replies.conf
-share/examples/rspamd/modules.d/reputation.conf
-share/examples/rspamd/modules.d/rspamd_update.conf
-share/examples/rspamd/modules.d/spamassassin.conf
-share/examples/rspamd/modules.d/spamtrap.conf
-share/examples/rspamd/modules.d/spf.conf
-share/examples/rspamd/modules.d/surbl.conf
-share/examples/rspamd/modules.d/trie.conf
-share/examples/rspamd/modules.d/url_redirector.conf
-share/examples/rspamd/modules.d/whitelist.conf
-share/examples/rspamd/options.inc
-share/examples/rspamd/rspamd.conf
-share/examples/rspamd/scores.d/content_group.conf
-share/examples/rspamd/scores.d/fuzzy_group.conf
-share/examples/rspamd/scores.d/headers_group.conf
-share/examples/rspamd/scores.d/hfilter_group.conf
-share/examples/rspamd/scores.d/mime_types_group.conf
-share/examples/rspamd/scores.d/mua_group.conf
-share/examples/rspamd/scores.d/phishing_group.conf
-share/examples/rspamd/scores.d/policies_group.conf
-share/examples/rspamd/scores.d/rbl_group.conf
-share/examples/rspamd/scores.d/statistics_group.conf
-share/examples/rspamd/scores.d/subject_group.conf
-share/examples/rspamd/scores.d/surbl_group.conf
-share/examples/rspamd/scores.d/whitelist_group.conf
-share/examples/rspamd/settings.conf
-share/examples/rspamd/statistic.conf
-share/examples/rspamd/worker-controller.inc
-share/examples/rspamd/worker-fuzzy.inc
-share/examples/rspamd/worker-normal.inc
-share/examples/rspamd/worker-proxy.inc
-share/rspamd/effective_tld_names.dat
-share/rspamd/elastic/kibana.json
-share/rspamd/elastic/rspamd_template.json
-share/rspamd/languages/af.json
-share/rspamd/languages/an.json
-share/rspamd/languages/ar.json
-share/rspamd/languages/bg.json
-share/rspamd/languages/bn.json
-share/rspamd/languages/br.json
-share/rspamd/languages/cs.json
-share/rspamd/languages/cy.json
-share/rspamd/languages/da.json
-share/rspamd/languages/de.json
-share/rspamd/languages/en.json
-share/rspamd/languages/es.json
-share/rspamd/languages/et.json
-share/rspamd/languages/eu.json
-share/rspamd/languages/fa.json
-share/rspamd/languages/fi.json
-share/rspamd/languages/fr.json
-share/rspamd/languages/ga.json
-share/rspamd/languages/hi.json
-share/rspamd/languages/hr.json
-share/rspamd/languages/hu.json
-share/rspamd/languages/id.json
-share/rspamd/languages/is.json
-share/rspamd/languages/it.json
-share/rspamd/languages/lt.json
-share/rspamd/languages/lv.json
-share/rspamd/languages/mr.json
-share/rspamd/languages/ms.json
-share/rspamd/languages/ne.json
-share/rspamd/languages/nl.json
-share/rspamd/languages/no.json
-share/rspamd/languages/pa.json
-share/rspamd/languages/pl.json
-share/rspamd/languages/pt.json
-share/rspamd/languages/ro.json
-share/rspamd/languages/ru.json
-share/rspamd/languages/sl.json
-share/rspamd/languages/so.json
-share/rspamd/languages/sq.json
-share/rspamd/languages/sr.json
-share/rspamd/languages/stop_words
-share/rspamd/languages/sv.json
-share/rspamd/languages/sw.json
-share/rspamd/languages/tr.json
-share/rspamd/languages/uk.json
-share/rspamd/languages/ur.json
-share/rspamd/languages/vi.json
-share/rspamd/lualib/ansicolors.lua
-share/rspamd/lualib/argparse.lua
-share/rspamd/lualib/fun.lua
-share/rspamd/lualib/global_functions.lua
-share/rspamd/lualib/lpegre.lua
-share/rspamd/lualib/lua_auth_results.lua
-share/rspamd/lualib/lua_aws.lua
-share/rspamd/lualib/lua_bayes_learn.lua
-share/rspamd/lualib/lua_cfg_transform.lua
-share/rspamd/lualib/lua_clickhouse.lua
-share/rspamd/lualib/lua_content/ical.lua
-share/rspamd/lualib/lua_content/init.lua
-share/rspamd/lualib/lua_content/pdf.lua
-share/rspamd/lualib/lua_content/vcard.lua
-share/rspamd/lualib/lua_dkim_tools.lua
-share/rspamd/lualib/lua_ffi/common.lua
-share/rspamd/lualib/lua_ffi/dkim.lua
-share/rspamd/lualib/lua_ffi/init.lua
-share/rspamd/lualib/lua_ffi/linalg.lua
-share/rspamd/lualib/lua_ffi/spf.lua
-share/rspamd/lualib/lua_fuzzy.lua
-share/rspamd/lualib/lua_lexer.lua
-share/rspamd/lualib/lua_magic/heuristics.lua
-share/rspamd/lualib/lua_magic/init.lua
-share/rspamd/lualib/lua_magic/patterns.lua
-share/rspamd/lualib/lua_magic/types.lua
-share/rspamd/lualib/lua_maps.lua
-share/rspamd/lualib/lua_maps_expressions.lua
-share/rspamd/lualib/lua_meta.lua
-share/rspamd/lualib/lua_mime.lua
-share/rspamd/lualib/lua_mime_types.lua
-share/rspamd/lualib/lua_redis.lua
-share/rspamd/lualib/lua_scanners/avast.lua
-share/rspamd/lualib/lua_scanners/clamav.lua
-share/rspamd/lualib/lua_scanners/common.lua
-share/rspamd/lualib/lua_scanners/dcc.lua
-share/rspamd/lualib/lua_scanners/fprot.lua
-share/rspamd/lualib/lua_scanners/icap.lua
-share/rspamd/lualib/lua_scanners/init.lua
-share/rspamd/lualib/lua_scanners/kaspersky_av.lua
-share/rspamd/lualib/lua_scanners/kaspersky_se.lua
-share/rspamd/lualib/lua_scanners/oletools.lua
-share/rspamd/lualib/lua_scanners/p0f.lua
-share/rspamd/lualib/lua_scanners/pyzor.lua
-share/rspamd/lualib/lua_scanners/razor.lua
-share/rspamd/lualib/lua_scanners/savapi.lua
-share/rspamd/lualib/lua_scanners/sophos.lua
-share/rspamd/lualib/lua_scanners/spamassassin.lua
-share/rspamd/lualib/lua_scanners/vadesecure.lua
-share/rspamd/lualib/lua_scanners/virustotal.lua
-share/rspamd/lualib/lua_selectors/common.lua
-share/rspamd/lualib/lua_selectors/extractors.lua
-share/rspamd/lualib/lua_selectors/init.lua
-share/rspamd/lualib/lua_selectors/maps.lua
-share/rspamd/lualib/lua_selectors/transforms.lua
-share/rspamd/lualib/lua_settings.lua
-share/rspamd/lualib/lua_smtp.lua
-share/rspamd/lualib/lua_stat.lua
-share/rspamd/lualib/lua_tcp_sync.lua
-share/rspamd/lualib/lua_urls_compose.lua
-share/rspamd/lualib/lua_util.lua
-share/rspamd/lualib/lua_verdict.lua
-share/rspamd/lualib/lupa.lua
-share/rspamd/lualib/plugins/dmarc.lua
-share/rspamd/lualib/plugins/neural.lua
-share/rspamd/lualib/plugins/rbl.lua
-share/rspamd/lualib/plugins_stats.lua
-share/rspamd/lualib/rescore_utility.lua
-share/rspamd/lualib/rspamadm/clickhouse.lua
-share/rspamd/lualib/rspamadm/configgraph.lua
-share/rspamd/lualib/rspamadm/confighelp.lua
-share/rspamd/lualib/rspamadm/configwizard.lua
-share/rspamd/lualib/rspamadm/cookie.lua
-share/rspamd/lualib/rspamadm/corpus_test.lua
-share/rspamd/lualib/rspamadm/dmarc_report.lua
-share/rspamd/lualib/rspamadm/dns_tool.lua
-share/rspamd/lualib/rspamadm/fuzzy_convert.lua
-share/rspamd/lualib/rspamadm/fuzzy_stat.lua
-share/rspamd/lualib/rspamadm/grep.lua
-share/rspamd/lualib/rspamadm/keypair.lua
-share/rspamd/lualib/rspamadm/mime.lua
-share/rspamd/lualib/rspamadm/neural_test.lua
-share/rspamd/lualib/rspamadm/rescore.lua
-share/rspamd/lualib/rspamadm/stat_convert.lua
-share/rspamd/lualib/rspamadm/statistics_dump.lua
-share/rspamd/lualib/rspamadm/template.lua
-share/rspamd/lualib/rspamadm/vault.lua
-share/rspamd/lualib/tableshape.lua
-share/rspamd/plugins/antivirus.lua
-share/rspamd/plugins/arc.lua
-share/rspamd/plugins/asn.lua
-share/rspamd/plugins/aws_s3.lua
-share/rspamd/plugins/bayes_expiry.lua
-share/rspamd/plugins/clickhouse.lua
-share/rspamd/plugins/clustering.lua
-share/rspamd/plugins/dcc.lua
-share/rspamd/plugins/dkim_signing.lua
-share/rspamd/plugins/dmarc.lua
-share/rspamd/plugins/dynamic_conf.lua
-share/rspamd/plugins/elastic.lua
-share/rspamd/plugins/emails.lua
-share/rspamd/plugins/external_relay.lua
-share/rspamd/plugins/external_services.lua
-share/rspamd/plugins/force_actions.lua
-share/rspamd/plugins/forged_recipients.lua
-share/rspamd/plugins/fuzzy_collect.lua
-share/rspamd/plugins/greylist.lua
-share/rspamd/plugins/hfilter.lua
-share/rspamd/plugins/history_redis.lua
-share/rspamd/plugins/http_headers.lua
-share/rspamd/plugins/ip_score.lua
-share/rspamd/plugins/maillist.lua
-share/rspamd/plugins/maps_stats.lua
-share/rspamd/plugins/metadata_exporter.lua
-share/rspamd/plugins/metric_exporter.lua
-share/rspamd/plugins/mid.lua
-share/rspamd/plugins/milter_headers.lua
-share/rspamd/plugins/mime_types.lua
-share/rspamd/plugins/multimap.lua
-share/rspamd/plugins/mx_check.lua
-share/rspamd/plugins/neural.lua
-share/rspamd/plugins/once_received.lua
-share/rspamd/plugins/p0f.lua
-share/rspamd/plugins/phishing.lua
-share/rspamd/plugins/ratelimit.lua
-share/rspamd/plugins/rbl.lua
-share/rspamd/plugins/replies.lua
-share/rspamd/plugins/reputation.lua
-share/rspamd/plugins/rspamd_update.lua
-share/rspamd/plugins/settings.lua
-share/rspamd/plugins/spamassassin.lua
-share/rspamd/plugins/spamtrap.lua
-share/rspamd/plugins/spf.lua
-share/rspamd/plugins/trie.lua
-share/rspamd/plugins/url_redirector.lua
-share/rspamd/plugins/whitelist.lua
-share/rspamd/rules/bitcoin.lua
-share/rspamd/rules/bounce.lua
-share/rspamd/rules/content.lua
-share/rspamd/rules/controller/init.lua
-share/rspamd/rules/controller/maps.lua
-share/rspamd/rules/controller/neural.lua
-share/rspamd/rules/controller/selectors.lua
-share/rspamd/rules/forwarding.lua
-share/rspamd/rules/headers_checks.lua
-share/rspamd/rules/html.lua
-share/rspamd/rules/mid.lua
-share/rspamd/rules/misc.lua
-share/rspamd/rules/regexp/compromised_hosts.lua
-share/rspamd/rules/regexp/headers.lua
-share/rspamd/rules/regexp/misc.lua
-share/rspamd/rules/regexp/upstream_spam_filters.lua
-share/rspamd/rules/rspamd.lua
-share/rspamd/rules/subject_checks.lua
-share/rspamd/www/README.md
-share/rspamd/www/apple-touch-icon.png
-share/rspamd/www/browserconfig.xml
-share/rspamd/www/css/FooTable.Glyphicons.css
-share/rspamd/www/css/bootstrap.min.css
-share/rspamd/www/css/d3evolution.css
-share/rspamd/www/css/font-glyphicons.css
-share/rspamd/www/css/footable.standalone.min.css
-share/rspamd/www/css/nprogress.css
-share/rspamd/www/css/prism.css
-share/rspamd/www/css/rspamd.css
-share/rspamd/www/css/svg-with-js.min.css
-share/rspamd/www/favicon-16x16.png
-share/rspamd/www/favicon-32x32.png
-share/rspamd/www/favicon.ico
-share/rspamd/www/fonts/glyphicons-halflings-regular.ttf
-share/rspamd/www/fonts/glyphicons-halflings-regular.woff
-share/rspamd/www/fonts/glyphicons-halflings-regular.woff2
-share/rspamd/www/img/asc.png
-share/rspamd/www/img/desc.png
-share/rspamd/www/img/rspamd_logo_navbar.png
-share/rspamd/www/index.html
-share/rspamd/www/js/app/config.js
-share/rspamd/www/js/app/graph.js
-share/rspamd/www/js/app/history.js
-share/rspamd/www/js/app/rspamd.js
-share/rspamd/www/js/app/selectors.js
-share/rspamd/www/js/app/stats.js
-share/rspamd/www/js/app/symbols.js
-share/rspamd/www/js/app/upload.js
-share/rspamd/www/js/lib/bootstrap.bundle.min.js
-share/rspamd/www/js/lib/codejar.min.js
-share/rspamd/www/js/lib/d3.min.js
-share/rspamd/www/js/lib/d3evolution.min.js
-share/rspamd/www/js/lib/d3pie.min.js
-share/rspamd/www/js/lib/fontawesome.min.js
-share/rspamd/www/js/lib/footable.min.js
-share/rspamd/www/js/lib/jquery-3.6.0.min.js
-share/rspamd/www/js/lib/jquery.stickytabs.min.js
-share/rspamd/www/js/lib/linenumbers.min.js
-share/rspamd/www/js/lib/nprogress.min.js
-share/rspamd/www/js/lib/prism.js
-share/rspamd/www/js/lib/require.min.js
-share/rspamd/www/js/lib/solid.min.js
-share/rspamd/www/js/lib/visibility.min.js
-share/rspamd/www/js/main.js
-share/rspamd/www/mstile-150x150.png
-share/rspamd/www/safari-pinned-tab.svg
-@pkgdir etc/rspamd