3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=0f054ac39822b4be71789d49e4813754
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
)))
20 $(PKG_BUILD_DIR
)/.configured
: $(PKG_BUILD_DIR
)/.prepared
21 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
} ; \
22 $(TARGET_CONFIGURE_OPTS
) \
23 CFLAGS
="$(TARGET_CFLAGS)" \
25 --target
=$(GNU_TARGET_NAME
) \
26 --host
=$(GNU_TARGET_NAME
) \
27 --build
=$(GNU_HOST_NAME
) \
33 --datadir=/usr
/share \
34 --includedir=/usr
/include \
35 --infodir=/usr
/share
/info \
37 --libexecdir
=/usr
/lib \
38 --localstatedir
=/var \
39 --mandir=/usr
/share
/man \
42 $(DISABLE_LARGEFILE
) \
48 $(PKG_BUILD_DIR
)/.built
:
49 $(MAKE
) -C
$(PKG_BUILD_DIR
)
53 install -d
-m0755
$(IDIR_MONIT
)/etc
54 install -m0600
$(PKG_BUILD_DIR
)/monitrc
$(IDIR_MONIT
)/etc
/
55 install -d
-m0755
$(IDIR_MONIT
)/etc
/init.d
56 install -m0755 .
/files
/monit.init
$(IDIR_MONIT
)/etc
/init.d
/monit
57 install -d
-m0755
$(IDIR_MONIT
)/usr
/sbin
58 cp
-fpR
$(PKG_BUILD_DIR
)/monit
$(IDIR_MONIT
)/usr
/sbin
/
59 $(STRIP
) $(IDIR_MONIT
)/usr
/sbin
/monit
60 $(IPKG_BUILD
) $(IDIR_MONIT
) $(PACKAGE_DIR
)