aboutsummaryrefslogtreecommitdiffstats
path: root/package/httping/Makefile
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2006-02-13 12:58:34 +0000
committerFlorian Fainelli <florian@openwrt.org>2006-02-13 12:58:34 +0000
commitb2723be1031a22eab36a514234b5968841b4270c (patch)
tree43a79aa083d45167d1c1a921543be9039b0c82c6 /package/httping/Makefile
parent098b606cb3131b1c16ff82f14f3f8c6c3c6d8d19 (diff)
downloadupstream-b2723be1031a22eab36a514234b5968841b4270c.tar.gz
upstream-b2723be1031a22eab36a514234b5968841b4270c.tar.bz2
upstream-b2723be1031a22eab36a514234b5968841b4270c.zip
Added support for SSL
git-svn-id: svn://svn.openwrt.org/openwrt/trunk/openwrt@3232 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/httping/Makefile')
-rw-r--r--package/httping/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/package/httping/Makefile b/package/httping/Makefile
index 05dd1c13b4..027aac9201 100644
--- a/package/httping/Makefile
+++ b/package/httping/Makefile
@@ -13,6 +13,12 @@ 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)))
@@ -21,13 +27,14 @@ $(PKG_BUILD_DIR)/.configured:
touch $@
$(PKG_BUILD_DIR)/.built:
- $(MAKE) -C $(PKG_BUILD_DIR) \
- CC=$(TARGET_CC)
+ $(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
- $(CP) $(PKG_BUILD_DIR)/$(PKG_NAME) $(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)