diff --git a/CONFIGURING.md b/CONFIGURING.md index 3c140905..e0421ccd 100644 --- a/CONFIGURING.md +++ b/CONFIGURING.md @@ -47,7 +47,22 @@ Settings for signing packages or repository. Group name must refer to architectu Report generation settings. -* `target` - list of reports to be generated, space separated list of strings, optional. Allowed values are `html`. +* `target` - list of reports to be generated, space separated list of strings, optional. Allowed values are `html`, `email`. + +### `email:*` groups + +Group name must refer to architecture, e.g. it should be `email:x86_64` for x86_64 architecture. + +* `homepage` - link to homepage, string, optional. +* `host` - SMTP host for sending emails, string, required. +* `link_path` - prefix for HTML links, string, required. +* `password` - SMTP password to authenticate, string, optional. +* `port` - SMTP port for sending emails, int, required. +* `receivers` - SMTP receiver addresses, space separated list of strings, required. +* `sender` - SMTP sender address, string, required. +* `ssl` - SSL mode for SMTP connection, one of `ssl`, `starttls`, `disabled`, optional, default `disabled`. +* `template_path` - path to Jinja2 template, string, required. +* `user` - SMTP user to authenticate, string, optional. ### `html:*` groups diff --git a/Makefile b/Makefile index d9a6e713..75883ec2 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,7 @@ archlinux: archive check: clean cd src && mypy --implicit-reexport --strict -p "$(PROJECT)" - find "src/$(PROJECT)" tests -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} + + find "src/$(PROJECT)" "tests/$(PROJECT)" -name "*.py" -execdir autopep8 --exit-code --max-line-length 120 -aa -i {} + cd src && pylint --rcfile=../.pylintrc "$(PROJECT)" clean: diff --git a/package/etc/ahriman.ini b/package/etc/ahriman.ini index 7d1b3582..1d60e650 100644 --- a/package/etc/ahriman.ini +++ b/package/etc/ahriman.ini @@ -25,10 +25,11 @@ target = [report] target = +[email] +template_path = /usr/share/ahriman/repo-index.jinja2 +ssl = disabled + [html] -path = -homepage = -link_path = template_path = /usr/share/ahriman/repo-index.jinja2 [upload] diff --git a/package/share/ahriman/repo-index.jinja2 b/package/share/ahriman/repo-index.jinja2 index 3edbb86f..71caf7ef 100644 --- a/package/share/ahriman/repo-index.jinja2 +++ b/package/share/ahriman/repo-index.jinja2 @@ -5,26 +5,30 @@ {% include "style.jinja2" %} - {% include "sorttable.jinja2" %} - {% include "search.jinja2" %} + {% if extended_report %} + {% include "sorttable.jinja2" %} + {% include "search.jinja2" %} + {% endif %}
This repository is signed with {{ pgp_key|e }} by default.
- {% endif %} +This repository is signed with {{ pgp_key|e }} by default.
+ {% endif %} -
- $ cat /etc/pacman.conf
- [{{ repository|e }}]
- Server = {{ link_path|e }}
- SigLevel = Database{% if has_repo_signed %}Required{% else %}Never{% endif %} Package{% if has_package_signed %}Required{% else %}Never{% endif %} TrustedOnly
-
-
+ $ cat /etc/pacman.conf
+ [{{ repository|e }}]
+ Server = {{ link_path|e }}
+ SigLevel = Database{% if has_repo_signed %}Required{% else %}Never{% endif %} Package{% if has_package_signed %}Required{% else %}Never{% endif %} TrustedOnly
+
+