miltie: new ptrcport
This commit is contained in:
parent
66828fa953
commit
7b9db9bfba
2 changed files with 45 additions and 0 deletions
31
miltie/APKBUILD
Normal file
31
miltie/APKBUILD
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
|
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
|
||||||
|
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
|
||||||
|
"
|
14
miltie/miltie.initd
Normal file
14
miltie/miltie.initd
Normal file
|
@ -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
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue