packages/net/nsca/Makefile
florian 39433d8ce2 Upgrade to 2.7.1 and use root/root as default group (#1856)
git-svn-id: svn://svn.openwrt.org/openwrt/packages@7546 3c298f89-4303-0410-b956-a3cf2f4a3e73
2007-06-10 18:35:16 +00:00

59 lines
1.2 KiB
Makefile

#
# Copyright (C) 2006 OpenWrt.org
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
# $Id$
include $(TOPDIR)/rules.mk
PKG_NAME:=nsca
PKG_VERSION:=2.7.1
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=@SF/nagios
PKG_MD5SUM:=823400ebca86df44c6f48b66e1c181d2
PKG_CAT:=zcat
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
include $(INCLUDE_DIR)/package.mk
define Package/send-nsca
SECTION:=net
CATEGORY:=Network
DEPENDS:=+libmcrypt
TITLE:=Nagios Service Check Acceptor (NSCA) client
URL:=http://www.nagios.org/
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))