pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
anubis: install some config files
Module Name: pkgsrc-wip
Committed By: Benny Siegert <bsiegert%gmail.com@localhost>
Pushed By: bsiegert
Date: Sun Apr 13 18:15:19 2025 +0200
Changeset: 739ed6dafbded42f36a0f199c69740a57fab3618
Modified Files:
anubis/Makefile
anubis/PLIST
Log Message:
anubis: install some config files
Anubis is configured through environment variables. Install a
default.env file and the default bot policies file to /etc/anubis.
AIUI, the same file is also compiled into the binary as a default,
but it is useful to have it if you want to make changes.
As for the env file, it would probably be more useful together with a
rc.d script running something like
set -a
source ${SYSCONFDIR}/anubis/default.env
set +a
anubis
or something.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=739ed6dafbded42f36a0f199c69740a57fab3618
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
anubis/Makefile | 12 ++++++++++++
anubis/PLIST | 2 ++
2 files changed, 14 insertions(+)
diffs:
diff --git a/anubis/Makefile b/anubis/Makefile
index 7e3ece0ef1..ed90729da9 100644
--- a/anubis/Makefile
+++ b/anubis/Makefile
@@ -13,6 +13,18 @@ LICENSE= mit
USE_LANGUAGES= c # Go
GO_BUILD_PATTERN= ./cmd/anubis
+EGDIR= share/examples/anubis
+INSTALLATION_DIRS= ${EGDIR}
+PKG_SYSCONFSUBDIR= anubis
+CONF_FILES+= ${EGDIR}/botPolicies.json ${PKG_SYSCONFDIR}/botPolicies.json
+CONF_FILES+= ${EGDIR}/default.env ${PKG_SYSCONFDIR}/default.env
+
+
+post-install:
+ ${INSTALL_DATA} ${WRKSRC}/data/botPolicies.json ${DESTDIR}${PREFIX}/share/examples/anubis
+ ${INSTALL_DATA} ${WRKSRC}/run/default.env ${DESTDIR}${PREFIX}/share/examples/anubis
+
+
.include "go-modules.mk"
.include "../../lang/go/go-module.mk"
diff --git a/anubis/PLIST b/anubis/PLIST
index 4b7b1ce038..8e5c66235c 100644
--- a/anubis/PLIST
+++ b/anubis/PLIST
@@ -1,2 +1,4 @@
@comment $NetBSD$
bin/anubis
+share/examples/anubis/botPolicies.json
+share/examples/anubis/default.env
Home |
Main Index |
Thread Index |
Old Index