PINGTUNNEL_VERSION:=0.61 PINGTUNNEL_SOURCE:=PingTunnel-$(PINGTUNNEL_VERSION).tar.gz PINGTUNNEL_SITE:=http://www.cs.uit.no/~daniels/PingTunnel/ PINGTUNNEL_MAKE_DIR:=$(MAKE_DIR)/PingTunnel PINGTUNNEL_DIR:=$(SOURCE_DIR)/PingTunnel PINGTUNNEL_BINARY:=$(PINGTUNNEL_DIR)/ptunnel PINGTUNNEL_PKG_VERSION:= PINGTUNNEL_PKG_SOURCE:=pingtunnel-$(PINGTUNNEL_VERSION)-dsmod-binary-only.tar.bz2 PINGTUNNEL_PKG_SITE:=http://131.246.137.121/~metz/dsmod/packages PINGTUNNEL_TARGET_DIR:=$(PACKAGES_DIR)/pingtunnel-$(PINGTUNNEL_VERSION) PINGTUNNEL_TARGET_BINARY:=$(PINGTUNNEL_TARGET_DIR)/root/usr/sbin/ptunnel $(DL_DIR)/$(PINGTUNNEL_SOURCE): | $(DL_DIR) wget -P $(DL_DIR) $(PINGTUNNEL_SITE)/$(PINGTUNNEL_SOURCE) $(DL_DIR)/$(PINGTUNNEL_PKG_SOURCE): | $(DL_DIR) @$(DL_TOOL) $(DL_DIR) $(TOPDIR)/.config $(PINGTUNNEL_PKG_SOURCE) $(PINGTUNNEL_PKG_SITE) $(PINGTUNNEL_DIR)/.unpacked: $(DL_DIR)/$(PINGTUNNEL_SOURCE) tar -C $(SOURCE_DIR) $(VERBOSE) -xzf $(DL_DIR)/$(PINGTUNNEL_SOURCE) # for i in $(PINGTUNNEL_MAKE_DIR)/patches/*.patch; do \ # $(PATCH_TOOL) $(PINGTUNNEL_DIR) $$i; \ # done touch $@ $(PINGTUNNEL_BINARY): $(PINGTUNNEL_DIR)/.unpacked $(MAKE) CC="$(TARGET_CC)" \ CFLAGS="$(TARGET_CFLAGS) -I$(TARGET_MAKE_PATH)/../usr/include -DVERSION='\"$(PINGTUNNEL_VERSION)\"'" \ LDOPTS="-L$(TARGET_MAKE_PATH)/../usr/lib -lpthread -lpcap" \ -C $(PINGTUNNEL_DIR) $(PINGTUNNEL_TARGET_BINARY): $(PINGTUNNEL_BINARY) $(INSTALL_BINARY_STRIP) $(PACKAGES_DIR)/.pingtunnel-$(PINGTUNNEL_VERSION): $(DL_DIR)/$(PINGTUNNEL_PKG_SOURCE) | $(PACKAGES_DIR) @tar -C $(PACKAGES_DIR) -xjf $(DL_DIR)/$(PINGTUNNEL_PKG_SOURCE) @touch $@ pingtunnel: $(PACKAGES_DIR)/.pingtunnel-$(PINGTUNNEL_VERSION) pingtunnel-package: $(PACKAGES_DIR)/.pingtunnel-$(PINGTUNNEL_VERSION) tar -C $(PACKAGES_DIR) $(VERBOSE) --exclude .svn -cjf $(PACKAGES_BUILD_DIR)/$(PINGTUNNEL_PKG_SOURCE) pingtunnel-$(PINGTUNNEL_VERSION) pingtunnel-precompiled: uclibc libpcap-precompiled pingtunnel $(PINGTUNNEL_TARGET_BINARY) pingtunnel-source: $(PINGTUNNEL_DIR)/.unpacked $(PACKAGES_DIR)/.pingtunnel-$(PINGTUNNEL_VERSION) pingtunnel-clean: -$(MAKE) -C $(PINGTUNNEL_DIR) clean rm -f $(PACKAGES_BUILD_DIR)/$(PINGTUNNEL_PKG_SOURCE) pingtunnel-dirclean: rm -rf $(PINGTUNNEL_DIR) rm -rf $(PACKAGES_DIR)/pingtunnel-$(PINGTUNNEL_VERSION) rm -f $(PACKAGES_DIR)/.pingtunnel-$(PINGTUNNEL_VERSION) pingtunnel-uninstall: rm -f $(PINGTUNNEL_TARGET_BINARY) pingtunnel-list: ifeq ($(strip $(DS_PACKAGE_PINGTUNNEL)),y) @echo "S40pingtunnel-$(PINGTUNNEL_VERSION)" >> .static else @echo "S40pingtunnel-$(PINGTUNNEL_VERSION)" >> .dynamic endif