2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/nagios
17 PKG_MD5SUM
:=d526a3ac3c29648c729c5fb4fb332488
20 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/send-nsca
28 TITLE
:=Nagios Service Check Acceptor
(NSCA
) client
29 URL
:=http
://www.nagios.org
/
32 define Package
/send-nsca
/conffiles
36 define Build
/Configure
37 $(call Build
/Configure
/Default
, \
38 --with-libmcrypt-prefix
="$(STAGING_DIR)/usr" \
40 CFLAGS
="$$$$CFLAGS $$$$CPPFLAGS" \
45 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
49 define Package
/send-nsca
/install
50 $(INSTALL_DIR
) $(1)/etc
51 $(INSTALL_CONF
) $(PKG_BUILD_DIR
)/sample-config
/send_nsca.cfg
$(1)/etc
/
52 $(INSTALL_DIR
) $(1)/usr
/sbin
53 $(INSTALL_BIN
) $(PKG_BUILD_DIR
)/src
/send_nsca
$(1)/usr
/sbin
/
56 $(eval
$(call BuildPackage
,send-nsca
))