[packages] remove libnotimpl, missing math functions are provided by uClibc since...
[openwrt/svn-archive/archive.git] / net / nagios / Makefile
1 #
2 # Copyright (C) 2008 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=nagios
11 PKG_VERSION:=2.10
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/nagios
16 PKG_MD5SUM:=8c3a29e138f2ff8c8abbd3dd8a40c4b6
17
18 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/nagios
23 SECTION:=net
24 CATEGORY:=Network
25 SUBMENU:=Monitoring
26 DEPENDS:=+libpthread +microperl +libltdl
27 TITLE:=service and network monitoring program
28 URL:=http://www.nagios.org/
29 endef
30
31 define Package/nagios/description
32 service and network monitoring program
33 endef
34
35 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
36
37 CONFIGURE_ARGS += \
38 --with-nagios-user="root" \
39 --with-nagios-group="root" \
40 --sysconfdir="/etc/nagios" \
41 --without-gd-lib \
42 --without-gd-inc \
43 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 DESTDIR="$(PKG_INSTALL_DIR)" \
48 INSTALL_OPTS="" \
49 STRIP=: \
50 all install install-config
51 endef
52
53 define Package/nagios/install
54 $(INSTALL_DIR) $(1)/etc/nagios
55 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/nagios/* $(1)/etc/nagios/
56 $(INSTALL_DIR) $(1)/usr/bin
57 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{nagios,nagiostats} $(1)/usr/bin/
58 $(INSTALL_DIR) $(1)/usr/sbin
59 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
60 $(INSTALL_DIR) $(1)/usr/share
61 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
62 endef
63
64 $(eval $(call BuildPackage,nagios))