From e97be45bcc7ff5c154f8ed307e274bcfa105ef5d Mon Sep 17 00:00:00 2001 From: "Stanislav N. aka pztrn" Date: Wed, 29 Jul 2026 10:52:04 +0500 Subject: [PATCH] Enable nocem. --- CHANGELOG.md | 6 ++++++ README.md | 4 ++++ etc/cont-init.d/30-nocem-keyring.sh | 18 ++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100755 etc/cont-init.d/30-nocem-keyring.sh diff --git a/CHANGELOG.md b/CHANGELOG.md index a116581..017ef65 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/) but do not follows semantic versioning as it is useless in this type of project. +## [2.7.4-4] - 2026-07-29 + +### Added + +* nocem processing enablement with data from https://rosalind.home.xs4all.nl/nocemreg/nocemreg.html. + ## [2.7.4-3] - 2026-07-29 ### Added diff --git a/README.md b/README.md index bf061d2..ab37103 100644 --- a/README.md +++ b/README.md @@ -95,6 +95,10 @@ If you want to use cron outside of your container: As this container has no postfix installed (why do you might ever need it here?) you can use [ssmtp](https://wiki.debian.org/sSMTP) which installed in container to get mails sent over SMTP. +## No See 'Em's + +This container has nocem enabled and neccessary data will be loaded on first start from [NoCeM registry](https://rosalind.home.xs4all.nl/nocemreg/nocemreg.html). + ## Versioning Image versioning follows official inn2 versions with additional optional version postfix added to indicate image fixes for particular version. diff --git a/etc/cont-init.d/30-nocem-keyring.sh b/etc/cont-init.d/30-nocem-keyring.sh new file mode 100755 index 0000000..dffcd87 --- /dev/null +++ b/etc/cont-init.d/30-nocem-keyring.sh @@ -0,0 +1,18 @@ +#!/bin/sh + +if [ -f "/inn2/etc/pgp/ncmring.gpg" ]; then + exit 0 +fi + +if [ ! -d "/inn2/etc/pgp" ]; then + mkdir -p "/inn2/etc/pgp" +fi + +echo "* Downloading NoCeM gpg keys and ctl file..." + +curl -o /inn2/etc/pgp/ncmring.gpg https://rosalind.home.xs4all.nl/nocemreg/ncmring.asc +curl -o /inn2/etc/nocem.ctl https://rosalind.home.xs4all.nl/nocemreg/ncmperm.txt +chown -R news:news /inn2/etc/nocem.ctl /inn2/etc/pgp + +echo "* Enabling NoCeM processing..." +sed -i '/^#nocem/ { s/^#//; n; s/^#//; }' /inn2/etc/newsfeeds