diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-08 10:08:23 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-08 10:08:23 +0200 |
| commit | ad24dcac58eea06f874055665aeed02801fde004 (patch) | |
| tree | 92ddb107de01a23a36000d28fd72248391a3d271 /slackware-changelog.service | |
| download | slackware-changelog-ad24dcac58eea06f874055665aeed02801fde004.tar.gz slackware-changelog-ad24dcac58eea06f874055665aeed02801fde004.zip | |
Homepage's customapi widget speaks JSON and cannot parse text, so the
ChangeLog needs something in front of it. This proxy fetches the file,
keeps only the entry above the first separator, and serves the counts,
the CVE ids, a truncated package list and the entry as a page.
Package lines are matched by starting at column 0 rather than by their
trailing period, since the indented notes below them frequently end in
one too.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0184D3xBAHPcZE9jZ45R5J26
Diffstat (limited to 'slackware-changelog.service')
| -rw-r--r-- | slackware-changelog.service | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/slackware-changelog.service b/slackware-changelog.service new file mode 100644 index 0000000..fbaaf5f --- /dev/null +++ b/slackware-changelog.service @@ -0,0 +1,20 @@ +[Unit] +Description=Slackware -current ChangeLog proxy for Homepage +After=network-online.target +Wants=network-online.target + +[Service] +ExecStart=/usr/bin/python3 /opt/slackware-changelog/slackware_changelog.py +Environment=CHANGELOG_URL=https://mirrors.slackware.com/slackware/slackware64-current/ChangeLog.txt +Environment=PORT=8098 +Environment=CACHE_TTL=1800 +Restart=always +RestartSec=5 +DynamicUser=yes +NoNewPrivileges=yes +PrivateTmp=yes +ProtectSystem=strict +ProtectHome=yes + +[Install] +WantedBy=multi-user.target |
