2006-04-12 03:34:26 +03:00
|
|
|
# $Id$
|
2006-02-13 14:40:39 +02:00
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=httping
|
|
|
|
PKG_VERSION:=1.0.10
|
|
|
|
PKG_RELEASE:=1
|
|
|
|
PKG_MD5SUM:=998b00b8babeb3196d28c20ad87d9c15
|
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://www.vanheusden.com/httping/
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tgz
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
|
2006-02-13 14:58:34 +02:00
|
|
|
PKG_DEPEND=libopenssl
|
|
|
|
ifneq ($(BR2_PACKAGE_HTTPING_WITH_SSL),y)
|
|
|
|
SSL_ENABLE:=".nossl"
|
|
|
|
PKG_DEPEND:=""
|
|
|
|
endif
|
|
|
|
|
2006-02-13 14:40:39 +02:00
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
|
|
|
$(eval $(call PKG_template,HTTPING,$(PKG_NAME),$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.configured:
|
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
2006-02-13 14:58:34 +02:00
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \
|
|
|
|
CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR)
|
2006-02-13 14:40:39 +02:00
|
|
|
touch $@
|
|
|
|
|
|
|
|
$(IPKG_HTTPING):
|
|
|
|
mkdir -p $(IDIR_HTTPING)/usr/sbin
|
2006-02-13 14:58:34 +02:00
|
|
|
echo "Depends: $(PKG_DEPEND)" >> $(IDIR_HTTPING)/CONTROL/control
|
2006-02-15 17:36:28 +02:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_HTTPING)/usr/sbin/
|
2006-02-13 14:40:39 +02:00
|
|
|
$(STRIP) $(IDIR_HTTPING)/usr/sbin/*
|
|
|
|
$(IPKG_BUILD) $(IDIR_HTTPING) $(PACKAGE_DIR)
|
|
|
|
|
|
|
|
mostlyclean:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
|
|
rm -f $(PKG_BUILD_DIR)/.built
|