56789c76de7a8323d93eddc0d5b5141c7ccf093b
[packages.git] / admin / nsca / Makefile
1
2 # Copyright (C) 2006 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:=nsca
11 PKG_VERSION:=2.7.2
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=@SF/nagios
16 PKG_MD5SUM:=33a98e7975f633a9489d7a8938ed6131
17
18 include $(INCLUDE_DIR)/package.mk
19
20 define Package/send-nsca
21   SECTION:=admin
22   CATEGORY:=Administration
23   DEPENDS:=+libmcrypt
24   TITLE:=Nagios Service Check Acceptor (NSCA) client
25   URL:=http://www.nagios.org/
26 endef
27
28 define Package/send-nsca/description
29         This is the client program that is used to send service check
30         information from a remote machine to the nsca daemon on the central
31         machine that runs Nagios.
32 endef
33
34 define Package/send-nsca/conffiles
35 /etc/send_nsca.cfg
36 endef
37
38 define Build/Configure
39         $(call Build/Configure/Default, \
40                 --with-nsca-user="root" \
41                 --with-nsca-grp="root" \
42                 --with-libmcrypt-prefix="$(STAGING_DIR)/usr" \
43                 , \
44                 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
45         )
46 endef
47
48 define Build/Compile
49         $(MAKE) -C $(PKG_BUILD_DIR) \
50                 send_nsca
51 endef
52
53 define Package/send-nsca/install
54         $(INSTALL_DIR) $(1)/etc
55         $(INSTALL_CONF) $(PKG_BUILD_DIR)/sample-config/send_nsca.cfg $(1)/etc/
56         $(INSTALL_DIR) $(1)/usr/sbin
57         $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/send_nsca $(1)/usr/sbin/
58 endef
59
60 $(eval $(call BuildPackage,send-nsca))