diff --git a/miltie/APKBUILD b/miltie/APKBUILD new file mode 100644 index 0000000..9507b97 --- /dev/null +++ b/miltie/APKBUILD @@ -0,0 +1,31 @@ +# Contributor: Patrycja Rosa +# Maintainer: Patrycja Rosa +pkgname=miltie +pkgver=1.0.0 +pkgrel=0 +pkgdesc="a small configurable milter for random housekeeping" +url="https://git.ptrc.gay/ptrcnull/miltie" +arch="all" +license="BSD-2-Clause" +makedepends="go" +subpackages="$pkgname-openrc" +source="https://git.ptrc.gay/ptrcnull/miltie/-/archive/$pkgver/miltie-$pkgver.tar.gz + miltie.initd + " +builddir="$srcdir/$pkgname-$pkgver" +options="!check" # it's quality software that doesn't require tests + +build() { + go build . +} + +package() { + install -Dm755 miltie -t "$pkgdir"/usr/bin/ + + install -Dm755 "$srcdir"/miltie.initd "$pkgdir"/etc/init.d/miltie +} + +sha512sums=" +0af0222e50c02c2f29cc09ec2bcde152a90f55213026669289f9309af71fed5a660fa29852bea5733b8d9fcd9c92e0acc42665e6b17e23bc1a2f980d8306867b miltie-1.0.0.tar.gz +7c13a7d3c4e50b89db6b6346859c17b6dd7c5adc072946364fd43d87225b42b8adbda03c109781b0a3b67d4e9b7753c763b9b6c8f7e96b6dd0e92adabf456e6d miltie.initd +" diff --git a/miltie/miltie.initd b/miltie/miltie.initd new file mode 100644 index 0000000..a78a38a --- /dev/null +++ b/miltie/miltie.initd @@ -0,0 +1,14 @@ +#!/sbin/openrc-run + +supervisor="supervise-daemon" +name="miltie" +command="/usr/bin/miltie" + +output_log="/var/log/miltie.log" +error_log="/var/log/miltie.log" + +depend() { + need net maddy + after firewall +} +