2006-12-20 17:38:22 +01:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# argus
|
|
|
|
#
|
|
|
|
#############################################################
|
2007-07-11 16:06:06 +02:00
|
|
|
ARGUS_VERSION:=3.0.0.rc.34
|
|
|
|
ARGUS_SOURCE:=argus_$(ARGUS_VERSION).orig.tar.gz
|
|
|
|
ARGUS_PATCH:=argus_$(ARGUS_VERSION)-1.diff.gz
|
2007-12-27 13:00:12 +01:00
|
|
|
ARGUS_SITE:=$(BR2_DEBIAN_MIRROR)/debian/pool/main/a/argus/
|
2007-07-11 16:06:06 +02:00
|
|
|
ARGUS_DIR:=$(BUILD_DIR)/argus-$(ARGUS_VERSION)
|
2006-12-20 17:38:22 +01:00
|
|
|
ARGUS_CAT:=$(ZCAT)
|
|
|
|
ARGUS_BINARY:=bin/argus
|
|
|
|
ARGUS_TARGET_BINARY:=usr/sbin/argus
|
|
|
|
|
|
|
|
$(DL_DIR)/$(ARGUS_SOURCE):
|
|
|
|
$(WGET) -P $(DL_DIR) $(ARGUS_SITE)/$(ARGUS_SOURCE)
|
|
|
|
|
|
|
|
$(DL_DIR)/$(ARGUS_PATCH):
|
|
|
|
$(WGET) -P $(DL_DIR) $(ARGUS_SITE)/$(ARGUS_PATCH)
|
|
|
|
|
|
|
|
argus-source: $(DL_DIR)/$(ARGUS_SOURCE) $(DL_DIR)/$(ARGUS_PATCH)
|
|
|
|
|
|
|
|
$(ARGUS_DIR)/.unpacked: $(DL_DIR)/$(ARGUS_SOURCE) $(DL_DIR)/$(ARGUS_PATCH)
|
|
|
|
$(ARGUS_CAT) $(DL_DIR)/$(ARGUS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
|
|
|
|
toolchain/patch-kernel.sh $(ARGUS_DIR) package/argus/ argus\*.patch
|
|
|
|
ifneq ($(ARGUS_PATCH),)
|
|
|
|
(cd $(ARGUS_DIR) && $(ARGUS_CAT) $(DL_DIR)/$(ARGUS_PATCH) | patch -p1)
|
|
|
|
if [ -d $(ARGUS_DIR)/debian/patches ]; then \
|
2007-08-22 11:56:41 +02:00
|
|
|
toolchain/patch-kernel.sh $(ARGUS_DIR) $(ARGUS_DIR)/debian/patches \*.patch; \
|
2006-12-20 17:38:22 +01:00
|
|
|
fi
|
|
|
|
endif
|
2007-06-27 11:48:23 +02:00
|
|
|
touch $@
|
2006-12-20 17:38:22 +01:00
|
|
|
|
|
|
|
$(ARGUS_DIR)/.configured: $(ARGUS_DIR)/.unpacked
|
|
|
|
(cd $(ARGUS_DIR); rm -rf config.cache; \
|
2007-01-14 04:52:21 +01:00
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2007-06-27 11:48:23 +02:00
|
|
|
$(TARGET_CONFIGURE_ARGS) \
|
2006-12-20 17:38:22 +01:00
|
|
|
./configure \
|
|
|
|
--target=$(GNU_TARGET_NAME) \
|
|
|
|
--host=$(GNU_TARGET_NAME) \
|
|
|
|
--build=$(GNU_HOST_NAME) \
|
|
|
|
--prefix=/usr \
|
2006-12-21 11:36:40 +01:00
|
|
|
$(DISABLE_LARGEFILE) \
|
2007-08-21 21:20:18 +02:00
|
|
|
)
|
2007-06-27 11:48:23 +02:00
|
|
|
touch $@
|
2006-12-20 17:38:22 +01:00
|
|
|
|
|
|
|
$(ARGUS_DIR)/$(ARGUS_BINARY): $(ARGUS_DIR)/.configured
|
2007-07-28 17:38:58 +02:00
|
|
|
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(ARGUS_DIR)
|
2006-12-20 17:38:22 +01:00
|
|
|
|
|
|
|
$(TARGET_DIR)/$(ARGUS_TARGET_BINARY): $(ARGUS_DIR)/$(ARGUS_BINARY)
|
|
|
|
cp -dpf $(ARGUS_DIR)/$(ARGUS_BINARY) $@
|
2007-10-01 18:15:31 +02:00
|
|
|
$(STRIPCMD) $(STRIP_STRIP_ALL) $@
|
2006-12-20 17:38:22 +01:00
|
|
|
|
|
|
|
argus: uclibc libpcap $(TARGET_DIR)/$(ARGUS_TARGET_BINARY)
|
|
|
|
|
|
|
|
argus-clean:
|
|
|
|
-$(MAKE) -C $(ARGUS_DIR) clean
|
|
|
|
rm -f $(TARGET_DIR)/$(ARGUS_TARGET_BINARY)
|
|
|
|
|
|
|
|
argus-dirclean:
|
|
|
|
rm -rf $(ARGUS_DIR)
|
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# Toplevel Makefile options
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
ifeq ($(strip $(BR2_PACKAGE_ARGUS)),y)
|
|
|
|
TARGETS+=argus
|
|
|
|
endif
|