[Packages] net/wifidog:
[openwrt/svn-archive/archive.git] / net / nagios / Makefile
1 #
2 # Copyright (C) 2007 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.9
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagios
17 PKG_MD5SUM:=b6e3a21c91edb063c00712c6001e15ec
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 DEPENDS:=+libpthread +microperl
29 TITLE:=service and network monitoring program
30 URL:=http://www.nagios.org/
31 endef
32
33 define Package/nagios/description
34 service and network monitoring program
35 endef
36
37 define Package/send-nagios/conffiles
38 /etc/send_nagios.cfg
39 endef
40
41 EXTRA_CFLAGS += -I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
42
43 define Build/Configure
44 $(call Build/Configure/Default,\
45 --with-nagios-user="root" \
46 --with-nagios-group="root", \
47 CFLAGS="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)" \
48 LIBS="-lnotimpl" \
49 )
50 endef
51
52 define Build/Compile
53 $(call Build/Compile/Default,\
54 DESTDIR="$(PKG_INSTALL_DIR)" \
55 INSTALL_OPTS="" \
56 all install install-config \
57 )
58 endef
59
60 define Package/nagios/install
61 $(CP) $(PKG_INSTALL_DIR) $(1)/
62 endef
63
64 $(eval $(call BuildPackage,nagios))