diff options
author | Joe Holden | 2021-09-25 00:03:36 +0000 |
---|---|---|
committer | Joe Holden | 2021-09-25 00:03:36 +0000 |
commit | 76a5e522922ecd99813039ef042d72f4821a7e51 (patch) | |
tree | bf21b83eec2f3681c173f3c37a76dfd87bb2beaa | |
parent | d9ba6d14de7958fbbd3b99e50d09804ca6b72319 (diff) | |
download | aur-76a5e522922ecd99813039ef042d72f4821a7e51.tar.gz |
make nice?
-rw-r--r-- | PKGBUILD | 13 | ||||
-rw-r--r-- | haraka.install | 9 | ||||
-rw-r--r-- | haraka.service | 23 |
3 files changed, 43 insertions, 2 deletions
@@ -8,10 +8,19 @@ license=(MIT) depends=(nodejs) makedepends=(npm python2) options=(!strip) +source=(https://github.com/haraka/Haraka/archive/refs/tags/$pkgver.tar.gz + haraka.service) +install=haraka.install package() { - npm install -g --prefix="$pkgdir"/usr Haraka@$pkgver - find "$pkgdir"/usr -type d -exec chmod 755 {} + + cd $srcdir/Haraka-$pkgver + + npm install -g --prefix="$pkgdir"/usr Haraka@$pkgver + find "$pkgdir"/usr -type d -exec chmod 755 {} + + install -Dm700 $srcdir/haraka.service $pkgdir/usr/lib/systemd/system/haraka.service + install -d $pkgdir/etc/haraka } +sha256sums=('3c8902abf5d44aa066f45c7ca0f7d4c096648f4ae05558cb0e58c6a9d6cdfbdd' + 'd2007c388d622b26db3a21b210641a863ec274a8e353a5131ac1b5e6cc0cfa25') diff --git a/haraka.install b/haraka.install new file mode 100644 index 000000000000..9721cba3c526 --- /dev/null +++ b/haraka.install @@ -0,0 +1,9 @@ +post_install() { + echo + echo "=========================" + echo "Be aware, this package has several vulnerabilities." + echo "=========================" + echo + echo "You may also want to run: haraka -i /etc/haraka/config" + echo +} diff --git a/haraka.service b/haraka.service new file mode 100644 index 000000000000..ec7510ad0ac4 --- /dev/null +++ b/haraka.service @@ -0,0 +1,23 @@ +# +# systemd service file for Haraka +# +# Ensure that `daemonize` in `smtp.ini` is set to `false` (which is the default value). +# +# Put this file in /etc/systemd/system, modify the paths to suit, then run: +# sudo systemctl enable haraka +# sudo systemctl start haraka +# + +[Unit] +Description=Haraka MTA +After=syslog.target network.target remote-fs.target nss-lookup.target + +[Service] +Type=simple +PIDFile=/var/run/haraka.pid +ExecStart=/usr/bin/haraka -c /etc/haraka/config +KillMode=process +PrivateTmp=true + +[Install] +WantedBy=multi-user.target |