Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
comparison sbin/bsmtp2dma @ 386:84d2735fe7f6
Simplified version tagging a lot: it is also faster now.
While being there: adjusting copyright year to end in 2023 now.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Thu, 23 Feb 2023 01:08:31 +0100 |
| parents | ebe98c3b0835 |
| children | 9c3b1966ba91 |
comparison
equal
deleted
inserted
replaced
| 385:d058f55fffea | 386:84d2735fe7f6 |
|---|---|
| 2 # -*- indent-tabs-mode: nil; -*- | 2 # -*- indent-tabs-mode: nil; -*- |
| 3 : 'A simple replacement for Bacula `bsmtp` when the underlying mailer does | 3 : 'A simple replacement for Bacula `bsmtp` when the underlying mailer does |
| 4 not listen on TCP ports (e.g. `dma`, `ssmtp` et al.). | 4 not listen on TCP ports (e.g. `dma`, `ssmtp` et al.). |
| 5 | 5 |
| 6 :Author: Franz Glasner | 6 :Author: Franz Glasner |
| 7 :Copyright: (c) 2019 Franz Glasner. | 7 :Copyright: (c) 2019-2023 Franz Glasner. |
| 8 All rights reserved. | 8 All rights reserved. |
| 9 :License: BSD 3-Clause "New" or "Revised" License. | 9 :License: BSD 3-Clause "New" or "Revised" License. |
| 10 See LICENSE for details. | 10 See LICENSE for details. |
| 11 If you cannot find LICENSE see | 11 If you cannot find LICENSE see |
| 12 <https://opensource.org/licenses/BSD-3-Clause> | 12 <https://opensource.org/licenses/BSD-3-Clause> |
| 13 :ID: @(#)@@PKGORIGIN@@ $HGid$ | 13 :ID: @(#)@@SIMPLEVERSIONTAG@@ |
| 14 | 14 |
| 15 ' | 15 ' |
| 16 | 16 |
| 17 VERSION="@@VERSION@@" | 17 VERSION="@@VERSION@@" |
| 18 | 18 |
| 235 | 235 |
| 236 | 236 |
| 237 while getopts "V8c:d:f:h:l:nr:s:" _opt; do | 237 while getopts "V8c:d:f:h:l:nr:s:" _opt; do |
| 238 case ${_opt} in | 238 case ${_opt} in |
| 239 V) | 239 V) |
| 240 printf 'bsmtp2dma v%s (rv:%s)\n' "${VERSION}" '@@HGREVISION@@' | 240 printf 'bsmtp2dma %s\n' '@@SIMPLEVERSIONSTR@@' |
| 241 echo "$USAGE" | 241 echo "$USAGE" |
| 242 exit 0; | 242 exit 0; |
| 243 ;; | 243 ;; |
| 244 8) | 244 8) |
| 245 : # VOID | 245 : # VOID |
