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