2 # Copyright (C) 2008-2011 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
15 PKG_SOURCE_URL
:=@SF
/nagios
16 PKG_MD5SUM
:=8c3a29e138f2ff8c8abbd3dd8a40c4b6
18 include $(INCLUDE_DIR
)/package.mk
22 CATEGORY
:=Administration
23 DEPENDS
:=+libpthread
+microperl
+libltdl
24 TITLE
:=service and network monitoring program
25 URL
:=http
://www.nagios.org
/
28 define Package
/nagios
/description
29 service and network monitoring program
32 EXTRA_CFLAGS
+= $(TARGET_CPPFLAGS
)
35 --with-nagios-user
="root" \
36 --with-nagios-group
="root" \
37 --sysconfdir
="/etc/nagios" \
40 CFLAGS
="$(TARGET_CFLAGS) $(EXTRA_CFLAGS)"
43 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
44 DESTDIR
="$(PKG_INSTALL_DIR)" \
47 all install install-config
50 define Package
/nagios
/install
51 $(INSTALL_DIR
) $(1)/etc
/nagios
52 $(INSTALL_DATA
) $(PKG_INSTALL_DIR
)/etc
/nagios
/* $(1)/etc
/nagios
/
53 $(INSTALL_DIR
) $(1)/usr
/bin
54 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/{nagios
,nagiostats
} $(1)/usr
/bin
/
55 $(INSTALL_DIR
) $(1)/usr
/sbin
56 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/sbin
/* $(1)/usr
/sbin
/
57 $(INSTALL_DIR
) $(1)/usr
/share
58 $(CP
) $(PKG_INSTALL_DIR
)/usr
/share
/* $(1)/usr
/share
/
61 define Package
/nagios
/conffiles
63 /etc
/nagios
/commands.cfg
64 /etc
/nagios
/localhost.cfg
65 /etc
/nagios
/nagios.cfg
66 /etc
/nagios
/resource.cfg
69 $(eval
$(call BuildPackage
,nagios
))