remove a few obsolete dependencies now that dependency propagation is fixed
[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 # $Id$
8
9 include $(TOPDIR)/rules.mk
10
11 PKG_NAME:=nagios
12 PKG_VERSION:=2.10
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagios
17 PKG_MD5SUM:=8c3a29e138f2ff8c8abbd3dd8a40c4b6
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 PKG_BUILD_DEPENDS:=libnotimpl
24
25 define Package/nagios
26 SECTION:=net
27 CATEGORY:=Network
28 SUBMENU:=Monitoring
29 DEPENDS:=+libpthread +microperl +libltdl
30 TITLE:=service and network monitoring program
31 URL:=http://www.nagios.org/
32 endef
33
34 define Package/nagios/description
35 service and network monitoring program
36 endef
37
38 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
39
40 CONFIGURE_ARGS += \
41 --with-nagios-user="root" \
42 --with-nagios-group="root" \
43 --sysconfdir="/etc/nagios" \
44 --without-gd-lib \
45 --without-gd-inc \
46 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
47
48 CONFIGURE_VARS += \
49 LIBS="-lnotimpl"
50
51 define Build/Compile
52 $(MAKE) -C $(PKG_BUILD_DIR) \
53 DESTDIR="$(PKG_INSTALL_DIR)" \
54 INSTALL_OPTS="" \
55 STRIP=: \
56 all install install-config
57 endef
58
59 define Package/nagios/install
60 $(INSTALL_DIR) $(1)/etc/nagios
61 $(INSTALL_DATA) $(PKG_INSTALL_DIR)/etc/nagios/* $(1)/etc/nagios/
62 $(INSTALL_DIR) $(1)/usr/bin
63 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/{nagios,nagiostats} $(1)/usr/bin/
64 $(INSTALL_DIR) $(1)/usr/sbin
65 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
66 $(INSTALL_DIR) $(1)/usr/share
67 $(CP) $(PKG_INSTALL_DIR)/usr/share/* $(1)/usr/share/
68 endef
69
70 $(eval $(call BuildPackage,nagios))