core/monit: new port

This commit is contained in:
emmett1
2020-07-01 00:15:30 +08:00
parent ac0e78d317
commit 1871a72ae0
4 changed files with 34 additions and 0 deletions

2
core/monit/.checksums Normal file
View File

@@ -0,0 +1,2 @@
6a582b26bcc1be69d565b98b2f183cfb monit-5.27.0.tar.gz
75931a3204d9f63944ace164516ff1f1 run

7
core/monit/.pkgfiles Normal file
View File

@@ -0,0 +1,7 @@
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/monit
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
drwxr-xr-x root/root usr/share/man/man1/
-rw-r--r-- root/root usr/share/man/man1/monit.1.gz

3
core/monit/run Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
exec monit -c /etc/monitrc -I

22
core/monit/spkgbuild Normal file
View File

@@ -0,0 +1,22 @@
# description : Utility for monitoring daemons running on a Unix system
# depends : linux-pam zlib openssl
name=monit
version=5.27.0
release=1
source="http://mmonit.com/$name/dist/$name-$version.tar.gz
run"
build() {
cd $name-$version
./configure --prefix=/usr --sysconfdir=/etc
make
make DESTDIR=$PKG install
install -D -m 0700 monitrc $PKG/etc/monitrc
# runit service
install -Dm755 $SRC/run $PKG/etc/sv/$name/run
ln -s /run/runit/supervise.$name $PKG/etc/sv/$name/supervise
}