forked from SynoCommunity/spksrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (34 loc) · 1.27 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
SPK_NAME = monit
SPK_VERS = 5.17.1
SPK_REV = 8
SPK_ICON = src/monit.png
DSM_UI_DIR = app
CHANGELOG = Update monit to 5.17.1
ADMIN_PORT = 2812
BETA = 1
DEPENDS = cross/$(SPK_NAME)
MAINTAINER = SynoCommunity
DESCRIPTION = Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
RELOAD_UI = yes
DISPLAY_NAME = Monit
HOMEPAGE = http://mmonit.com/monit
LICENSE = AGPL
INSTALLER_SCRIPT = src/installer.sh
SSS_SCRIPT = src/dsm-control.sh
FWPORTS = src/${SPK_NAME}.sc
WIZARDS_DIR = src/wizard/
INSTALL_PREFIX = /usr/local/$(SPK_NAME)
POST_STRIP_TARGET = monit_extra_install
include ../../mk/spksrc.spk.mk
.PHONY: monit_extra_install
monit_extra_install:
install -m 755 -d $(STAGING_DIR)/app
install -m 644 src/app/config $(STAGING_DIR)/app/config
install -m 755 -d $(STAGING_DIR)/var
install -m 755 -d $(STAGING_DIR)/var/monit.d
install -m 755 -d $(STAGING_DIR)/var/events
install -m 700 src/monitrc $(STAGING_DIR)/var/monitrc
install -m 700 src/monit.d/monit $(STAGING_DIR)/var/monit.d/monit
install -m 755 -d $(STAGING_DIR)/share
install -m 755 -d $(STAGING_DIR)/share/examples
install -m 644 src/examples/* $(STAGING_DIR)/share/examples/