[PR #164] [CLOSED] Change to goreleaser build for generate .deb and also implement journal log #169

Closed
opened 2026-02-26 18:33:36 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/decke/smtprelay/pull/164
Author: @josejuanmontiel
Created: 9/26/2024
Status: Closed

Base: masterHead: feat/go-to-deb


📝 Commits (10+)

  • 79d6932 Initial sample
  • ea1d4dc WIP adding journal log wrapper
  • d28f5b8 adding goreleaser gh action and info to post deb
  • 2136103 because no tag ... add snapshot
  • 69bce10 By default to journal...
  • b011cc0 Generate release file (only deb)
  • 6e22f96 Trying more simple release action
  • 6089396 marking tag?
  • 2e5ad96 Preparar only when tag
  • fcdb116 Merge branch 'master' into feat/go-to-deb

📊 Changes

14 files changed (+383 additions, -1 deletions)

View changed files

.github/workflows/goreleaser.yaml (+82 -0)
📝 .github/workflows/release.yaml.delete (+0 -0)
.gitignore (+2 -0)
.goreleaser.yaml (+86 -0)
debian/conf/smtprelay.ini (+130 -0)
debian/scripts/postinstall.sh (+26 -0)
debian/scripts/preremove.sh (+5 -0)
debian/scripts/systemd/smtprelay.service (+19 -0)
📝 go.mod (+2 -0)
📝 go.sum (+4 -0)
📝 logger.go (+2 -0)
logger_linux_journal.go (+11 -0)
logger_other_dummy_journal.go (+13 -0)
📝 smtprelay.ini (+1 -1)

📄 Description

Hi!

I want to use this relay in my raspberry (in this case) but if power restart in my house, i want that could be a service...

I could do in many ways ... but as proof of concept try to:

  1. Change to the release builder with https://goreleaser.com/ and then use https://goreleaser.com/customization/nfpm/ (the default config could solve #144)
  2. Even journal log could capture stdout... also try to use this wrapper of core https://github.com/wercker/journalhook

What do you think?


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/decke/smtprelay/pull/164 **Author:** [@josejuanmontiel](https://github.com/josejuanmontiel) **Created:** 9/26/2024 **Status:** ❌ Closed **Base:** `master` ← **Head:** `feat/go-to-deb` --- ### 📝 Commits (10+) - [`79d6932`](https://github.com/decke/smtprelay/commit/79d693227c00bc60ae9c071b58166c2fed956ce2) Initial sample - [`ea1d4dc`](https://github.com/decke/smtprelay/commit/ea1d4dc325e9975a82f0f7ba5524b2317ad60f16) WIP adding journal log wrapper - [`d28f5b8`](https://github.com/decke/smtprelay/commit/d28f5b88276b1bd1de92dcc4d94c5fa3cb4afceb) adding goreleaser gh action and info to post deb - [`2136103`](https://github.com/decke/smtprelay/commit/2136103ac071f2bd5c468d5e4b75a827f0799b0d) because no tag ... add snapshot - [`69bce10`](https://github.com/decke/smtprelay/commit/69bce10256b24f3e21d3e62d5e63b63dfc389a1c) By default to journal... - [`b011cc0`](https://github.com/decke/smtprelay/commit/b011cc0645d51181db995cc13766ca7d53ed67b5) Generate release file (only deb) - [`6e22f96`](https://github.com/decke/smtprelay/commit/6e22f96b2298aea225f4031f704acbdacb902190) Trying more simple release action - [`6089396`](https://github.com/decke/smtprelay/commit/6089396d452ff82c89655c230d63c421c4d19e2e) marking tag? - [`2e5ad96`](https://github.com/decke/smtprelay/commit/2e5ad96f37cf721fac69dd0b330ce56f50f119d7) Preparar only when tag - [`fcdb116`](https://github.com/decke/smtprelay/commit/fcdb1161ea9d430938e2239c2b21219a1b8a1b72) Merge branch 'master' into feat/go-to-deb ### 📊 Changes **14 files changed** (+383 additions, -1 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/goreleaser.yaml` (+82 -0) 📝 `.github/workflows/release.yaml.delete` (+0 -0) ➕ `.gitignore` (+2 -0) ➕ `.goreleaser.yaml` (+86 -0) ➕ `debian/conf/smtprelay.ini` (+130 -0) ➕ `debian/scripts/postinstall.sh` (+26 -0) ➕ `debian/scripts/preremove.sh` (+5 -0) ➕ `debian/scripts/systemd/smtprelay.service` (+19 -0) 📝 `go.mod` (+2 -0) 📝 `go.sum` (+4 -0) 📝 `logger.go` (+2 -0) ➕ `logger_linux_journal.go` (+11 -0) ➕ `logger_other_dummy_journal.go` (+13 -0) 📝 `smtprelay.ini` (+1 -1) </details> ### 📄 Description Hi! I want to use this relay in my raspberry (in this case) but if power restart in my house, i want that could be a service... I could do in many ways ... but as proof of concept try to: 1. Change to the release builder with https://goreleaser.com/ and then use https://goreleaser.com/customization/nfpm/ (the default config could solve #144) 2. Even journal log could capture stdout... also try to use this wrapper of core https://github.com/wercker/journalhook What do you think? --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-26 18:33:36 +03:00
Sign in to join this conversation.
No labels
bug
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/smtprelay#169
No description provided.