0a2d8994a19b93e0c972c548ee4cbf707c9b0fe6
[openwrt/svn-archive/archive.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.1
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
16 PKG_SOURCE_URL:=@SF/nagios
17 PKG_MD5SUM:=823400ebca86df44c6f48b66e1c181d2
18
19 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
20
21 include $(INCLUDE_DIR)/package.mk
22
23 define Package/send-nsca
24 SECTION:=net
25 CATEGORY:=Network
26 DEPENDS:=+libmcrypt
27 TITLE:=Nagios Service Check Acceptor (NSCA) client
28 URL:=http://www.nagios.org/
29 endef
30
31 define Package/send-nsca/conffiles
32 /etc/send_nsca.cfg
33 endef
34
35 define Build/Configure
36 $(call Build/Configure/Default, \
37 --with-nsca-user="root" \
38 --with-nsca-grp="root" \
39 --with-libmcrypt-prefix="$(STAGING_DIR)/usr" \
40 , \
41 CFLAGS="$$$$CFLAGS $$$$CPPFLAGS" \
42 )
43 endef
44
45 define Build/Compile
46 $(MAKE) -C $(PKG_BUILD_DIR) \
47 send_nsca
48 endef
49
50 define Package/send-nsca/install
51 $(INSTALL_DIR) $(1)/etc
52 $(INSTALL_CONF) $(PKG_BUILD_DIR)/sample-config/send_nsca.cfg $(1)/etc/
53 $(INSTALL_DIR) $(1)/usr/sbin
54 $(INSTALL_BIN) $(PKG_BUILD_DIR)/src/send_nsca $(1)/usr/sbin/
55 endef
56
57 $(eval $(call BuildPackage,send-nsca))