mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-05 15:34:59 +02:00
d75add62a3
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3622 3c298f89-4303-0410-b956-a3cf2f4a3e73
44 lines
1.0 KiB
Makefile
44 lines
1.0 KiB
Makefile
# $Id$
|
|
|
|
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)
|
|
|
|
PKG_DEPEND=libopenssl
|
|
ifneq ($(BR2_PACKAGE_HTTPING_WITH_SSL),y)
|
|
SSL_ENABLE:=".nossl"
|
|
PKG_DEPEND:=""
|
|
endif
|
|
|
|
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:
|
|
$(MAKE) -C $(PKG_BUILD_DIR) -f $(PKG_BUILD_DIR)/Makefile$(SSL_ENABLE) \
|
|
CC=$(TARGET_CC) STAGING_DIR=$(STAGING_DIR)
|
|
touch $@
|
|
|
|
$(IPKG_HTTPING):
|
|
mkdir -p $(IDIR_HTTPING)/usr/sbin
|
|
echo "Depends: $(PKG_DEPEND)" >> $(IDIR_HTTPING)/CONTROL/control
|
|
$(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(IDIR_HTTPING)/usr/sbin/
|
|
$(STRIP) $(IDIR_HTTPING)/usr/sbin/*
|
|
$(IPKG_BUILD) $(IDIR_HTTPING) $(PACKAGE_DIR)
|
|
|
|
mostlyclean:
|
|
$(MAKE) -C $(PKG_BUILD_DIR) clean
|
|
rm -f $(PKG_BUILD_DIR)/.built
|