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