Package Details: mailhog-bin v1.0.1-1

Git Clone URL: https://aur.archlinux.org/mailhog-bin.git (read-only, click to copy)
Package Base: mailhog-bin
Description: Web and API based SMTP testing
Upstream URL: https://github.com/mailhog/MailHog
Licenses: MIT
Submitter: waukalak
Maintainer: waukalak
Last Packager: waukalak
Votes: 6
Popularity: 0.053427
First Submitted: 2016-06-03 14:35 (UTC)
Last Updated: 2021-01-23 21:44 (UTC)

Latest Comments

evilscientress commented on 2022-07-31 18:36 (UTC)

I have updated the PKGBUILD file to use sha256 hashes, added support for armv7h, and changed the install path to /usr/bin. I also updated the systemd unit to allow configuration of mailhog via /etc/conf.d/mailhog and fixed the dependencies of the unit.

PKGBUILD:

pkgname=mailhog-bin
pkgver=v1.0.1
pkgrel=2
pkgdesc="Web and API based SMTP testing"
arch=('x86_64' 'armv7h' 'aarch64')
license=('MIT')
url='https://github.com/mailhog/MailHog'

source_x86_64=("https://github.com/mailhog/MailHog/releases/download/${pkgver}/MailHog_linux_amd64")
sha256sums_x86_64=('e2ed634ded49929f089b20045581955ed217672078fd86082dd7a6c67c5d09c7')
source_armv7h=("https://github.com/mailhog/MailHog/releases/download/${pkgver}/MailHog_linux_arm")
sha256sums_armv7h=('9f1b71e8114cc4eeb6c083f529359211f25c052c68fcc8a5c7dcf526a19f3198')

source=("mailhog.service")
sha256sums=('ef79181a4d3b920cb94a89286c860307e59c2c4cc81fd2fb3efe356d87f2864c')

package_mailhog-bin() {
    cd ${srcdir}
    install -D -m755 ${srcdir}/MailHog_linux_amd64 ${pkgdir}/usr/bin/mailhog
    install -D -m644 ${srcdir}/mailhog.service ${pkgdir}/usr/lib/systemd/system/mailhog.service
}

systemd unit:

Unit]
Description=Mailhog - Web and API based SMTP testing
Documentation=https://github.com/mailhog/MailHog
Wants=network-online.target
After=network-online.target
AssertFileIsExecutable=/usr/bin/mailhog

[Service]
User=nobody
EnvironmentFile=/etc/conf.d/mailhog
ExecStart=/usr/bin/mailhog
ExecReload=/bin/kill -USR2 $MAINPID

[Install]
WantedBy=multi-user.target

@waukalk feel free to incorporate those changes

oxplot commented on 2017-01-31 01:15 (UTC)

Can you please add a User=nobody to mailhog.service under [Service] section. Thanks.