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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# -*-makefile-*-
#
# Copyright (C) 2014 by Alexander Dahl <post@lespocky.de>
#
# See CREDITS for details about who has contributed to this project.
#
# For further information about the PTXdist project and license conditions
# see the README file.
#
#
# We provide this package
#
PACKAGES-$(PTXCONF_MONIT) += monit
#
# Paths and names
#
MONIT_VERSION := 5.6
MONIT_MD5 := 19dfc1ce8512e832134d06eedd96ba50
MONIT := monit-$(MONIT_VERSION)
MONIT_SUFFIX := tar.gz
MONIT_URL := http://mmonit.com/monit/dist/$(MONIT).$(MONIT_SUFFIX)
MONIT_SOURCE := $(SRCDIR)/$(MONIT).$(MONIT_SUFFIX)
MONIT_DIR := $(BUILDDIR)/$(MONIT)
MONIT_LICENSE := AGPLv3
# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------
MONIT_CONF_ENV := $(CROSS_ENV) \
libmonit_cv_setjmp_available=yes \
libmonit_cv_vsnprintf_c99_conformant=yes
MONIT_CONF_TOOL := autoconf
MONIT_CONF_OPT := $(CROSS_AUTOCONF_USR) \
--enable-optimized \
$(GLOBAL_LARGE_FILE_OPTION) \
--without-pam \
--$(call ptx/wwo, PTXCONF_MONIT_SSL)-ssl \
--with-ssl-dir=$(SYSROOT)/usr
# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------
$(STATEDIR)/monit.targetinstall:
@$(call targetinfo)
@$(call install_init, monit)
@$(call install_fixup, monit,PRIORITY,optional)
@$(call install_fixup, monit,SECTION,base)
@$(call install_fixup, monit,AUTHOR,"Alexander Dahl <post@lespocky.de>")
@$(call install_fixup, monit,DESCRIPTION,missing)
@$(call install_copy, monit, 0, 0, 0755, -, /usr/bin/monit)
@$(call install_copy, monit, 0, 0, 0755, /var/lib/monit)
@$(call install_copy, monit, 0, 0, 0755, /var/lib/monit/events)
@$(call install_alternative, monit, 0, 0, 0600, /etc/monitrc)
ifdef PTXCONF_INITMETHOD_BBINIT
ifdef PTXCONF_MONIT_STARTSCRIPT
@$(call install_alternative, monit, 0, 0, 0755, /etc/init.d/monit)
ifneq ($(call remove_quotes,$(PTXCONF_MONIT_BBINIT_LINK)),)
@$(call install_link, monit, ../init.d/monit, \
/etc/rc.d/$(PTXCONF_MONIT_BBINIT_LINK))
endif
endif
endif
@$(call install_finish, monit)
@$(call touch)
# vim: ft=make noet
|