3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=4e53aa44e4ca264e61c7c401cee4e697
10 PKG_SOURCE_URL
:=http
://www.tildeslash.com
/monit
/dist/
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
18 $(eval
$(call PKG_template
,MONIT
,monit
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
19 $(eval
$(call PKG_template
,MONIT_NOSSL
,monit-nossl
,$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
)))
21 $(PKG_BUILD_DIR
)/.configured
:
24 $(PKG_BUILD_DIR
)/.built
:
25 ifneq ($(BR2_PACKAGE_MONIT
),)
26 ( cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
27 $(TARGET_CONFIGURE_OPTS
) \
28 CFLAGS
="$(TARGET_CFLAGS)" \
30 --target
=$(GNU_TARGET_NAME
) \
31 --host
=$(GNU_TARGET_NAME
) \
32 --build
=$(GNU_HOST_NAME
) \
38 --datadir=/usr
/share \
39 --includedir=/usr
/include \
40 --infodir=/usr
/share
/info \
42 --libexecdir
=/usr
/lib \
43 --localstatedir
=/var \
44 --mandir=/usr
/share
/man \
47 $(DISABLE_LARGEFILE
) \
50 --with-ssl-dir
="$(STAGING_DIR)/usr" \
52 $(MAKE
) -C
$(PKG_BUILD_DIR
)
53 ( cd
$(PKG_BUILD_DIR
); mv monit monit-ssl
; )
55 ifneq ($(BR2_PACKAGE_MONIT
),)
56 ( cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
57 $(TARGET_CONFIGURE_OPTS
) \
58 CFLAGS
="$(TARGET_CFLAGS)" \
60 --target
=$(GNU_TARGET_NAME
) \
61 --host
=$(GNU_TARGET_NAME
) \
62 --build
=$(GNU_HOST_NAME
) \
68 --datadir=/usr
/share \
69 --includedir=/usr
/include \
70 --infodir=/usr
/share
/info \
72 --libexecdir
=/usr
/lib \
73 --localstatedir
=/var \
74 --mandir=/usr
/share
/man \
77 $(DISABLE_LARGEFILE
) \
81 $(MAKE
) -C
$(PKG_BUILD_DIR
)
82 ( cd
$(PKG_BUILD_DIR
); mv monit monit-nossl
; )
83 $(MAKE
) -C
$(PKG_BUILD_DIR
) clean
88 install -d
-m0755
$(IDIR_MONIT
)/etc
89 install -m0600
$(PKG_BUILD_DIR
)/monitrc
$(IDIR_MONIT
)/etc
/
90 install -d
-m0755
$(IDIR_MONIT
)/etc
/init.d
91 install -m0755 .
/files
/monit.init
$(IDIR_MONIT
)/etc
/init.d
/monit
92 install -d
-m0755
$(IDIR_MONIT
)/usr
/sbin
93 install -m0755
$(PKG_BUILD_DIR
)/monit-ssl
$(IDIR_MONIT
)/usr
/sbin
/monit
94 $(RSTRIP
) $(IDIR_MONIT
)
95 $(IPKG_BUILD
) $(IDIR_MONIT
) $(PACKAGE_DIR
)
98 install -d
-m0755
$(IDIR_MONIT_NOSSL
)/etc
99 install -m0600
$(PKG_BUILD_DIR
)/monitrc
$(IDIR_MONIT_NOSSL
)/etc
/
100 install -d
-m0755
$(IDIR_MONIT_NOSSL
)/etc
/init.d
101 install -m0755 .
/files
/monit.init
$(IDIR_MONIT_NOSSL
)/etc
/init.d
/monit
102 install -d
-m0755
$(IDIR_MONIT_NOSSL
)/usr
/sbin
103 install -m0755
$(PKG_BUILD_DIR
)/monit-nossl
$(IDIR_MONIT_NOSSL
)/usr
/sbin
/monit
104 $(RSTRIP
) $(IDIR_MONIT_NOSSL
)
105 $(IPKG_BUILD
) $(IDIR_MONIT_NOSSL
) $(PACKAGE_DIR
)