Fix aiccu init-script
[openwrt.git] / openwrt / package / monit / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=monit
6 PKG_VERSION:=4.5.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=0f054ac39822b4be71789d49e4813754
9
10 PKG_SOURCE_URL:=http://www.tildeslash.com/monit/dist/
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
12 PKG_CAT:=zcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15
16 include $(TOPDIR)/package/rules.mk
17
18 $(eval $(call PKG_template,MONIT,monit,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
19
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)" \
24 ./configure \
25 --target=$(GNU_TARGET_NAME) \
26 --host=$(GNU_TARGET_NAME) \
27 --build=$(GNU_HOST_NAME) \
28 --program-prefix="" \
29 --program-suffix="" \
30 --prefix=/usr \
31 --exec-prefix=/usr \
32 --bindir=/usr/sbin \
33 --datadir=/usr/share \
34 --includedir=/usr/include \
35 --infodir=/usr/share/info \
36 --libdir=/usr/lib \
37 --libexecdir=/usr/lib \
38 --localstatedir=/var \
39 --mandir=/usr/share/man \
40 --sbindir=/usr/sbin \
41 --sysconfdir=/etc \
42 $(DISABLE_LARGEFILE) \
43 $(DISABLE_NLS) \
44 --without-ssl \
45 );
46 touch $(PKG_BUILD_DIR)/.configured
47
48 $(PKG_BUILD_DIR)/.built:
49 $(MAKE) -C $(PKG_BUILD_DIR)
50 touch $(PKG_BUILD_DIR)/.built
51
52 $(IPKG_MONIT):
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)
This page took 0.041861 seconds and 5 git commands to generate.